@bigbinary/neeto-tags-frontend 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -14,13 +14,13 @@ var i18next = require('i18next');
14
14
  var classNames = require('classnames');
15
15
  var Metadata = require('@bigbinary/neeto-molecules/Metadata');
16
16
  var reactRouterDom = require('react-router-dom');
17
+ var utils = require('@bigbinary/neeto-commons-frontend/utils');
17
18
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
18
19
  var neetoFiltersFrontend = require('@bigbinary/neeto-filters-frontend');
19
20
  var Container$1 = require('@bigbinary/neeto-molecules/Container');
20
21
  var SubHeader = require('@bigbinary/neeto-molecules/SubHeader');
21
22
  var reactQuery = require('react-query');
22
23
  var axios = require('axios');
23
- var require$$0 = require('util');
24
24
  var yup = require('yup');
25
25
  var NeetoHeader = require('@bigbinary/neeto-molecules/Header');
26
26
  var formik = require('@bigbinary/neetoui/formik');
@@ -55,7 +55,6 @@ var Metadata__default = /*#__PURE__*/_interopDefaultLegacy(Metadata);
55
55
  var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container$1);
56
56
  var SubHeader__default = /*#__PURE__*/_interopDefaultLegacy(SubHeader);
57
57
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
58
- var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
59
58
  var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
60
59
  var NeetoHeader__default = /*#__PURE__*/_interopDefaultLegacy(NeetoHeader);
61
60
  var TableWrapper__default = /*#__PURE__*/_interopDefaultLegacy(TableWrapper);
@@ -534,2073 +533,12 @@ function _objectWithoutProperties(source, excluded) {
534
533
  return target;
535
534
  }
536
535
 
537
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
538
-
539
- function getDefaultExportFromCjs (x) {
540
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
541
- }
542
-
543
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
544
- var shams = function hasSymbols() {
545
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
546
- if (typeof Symbol.iterator === 'symbol') { return true; }
547
-
548
- var obj = {};
549
- var sym = Symbol('test');
550
- var symObj = Object(sym);
551
- if (typeof sym === 'string') { return false; }
552
-
553
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
554
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
555
-
556
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
557
- // if (sym instanceof Symbol) { return false; }
558
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
559
- // if (!(symObj instanceof Symbol)) { return false; }
560
-
561
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
562
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
563
-
564
- var symVal = 42;
565
- obj[sym] = symVal;
566
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
567
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
568
-
569
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
570
-
571
- var syms = Object.getOwnPropertySymbols(obj);
572
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
573
-
574
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
575
-
576
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
577
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
578
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
579
- }
580
-
581
- return true;
582
- };
583
-
584
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
585
- var hasSymbolSham = shams;
586
-
587
- var hasSymbols$1 = function hasNativeSymbols() {
588
- if (typeof origSymbol !== 'function') { return false; }
589
- if (typeof Symbol !== 'function') { return false; }
590
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
591
- if (typeof Symbol('bar') !== 'symbol') { return false; }
592
-
593
- return hasSymbolSham();
594
- };
595
-
596
- var test = {
597
- foo: {}
598
- };
599
-
600
- var $Object = Object;
601
-
602
- var hasProto$1 = function hasProto() {
603
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
604
- };
605
-
606
- /* eslint no-invalid-this: 1 */
607
-
608
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
609
- var slice = Array.prototype.slice;
610
- var toStr$1 = Object.prototype.toString;
611
- var funcType = '[object Function]';
612
-
613
- var implementation$1 = function bind(that) {
614
- var target = this;
615
- if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
616
- throw new TypeError(ERROR_MESSAGE + target);
617
- }
618
- var args = slice.call(arguments, 1);
619
-
620
- var bound;
621
- var binder = function () {
622
- if (this instanceof bound) {
623
- var result = target.apply(
624
- this,
625
- args.concat(slice.call(arguments))
626
- );
627
- if (Object(result) === result) {
628
- return result;
629
- }
630
- return this;
631
- } else {
632
- return target.apply(
633
- that,
634
- args.concat(slice.call(arguments))
635
- );
636
- }
637
- };
638
-
639
- var boundLength = Math.max(0, target.length - args.length);
640
- var boundArgs = [];
641
- for (var i = 0; i < boundLength; i++) {
642
- boundArgs.push('$' + i);
643
- }
644
-
645
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
646
-
647
- if (target.prototype) {
648
- var Empty = function Empty() {};
649
- Empty.prototype = target.prototype;
650
- bound.prototype = new Empty();
651
- Empty.prototype = null;
652
- }
653
-
654
- return bound;
655
- };
656
-
657
- var implementation = implementation$1;
658
-
659
- var functionBind = Function.prototype.bind || implementation;
660
-
661
- var bind$1 = functionBind;
662
-
663
- var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
664
-
665
- var undefined$1;
666
-
667
- var $SyntaxError = SyntaxError;
668
- var $Function = Function;
669
- var $TypeError$1 = TypeError;
670
-
671
- // eslint-disable-next-line consistent-return
672
- var getEvalledConstructor = function (expressionSyntax) {
673
- try {
674
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
675
- } catch (e) {}
676
- };
677
-
678
- var $gOPD = Object.getOwnPropertyDescriptor;
679
- if ($gOPD) {
680
- try {
681
- $gOPD({}, '');
682
- } catch (e) {
683
- $gOPD = null; // this is IE 8, which has a broken gOPD
684
- }
685
- }
686
-
687
- var throwTypeError = function () {
688
- throw new $TypeError$1();
689
- };
690
- var ThrowTypeError = $gOPD
691
- ? (function () {
692
- try {
693
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
694
- arguments.callee; // IE 8 does not throw here
695
- return throwTypeError;
696
- } catch (calleeThrows) {
697
- try {
698
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
699
- return $gOPD(arguments, 'callee').get;
700
- } catch (gOPDthrows) {
701
- return throwTypeError;
702
- }
703
- }
704
- }())
705
- : throwTypeError;
706
-
707
- var hasSymbols = hasSymbols$1();
708
- var hasProto = hasProto$1();
709
-
710
- var getProto = Object.getPrototypeOf || (
711
- hasProto
712
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
713
- : null
714
- );
715
-
716
- var needsEval = {};
717
-
718
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
719
-
720
- var INTRINSICS = {
721
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
722
- '%Array%': Array,
723
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
724
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
725
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
726
- '%AsyncFunction%': needsEval,
727
- '%AsyncGenerator%': needsEval,
728
- '%AsyncGeneratorFunction%': needsEval,
729
- '%AsyncIteratorPrototype%': needsEval,
730
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
731
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
732
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
733
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
734
- '%Boolean%': Boolean,
735
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
736
- '%Date%': Date,
737
- '%decodeURI%': decodeURI,
738
- '%decodeURIComponent%': decodeURIComponent,
739
- '%encodeURI%': encodeURI,
740
- '%encodeURIComponent%': encodeURIComponent,
741
- '%Error%': Error,
742
- '%eval%': eval, // eslint-disable-line no-eval
743
- '%EvalError%': EvalError,
744
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
745
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
746
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
747
- '%Function%': $Function,
748
- '%GeneratorFunction%': needsEval,
749
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
750
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
751
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
752
- '%isFinite%': isFinite,
753
- '%isNaN%': isNaN,
754
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
755
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
756
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
757
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
758
- '%Math%': Math,
759
- '%Number%': Number,
760
- '%Object%': Object,
761
- '%parseFloat%': parseFloat,
762
- '%parseInt%': parseInt,
763
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
764
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
765
- '%RangeError%': RangeError,
766
- '%ReferenceError%': ReferenceError,
767
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
768
- '%RegExp%': RegExp,
769
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
770
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
771
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
772
- '%String%': String,
773
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
774
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
775
- '%SyntaxError%': $SyntaxError,
776
- '%ThrowTypeError%': ThrowTypeError,
777
- '%TypedArray%': TypedArray,
778
- '%TypeError%': $TypeError$1,
779
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
780
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
781
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
782
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
783
- '%URIError%': URIError,
784
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
785
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
786
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
787
- };
788
-
789
- if (getProto) {
790
- try {
791
- null.error; // eslint-disable-line no-unused-expressions
792
- } catch (e) {
793
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
794
- var errorProto = getProto(getProto(e));
795
- INTRINSICS['%Error.prototype%'] = errorProto;
796
- }
797
- }
798
-
799
- var doEval = function doEval(name) {
800
- var value;
801
- if (name === '%AsyncFunction%') {
802
- value = getEvalledConstructor('async function () {}');
803
- } else if (name === '%GeneratorFunction%') {
804
- value = getEvalledConstructor('function* () {}');
805
- } else if (name === '%AsyncGeneratorFunction%') {
806
- value = getEvalledConstructor('async function* () {}');
807
- } else if (name === '%AsyncGenerator%') {
808
- var fn = doEval('%AsyncGeneratorFunction%');
809
- if (fn) {
810
- value = fn.prototype;
811
- }
812
- } else if (name === '%AsyncIteratorPrototype%') {
813
- var gen = doEval('%AsyncGenerator%');
814
- if (gen && getProto) {
815
- value = getProto(gen.prototype);
816
- }
817
- }
818
-
819
- INTRINSICS[name] = value;
820
-
821
- return value;
822
- };
823
-
824
- var LEGACY_ALIASES = {
825
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
826
- '%ArrayPrototype%': ['Array', 'prototype'],
827
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
828
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
829
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
830
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
831
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
832
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
833
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
834
- '%BooleanPrototype%': ['Boolean', 'prototype'],
835
- '%DataViewPrototype%': ['DataView', 'prototype'],
836
- '%DatePrototype%': ['Date', 'prototype'],
837
- '%ErrorPrototype%': ['Error', 'prototype'],
838
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
839
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
840
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
841
- '%FunctionPrototype%': ['Function', 'prototype'],
842
- '%Generator%': ['GeneratorFunction', 'prototype'],
843
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
844
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
845
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
846
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
847
- '%JSONParse%': ['JSON', 'parse'],
848
- '%JSONStringify%': ['JSON', 'stringify'],
849
- '%MapPrototype%': ['Map', 'prototype'],
850
- '%NumberPrototype%': ['Number', 'prototype'],
851
- '%ObjectPrototype%': ['Object', 'prototype'],
852
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
853
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
854
- '%PromisePrototype%': ['Promise', 'prototype'],
855
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
856
- '%Promise_all%': ['Promise', 'all'],
857
- '%Promise_reject%': ['Promise', 'reject'],
858
- '%Promise_resolve%': ['Promise', 'resolve'],
859
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
860
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
861
- '%RegExpPrototype%': ['RegExp', 'prototype'],
862
- '%SetPrototype%': ['Set', 'prototype'],
863
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
864
- '%StringPrototype%': ['String', 'prototype'],
865
- '%SymbolPrototype%': ['Symbol', 'prototype'],
866
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
867
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
868
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
869
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
870
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
871
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
872
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
873
- '%URIErrorPrototype%': ['URIError', 'prototype'],
874
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
875
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
876
- };
877
-
878
- var bind = functionBind;
879
- var hasOwn$1 = src;
880
- var $concat$1 = bind.call(Function.call, Array.prototype.concat);
881
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
882
- var $replace$1 = bind.call(Function.call, String.prototype.replace);
883
- var $strSlice = bind.call(Function.call, String.prototype.slice);
884
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
885
-
886
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
887
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
888
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
889
- var stringToPath = function stringToPath(string) {
890
- var first = $strSlice(string, 0, 1);
891
- var last = $strSlice(string, -1);
892
- if (first === '%' && last !== '%') {
893
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
894
- } else if (last === '%' && first !== '%') {
895
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
896
- }
897
- var result = [];
898
- $replace$1(string, rePropName, function (match, number, quote, subString) {
899
- result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
900
- });
901
- return result;
902
- };
903
- /* end adaptation */
904
-
905
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
906
- var intrinsicName = name;
907
- var alias;
908
- if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
909
- alias = LEGACY_ALIASES[intrinsicName];
910
- intrinsicName = '%' + alias[0] + '%';
911
- }
912
-
913
- if (hasOwn$1(INTRINSICS, intrinsicName)) {
914
- var value = INTRINSICS[intrinsicName];
915
- if (value === needsEval) {
916
- value = doEval(intrinsicName);
917
- }
918
- if (typeof value === 'undefined' && !allowMissing) {
919
- throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
920
- }
921
-
922
- return {
923
- alias: alias,
924
- name: intrinsicName,
925
- value: value
926
- };
927
- }
928
-
929
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
930
- };
931
-
932
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
933
- if (typeof name !== 'string' || name.length === 0) {
934
- throw new $TypeError$1('intrinsic name must be a non-empty string');
935
- }
936
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
937
- throw new $TypeError$1('"allowMissing" argument must be a boolean');
938
- }
939
-
940
- if ($exec(/^%?[^%]*%?$/, name) === null) {
941
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
942
- }
943
- var parts = stringToPath(name);
944
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
945
-
946
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
947
- var intrinsicRealName = intrinsic.name;
948
- var value = intrinsic.value;
949
- var skipFurtherCaching = false;
950
-
951
- var alias = intrinsic.alias;
952
- if (alias) {
953
- intrinsicBaseName = alias[0];
954
- $spliceApply(parts, $concat$1([0, 1], alias));
955
- }
956
-
957
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
958
- var part = parts[i];
959
- var first = $strSlice(part, 0, 1);
960
- var last = $strSlice(part, -1);
961
- if (
962
- (
963
- (first === '"' || first === "'" || first === '`')
964
- || (last === '"' || last === "'" || last === '`')
965
- )
966
- && first !== last
967
- ) {
968
- throw new $SyntaxError('property names with quotes must have matching quotes');
969
- }
970
- if (part === 'constructor' || !isOwn) {
971
- skipFurtherCaching = true;
972
- }
973
-
974
- intrinsicBaseName += '.' + part;
975
- intrinsicRealName = '%' + intrinsicBaseName + '%';
976
-
977
- if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
978
- value = INTRINSICS[intrinsicRealName];
979
- } else if (value != null) {
980
- if (!(part in value)) {
981
- if (!allowMissing) {
982
- throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
983
- }
984
- return void undefined$1;
985
- }
986
- if ($gOPD && (i + 1) >= parts.length) {
987
- var desc = $gOPD(value, part);
988
- isOwn = !!desc;
989
-
990
- // By convention, when a data property is converted to an accessor
991
- // property to emulate a data property that does not suffer from
992
- // the override mistake, that accessor's getter is marked with
993
- // an `originalValue` property. Here, when we detect this, we
994
- // uphold the illusion by pretending to see that original data
995
- // property, i.e., returning the value rather than the getter
996
- // itself.
997
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
998
- value = desc.get;
999
- } else {
1000
- value = value[part];
1001
- }
1002
- } else {
1003
- isOwn = hasOwn$1(value, part);
1004
- value = value[part];
1005
- }
1006
-
1007
- if (isOwn && !skipFurtherCaching) {
1008
- INTRINSICS[intrinsicRealName] = value;
1009
- }
1010
- }
1011
- }
1012
- return value;
1013
- };
1014
-
1015
- var callBind$1 = {exports: {}};
1016
-
1017
- callBind$1.exports;
1018
-
1019
- (function (module) {
1020
-
1021
- var bind = functionBind;
1022
- var GetIntrinsic = getIntrinsic;
1023
-
1024
- var $apply = GetIntrinsic('%Function.prototype.apply%');
1025
- var $call = GetIntrinsic('%Function.prototype.call%');
1026
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
1027
-
1028
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1029
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
1030
- var $max = GetIntrinsic('%Math.max%');
1031
-
1032
- if ($defineProperty) {
1033
- try {
1034
- $defineProperty({}, 'a', { value: 1 });
1035
- } catch (e) {
1036
- // IE 8 has a broken defineProperty
1037
- $defineProperty = null;
1038
- }
1039
- }
1040
-
1041
- module.exports = function callBind(originalFunction) {
1042
- var func = $reflectApply(bind, $call, arguments);
1043
- if ($gOPD && $defineProperty) {
1044
- var desc = $gOPD(func, 'length');
1045
- if (desc.configurable) {
1046
- // original length, plus the receiver, minus any additional arguments (after the receiver)
1047
- $defineProperty(
1048
- func,
1049
- 'length',
1050
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
1051
- );
1052
- }
1053
- }
1054
- return func;
1055
- };
1056
-
1057
- var applyBind = function applyBind() {
1058
- return $reflectApply(bind, $apply, arguments);
1059
- };
1060
-
1061
- if ($defineProperty) {
1062
- $defineProperty(module.exports, 'apply', { value: applyBind });
1063
- } else {
1064
- module.exports.apply = applyBind;
1065
- }
1066
- } (callBind$1));
1067
-
1068
- var callBindExports = callBind$1.exports;
1069
-
1070
- var GetIntrinsic$1 = getIntrinsic;
1071
-
1072
- var callBind = callBindExports;
1073
-
1074
- var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
1075
-
1076
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
1077
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
1078
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1079
- return callBind(intrinsic);
1080
- }
1081
- return intrinsic;
1082
- };
1083
-
1084
- var util_inspect = require$$0__default["default"].inspect;
1085
-
1086
- var hasMap = typeof Map === 'function' && Map.prototype;
1087
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1088
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
1089
- var mapForEach = hasMap && Map.prototype.forEach;
1090
- var hasSet = typeof Set === 'function' && Set.prototype;
1091
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
1092
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
1093
- var setForEach = hasSet && Set.prototype.forEach;
1094
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
1095
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1096
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
1097
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1098
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
1099
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1100
- var booleanValueOf = Boolean.prototype.valueOf;
1101
- var objectToString = Object.prototype.toString;
1102
- var functionToString = Function.prototype.toString;
1103
- var $match = String.prototype.match;
1104
- var $slice = String.prototype.slice;
1105
- var $replace = String.prototype.replace;
1106
- var $toUpperCase = String.prototype.toUpperCase;
1107
- var $toLowerCase = String.prototype.toLowerCase;
1108
- var $test = RegExp.prototype.test;
1109
- var $concat = Array.prototype.concat;
1110
- var $join = Array.prototype.join;
1111
- var $arrSlice = Array.prototype.slice;
1112
- var $floor = Math.floor;
1113
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
1114
- var gOPS = Object.getOwnPropertySymbols;
1115
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
1116
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
1117
- // ie, `has-tostringtag/shams
1118
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
1119
- ? Symbol.toStringTag
1120
- : null;
1121
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1122
-
1123
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
1124
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
1125
- ? function (O) {
1126
- return O.__proto__; // eslint-disable-line no-proto
1127
- }
1128
- : null
1129
- );
1130
-
1131
- function addNumericSeparator(num, str) {
1132
- if (
1133
- num === Infinity
1134
- || num === -Infinity
1135
- || num !== num
1136
- || (num && num > -1000 && num < 1000)
1137
- || $test.call(/e/, str)
1138
- ) {
1139
- return str;
1140
- }
1141
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1142
- if (typeof num === 'number') {
1143
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
1144
- if (int !== num) {
1145
- var intStr = String(int);
1146
- var dec = $slice.call(str, intStr.length + 1);
1147
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1148
- }
1149
- }
1150
- return $replace.call(str, sepRegex, '$&_');
1151
- }
1152
-
1153
- var utilInspect = util_inspect;
1154
- var inspectCustom = utilInspect.custom;
1155
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1156
-
1157
- var objectInspect = function inspect_(obj, options, depth, seen) {
1158
- var opts = options || {};
1159
-
1160
- if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
1161
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1162
- }
1163
- if (
1164
- has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
1165
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
1166
- : opts.maxStringLength !== null
1167
- )
1168
- ) {
1169
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1170
- }
1171
- var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
1172
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
1173
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
1174
- }
1175
-
1176
- if (
1177
- has$3(opts, 'indent')
1178
- && opts.indent !== null
1179
- && opts.indent !== '\t'
1180
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
1181
- ) {
1182
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1183
- }
1184
- if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1185
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1186
- }
1187
- var numericSeparator = opts.numericSeparator;
1188
-
1189
- if (typeof obj === 'undefined') {
1190
- return 'undefined';
1191
- }
1192
- if (obj === null) {
1193
- return 'null';
1194
- }
1195
- if (typeof obj === 'boolean') {
1196
- return obj ? 'true' : 'false';
1197
- }
1198
-
1199
- if (typeof obj === 'string') {
1200
- return inspectString(obj, opts);
1201
- }
1202
- if (typeof obj === 'number') {
1203
- if (obj === 0) {
1204
- return Infinity / obj > 0 ? '0' : '-0';
1205
- }
1206
- var str = String(obj);
1207
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1208
- }
1209
- if (typeof obj === 'bigint') {
1210
- var bigIntStr = String(obj) + 'n';
1211
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1212
- }
1213
-
1214
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
1215
- if (typeof depth === 'undefined') { depth = 0; }
1216
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
1217
- return isArray$3(obj) ? '[Array]' : '[Object]';
1218
- }
1219
-
1220
- var indent = getIndent(opts, depth);
1221
-
1222
- if (typeof seen === 'undefined') {
1223
- seen = [];
1224
- } else if (indexOf(seen, obj) >= 0) {
1225
- return '[Circular]';
1226
- }
1227
-
1228
- function inspect(value, from, noIndent) {
1229
- if (from) {
1230
- seen = $arrSlice.call(seen);
1231
- seen.push(from);
1232
- }
1233
- if (noIndent) {
1234
- var newOpts = {
1235
- depth: opts.depth
1236
- };
1237
- if (has$3(opts, 'quoteStyle')) {
1238
- newOpts.quoteStyle = opts.quoteStyle;
1239
- }
1240
- return inspect_(value, newOpts, depth + 1, seen);
1241
- }
1242
- return inspect_(value, opts, depth + 1, seen);
1243
- }
1244
-
1245
- if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
1246
- var name = nameOf(obj);
1247
- var keys = arrObjKeys(obj, inspect);
1248
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
1249
- }
1250
- if (isSymbol(obj)) {
1251
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1252
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
1253
- }
1254
- if (isElement(obj)) {
1255
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
1256
- var attrs = obj.attributes || [];
1257
- for (var i = 0; i < attrs.length; i++) {
1258
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
1259
- }
1260
- s += '>';
1261
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
1262
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
1263
- return s;
1264
- }
1265
- if (isArray$3(obj)) {
1266
- if (obj.length === 0) { return '[]'; }
1267
- var xs = arrObjKeys(obj, inspect);
1268
- if (indent && !singleLineValues(xs)) {
1269
- return '[' + indentedJoin(xs, indent) + ']';
1270
- }
1271
- return '[ ' + $join.call(xs, ', ') + ' ]';
1272
- }
1273
- if (isError(obj)) {
1274
- var parts = arrObjKeys(obj, inspect);
1275
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
1276
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1277
- }
1278
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
1279
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
1280
- }
1281
- if (typeof obj === 'object' && customInspect) {
1282
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1283
- return utilInspect(obj, { depth: maxDepth - depth });
1284
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
1285
- return obj.inspect();
1286
- }
1287
- }
1288
- if (isMap(obj)) {
1289
- var mapParts = [];
1290
- if (mapForEach) {
1291
- mapForEach.call(obj, function (value, key) {
1292
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
1293
- });
1294
- }
1295
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
1296
- }
1297
- if (isSet(obj)) {
1298
- var setParts = [];
1299
- if (setForEach) {
1300
- setForEach.call(obj, function (value) {
1301
- setParts.push(inspect(value, obj));
1302
- });
1303
- }
1304
- return collectionOf('Set', setSize.call(obj), setParts, indent);
1305
- }
1306
- if (isWeakMap(obj)) {
1307
- return weakCollectionOf('WeakMap');
1308
- }
1309
- if (isWeakSet(obj)) {
1310
- return weakCollectionOf('WeakSet');
1311
- }
1312
- if (isWeakRef(obj)) {
1313
- return weakCollectionOf('WeakRef');
1314
- }
1315
- if (isNumber(obj)) {
1316
- return markBoxed(inspect(Number(obj)));
1317
- }
1318
- if (isBigInt(obj)) {
1319
- return markBoxed(inspect(bigIntValueOf.call(obj)));
1320
- }
1321
- if (isBoolean(obj)) {
1322
- return markBoxed(booleanValueOf.call(obj));
1323
- }
1324
- if (isString(obj)) {
1325
- return markBoxed(inspect(String(obj)));
1326
- }
1327
- if (!isDate(obj) && !isRegExp$1(obj)) {
1328
- var ys = arrObjKeys(obj, inspect);
1329
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1330
- var protoTag = obj instanceof Object ? '' : 'null prototype';
1331
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
1332
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
1333
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1334
- if (ys.length === 0) { return tag + '{}'; }
1335
- if (indent) {
1336
- return tag + '{' + indentedJoin(ys, indent) + '}';
1337
- }
1338
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
1339
- }
1340
- return String(obj);
1341
- };
1342
-
1343
- function wrapQuotes(s, defaultStyle, opts) {
1344
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
1345
- return quoteChar + s + quoteChar;
1346
- }
1347
-
1348
- function quote(s) {
1349
- return $replace.call(String(s), /"/g, '&quot;');
1350
- }
1351
-
1352
- function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1353
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1354
- function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1355
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1356
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1357
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1358
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1359
-
1360
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
1361
- function isSymbol(obj) {
1362
- if (hasShammedSymbols) {
1363
- return obj && typeof obj === 'object' && obj instanceof Symbol;
1364
- }
1365
- if (typeof obj === 'symbol') {
1366
- return true;
1367
- }
1368
- if (!obj || typeof obj !== 'object' || !symToString) {
1369
- return false;
1370
- }
1371
- try {
1372
- symToString.call(obj);
1373
- return true;
1374
- } catch (e) {}
1375
- return false;
1376
- }
1377
-
1378
- function isBigInt(obj) {
1379
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
1380
- return false;
1381
- }
1382
- try {
1383
- bigIntValueOf.call(obj);
1384
- return true;
1385
- } catch (e) {}
1386
- return false;
1387
- }
1388
-
1389
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
1390
- function has$3(obj, key) {
1391
- return hasOwn.call(obj, key);
1392
- }
1393
-
1394
- function toStr(obj) {
1395
- return objectToString.call(obj);
1396
- }
1397
-
1398
- function nameOf(f) {
1399
- if (f.name) { return f.name; }
1400
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1401
- if (m) { return m[1]; }
1402
- return null;
1403
- }
1404
-
1405
- function indexOf(xs, x) {
1406
- if (xs.indexOf) { return xs.indexOf(x); }
1407
- for (var i = 0, l = xs.length; i < l; i++) {
1408
- if (xs[i] === x) { return i; }
1409
- }
1410
- return -1;
1411
- }
1412
-
1413
- function isMap(x) {
1414
- if (!mapSize || !x || typeof x !== 'object') {
1415
- return false;
1416
- }
1417
- try {
1418
- mapSize.call(x);
1419
- try {
1420
- setSize.call(x);
1421
- } catch (s) {
1422
- return true;
1423
- }
1424
- return x instanceof Map; // core-js workaround, pre-v2.5.0
1425
- } catch (e) {}
1426
- return false;
1427
- }
1428
-
1429
- function isWeakMap(x) {
1430
- if (!weakMapHas || !x || typeof x !== 'object') {
1431
- return false;
1432
- }
1433
- try {
1434
- weakMapHas.call(x, weakMapHas);
1435
- try {
1436
- weakSetHas.call(x, weakSetHas);
1437
- } catch (s) {
1438
- return true;
1439
- }
1440
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
1441
- } catch (e) {}
1442
- return false;
1443
- }
1444
-
1445
- function isWeakRef(x) {
1446
- if (!weakRefDeref || !x || typeof x !== 'object') {
1447
- return false;
1448
- }
1449
- try {
1450
- weakRefDeref.call(x);
1451
- return true;
1452
- } catch (e) {}
1453
- return false;
1454
- }
1455
-
1456
- function isSet(x) {
1457
- if (!setSize || !x || typeof x !== 'object') {
1458
- return false;
1459
- }
1460
- try {
1461
- setSize.call(x);
1462
- try {
1463
- mapSize.call(x);
1464
- } catch (m) {
1465
- return true;
1466
- }
1467
- return x instanceof Set; // core-js workaround, pre-v2.5.0
1468
- } catch (e) {}
1469
- return false;
1470
- }
1471
-
1472
- function isWeakSet(x) {
1473
- if (!weakSetHas || !x || typeof x !== 'object') {
1474
- return false;
1475
- }
1476
- try {
1477
- weakSetHas.call(x, weakSetHas);
1478
- try {
1479
- weakMapHas.call(x, weakMapHas);
1480
- } catch (s) {
1481
- return true;
1482
- }
1483
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
1484
- } catch (e) {}
1485
- return false;
1486
- }
1487
-
1488
- function isElement(x) {
1489
- if (!x || typeof x !== 'object') { return false; }
1490
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
1491
- return true;
1492
- }
1493
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
1494
- }
1495
-
1496
- function inspectString(str, opts) {
1497
- if (str.length > opts.maxStringLength) {
1498
- var remaining = str.length - opts.maxStringLength;
1499
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
1500
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1501
- }
1502
- // eslint-disable-next-line no-control-regex
1503
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1504
- return wrapQuotes(s, 'single', opts);
1505
- }
1506
-
1507
- function lowbyte(c) {
1508
- var n = c.charCodeAt(0);
1509
- var x = {
1510
- 8: 'b',
1511
- 9: 't',
1512
- 10: 'n',
1513
- 12: 'f',
1514
- 13: 'r'
1515
- }[n];
1516
- if (x) { return '\\' + x; }
1517
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
1518
- }
1519
-
1520
- function markBoxed(str) {
1521
- return 'Object(' + str + ')';
1522
- }
1523
-
1524
- function weakCollectionOf(type) {
1525
- return type + ' { ? }';
1526
- }
1527
-
1528
- function collectionOf(type, size, entries, indent) {
1529
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
1530
- return type + ' (' + size + ') {' + joinedEntries + '}';
1531
- }
1532
-
1533
- function singleLineValues(xs) {
1534
- for (var i = 0; i < xs.length; i++) {
1535
- if (indexOf(xs[i], '\n') >= 0) {
1536
- return false;
1537
- }
1538
- }
1539
- return true;
1540
- }
1541
-
1542
- function getIndent(opts, depth) {
1543
- var baseIndent;
1544
- if (opts.indent === '\t') {
1545
- baseIndent = '\t';
1546
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
1547
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
1548
- } else {
1549
- return null;
1550
- }
1551
- return {
1552
- base: baseIndent,
1553
- prev: $join.call(Array(depth + 1), baseIndent)
1554
- };
1555
- }
1556
-
1557
- function indentedJoin(xs, indent) {
1558
- if (xs.length === 0) { return ''; }
1559
- var lineJoiner = '\n' + indent.prev + indent.base;
1560
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1561
- }
1562
-
1563
- function arrObjKeys(obj, inspect) {
1564
- var isArr = isArray$3(obj);
1565
- var xs = [];
1566
- if (isArr) {
1567
- xs.length = obj.length;
1568
- for (var i = 0; i < obj.length; i++) {
1569
- xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
1570
- }
1571
- }
1572
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
1573
- var symMap;
1574
- if (hasShammedSymbols) {
1575
- symMap = {};
1576
- for (var k = 0; k < syms.length; k++) {
1577
- symMap['$' + syms[k]] = syms[k];
1578
- }
1579
- }
1580
-
1581
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
1582
- if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1583
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1584
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
1585
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
1586
- continue; // eslint-disable-line no-restricted-syntax, no-continue
1587
- } else if ($test.call(/[^\w$]/, key)) {
1588
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
1589
- } else {
1590
- xs.push(key + ': ' + inspect(obj[key], obj));
1591
- }
1592
- }
1593
- if (typeof gOPS === 'function') {
1594
- for (var j = 0; j < syms.length; j++) {
1595
- if (isEnumerable.call(obj, syms[j])) {
1596
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
1597
- }
1598
- }
1599
- }
1600
- return xs;
1601
- }
1602
-
1603
- var GetIntrinsic = getIntrinsic;
1604
- var callBound = callBound$1;
1605
- var inspect = objectInspect;
1606
-
1607
- var $TypeError = GetIntrinsic('%TypeError%');
1608
- var $WeakMap = GetIntrinsic('%WeakMap%', true);
1609
- var $Map = GetIntrinsic('%Map%', true);
1610
-
1611
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
1612
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
1613
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
1614
- var $mapGet = callBound('Map.prototype.get', true);
1615
- var $mapSet = callBound('Map.prototype.set', true);
1616
- var $mapHas = callBound('Map.prototype.has', true);
1617
-
1618
- /*
1619
- * This function traverses the list returning the node corresponding to the
1620
- * given key.
1621
- *
1622
- * That node is also moved to the head of the list, so that if it's accessed
1623
- * again we don't need to traverse the whole list. By doing so, all the recently
1624
- * used nodes can be accessed relatively quickly.
1625
- */
1626
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
1627
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
1628
- if (curr.key === key) {
1629
- prev.next = curr.next;
1630
- curr.next = list.next;
1631
- list.next = curr; // eslint-disable-line no-param-reassign
1632
- return curr;
1633
- }
1634
- }
1635
- };
1636
-
1637
- var listGet = function (objects, key) {
1638
- var node = listGetNode(objects, key);
1639
- return node && node.value;
1640
- };
1641
- var listSet = function (objects, key, value) {
1642
- var node = listGetNode(objects, key);
1643
- if (node) {
1644
- node.value = value;
1645
- } else {
1646
- // Prepend the new node to the beginning of the list
1647
- objects.next = { // eslint-disable-line no-param-reassign
1648
- key: key,
1649
- next: objects.next,
1650
- value: value
1651
- };
1652
- }
1653
- };
1654
- var listHas = function (objects, key) {
1655
- return !!listGetNode(objects, key);
1656
- };
1657
-
1658
- var sideChannel = function getSideChannel() {
1659
- var $wm;
1660
- var $m;
1661
- var $o;
1662
- var channel = {
1663
- assert: function (key) {
1664
- if (!channel.has(key)) {
1665
- throw new $TypeError('Side channel does not contain ' + inspect(key));
1666
- }
1667
- },
1668
- get: function (key) { // eslint-disable-line consistent-return
1669
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1670
- if ($wm) {
1671
- return $weakMapGet($wm, key);
1672
- }
1673
- } else if ($Map) {
1674
- if ($m) {
1675
- return $mapGet($m, key);
1676
- }
1677
- } else {
1678
- if ($o) { // eslint-disable-line no-lonely-if
1679
- return listGet($o, key);
1680
- }
1681
- }
1682
- },
1683
- has: function (key) {
1684
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1685
- if ($wm) {
1686
- return $weakMapHas($wm, key);
1687
- }
1688
- } else if ($Map) {
1689
- if ($m) {
1690
- return $mapHas($m, key);
1691
- }
1692
- } else {
1693
- if ($o) { // eslint-disable-line no-lonely-if
1694
- return listHas($o, key);
1695
- }
1696
- }
1697
- return false;
1698
- },
1699
- set: function (key, value) {
1700
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1701
- if (!$wm) {
1702
- $wm = new $WeakMap();
1703
- }
1704
- $weakMapSet($wm, key, value);
1705
- } else if ($Map) {
1706
- if (!$m) {
1707
- $m = new $Map();
1708
- }
1709
- $mapSet($m, key, value);
1710
- } else {
1711
- if (!$o) {
1712
- /*
1713
- * Initialize the linked list as an empty node, so that we don't have
1714
- * to special-case handling of the first node: we can always refer to
1715
- * it as (previous node).next, instead of something like (list).head
1716
- */
1717
- $o = { key: {}, next: null };
1718
- }
1719
- listSet($o, key, value);
1720
- }
1721
- }
1722
- };
1723
- return channel;
1724
- };
1725
-
1726
- var replace = String.prototype.replace;
1727
- var percentTwenties = /%20/g;
1728
-
1729
- var Format = {
1730
- RFC1738: 'RFC1738',
1731
- RFC3986: 'RFC3986'
1732
- };
1733
-
1734
- var formats$3 = {
1735
- 'default': Format.RFC3986,
1736
- formatters: {
1737
- RFC1738: function (value) {
1738
- return replace.call(value, percentTwenties, '+');
1739
- },
1740
- RFC3986: function (value) {
1741
- return String(value);
1742
- }
1743
- },
1744
- RFC1738: Format.RFC1738,
1745
- RFC3986: Format.RFC3986
1746
- };
1747
-
1748
- var formats$2 = formats$3;
1749
-
1750
- var has$2 = Object.prototype.hasOwnProperty;
1751
- var isArray$2 = Array.isArray;
1752
-
1753
- var hexTable = (function () {
1754
- var array = [];
1755
- for (var i = 0; i < 256; ++i) {
1756
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
1757
- }
1758
-
1759
- return array;
1760
- }());
1761
-
1762
- var compactQueue = function compactQueue(queue) {
1763
- while (queue.length > 1) {
1764
- var item = queue.pop();
1765
- var obj = item.obj[item.prop];
1766
-
1767
- if (isArray$2(obj)) {
1768
- var compacted = [];
1769
-
1770
- for (var j = 0; j < obj.length; ++j) {
1771
- if (typeof obj[j] !== 'undefined') {
1772
- compacted.push(obj[j]);
1773
- }
1774
- }
1775
-
1776
- item.obj[item.prop] = compacted;
1777
- }
1778
- }
1779
- };
1780
-
1781
- var arrayToObject = function arrayToObject(source, options) {
1782
- var obj = options && options.plainObjects ? Object.create(null) : {};
1783
- for (var i = 0; i < source.length; ++i) {
1784
- if (typeof source[i] !== 'undefined') {
1785
- obj[i] = source[i];
1786
- }
1787
- }
1788
-
1789
- return obj;
1790
- };
1791
-
1792
- var merge$1 = function merge(target, source, options) {
1793
- /* eslint no-param-reassign: 0 */
1794
- if (!source) {
1795
- return target;
1796
- }
1797
-
1798
- if (typeof source !== 'object') {
1799
- if (isArray$2(target)) {
1800
- target.push(source);
1801
- } else if (target && typeof target === 'object') {
1802
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
1803
- target[source] = true;
1804
- }
1805
- } else {
1806
- return [target, source];
1807
- }
1808
-
1809
- return target;
1810
- }
1811
-
1812
- if (!target || typeof target !== 'object') {
1813
- return [target].concat(source);
1814
- }
1815
-
1816
- var mergeTarget = target;
1817
- if (isArray$2(target) && !isArray$2(source)) {
1818
- mergeTarget = arrayToObject(target, options);
1819
- }
1820
-
1821
- if (isArray$2(target) && isArray$2(source)) {
1822
- source.forEach(function (item, i) {
1823
- if (has$2.call(target, i)) {
1824
- var targetItem = target[i];
1825
- if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
1826
- target[i] = merge(targetItem, item, options);
1827
- } else {
1828
- target.push(item);
1829
- }
1830
- } else {
1831
- target[i] = item;
1832
- }
1833
- });
1834
- return target;
1835
- }
1836
-
1837
- return Object.keys(source).reduce(function (acc, key) {
1838
- var value = source[key];
1839
-
1840
- if (has$2.call(acc, key)) {
1841
- acc[key] = merge(acc[key], value, options);
1842
- } else {
1843
- acc[key] = value;
1844
- }
1845
- return acc;
1846
- }, mergeTarget);
1847
- };
1848
-
1849
- var assign = function assignSingleSource(target, source) {
1850
- return Object.keys(source).reduce(function (acc, key) {
1851
- acc[key] = source[key];
1852
- return acc;
1853
- }, target);
1854
- };
1855
-
1856
- var decode = function (str, decoder, charset) {
1857
- var strWithoutPlus = str.replace(/\+/g, ' ');
1858
- if (charset === 'iso-8859-1') {
1859
- // unescape never throws, no try...catch needed:
1860
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
1861
- }
1862
- // utf-8
1863
- try {
1864
- return decodeURIComponent(strWithoutPlus);
1865
- } catch (e) {
1866
- return strWithoutPlus;
1867
- }
1868
- };
1869
-
1870
- var encode = function encode(str, defaultEncoder, charset, kind, format) {
1871
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
1872
- // It has been adapted here for stricter adherence to RFC 3986
1873
- if (str.length === 0) {
1874
- return str;
1875
- }
1876
-
1877
- var string = str;
1878
- if (typeof str === 'symbol') {
1879
- string = Symbol.prototype.toString.call(str);
1880
- } else if (typeof str !== 'string') {
1881
- string = String(str);
1882
- }
1883
-
1884
- if (charset === 'iso-8859-1') {
1885
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
1886
- return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
1887
- });
1888
- }
1889
-
1890
- var out = '';
1891
- for (var i = 0; i < string.length; ++i) {
1892
- var c = string.charCodeAt(i);
1893
-
1894
- if (
1895
- c === 0x2D // -
1896
- || c === 0x2E // .
1897
- || c === 0x5F // _
1898
- || c === 0x7E // ~
1899
- || (c >= 0x30 && c <= 0x39) // 0-9
1900
- || (c >= 0x41 && c <= 0x5A) // a-z
1901
- || (c >= 0x61 && c <= 0x7A) // A-Z
1902
- || (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
1903
- ) {
1904
- out += string.charAt(i);
1905
- continue;
1906
- }
1907
-
1908
- if (c < 0x80) {
1909
- out = out + hexTable[c];
1910
- continue;
1911
- }
1912
-
1913
- if (c < 0x800) {
1914
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
1915
- continue;
1916
- }
1917
-
1918
- if (c < 0xD800 || c >= 0xE000) {
1919
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
1920
- continue;
1921
- }
1922
-
1923
- i += 1;
1924
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
1925
- /* eslint operator-linebreak: [2, "before"] */
1926
- out += hexTable[0xF0 | (c >> 18)]
1927
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
1928
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
1929
- + hexTable[0x80 | (c & 0x3F)];
1930
- }
1931
-
1932
- return out;
1933
- };
1934
-
1935
- var compact = function compact(value) {
1936
- var queue = [{ obj: { o: value }, prop: 'o' }];
1937
- var refs = [];
1938
-
1939
- for (var i = 0; i < queue.length; ++i) {
1940
- var item = queue[i];
1941
- var obj = item.obj[item.prop];
1942
-
1943
- var keys = Object.keys(obj);
1944
- for (var j = 0; j < keys.length; ++j) {
1945
- var key = keys[j];
1946
- var val = obj[key];
1947
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
1948
- queue.push({ obj: obj, prop: key });
1949
- refs.push(val);
1950
- }
1951
- }
1952
- }
1953
-
1954
- compactQueue(queue);
1955
-
1956
- return value;
1957
- };
1958
-
1959
- var isRegExp = function isRegExp(obj) {
1960
- return Object.prototype.toString.call(obj) === '[object RegExp]';
1961
- };
1962
-
1963
- var isBuffer = function isBuffer(obj) {
1964
- if (!obj || typeof obj !== 'object') {
1965
- return false;
1966
- }
1967
-
1968
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
1969
- };
1970
-
1971
- var combine = function combine(a, b) {
1972
- return [].concat(a, b);
1973
- };
1974
-
1975
- var maybeMap = function maybeMap(val, fn) {
1976
- if (isArray$2(val)) {
1977
- var mapped = [];
1978
- for (var i = 0; i < val.length; i += 1) {
1979
- mapped.push(fn(val[i]));
1980
- }
1981
- return mapped;
1982
- }
1983
- return fn(val);
1984
- };
1985
-
1986
- var utils$2 = {
1987
- arrayToObject: arrayToObject,
1988
- assign: assign,
1989
- combine: combine,
1990
- compact: compact,
1991
- decode: decode,
1992
- encode: encode,
1993
- isBuffer: isBuffer,
1994
- isRegExp: isRegExp,
1995
- maybeMap: maybeMap,
1996
- merge: merge$1
1997
- };
1998
-
1999
- var getSideChannel = sideChannel;
2000
- var utils$1 = utils$2;
2001
- var formats$1 = formats$3;
2002
- var has$1 = Object.prototype.hasOwnProperty;
2003
-
2004
- var arrayPrefixGenerators = {
2005
- brackets: function brackets(prefix) {
2006
- return prefix + '[]';
2007
- },
2008
- comma: 'comma',
2009
- indices: function indices(prefix, key) {
2010
- return prefix + '[' + key + ']';
2011
- },
2012
- repeat: function repeat(prefix) {
2013
- return prefix;
2014
- }
2015
- };
2016
-
2017
- var isArray$1 = Array.isArray;
2018
- var push = Array.prototype.push;
2019
- var pushToArray = function (arr, valueOrArray) {
2020
- push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
2021
- };
2022
-
2023
- var toISO = Date.prototype.toISOString;
2024
-
2025
- var defaultFormat = formats$1['default'];
2026
- var defaults$1 = {
2027
- addQueryPrefix: false,
2028
- allowDots: false,
2029
- charset: 'utf-8',
2030
- charsetSentinel: false,
2031
- delimiter: '&',
2032
- encode: true,
2033
- encoder: utils$1.encode,
2034
- encodeValuesOnly: false,
2035
- format: defaultFormat,
2036
- formatter: formats$1.formatters[defaultFormat],
2037
- // deprecated
2038
- indices: false,
2039
- serializeDate: function serializeDate(date) {
2040
- return toISO.call(date);
2041
- },
2042
- skipNulls: false,
2043
- strictNullHandling: false
2044
- };
2045
-
2046
- var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
2047
- return typeof v === 'string'
2048
- || typeof v === 'number'
2049
- || typeof v === 'boolean'
2050
- || typeof v === 'symbol'
2051
- || typeof v === 'bigint';
2052
- };
2053
-
2054
- var sentinel = {};
2055
-
2056
- var stringify$1 = function stringify(
2057
- object,
2058
- prefix,
2059
- generateArrayPrefix,
2060
- commaRoundTrip,
2061
- strictNullHandling,
2062
- skipNulls,
2063
- encoder,
2064
- filter,
2065
- sort,
2066
- allowDots,
2067
- serializeDate,
2068
- format,
2069
- formatter,
2070
- encodeValuesOnly,
2071
- charset,
2072
- sideChannel
2073
- ) {
2074
- var obj = object;
2075
-
2076
- var tmpSc = sideChannel;
2077
- var step = 0;
2078
- var findFlag = false;
2079
- while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
2080
- // Where object last appeared in the ref tree
2081
- var pos = tmpSc.get(object);
2082
- step += 1;
2083
- if (typeof pos !== 'undefined') {
2084
- if (pos === step) {
2085
- throw new RangeError('Cyclic object value');
2086
- } else {
2087
- findFlag = true; // Break while
2088
- }
2089
- }
2090
- if (typeof tmpSc.get(sentinel) === 'undefined') {
2091
- step = 0;
2092
- }
2093
- }
2094
-
2095
- if (typeof filter === 'function') {
2096
- obj = filter(prefix, obj);
2097
- } else if (obj instanceof Date) {
2098
- obj = serializeDate(obj);
2099
- } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
2100
- obj = utils$1.maybeMap(obj, function (value) {
2101
- if (value instanceof Date) {
2102
- return serializeDate(value);
2103
- }
2104
- return value;
2105
- });
2106
- }
2107
-
2108
- if (obj === null) {
2109
- if (strictNullHandling) {
2110
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
2111
- }
2112
-
2113
- obj = '';
2114
- }
2115
-
2116
- if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
2117
- if (encoder) {
2118
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
2119
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
2120
- }
2121
- return [formatter(prefix) + '=' + formatter(String(obj))];
2122
- }
2123
-
2124
- var values = [];
2125
-
2126
- if (typeof obj === 'undefined') {
2127
- return values;
2128
- }
2129
-
2130
- var objKeys;
2131
- if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
2132
- // we need to join elements in
2133
- if (encodeValuesOnly && encoder) {
2134
- obj = utils$1.maybeMap(obj, encoder);
2135
- }
2136
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
2137
- } else if (isArray$1(filter)) {
2138
- objKeys = filter;
2139
- } else {
2140
- var keys = Object.keys(obj);
2141
- objKeys = sort ? keys.sort(sort) : keys;
2142
- }
2143
-
2144
- var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
2145
-
2146
- for (var j = 0; j < objKeys.length; ++j) {
2147
- var key = objKeys[j];
2148
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
2149
-
2150
- if (skipNulls && value === null) {
2151
- continue;
2152
- }
2153
-
2154
- var keyPrefix = isArray$1(obj)
2155
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
2156
- : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
2157
-
2158
- sideChannel.set(object, step);
2159
- var valueSideChannel = getSideChannel();
2160
- valueSideChannel.set(sentinel, sideChannel);
2161
- pushToArray(values, stringify(
2162
- value,
2163
- keyPrefix,
2164
- generateArrayPrefix,
2165
- commaRoundTrip,
2166
- strictNullHandling,
2167
- skipNulls,
2168
- generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
2169
- filter,
2170
- sort,
2171
- allowDots,
2172
- serializeDate,
2173
- format,
2174
- formatter,
2175
- encodeValuesOnly,
2176
- charset,
2177
- valueSideChannel
2178
- ));
2179
- }
2180
-
2181
- return values;
2182
- };
2183
-
2184
- var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2185
- if (!opts) {
2186
- return defaults$1;
2187
- }
2188
-
2189
- if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
2190
- throw new TypeError('Encoder has to be a function.');
2191
- }
2192
-
2193
- var charset = opts.charset || defaults$1.charset;
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
-
2198
- var format = formats$1['default'];
2199
- if (typeof opts.format !== 'undefined') {
2200
- if (!has$1.call(formats$1.formatters, opts.format)) {
2201
- throw new TypeError('Unknown format option provided.');
2202
- }
2203
- format = opts.format;
2204
- }
2205
- var formatter = formats$1.formatters[format];
2206
-
2207
- var filter = defaults$1.filter;
2208
- if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
2209
- filter = opts.filter;
2210
- }
2211
-
2212
- return {
2213
- addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
2214
- allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
2215
- charset: charset,
2216
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
2217
- delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
2218
- encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
2219
- encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
2220
- encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
2221
- filter: filter,
2222
- format: format,
2223
- formatter: formatter,
2224
- serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
2225
- skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
2226
- sort: typeof opts.sort === 'function' ? opts.sort : null,
2227
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
2228
- };
2229
- };
2230
-
2231
- var stringify_1 = function (object, opts) {
2232
- var obj = object;
2233
- var options = normalizeStringifyOptions(opts);
2234
-
2235
- var objKeys;
2236
- var filter;
2237
-
2238
- if (typeof options.filter === 'function') {
2239
- filter = options.filter;
2240
- obj = filter('', obj);
2241
- } else if (isArray$1(options.filter)) {
2242
- filter = options.filter;
2243
- objKeys = filter;
2244
- }
2245
-
2246
- var keys = [];
2247
-
2248
- if (typeof obj !== 'object' || obj === null) {
2249
- return '';
2250
- }
2251
-
2252
- var arrayFormat;
2253
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
2254
- arrayFormat = opts.arrayFormat;
2255
- } else if (opts && 'indices' in opts) {
2256
- arrayFormat = opts.indices ? 'indices' : 'repeat';
2257
- } else {
2258
- arrayFormat = 'indices';
2259
- }
2260
-
2261
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
2262
- if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
2263
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
2264
- }
2265
- var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
2266
-
2267
- if (!objKeys) {
2268
- objKeys = Object.keys(obj);
2269
- }
2270
-
2271
- if (options.sort) {
2272
- objKeys.sort(options.sort);
2273
- }
2274
-
2275
- var sideChannel = getSideChannel();
2276
- for (var i = 0; i < objKeys.length; ++i) {
2277
- var key = objKeys[i];
2278
-
2279
- if (options.skipNulls && obj[key] === null) {
2280
- continue;
2281
- }
2282
- pushToArray(keys, stringify$1(
2283
- obj[key],
2284
- key,
2285
- generateArrayPrefix,
2286
- commaRoundTrip,
2287
- options.strictNullHandling,
2288
- options.skipNulls,
2289
- options.encode ? options.encoder : null,
2290
- options.filter,
2291
- options.sort,
2292
- options.allowDots,
2293
- options.serializeDate,
2294
- options.format,
2295
- options.formatter,
2296
- options.encodeValuesOnly,
2297
- options.charset,
2298
- sideChannel
2299
- ));
2300
- }
2301
-
2302
- var joined = keys.join(options.delimiter);
2303
- var prefix = options.addQueryPrefix === true ? '?' : '';
2304
-
2305
- if (options.charsetSentinel) {
2306
- if (options.charset === 'iso-8859-1') {
2307
- // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
2308
- prefix += 'utf8=%26%2310003%3B&';
2309
- } else {
2310
- // encodeURIComponent('✓')
2311
- prefix += 'utf8=%E2%9C%93&';
2312
- }
2313
- }
2314
-
2315
- return joined.length > 0 ? prefix + joined : '';
2316
- };
2317
-
2318
- var utils = utils$2;
2319
-
2320
- var has = Object.prototype.hasOwnProperty;
2321
- var isArray = Array.isArray;
2322
-
2323
- var defaults = {
2324
- allowDots: false,
2325
- allowPrototypes: false,
2326
- allowSparse: false,
2327
- arrayLimit: 20,
2328
- charset: 'utf-8',
2329
- charsetSentinel: false,
2330
- comma: false,
2331
- decoder: utils.decode,
2332
- delimiter: '&',
2333
- depth: 5,
2334
- ignoreQueryPrefix: false,
2335
- interpretNumericEntities: false,
2336
- parameterLimit: 1000,
2337
- parseArrays: true,
2338
- plainObjects: false,
2339
- strictNullHandling: false
2340
- };
2341
-
2342
- var interpretNumericEntities = function (str) {
2343
- return str.replace(/&#(\d+);/g, function ($0, numberStr) {
2344
- return String.fromCharCode(parseInt(numberStr, 10));
2345
- });
2346
- };
2347
-
2348
- var parseArrayValue = function (val, options) {
2349
- if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
2350
- return val.split(',');
2351
- }
2352
-
2353
- return val;
2354
- };
2355
-
2356
- // This is what browsers will submit when the ✓ character occurs in an
2357
- // application/x-www-form-urlencoded body and the encoding of the page containing
2358
- // the form is iso-8859-1, or when the submitted form has an accept-charset
2359
- // attribute of iso-8859-1. Presumably also with other charsets that do not contain
2360
- // the ✓ character, such as us-ascii.
2361
- var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
2362
-
2363
- // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
2364
- var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
2365
-
2366
- var parseValues = function parseQueryStringValues(str, options) {
2367
- var obj = { __proto__: null };
2368
-
2369
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
2370
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
2371
- var parts = cleanStr.split(options.delimiter, limit);
2372
- var skipIndex = -1; // Keep track of where the utf8 sentinel was found
2373
- var i;
2374
-
2375
- var charset = options.charset;
2376
- if (options.charsetSentinel) {
2377
- for (i = 0; i < parts.length; ++i) {
2378
- if (parts[i].indexOf('utf8=') === 0) {
2379
- if (parts[i] === charsetSentinel) {
2380
- charset = 'utf-8';
2381
- } else if (parts[i] === isoSentinel) {
2382
- charset = 'iso-8859-1';
2383
- }
2384
- skipIndex = i;
2385
- i = parts.length; // The eslint settings do not allow break;
2386
- }
2387
- }
2388
- }
2389
-
2390
- for (i = 0; i < parts.length; ++i) {
2391
- if (i === skipIndex) {
2392
- continue;
2393
- }
2394
- var part = parts[i];
2395
-
2396
- var bracketEqualsPos = part.indexOf(']=');
2397
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
2398
-
2399
- var key, val;
2400
- if (pos === -1) {
2401
- key = options.decoder(part, defaults.decoder, charset, 'key');
2402
- val = options.strictNullHandling ? null : '';
2403
- } else {
2404
- key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
2405
- val = utils.maybeMap(
2406
- parseArrayValue(part.slice(pos + 1), options),
2407
- function (encodedVal) {
2408
- return options.decoder(encodedVal, defaults.decoder, charset, 'value');
2409
- }
2410
- );
2411
- }
2412
-
2413
- if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
2414
- val = interpretNumericEntities(val);
2415
- }
2416
-
2417
- if (part.indexOf('[]=') > -1) {
2418
- val = isArray(val) ? [val] : val;
2419
- }
2420
-
2421
- if (has.call(obj, key)) {
2422
- obj[key] = utils.combine(obj[key], val);
2423
- } else {
2424
- obj[key] = val;
2425
- }
2426
- }
2427
-
2428
- return obj;
2429
- };
2430
-
2431
- var parseObject = function (chain, val, options, valuesParsed) {
2432
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
2433
-
2434
- for (var i = chain.length - 1; i >= 0; --i) {
2435
- var obj;
2436
- var root = chain[i];
2437
-
2438
- if (root === '[]' && options.parseArrays) {
2439
- obj = [].concat(leaf);
2440
- } else {
2441
- obj = options.plainObjects ? Object.create(null) : {};
2442
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
2443
- var index = parseInt(cleanRoot, 10);
2444
- if (!options.parseArrays && cleanRoot === '') {
2445
- obj = { 0: leaf };
2446
- } else if (
2447
- !isNaN(index)
2448
- && root !== cleanRoot
2449
- && String(index) === cleanRoot
2450
- && index >= 0
2451
- && (options.parseArrays && index <= options.arrayLimit)
2452
- ) {
2453
- obj = [];
2454
- obj[index] = leaf;
2455
- } else if (cleanRoot !== '__proto__') {
2456
- obj[cleanRoot] = leaf;
2457
- }
2458
- }
2459
-
2460
- leaf = obj;
2461
- }
2462
-
2463
- return leaf;
2464
- };
2465
-
2466
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2467
- if (!givenKey) {
2468
- return;
2469
- }
2470
-
2471
- // Transform dot notation to bracket notation
2472
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
2473
-
2474
- // The regex chunks
2475
-
2476
- var brackets = /(\[[^[\]]*])/;
2477
- var child = /(\[[^[\]]*])/g;
2478
-
2479
- // Get the parent
2480
-
2481
- var segment = options.depth > 0 && brackets.exec(key);
2482
- var parent = segment ? key.slice(0, segment.index) : key;
2483
-
2484
- // Stash the parent if it exists
2485
-
2486
- var keys = [];
2487
- if (parent) {
2488
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2489
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
2490
- if (!options.allowPrototypes) {
2491
- return;
2492
- }
2493
- }
2494
-
2495
- keys.push(parent);
2496
- }
2497
-
2498
- // Loop through children appending to the array until we hit depth
2499
-
2500
- var i = 0;
2501
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2502
- i += 1;
2503
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2504
- if (!options.allowPrototypes) {
2505
- return;
2506
- }
2507
- }
2508
- keys.push(segment[1]);
2509
- }
2510
-
2511
- // If there's a remainder, just add whatever is left
2512
-
2513
- if (segment) {
2514
- keys.push('[' + key.slice(segment.index) + ']');
2515
- }
2516
-
2517
- return parseObject(keys, val, options, valuesParsed);
2518
- };
2519
-
2520
- var normalizeParseOptions = function normalizeParseOptions(opts) {
2521
- if (!opts) {
2522
- return defaults;
2523
- }
2524
-
2525
- if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
2526
- throw new TypeError('Decoder has to be a function.');
2527
- }
2528
-
2529
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2530
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2531
- }
2532
- var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
2533
-
2534
- return {
2535
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
2536
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
2537
- allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
2538
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
2539
- charset: charset,
2540
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
2541
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
2542
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
2543
- delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
2544
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2545
- depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
2546
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
2547
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
2548
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
2549
- parseArrays: opts.parseArrays !== false,
2550
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
2551
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
2552
- };
2553
- };
2554
-
2555
- var parse$1 = function (str, opts) {
2556
- var options = normalizeParseOptions(opts);
2557
-
2558
- if (str === '' || str === null || typeof str === 'undefined') {
2559
- return options.plainObjects ? Object.create(null) : {};
2560
- }
2561
-
2562
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
2563
- var obj = options.plainObjects ? Object.create(null) : {};
2564
-
2565
- // Iterate over the keys and setup the new object
2566
-
2567
- var keys = Object.keys(tempObj);
2568
- for (var i = 0; i < keys.length; ++i) {
2569
- var key = keys[i];
2570
- var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
2571
- obj = utils.merge(obj, newObj, options);
2572
- }
2573
-
2574
- if (options.allowSparse === true) {
2575
- return obj;
2576
- }
2577
-
2578
- return utils.compact(obj);
2579
- };
2580
-
2581
- var stringify = stringify_1;
2582
- var parse = parse$1;
2583
- var formats = formats$3;
2584
-
2585
- var lib = {
2586
- formats: formats,
2587
- parse: parse,
2588
- stringify: stringify
2589
- };
2590
-
2591
- var qs = /*@__PURE__*/getDefaultExportFromCjs(lib);
2592
-
2593
536
  var _excluded = ["url"];
2594
537
  var fetch = function fetch(_ref) {
2595
538
  var url = _ref.url,
2596
539
  params = _objectWithoutProperties(_ref, _excluded);
2597
540
  return axios__default["default"].get(url, {
2598
- params: params,
2599
- paramsSerializer: function paramsSerializer(params) {
2600
- return qs.stringify(params, {
2601
- arrayFormat: "brackets"
2602
- });
2603
- }
541
+ params: params
2604
542
  });
2605
543
  };
2606
544
  var create = function create(url, payload) {
@@ -3007,9 +945,9 @@ var Dashboard = function Dashboard(_ref) {
3007
945
  setTagType = _ref.setTagType,
3008
946
  tagTypes = _ref.tagTypes;
3009
947
  var history = reactRouterDom.useHistory();
3010
- var _useQueryParams = reactUtils.useQueryParams(),
3011
- _useQueryParams$searc = _useQueryParams.searchTerm,
3012
- searchTerm = _useQueryParams$searc === void 0 ? "" : _useQueryParams$searc;
948
+ var queryParams = reactUtils.useQueryParams();
949
+ var _queryParams$searchTe = queryParams.searchTerm,
950
+ searchTerm = _queryParams$searchTe === void 0 ? "" : _queryParams$searchTe;
3013
951
  var searchKeywordProps = {
3014
952
  node: "name",
3015
953
  value: searchTerm
@@ -3104,11 +1042,9 @@ var Dashboard = function Dashboard(_ref) {
3104
1042
  });
3105
1043
  };
3106
1044
  var handleFiltersChange = function handleFiltersChange(filters) {
3107
- var searchParams = new URLSearchParams(history.location.search);
3108
- searchParams.set("page", constants.DEFAULT_PAGE_INDEX.toString());
3109
- history.push({
3110
- search: searchParams.toString()
3111
- });
1045
+ history.push(utils.buildUrl(window.location.pathname, ramda.mergeLeft({
1046
+ page: constants.DEFAULT_PAGE_INDEX
1047
+ }, queryParams)));
3112
1048
  setNeetoFilters(filters);
3113
1049
  };
3114
1050
  var resetPage = function resetPage() {
@@ -3288,6 +1224,12 @@ var List = function List(_ref) {
3288
1224
  })));
3289
1225
  };
3290
1226
 
1227
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1228
+
1229
+ function getDefaultExportFromCjs (x) {
1230
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1231
+ }
1232
+
3291
1233
  function commonjsRequire(path) {
3292
1234
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
3293
1235
  }
@@ -3984,8 +1926,8 @@ var Merge = function Merge(_ref) {
3984
1926
 
3985
1927
  var getCurrentTagType = function getCurrentTagType() {
3986
1928
  var tagTypes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3987
- var searchParams = new URLSearchParams(window.location.search);
3988
- var tagLabel = searchParams.get("view");
1929
+ var _getQueryParams = utils.getQueryParams(),
1930
+ tagLabel = _getQueryParams.view;
3989
1931
  var requiredTagType = tagTypes.find(function (tagType) {
3990
1932
  var _tagType$label;
3991
1933
  return (tagType === null || tagType === void 0 || (_tagType$label = tagType.label) === null || _tagType$label === void 0 ? void 0 : _tagType$label.toLowerCase()) === tagLabel;