@adhese/sdk-react 0.6.1 → 0.6.3
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/{cjs/index.js → index.cjs} +1335 -45
- package/dist/index.cjs.map +1 -0
- package/dist/{es/index.js → index.js} +1334 -44
- package/dist/index.js.map +1 -0
- package/package.json +5 -5
- package/dist/cjs/index.js.map +0 -1
- package/dist/es/index.js.map +0 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { createAdhese } from "@adhese/sdk";
|
|
2
2
|
import useDeepCompareEffect from "use-deep-compare-effect";
|
|
3
|
-
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4
|
+
function getDefaultExportFromCjs(x) {
|
|
5
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
6
|
+
}
|
|
4
7
|
var jsxRuntime = { exports: {} };
|
|
5
8
|
var reactJsxRuntime_production_min = {};
|
|
6
9
|
var react = { exports: {} };
|
|
@@ -576,7 +579,7 @@ function requireReact_development() {
|
|
|
576
579
|
return refObject;
|
|
577
580
|
}
|
|
578
581
|
var isArrayImpl = Array.isArray;
|
|
579
|
-
function
|
|
582
|
+
function isArray2(a) {
|
|
580
583
|
return isArrayImpl(a);
|
|
581
584
|
}
|
|
582
585
|
function typeName(value) {
|
|
@@ -677,7 +680,7 @@ function requireReact_development() {
|
|
|
677
680
|
}
|
|
678
681
|
return null;
|
|
679
682
|
}
|
|
680
|
-
var
|
|
683
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
681
684
|
var RESERVED_PROPS = {
|
|
682
685
|
key: true,
|
|
683
686
|
ref: true,
|
|
@@ -690,7 +693,7 @@ function requireReact_development() {
|
|
|
690
693
|
}
|
|
691
694
|
function hasValidRef(config) {
|
|
692
695
|
{
|
|
693
|
-
if (
|
|
696
|
+
if (hasOwnProperty2.call(config, "ref")) {
|
|
694
697
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
695
698
|
if (getter && getter.isReactWarning) {
|
|
696
699
|
return false;
|
|
@@ -701,7 +704,7 @@ function requireReact_development() {
|
|
|
701
704
|
}
|
|
702
705
|
function hasValidKey(config) {
|
|
703
706
|
{
|
|
704
|
-
if (
|
|
707
|
+
if (hasOwnProperty2.call(config, "key")) {
|
|
705
708
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
706
709
|
if (getter && getter.isReactWarning) {
|
|
707
710
|
return false;
|
|
@@ -751,7 +754,7 @@ function requireReact_development() {
|
|
|
751
754
|
}
|
|
752
755
|
}
|
|
753
756
|
}
|
|
754
|
-
var ReactElement = function(type, key, ref,
|
|
757
|
+
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
755
758
|
var element = {
|
|
756
759
|
// This tag allows us to uniquely identify this as a React Element
|
|
757
760
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
@@ -775,7 +778,7 @@ function requireReact_development() {
|
|
|
775
778
|
configurable: false,
|
|
776
779
|
enumerable: false,
|
|
777
780
|
writable: false,
|
|
778
|
-
value:
|
|
781
|
+
value: self2
|
|
779
782
|
});
|
|
780
783
|
Object.defineProperty(element, "_source", {
|
|
781
784
|
configurable: false,
|
|
@@ -795,7 +798,7 @@ function requireReact_development() {
|
|
|
795
798
|
var props = {};
|
|
796
799
|
var key = null;
|
|
797
800
|
var ref = null;
|
|
798
|
-
var
|
|
801
|
+
var self2 = null;
|
|
799
802
|
var source = null;
|
|
800
803
|
if (config != null) {
|
|
801
804
|
if (hasValidRef(config)) {
|
|
@@ -810,10 +813,10 @@ function requireReact_development() {
|
|
|
810
813
|
}
|
|
811
814
|
key = "" + config.key;
|
|
812
815
|
}
|
|
813
|
-
|
|
816
|
+
self2 = config.__self === void 0 ? null : config.__self;
|
|
814
817
|
source = config.__source === void 0 ? null : config.__source;
|
|
815
818
|
for (propName in config) {
|
|
816
|
-
if (
|
|
819
|
+
if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
817
820
|
props[propName] = config[propName];
|
|
818
821
|
}
|
|
819
822
|
}
|
|
@@ -852,7 +855,7 @@ function requireReact_development() {
|
|
|
852
855
|
}
|
|
853
856
|
}
|
|
854
857
|
}
|
|
855
|
-
return ReactElement(type, key, ref,
|
|
858
|
+
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
856
859
|
}
|
|
857
860
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
858
861
|
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
@@ -866,7 +869,7 @@ function requireReact_development() {
|
|
|
866
869
|
var props = assign({}, element.props);
|
|
867
870
|
var key = element.key;
|
|
868
871
|
var ref = element.ref;
|
|
869
|
-
var
|
|
872
|
+
var self2 = element._self;
|
|
870
873
|
var source = element._source;
|
|
871
874
|
var owner = element._owner;
|
|
872
875
|
if (config != null) {
|
|
@@ -885,7 +888,7 @@ function requireReact_development() {
|
|
|
885
888
|
defaultProps = element.type.defaultProps;
|
|
886
889
|
}
|
|
887
890
|
for (propName in config) {
|
|
888
|
-
if (
|
|
891
|
+
if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
889
892
|
if (config[propName] === void 0 && defaultProps !== void 0) {
|
|
890
893
|
props[propName] = defaultProps[propName];
|
|
891
894
|
} else {
|
|
@@ -904,7 +907,7 @@ function requireReact_development() {
|
|
|
904
907
|
}
|
|
905
908
|
props.children = childArray;
|
|
906
909
|
}
|
|
907
|
-
return ReactElement(element.type, key, ref,
|
|
910
|
+
return ReactElement(element.type, key, ref, self2, source, owner, props);
|
|
908
911
|
}
|
|
909
912
|
function isValidElement(object) {
|
|
910
913
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
@@ -962,7 +965,7 @@ function requireReact_development() {
|
|
|
962
965
|
var _child = children;
|
|
963
966
|
var mappedChild = callback(_child);
|
|
964
967
|
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
965
|
-
if (
|
|
968
|
+
if (isArray2(mappedChild)) {
|
|
966
969
|
var escapedChildKey = "";
|
|
967
970
|
if (childKey != null) {
|
|
968
971
|
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
@@ -997,7 +1000,7 @@ function requireReact_development() {
|
|
|
997
1000
|
var nextName;
|
|
998
1001
|
var subtreeCount = 0;
|
|
999
1002
|
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1000
|
-
if (
|
|
1003
|
+
if (isArray2(children)) {
|
|
1001
1004
|
for (var i = 0; i < children.length; i++) {
|
|
1002
1005
|
child = children[i];
|
|
1003
1006
|
nextName = nextNamePrefix + getElementKey(child, i);
|
|
@@ -1685,7 +1688,7 @@ function requireReact_development() {
|
|
|
1685
1688
|
}
|
|
1686
1689
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1687
1690
|
{
|
|
1688
|
-
var has = Function.call.bind(
|
|
1691
|
+
var has = Function.call.bind(hasOwnProperty2);
|
|
1689
1692
|
for (var typeSpecName in typeSpecs) {
|
|
1690
1693
|
if (has(typeSpecs, typeSpecName)) {
|
|
1691
1694
|
var error$1 = void 0;
|
|
@@ -1787,7 +1790,7 @@ function requireReact_development() {
|
|
|
1787
1790
|
if (typeof node !== "object") {
|
|
1788
1791
|
return;
|
|
1789
1792
|
}
|
|
1790
|
-
if (
|
|
1793
|
+
if (isArray2(node)) {
|
|
1791
1794
|
for (var i = 0; i < node.length; i++) {
|
|
1792
1795
|
var child = node[i];
|
|
1793
1796
|
if (isValidElement(child)) {
|
|
@@ -1844,9 +1847,9 @@ function requireReact_development() {
|
|
|
1844
1847
|
}
|
|
1845
1848
|
function validateFragmentProps(fragment) {
|
|
1846
1849
|
{
|
|
1847
|
-
var
|
|
1848
|
-
for (var i = 0; i <
|
|
1849
|
-
var key =
|
|
1850
|
+
var keys2 = Object.keys(fragment.props);
|
|
1851
|
+
for (var i = 0; i < keys2.length; i++) {
|
|
1852
|
+
var key = keys2[i];
|
|
1850
1853
|
if (key !== "children" && key !== "key") {
|
|
1851
1854
|
setCurrentlyValidatingElement$1(fragment);
|
|
1852
1855
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
@@ -1877,7 +1880,7 @@ function requireReact_development() {
|
|
|
1877
1880
|
var typeString;
|
|
1878
1881
|
if (type === null) {
|
|
1879
1882
|
typeString = "null";
|
|
1880
|
-
} else if (
|
|
1883
|
+
} else if (isArray2(type)) {
|
|
1881
1884
|
typeString = "array";
|
|
1882
1885
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1883
1886
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
@@ -2631,7 +2634,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2631
2634
|
}
|
|
2632
2635
|
return "";
|
|
2633
2636
|
}
|
|
2634
|
-
var
|
|
2637
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
2635
2638
|
var loggedTypeFailures = {};
|
|
2636
2639
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2637
2640
|
function setCurrentlyValidatingElement(element) {
|
|
@@ -2647,7 +2650,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2647
2650
|
}
|
|
2648
2651
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2649
2652
|
{
|
|
2650
|
-
var has = Function.call.bind(
|
|
2653
|
+
var has = Function.call.bind(hasOwnProperty2);
|
|
2651
2654
|
for (var typeSpecName in typeSpecs) {
|
|
2652
2655
|
if (has(typeSpecs, typeSpecName)) {
|
|
2653
2656
|
var error$1 = void 0;
|
|
@@ -2677,7 +2680,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2677
2680
|
}
|
|
2678
2681
|
}
|
|
2679
2682
|
var isArrayImpl = Array.isArray;
|
|
2680
|
-
function
|
|
2683
|
+
function isArray2(a) {
|
|
2681
2684
|
return isArrayImpl(a);
|
|
2682
2685
|
}
|
|
2683
2686
|
function typeName(value) {
|
|
@@ -2723,7 +2726,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2723
2726
|
}
|
|
2724
2727
|
function hasValidRef(config) {
|
|
2725
2728
|
{
|
|
2726
|
-
if (
|
|
2729
|
+
if (hasOwnProperty2.call(config, "ref")) {
|
|
2727
2730
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
2728
2731
|
if (getter && getter.isReactWarning) {
|
|
2729
2732
|
return false;
|
|
@@ -2734,7 +2737,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2734
2737
|
}
|
|
2735
2738
|
function hasValidKey(config) {
|
|
2736
2739
|
{
|
|
2737
|
-
if (
|
|
2740
|
+
if (hasOwnProperty2.call(config, "key")) {
|
|
2738
2741
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2739
2742
|
if (getter && getter.isReactWarning) {
|
|
2740
2743
|
return false;
|
|
@@ -2743,9 +2746,9 @@ function requireReactJsxRuntime_development() {
|
|
|
2743
2746
|
}
|
|
2744
2747
|
return config.key !== void 0;
|
|
2745
2748
|
}
|
|
2746
|
-
function warnIfStringRefCannotBeAutoConverted(config,
|
|
2749
|
+
function warnIfStringRefCannotBeAutoConverted(config, self2) {
|
|
2747
2750
|
{
|
|
2748
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current &&
|
|
2751
|
+
if (typeof config.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) {
|
|
2749
2752
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
2750
2753
|
if (!didWarnAboutStringRefs[componentName]) {
|
|
2751
2754
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
@@ -2784,7 +2787,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2784
2787
|
});
|
|
2785
2788
|
}
|
|
2786
2789
|
}
|
|
2787
|
-
var ReactElement = function(type, key, ref,
|
|
2790
|
+
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
2788
2791
|
var element = {
|
|
2789
2792
|
// This tag allows us to uniquely identify this as a React Element
|
|
2790
2793
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
@@ -2808,7 +2811,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2808
2811
|
configurable: false,
|
|
2809
2812
|
enumerable: false,
|
|
2810
2813
|
writable: false,
|
|
2811
|
-
value:
|
|
2814
|
+
value: self2
|
|
2812
2815
|
});
|
|
2813
2816
|
Object.defineProperty(element, "_source", {
|
|
2814
2817
|
configurable: false,
|
|
@@ -2823,7 +2826,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2823
2826
|
}
|
|
2824
2827
|
return element;
|
|
2825
2828
|
};
|
|
2826
|
-
function jsxDEV(type, config, maybeKey, source,
|
|
2829
|
+
function jsxDEV(type, config, maybeKey, source, self2) {
|
|
2827
2830
|
{
|
|
2828
2831
|
var propName;
|
|
2829
2832
|
var props = {};
|
|
@@ -2843,10 +2846,10 @@ function requireReactJsxRuntime_development() {
|
|
|
2843
2846
|
}
|
|
2844
2847
|
if (hasValidRef(config)) {
|
|
2845
2848
|
ref = config.ref;
|
|
2846
|
-
warnIfStringRefCannotBeAutoConverted(config,
|
|
2849
|
+
warnIfStringRefCannotBeAutoConverted(config, self2);
|
|
2847
2850
|
}
|
|
2848
2851
|
for (propName in config) {
|
|
2849
|
-
if (
|
|
2852
|
+
if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
2850
2853
|
props[propName] = config[propName];
|
|
2851
2854
|
}
|
|
2852
2855
|
}
|
|
@@ -2867,7 +2870,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2867
2870
|
defineRefPropWarningGetter(props, displayName);
|
|
2868
2871
|
}
|
|
2869
2872
|
}
|
|
2870
|
-
return ReactElement(type, key, ref,
|
|
2873
|
+
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
2871
2874
|
}
|
|
2872
2875
|
}
|
|
2873
2876
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
@@ -2951,7 +2954,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2951
2954
|
if (typeof node !== "object") {
|
|
2952
2955
|
return;
|
|
2953
2956
|
}
|
|
2954
|
-
if (
|
|
2957
|
+
if (isArray2(node)) {
|
|
2955
2958
|
for (var i = 0; i < node.length; i++) {
|
|
2956
2959
|
var child = node[i];
|
|
2957
2960
|
if (isValidElement(child)) {
|
|
@@ -3009,9 +3012,9 @@ function requireReactJsxRuntime_development() {
|
|
|
3009
3012
|
}
|
|
3010
3013
|
function validateFragmentProps(fragment) {
|
|
3011
3014
|
{
|
|
3012
|
-
var
|
|
3013
|
-
for (var i = 0; i <
|
|
3014
|
-
var key =
|
|
3015
|
+
var keys2 = Object.keys(fragment.props);
|
|
3016
|
+
for (var i = 0; i < keys2.length; i++) {
|
|
3017
|
+
var key = keys2[i];
|
|
3015
3018
|
if (key !== "children" && key !== "key") {
|
|
3016
3019
|
setCurrentlyValidatingElement$1(fragment);
|
|
3017
3020
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
@@ -3026,7 +3029,7 @@ function requireReactJsxRuntime_development() {
|
|
|
3026
3029
|
}
|
|
3027
3030
|
}
|
|
3028
3031
|
}
|
|
3029
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source,
|
|
3032
|
+
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
3030
3033
|
{
|
|
3031
3034
|
var validType = isValidElementType(type);
|
|
3032
3035
|
if (!validType) {
|
|
@@ -3043,7 +3046,7 @@ function requireReactJsxRuntime_development() {
|
|
|
3043
3046
|
var typeString;
|
|
3044
3047
|
if (type === null) {
|
|
3045
3048
|
typeString = "null";
|
|
3046
|
-
} else if (
|
|
3049
|
+
} else if (isArray2(type)) {
|
|
3047
3050
|
typeString = "array";
|
|
3048
3051
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
3049
3052
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
@@ -3053,7 +3056,7 @@ function requireReactJsxRuntime_development() {
|
|
|
3053
3056
|
}
|
|
3054
3057
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
3055
3058
|
}
|
|
3056
|
-
var element = jsxDEV(type, props, key, source,
|
|
3059
|
+
var element = jsxDEV(type, props, key, source, self2);
|
|
3057
3060
|
if (element == null) {
|
|
3058
3061
|
return element;
|
|
3059
3062
|
}
|
|
@@ -3061,7 +3064,7 @@ function requireReactJsxRuntime_development() {
|
|
|
3061
3064
|
var children = props.children;
|
|
3062
3065
|
if (children !== void 0) {
|
|
3063
3066
|
if (isStaticChildren) {
|
|
3064
|
-
if (
|
|
3067
|
+
if (isArray2(children)) {
|
|
3065
3068
|
for (var i = 0; i < children.length; i++) {
|
|
3066
3069
|
validateChildKeys(children[i], type);
|
|
3067
3070
|
}
|
|
@@ -3124,6 +3127,1293 @@ function AdheseProvider({ children, options }) {
|
|
|
3124
3127
|
function useAdhese() {
|
|
3125
3128
|
return reactExports.useContext(adheseContext);
|
|
3126
3129
|
}
|
|
3130
|
+
function arrayMap$2(array, iteratee) {
|
|
3131
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
3132
|
+
while (++index < length) {
|
|
3133
|
+
result[index] = iteratee(array[index], index, array);
|
|
3134
|
+
}
|
|
3135
|
+
return result;
|
|
3136
|
+
}
|
|
3137
|
+
var _arrayMap = arrayMap$2;
|
|
3138
|
+
function listCacheClear$1() {
|
|
3139
|
+
this.__data__ = [];
|
|
3140
|
+
this.size = 0;
|
|
3141
|
+
}
|
|
3142
|
+
var _listCacheClear = listCacheClear$1;
|
|
3143
|
+
function eq$2(value, other) {
|
|
3144
|
+
return value === other || value !== value && other !== other;
|
|
3145
|
+
}
|
|
3146
|
+
var eq_1 = eq$2;
|
|
3147
|
+
var eq$1 = eq_1;
|
|
3148
|
+
function assocIndexOf$4(array, key) {
|
|
3149
|
+
var length = array.length;
|
|
3150
|
+
while (length--) {
|
|
3151
|
+
if (eq$1(array[length][0], key)) {
|
|
3152
|
+
return length;
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
return -1;
|
|
3156
|
+
}
|
|
3157
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
3158
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
3159
|
+
var arrayProto = Array.prototype;
|
|
3160
|
+
var splice = arrayProto.splice;
|
|
3161
|
+
function listCacheDelete$1(key) {
|
|
3162
|
+
var data = this.__data__, index = assocIndexOf$3(data, key);
|
|
3163
|
+
if (index < 0) {
|
|
3164
|
+
return false;
|
|
3165
|
+
}
|
|
3166
|
+
var lastIndex = data.length - 1;
|
|
3167
|
+
if (index == lastIndex) {
|
|
3168
|
+
data.pop();
|
|
3169
|
+
} else {
|
|
3170
|
+
splice.call(data, index, 1);
|
|
3171
|
+
}
|
|
3172
|
+
--this.size;
|
|
3173
|
+
return true;
|
|
3174
|
+
}
|
|
3175
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
3176
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
3177
|
+
function listCacheGet$1(key) {
|
|
3178
|
+
var data = this.__data__, index = assocIndexOf$2(data, key);
|
|
3179
|
+
return index < 0 ? void 0 : data[index][1];
|
|
3180
|
+
}
|
|
3181
|
+
var _listCacheGet = listCacheGet$1;
|
|
3182
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
3183
|
+
function listCacheHas$1(key) {
|
|
3184
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
3185
|
+
}
|
|
3186
|
+
var _listCacheHas = listCacheHas$1;
|
|
3187
|
+
var assocIndexOf = _assocIndexOf;
|
|
3188
|
+
function listCacheSet$1(key, value) {
|
|
3189
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
3190
|
+
if (index < 0) {
|
|
3191
|
+
++this.size;
|
|
3192
|
+
data.push([key, value]);
|
|
3193
|
+
} else {
|
|
3194
|
+
data[index][1] = value;
|
|
3195
|
+
}
|
|
3196
|
+
return this;
|
|
3197
|
+
}
|
|
3198
|
+
var _listCacheSet = listCacheSet$1;
|
|
3199
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
3200
|
+
function ListCache$4(entries) {
|
|
3201
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
3202
|
+
this.clear();
|
|
3203
|
+
while (++index < length) {
|
|
3204
|
+
var entry = entries[index];
|
|
3205
|
+
this.set(entry[0], entry[1]);
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
3209
|
+
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
3210
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
3211
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
3212
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
3213
|
+
var _ListCache = ListCache$4;
|
|
3214
|
+
var ListCache$3 = _ListCache;
|
|
3215
|
+
function stackClear$1() {
|
|
3216
|
+
this.__data__ = new ListCache$3();
|
|
3217
|
+
this.size = 0;
|
|
3218
|
+
}
|
|
3219
|
+
var _stackClear = stackClear$1;
|
|
3220
|
+
function stackDelete$1(key) {
|
|
3221
|
+
var data = this.__data__, result = data["delete"](key);
|
|
3222
|
+
this.size = data.size;
|
|
3223
|
+
return result;
|
|
3224
|
+
}
|
|
3225
|
+
var _stackDelete = stackDelete$1;
|
|
3226
|
+
function stackGet$1(key) {
|
|
3227
|
+
return this.__data__.get(key);
|
|
3228
|
+
}
|
|
3229
|
+
var _stackGet = stackGet$1;
|
|
3230
|
+
function stackHas$1(key) {
|
|
3231
|
+
return this.__data__.has(key);
|
|
3232
|
+
}
|
|
3233
|
+
var _stackHas = stackHas$1;
|
|
3234
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
3235
|
+
var _freeGlobal = freeGlobal$1;
|
|
3236
|
+
var freeGlobal = _freeGlobal;
|
|
3237
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
3238
|
+
var root$8 = freeGlobal || freeSelf || Function("return this")();
|
|
3239
|
+
var _root = root$8;
|
|
3240
|
+
var root$7 = _root;
|
|
3241
|
+
var Symbol$6 = root$7.Symbol;
|
|
3242
|
+
var _Symbol = Symbol$6;
|
|
3243
|
+
var Symbol$5 = _Symbol;
|
|
3244
|
+
var objectProto$d = Object.prototype;
|
|
3245
|
+
var hasOwnProperty$a = objectProto$d.hasOwnProperty;
|
|
3246
|
+
var nativeObjectToString$1 = objectProto$d.toString;
|
|
3247
|
+
var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : void 0;
|
|
3248
|
+
function getRawTag$1(value) {
|
|
3249
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
3250
|
+
try {
|
|
3251
|
+
value[symToStringTag$1] = void 0;
|
|
3252
|
+
var unmasked = true;
|
|
3253
|
+
} catch (e) {
|
|
3254
|
+
}
|
|
3255
|
+
var result = nativeObjectToString$1.call(value);
|
|
3256
|
+
if (unmasked) {
|
|
3257
|
+
if (isOwn) {
|
|
3258
|
+
value[symToStringTag$1] = tag;
|
|
3259
|
+
} else {
|
|
3260
|
+
delete value[symToStringTag$1];
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
return result;
|
|
3264
|
+
}
|
|
3265
|
+
var _getRawTag = getRawTag$1;
|
|
3266
|
+
var objectProto$c = Object.prototype;
|
|
3267
|
+
var nativeObjectToString = objectProto$c.toString;
|
|
3268
|
+
function objectToString$1(value) {
|
|
3269
|
+
return nativeObjectToString.call(value);
|
|
3270
|
+
}
|
|
3271
|
+
var _objectToString = objectToString$1;
|
|
3272
|
+
var Symbol$4 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
3273
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
3274
|
+
var symToStringTag = Symbol$4 ? Symbol$4.toStringTag : void 0;
|
|
3275
|
+
function baseGetTag$6(value) {
|
|
3276
|
+
if (value == null) {
|
|
3277
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
3278
|
+
}
|
|
3279
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
3280
|
+
}
|
|
3281
|
+
var _baseGetTag = baseGetTag$6;
|
|
3282
|
+
function isObject$5(value) {
|
|
3283
|
+
var type = typeof value;
|
|
3284
|
+
return value != null && (type == "object" || type == "function");
|
|
3285
|
+
}
|
|
3286
|
+
var isObject_1 = isObject$5;
|
|
3287
|
+
var baseGetTag$5 = _baseGetTag, isObject$4 = isObject_1;
|
|
3288
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
3289
|
+
function isFunction$2(value) {
|
|
3290
|
+
if (!isObject$4(value)) {
|
|
3291
|
+
return false;
|
|
3292
|
+
}
|
|
3293
|
+
var tag = baseGetTag$5(value);
|
|
3294
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
3295
|
+
}
|
|
3296
|
+
var isFunction_1 = isFunction$2;
|
|
3297
|
+
var root$6 = _root;
|
|
3298
|
+
var coreJsData$1 = root$6["__core-js_shared__"];
|
|
3299
|
+
var _coreJsData = coreJsData$1;
|
|
3300
|
+
var coreJsData = _coreJsData;
|
|
3301
|
+
var maskSrcKey = function() {
|
|
3302
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
3303
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
3304
|
+
}();
|
|
3305
|
+
function isMasked$1(func) {
|
|
3306
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
3307
|
+
}
|
|
3308
|
+
var _isMasked = isMasked$1;
|
|
3309
|
+
var funcProto$2 = Function.prototype;
|
|
3310
|
+
var funcToString$2 = funcProto$2.toString;
|
|
3311
|
+
function toSource$2(func) {
|
|
3312
|
+
if (func != null) {
|
|
3313
|
+
try {
|
|
3314
|
+
return funcToString$2.call(func);
|
|
3315
|
+
} catch (e) {
|
|
3316
|
+
}
|
|
3317
|
+
try {
|
|
3318
|
+
return func + "";
|
|
3319
|
+
} catch (e) {
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
return "";
|
|
3323
|
+
}
|
|
3324
|
+
var _toSource = toSource$2;
|
|
3325
|
+
var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource;
|
|
3326
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
3327
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
3328
|
+
var funcProto$1 = Function.prototype, objectProto$b = Object.prototype;
|
|
3329
|
+
var funcToString$1 = funcProto$1.toString;
|
|
3330
|
+
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
3331
|
+
var reIsNative = RegExp(
|
|
3332
|
+
"^" + funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3333
|
+
);
|
|
3334
|
+
function baseIsNative$1(value) {
|
|
3335
|
+
if (!isObject$3(value) || isMasked(value)) {
|
|
3336
|
+
return false;
|
|
3337
|
+
}
|
|
3338
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
3339
|
+
return pattern.test(toSource$1(value));
|
|
3340
|
+
}
|
|
3341
|
+
var _baseIsNative = baseIsNative$1;
|
|
3342
|
+
function getValue$1(object, key) {
|
|
3343
|
+
return object == null ? void 0 : object[key];
|
|
3344
|
+
}
|
|
3345
|
+
var _getValue = getValue$1;
|
|
3346
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
3347
|
+
function getNative$7(object, key) {
|
|
3348
|
+
var value = getValue(object, key);
|
|
3349
|
+
return baseIsNative(value) ? value : void 0;
|
|
3350
|
+
}
|
|
3351
|
+
var _getNative = getNative$7;
|
|
3352
|
+
var getNative$6 = _getNative, root$5 = _root;
|
|
3353
|
+
var Map$4 = getNative$6(root$5, "Map");
|
|
3354
|
+
var _Map = Map$4;
|
|
3355
|
+
var getNative$5 = _getNative;
|
|
3356
|
+
var nativeCreate$4 = getNative$5(Object, "create");
|
|
3357
|
+
var _nativeCreate = nativeCreate$4;
|
|
3358
|
+
var nativeCreate$3 = _nativeCreate;
|
|
3359
|
+
function hashClear$1() {
|
|
3360
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
3361
|
+
this.size = 0;
|
|
3362
|
+
}
|
|
3363
|
+
var _hashClear = hashClear$1;
|
|
3364
|
+
function hashDelete$1(key) {
|
|
3365
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
3366
|
+
this.size -= result ? 1 : 0;
|
|
3367
|
+
return result;
|
|
3368
|
+
}
|
|
3369
|
+
var _hashDelete = hashDelete$1;
|
|
3370
|
+
var nativeCreate$2 = _nativeCreate;
|
|
3371
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
3372
|
+
var objectProto$a = Object.prototype;
|
|
3373
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
3374
|
+
function hashGet$1(key) {
|
|
3375
|
+
var data = this.__data__;
|
|
3376
|
+
if (nativeCreate$2) {
|
|
3377
|
+
var result = data[key];
|
|
3378
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
3379
|
+
}
|
|
3380
|
+
return hasOwnProperty$8.call(data, key) ? data[key] : void 0;
|
|
3381
|
+
}
|
|
3382
|
+
var _hashGet = hashGet$1;
|
|
3383
|
+
var nativeCreate$1 = _nativeCreate;
|
|
3384
|
+
var objectProto$9 = Object.prototype;
|
|
3385
|
+
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
3386
|
+
function hashHas$1(key) {
|
|
3387
|
+
var data = this.__data__;
|
|
3388
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$7.call(data, key);
|
|
3389
|
+
}
|
|
3390
|
+
var _hashHas = hashHas$1;
|
|
3391
|
+
var nativeCreate = _nativeCreate;
|
|
3392
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
3393
|
+
function hashSet$1(key, value) {
|
|
3394
|
+
var data = this.__data__;
|
|
3395
|
+
this.size += this.has(key) ? 0 : 1;
|
|
3396
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
3397
|
+
return this;
|
|
3398
|
+
}
|
|
3399
|
+
var _hashSet = hashSet$1;
|
|
3400
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
3401
|
+
function Hash$1(entries) {
|
|
3402
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
3403
|
+
this.clear();
|
|
3404
|
+
while (++index < length) {
|
|
3405
|
+
var entry = entries[index];
|
|
3406
|
+
this.set(entry[0], entry[1]);
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3409
|
+
Hash$1.prototype.clear = hashClear;
|
|
3410
|
+
Hash$1.prototype["delete"] = hashDelete;
|
|
3411
|
+
Hash$1.prototype.get = hashGet;
|
|
3412
|
+
Hash$1.prototype.has = hashHas;
|
|
3413
|
+
Hash$1.prototype.set = hashSet;
|
|
3414
|
+
var _Hash = Hash$1;
|
|
3415
|
+
var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
|
|
3416
|
+
function mapCacheClear$1() {
|
|
3417
|
+
this.size = 0;
|
|
3418
|
+
this.__data__ = {
|
|
3419
|
+
"hash": new Hash(),
|
|
3420
|
+
"map": new (Map$3 || ListCache$2)(),
|
|
3421
|
+
"string": new Hash()
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
3425
|
+
function isKeyable$1(value) {
|
|
3426
|
+
var type = typeof value;
|
|
3427
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
3428
|
+
}
|
|
3429
|
+
var _isKeyable = isKeyable$1;
|
|
3430
|
+
var isKeyable = _isKeyable;
|
|
3431
|
+
function getMapData$4(map, key) {
|
|
3432
|
+
var data = map.__data__;
|
|
3433
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
3434
|
+
}
|
|
3435
|
+
var _getMapData = getMapData$4;
|
|
3436
|
+
var getMapData$3 = _getMapData;
|
|
3437
|
+
function mapCacheDelete$1(key) {
|
|
3438
|
+
var result = getMapData$3(this, key)["delete"](key);
|
|
3439
|
+
this.size -= result ? 1 : 0;
|
|
3440
|
+
return result;
|
|
3441
|
+
}
|
|
3442
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
3443
|
+
var getMapData$2 = _getMapData;
|
|
3444
|
+
function mapCacheGet$1(key) {
|
|
3445
|
+
return getMapData$2(this, key).get(key);
|
|
3446
|
+
}
|
|
3447
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
3448
|
+
var getMapData$1 = _getMapData;
|
|
3449
|
+
function mapCacheHas$1(key) {
|
|
3450
|
+
return getMapData$1(this, key).has(key);
|
|
3451
|
+
}
|
|
3452
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
3453
|
+
var getMapData = _getMapData;
|
|
3454
|
+
function mapCacheSet$1(key, value) {
|
|
3455
|
+
var data = getMapData(this, key), size = data.size;
|
|
3456
|
+
data.set(key, value);
|
|
3457
|
+
this.size += data.size == size ? 0 : 1;
|
|
3458
|
+
return this;
|
|
3459
|
+
}
|
|
3460
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
3461
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
3462
|
+
function MapCache$2(entries) {
|
|
3463
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
3464
|
+
this.clear();
|
|
3465
|
+
while (++index < length) {
|
|
3466
|
+
var entry = entries[index];
|
|
3467
|
+
this.set(entry[0], entry[1]);
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
MapCache$2.prototype.clear = mapCacheClear;
|
|
3471
|
+
MapCache$2.prototype["delete"] = mapCacheDelete;
|
|
3472
|
+
MapCache$2.prototype.get = mapCacheGet;
|
|
3473
|
+
MapCache$2.prototype.has = mapCacheHas;
|
|
3474
|
+
MapCache$2.prototype.set = mapCacheSet;
|
|
3475
|
+
var _MapCache = MapCache$2;
|
|
3476
|
+
var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$1 = _MapCache;
|
|
3477
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
3478
|
+
function stackSet$1(key, value) {
|
|
3479
|
+
var data = this.__data__;
|
|
3480
|
+
if (data instanceof ListCache$1) {
|
|
3481
|
+
var pairs = data.__data__;
|
|
3482
|
+
if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
3483
|
+
pairs.push([key, value]);
|
|
3484
|
+
this.size = ++data.size;
|
|
3485
|
+
return this;
|
|
3486
|
+
}
|
|
3487
|
+
data = this.__data__ = new MapCache$1(pairs);
|
|
3488
|
+
}
|
|
3489
|
+
data.set(key, value);
|
|
3490
|
+
this.size = data.size;
|
|
3491
|
+
return this;
|
|
3492
|
+
}
|
|
3493
|
+
var _stackSet = stackSet$1;
|
|
3494
|
+
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
3495
|
+
function Stack$1(entries) {
|
|
3496
|
+
var data = this.__data__ = new ListCache(entries);
|
|
3497
|
+
this.size = data.size;
|
|
3498
|
+
}
|
|
3499
|
+
Stack$1.prototype.clear = stackClear;
|
|
3500
|
+
Stack$1.prototype["delete"] = stackDelete;
|
|
3501
|
+
Stack$1.prototype.get = stackGet;
|
|
3502
|
+
Stack$1.prototype.has = stackHas;
|
|
3503
|
+
Stack$1.prototype.set = stackSet;
|
|
3504
|
+
var _Stack = Stack$1;
|
|
3505
|
+
function arrayEach$1(array, iteratee) {
|
|
3506
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
3507
|
+
while (++index < length) {
|
|
3508
|
+
if (iteratee(array[index], index, array) === false) {
|
|
3509
|
+
break;
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
return array;
|
|
3513
|
+
}
|
|
3514
|
+
var _arrayEach = arrayEach$1;
|
|
3515
|
+
var getNative$4 = _getNative;
|
|
3516
|
+
var defineProperty$2 = function() {
|
|
3517
|
+
try {
|
|
3518
|
+
var func = getNative$4(Object, "defineProperty");
|
|
3519
|
+
func({}, "", {});
|
|
3520
|
+
return func;
|
|
3521
|
+
} catch (e) {
|
|
3522
|
+
}
|
|
3523
|
+
}();
|
|
3524
|
+
var _defineProperty = defineProperty$2;
|
|
3525
|
+
var defineProperty$1 = _defineProperty;
|
|
3526
|
+
function baseAssignValue$2(object, key, value) {
|
|
3527
|
+
if (key == "__proto__" && defineProperty$1) {
|
|
3528
|
+
defineProperty$1(object, key, {
|
|
3529
|
+
"configurable": true,
|
|
3530
|
+
"enumerable": true,
|
|
3531
|
+
"value": value,
|
|
3532
|
+
"writable": true
|
|
3533
|
+
});
|
|
3534
|
+
} else {
|
|
3535
|
+
object[key] = value;
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
var _baseAssignValue = baseAssignValue$2;
|
|
3539
|
+
var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
|
3540
|
+
var objectProto$8 = Object.prototype;
|
|
3541
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
3542
|
+
function assignValue$2(object, key, value) {
|
|
3543
|
+
var objValue = object[key];
|
|
3544
|
+
if (!(hasOwnProperty$6.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
3545
|
+
baseAssignValue$1(object, key, value);
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
var _assignValue = assignValue$2;
|
|
3549
|
+
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
3550
|
+
function copyObject$5(source, props, object, customizer) {
|
|
3551
|
+
var isNew = !object;
|
|
3552
|
+
object || (object = {});
|
|
3553
|
+
var index = -1, length = props.length;
|
|
3554
|
+
while (++index < length) {
|
|
3555
|
+
var key = props[index];
|
|
3556
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
3557
|
+
if (newValue === void 0) {
|
|
3558
|
+
newValue = source[key];
|
|
3559
|
+
}
|
|
3560
|
+
if (isNew) {
|
|
3561
|
+
baseAssignValue(object, key, newValue);
|
|
3562
|
+
} else {
|
|
3563
|
+
assignValue$1(object, key, newValue);
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
return object;
|
|
3567
|
+
}
|
|
3568
|
+
var _copyObject = copyObject$5;
|
|
3569
|
+
function baseTimes$1(n, iteratee) {
|
|
3570
|
+
var index = -1, result = Array(n);
|
|
3571
|
+
while (++index < n) {
|
|
3572
|
+
result[index] = iteratee(index);
|
|
3573
|
+
}
|
|
3574
|
+
return result;
|
|
3575
|
+
}
|
|
3576
|
+
var _baseTimes = baseTimes$1;
|
|
3577
|
+
function isObjectLike$7(value) {
|
|
3578
|
+
return value != null && typeof value == "object";
|
|
3579
|
+
}
|
|
3580
|
+
var isObjectLike_1 = isObjectLike$7;
|
|
3581
|
+
var baseGetTag$4 = _baseGetTag, isObjectLike$6 = isObjectLike_1;
|
|
3582
|
+
var argsTag$2 = "[object Arguments]";
|
|
3583
|
+
function baseIsArguments$1(value) {
|
|
3584
|
+
return isObjectLike$6(value) && baseGetTag$4(value) == argsTag$2;
|
|
3585
|
+
}
|
|
3586
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
3587
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
3588
|
+
var objectProto$7 = Object.prototype;
|
|
3589
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
3590
|
+
var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
3591
|
+
var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
|
|
3592
|
+
return arguments;
|
|
3593
|
+
}()) ? baseIsArguments : function(value) {
|
|
3594
|
+
return isObjectLike$5(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
3595
|
+
};
|
|
3596
|
+
var isArguments_1 = isArguments$2;
|
|
3597
|
+
var isArray$7 = Array.isArray;
|
|
3598
|
+
var isArray_1 = isArray$7;
|
|
3599
|
+
var isBuffer$2 = { exports: {} };
|
|
3600
|
+
function stubFalse() {
|
|
3601
|
+
return false;
|
|
3602
|
+
}
|
|
3603
|
+
var stubFalse_1 = stubFalse;
|
|
3604
|
+
isBuffer$2.exports;
|
|
3605
|
+
(function(module, exports) {
|
|
3606
|
+
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
3607
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
3608
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
3609
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
3610
|
+
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
3611
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
3612
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
3613
|
+
module.exports = isBuffer2;
|
|
3614
|
+
})(isBuffer$2, isBuffer$2.exports);
|
|
3615
|
+
var isBufferExports = isBuffer$2.exports;
|
|
3616
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
3617
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
3618
|
+
function isIndex$1(value, length) {
|
|
3619
|
+
var type = typeof value;
|
|
3620
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
3621
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
3622
|
+
}
|
|
3623
|
+
var _isIndex = isIndex$1;
|
|
3624
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
3625
|
+
function isLength$2(value) {
|
|
3626
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
3627
|
+
}
|
|
3628
|
+
var isLength_1 = isLength$2;
|
|
3629
|
+
var baseGetTag$3 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$4 = isObjectLike_1;
|
|
3630
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
3631
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
3632
|
+
var typedArrayTags = {};
|
|
3633
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
3634
|
+
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
3635
|
+
function baseIsTypedArray$1(value) {
|
|
3636
|
+
return isObjectLike$4(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$3(value)];
|
|
3637
|
+
}
|
|
3638
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
3639
|
+
function baseUnary$3(func) {
|
|
3640
|
+
return function(value) {
|
|
3641
|
+
return func(value);
|
|
3642
|
+
};
|
|
3643
|
+
}
|
|
3644
|
+
var _baseUnary = baseUnary$3;
|
|
3645
|
+
var _nodeUtil = { exports: {} };
|
|
3646
|
+
_nodeUtil.exports;
|
|
3647
|
+
(function(module, exports) {
|
|
3648
|
+
var freeGlobal2 = _freeGlobal;
|
|
3649
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
3650
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
3651
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
3652
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
3653
|
+
var nodeUtil2 = function() {
|
|
3654
|
+
try {
|
|
3655
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
3656
|
+
if (types) {
|
|
3657
|
+
return types;
|
|
3658
|
+
}
|
|
3659
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
3660
|
+
} catch (e) {
|
|
3661
|
+
}
|
|
3662
|
+
}();
|
|
3663
|
+
module.exports = nodeUtil2;
|
|
3664
|
+
})(_nodeUtil, _nodeUtil.exports);
|
|
3665
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
3666
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
|
|
3667
|
+
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
3668
|
+
var isTypedArray$1 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
|
3669
|
+
var isTypedArray_1 = isTypedArray$1;
|
|
3670
|
+
var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$6 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
|
|
3671
|
+
var objectProto$6 = Object.prototype;
|
|
3672
|
+
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
3673
|
+
function arrayLikeKeys$2(value, inherited) {
|
|
3674
|
+
var isArr = isArray$6(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
3675
|
+
for (var key in value) {
|
|
3676
|
+
if ((inherited || hasOwnProperty$4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3677
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
3678
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
3679
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
3680
|
+
isIndex(key, length)))) {
|
|
3681
|
+
result.push(key);
|
|
3682
|
+
}
|
|
3683
|
+
}
|
|
3684
|
+
return result;
|
|
3685
|
+
}
|
|
3686
|
+
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
3687
|
+
var objectProto$5 = Object.prototype;
|
|
3688
|
+
function isPrototype$3(value) {
|
|
3689
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$5;
|
|
3690
|
+
return value === proto;
|
|
3691
|
+
}
|
|
3692
|
+
var _isPrototype = isPrototype$3;
|
|
3693
|
+
function overArg$2(func, transform) {
|
|
3694
|
+
return function(arg) {
|
|
3695
|
+
return func(transform(arg));
|
|
3696
|
+
};
|
|
3697
|
+
}
|
|
3698
|
+
var _overArg = overArg$2;
|
|
3699
|
+
var overArg$1 = _overArg;
|
|
3700
|
+
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
3701
|
+
var _nativeKeys = nativeKeys$1;
|
|
3702
|
+
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
3703
|
+
var objectProto$4 = Object.prototype;
|
|
3704
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
3705
|
+
function baseKeys$1(object) {
|
|
3706
|
+
if (!isPrototype$2(object)) {
|
|
3707
|
+
return nativeKeys(object);
|
|
3708
|
+
}
|
|
3709
|
+
var result = [];
|
|
3710
|
+
for (var key in Object(object)) {
|
|
3711
|
+
if (hasOwnProperty$3.call(object, key) && key != "constructor") {
|
|
3712
|
+
result.push(key);
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
return result;
|
|
3716
|
+
}
|
|
3717
|
+
var _baseKeys = baseKeys$1;
|
|
3718
|
+
var isFunction = isFunction_1, isLength = isLength_1;
|
|
3719
|
+
function isArrayLike$2(value) {
|
|
3720
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
3721
|
+
}
|
|
3722
|
+
var isArrayLike_1 = isArrayLike$2;
|
|
3723
|
+
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
|
|
3724
|
+
function keys$3(object) {
|
|
3725
|
+
return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
3726
|
+
}
|
|
3727
|
+
var keys_1 = keys$3;
|
|
3728
|
+
var copyObject$4 = _copyObject, keys$2 = keys_1;
|
|
3729
|
+
function baseAssign$1(object, source) {
|
|
3730
|
+
return object && copyObject$4(source, keys$2(source), object);
|
|
3731
|
+
}
|
|
3732
|
+
var _baseAssign = baseAssign$1;
|
|
3733
|
+
function nativeKeysIn$1(object) {
|
|
3734
|
+
var result = [];
|
|
3735
|
+
if (object != null) {
|
|
3736
|
+
for (var key in Object(object)) {
|
|
3737
|
+
result.push(key);
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
return result;
|
|
3741
|
+
}
|
|
3742
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
3743
|
+
var isObject$2 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
3744
|
+
var objectProto$3 = Object.prototype;
|
|
3745
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
3746
|
+
function baseKeysIn$1(object) {
|
|
3747
|
+
if (!isObject$2(object)) {
|
|
3748
|
+
return nativeKeysIn(object);
|
|
3749
|
+
}
|
|
3750
|
+
var isProto = isPrototype$1(object), result = [];
|
|
3751
|
+
for (var key in object) {
|
|
3752
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$2.call(object, key)))) {
|
|
3753
|
+
result.push(key);
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
return result;
|
|
3757
|
+
}
|
|
3758
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
3759
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
3760
|
+
function keysIn$3(object) {
|
|
3761
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
3762
|
+
}
|
|
3763
|
+
var keysIn_1 = keysIn$3;
|
|
3764
|
+
var copyObject$3 = _copyObject, keysIn$2 = keysIn_1;
|
|
3765
|
+
function baseAssignIn$1(object, source) {
|
|
3766
|
+
return object && copyObject$3(source, keysIn$2(source), object);
|
|
3767
|
+
}
|
|
3768
|
+
var _baseAssignIn = baseAssignIn$1;
|
|
3769
|
+
var _cloneBuffer = { exports: {} };
|
|
3770
|
+
_cloneBuffer.exports;
|
|
3771
|
+
(function(module, exports) {
|
|
3772
|
+
var root2 = _root;
|
|
3773
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
3774
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
3775
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
3776
|
+
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
3777
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
3778
|
+
if (isDeep) {
|
|
3779
|
+
return buffer.slice();
|
|
3780
|
+
}
|
|
3781
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
3782
|
+
buffer.copy(result);
|
|
3783
|
+
return result;
|
|
3784
|
+
}
|
|
3785
|
+
module.exports = cloneBuffer2;
|
|
3786
|
+
})(_cloneBuffer, _cloneBuffer.exports);
|
|
3787
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
3788
|
+
function copyArray$1(source, array) {
|
|
3789
|
+
var index = -1, length = source.length;
|
|
3790
|
+
array || (array = Array(length));
|
|
3791
|
+
while (++index < length) {
|
|
3792
|
+
array[index] = source[index];
|
|
3793
|
+
}
|
|
3794
|
+
return array;
|
|
3795
|
+
}
|
|
3796
|
+
var _copyArray = copyArray$1;
|
|
3797
|
+
function arrayFilter$1(array, predicate) {
|
|
3798
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
3799
|
+
while (++index < length) {
|
|
3800
|
+
var value = array[index];
|
|
3801
|
+
if (predicate(value, index, array)) {
|
|
3802
|
+
result[resIndex++] = value;
|
|
3803
|
+
}
|
|
3804
|
+
}
|
|
3805
|
+
return result;
|
|
3806
|
+
}
|
|
3807
|
+
var _arrayFilter = arrayFilter$1;
|
|
3808
|
+
function stubArray$2() {
|
|
3809
|
+
return [];
|
|
3810
|
+
}
|
|
3811
|
+
var stubArray_1 = stubArray$2;
|
|
3812
|
+
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
3813
|
+
var objectProto$2 = Object.prototype;
|
|
3814
|
+
var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
|
|
3815
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
3816
|
+
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
3817
|
+
if (object == null) {
|
|
3818
|
+
return [];
|
|
3819
|
+
}
|
|
3820
|
+
object = Object(object);
|
|
3821
|
+
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
3822
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
3823
|
+
});
|
|
3824
|
+
};
|
|
3825
|
+
var _getSymbols = getSymbols$3;
|
|
3826
|
+
var copyObject$2 = _copyObject, getSymbols$2 = _getSymbols;
|
|
3827
|
+
function copySymbols$1(source, object) {
|
|
3828
|
+
return copyObject$2(source, getSymbols$2(source), object);
|
|
3829
|
+
}
|
|
3830
|
+
var _copySymbols = copySymbols$1;
|
|
3831
|
+
function arrayPush$3(array, values) {
|
|
3832
|
+
var index = -1, length = values.length, offset = array.length;
|
|
3833
|
+
while (++index < length) {
|
|
3834
|
+
array[offset + index] = values[index];
|
|
3835
|
+
}
|
|
3836
|
+
return array;
|
|
3837
|
+
}
|
|
3838
|
+
var _arrayPush = arrayPush$3;
|
|
3839
|
+
var overArg = _overArg;
|
|
3840
|
+
var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
|
|
3841
|
+
var _getPrototype = getPrototype$3;
|
|
3842
|
+
var arrayPush$2 = _arrayPush, getPrototype$2 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
|
|
3843
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
3844
|
+
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
3845
|
+
var result = [];
|
|
3846
|
+
while (object) {
|
|
3847
|
+
arrayPush$2(result, getSymbols$1(object));
|
|
3848
|
+
object = getPrototype$2(object);
|
|
3849
|
+
}
|
|
3850
|
+
return result;
|
|
3851
|
+
};
|
|
3852
|
+
var _getSymbolsIn = getSymbolsIn$2;
|
|
3853
|
+
var copyObject$1 = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
3854
|
+
function copySymbolsIn$1(source, object) {
|
|
3855
|
+
return copyObject$1(source, getSymbolsIn$1(source), object);
|
|
3856
|
+
}
|
|
3857
|
+
var _copySymbolsIn = copySymbolsIn$1;
|
|
3858
|
+
var arrayPush$1 = _arrayPush, isArray$5 = isArray_1;
|
|
3859
|
+
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
3860
|
+
var result = keysFunc(object);
|
|
3861
|
+
return isArray$5(object) ? result : arrayPush$1(result, symbolsFunc(object));
|
|
3862
|
+
}
|
|
3863
|
+
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
3864
|
+
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
|
|
3865
|
+
function getAllKeys$1(object) {
|
|
3866
|
+
return baseGetAllKeys$1(object, keys$1, getSymbols);
|
|
3867
|
+
}
|
|
3868
|
+
var _getAllKeys = getAllKeys$1;
|
|
3869
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
3870
|
+
function getAllKeysIn$2(object) {
|
|
3871
|
+
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
3872
|
+
}
|
|
3873
|
+
var _getAllKeysIn = getAllKeysIn$2;
|
|
3874
|
+
var getNative$3 = _getNative, root$4 = _root;
|
|
3875
|
+
var DataView$1 = getNative$3(root$4, "DataView");
|
|
3876
|
+
var _DataView = DataView$1;
|
|
3877
|
+
var getNative$2 = _getNative, root$3 = _root;
|
|
3878
|
+
var Promise$2 = getNative$2(root$3, "Promise");
|
|
3879
|
+
var _Promise = Promise$2;
|
|
3880
|
+
var getNative$1 = _getNative, root$2 = _root;
|
|
3881
|
+
var Set$2 = getNative$1(root$2, "Set");
|
|
3882
|
+
var _Set = Set$2;
|
|
3883
|
+
var getNative = _getNative, root$1 = _root;
|
|
3884
|
+
var WeakMap$2 = getNative(root$1, "WeakMap");
|
|
3885
|
+
var _WeakMap = WeakMap$2;
|
|
3886
|
+
var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag$2 = _baseGetTag, toSource = _toSource;
|
|
3887
|
+
var mapTag$3 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
3888
|
+
var dataViewTag$2 = "[object DataView]";
|
|
3889
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
|
|
3890
|
+
var getTag$3 = baseGetTag$2;
|
|
3891
|
+
if (DataView && getTag$3(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map$1 && getTag$3(new Map$1()) != mapTag$3 || Promise$1 && getTag$3(Promise$1.resolve()) != promiseTag || Set$1 && getTag$3(new Set$1()) != setTag$3 || WeakMap$1 && getTag$3(new WeakMap$1()) != weakMapTag$1) {
|
|
3892
|
+
getTag$3 = function(value) {
|
|
3893
|
+
var result = baseGetTag$2(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3894
|
+
if (ctorString) {
|
|
3895
|
+
switch (ctorString) {
|
|
3896
|
+
case dataViewCtorString:
|
|
3897
|
+
return dataViewTag$2;
|
|
3898
|
+
case mapCtorString:
|
|
3899
|
+
return mapTag$3;
|
|
3900
|
+
case promiseCtorString:
|
|
3901
|
+
return promiseTag;
|
|
3902
|
+
case setCtorString:
|
|
3903
|
+
return setTag$3;
|
|
3904
|
+
case weakMapCtorString:
|
|
3905
|
+
return weakMapTag$1;
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
return result;
|
|
3909
|
+
};
|
|
3910
|
+
}
|
|
3911
|
+
var _getTag = getTag$3;
|
|
3912
|
+
var objectProto$1 = Object.prototype;
|
|
3913
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
3914
|
+
function initCloneArray$1(array) {
|
|
3915
|
+
var length = array.length, result = new array.constructor(length);
|
|
3916
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$1.call(array, "index")) {
|
|
3917
|
+
result.index = array.index;
|
|
3918
|
+
result.input = array.input;
|
|
3919
|
+
}
|
|
3920
|
+
return result;
|
|
3921
|
+
}
|
|
3922
|
+
var _initCloneArray = initCloneArray$1;
|
|
3923
|
+
var root = _root;
|
|
3924
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
3925
|
+
var _Uint8Array = Uint8Array$1;
|
|
3926
|
+
var Uint8Array = _Uint8Array;
|
|
3927
|
+
function cloneArrayBuffer$3(arrayBuffer) {
|
|
3928
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
3929
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
3930
|
+
return result;
|
|
3931
|
+
}
|
|
3932
|
+
var _cloneArrayBuffer = cloneArrayBuffer$3;
|
|
3933
|
+
var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
|
3934
|
+
function cloneDataView$1(dataView, isDeep) {
|
|
3935
|
+
var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
|
3936
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
3937
|
+
}
|
|
3938
|
+
var _cloneDataView = cloneDataView$1;
|
|
3939
|
+
var reFlags = /\w*$/;
|
|
3940
|
+
function cloneRegExp$1(regexp) {
|
|
3941
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
3942
|
+
result.lastIndex = regexp.lastIndex;
|
|
3943
|
+
return result;
|
|
3944
|
+
}
|
|
3945
|
+
var _cloneRegExp = cloneRegExp$1;
|
|
3946
|
+
var Symbol$3 = _Symbol;
|
|
3947
|
+
var symbolProto$1 = Symbol$3 ? Symbol$3.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
3948
|
+
function cloneSymbol$1(symbol) {
|
|
3949
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
3950
|
+
}
|
|
3951
|
+
var _cloneSymbol = cloneSymbol$1;
|
|
3952
|
+
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
3953
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
3954
|
+
var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
|
3955
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
3956
|
+
}
|
|
3957
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
3958
|
+
var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
|
3959
|
+
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$2 = "[object Symbol]";
|
|
3960
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
3961
|
+
function initCloneByTag$1(object, tag, isDeep) {
|
|
3962
|
+
var Ctor = object.constructor;
|
|
3963
|
+
switch (tag) {
|
|
3964
|
+
case arrayBufferTag$1:
|
|
3965
|
+
return cloneArrayBuffer(object);
|
|
3966
|
+
case boolTag$1:
|
|
3967
|
+
case dateTag$1:
|
|
3968
|
+
return new Ctor(+object);
|
|
3969
|
+
case dataViewTag$1:
|
|
3970
|
+
return cloneDataView(object, isDeep);
|
|
3971
|
+
case float32Tag$1:
|
|
3972
|
+
case float64Tag$1:
|
|
3973
|
+
case int8Tag$1:
|
|
3974
|
+
case int16Tag$1:
|
|
3975
|
+
case int32Tag$1:
|
|
3976
|
+
case uint8Tag$1:
|
|
3977
|
+
case uint8ClampedTag$1:
|
|
3978
|
+
case uint16Tag$1:
|
|
3979
|
+
case uint32Tag$1:
|
|
3980
|
+
return cloneTypedArray(object, isDeep);
|
|
3981
|
+
case mapTag$2:
|
|
3982
|
+
return new Ctor();
|
|
3983
|
+
case numberTag$1:
|
|
3984
|
+
case stringTag$1:
|
|
3985
|
+
return new Ctor(object);
|
|
3986
|
+
case regexpTag$1:
|
|
3987
|
+
return cloneRegExp(object);
|
|
3988
|
+
case setTag$2:
|
|
3989
|
+
return new Ctor();
|
|
3990
|
+
case symbolTag$2:
|
|
3991
|
+
return cloneSymbol(object);
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
var _initCloneByTag = initCloneByTag$1;
|
|
3995
|
+
var isObject$1 = isObject_1;
|
|
3996
|
+
var objectCreate = Object.create;
|
|
3997
|
+
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
3998
|
+
function object() {
|
|
3999
|
+
}
|
|
4000
|
+
return function(proto) {
|
|
4001
|
+
if (!isObject$1(proto)) {
|
|
4002
|
+
return {};
|
|
4003
|
+
}
|
|
4004
|
+
if (objectCreate) {
|
|
4005
|
+
return objectCreate(proto);
|
|
4006
|
+
}
|
|
4007
|
+
object.prototype = proto;
|
|
4008
|
+
var result = new object();
|
|
4009
|
+
object.prototype = void 0;
|
|
4010
|
+
return result;
|
|
4011
|
+
};
|
|
4012
|
+
}();
|
|
4013
|
+
var _baseCreate = baseCreate$1;
|
|
4014
|
+
var baseCreate = _baseCreate, getPrototype$1 = _getPrototype, isPrototype = _isPrototype;
|
|
4015
|
+
function initCloneObject$1(object) {
|
|
4016
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype$1(object)) : {};
|
|
4017
|
+
}
|
|
4018
|
+
var _initCloneObject = initCloneObject$1;
|
|
4019
|
+
var getTag$2 = _getTag, isObjectLike$3 = isObjectLike_1;
|
|
4020
|
+
var mapTag$1 = "[object Map]";
|
|
4021
|
+
function baseIsMap$1(value) {
|
|
4022
|
+
return isObjectLike$3(value) && getTag$2(value) == mapTag$1;
|
|
4023
|
+
}
|
|
4024
|
+
var _baseIsMap = baseIsMap$1;
|
|
4025
|
+
var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
|
|
4026
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
4027
|
+
var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
|
4028
|
+
var isMap_1 = isMap$1;
|
|
4029
|
+
var getTag$1 = _getTag, isObjectLike$2 = isObjectLike_1;
|
|
4030
|
+
var setTag$1 = "[object Set]";
|
|
4031
|
+
function baseIsSet$1(value) {
|
|
4032
|
+
return isObjectLike$2(value) && getTag$1(value) == setTag$1;
|
|
4033
|
+
}
|
|
4034
|
+
var _baseIsSet = baseIsSet$1;
|
|
4035
|
+
var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
4036
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
4037
|
+
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
4038
|
+
var isSet_1 = isSet$1;
|
|
4039
|
+
var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBufferExports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn$1 = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$4 = isArray_1, isBuffer = isBufferExports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
|
4040
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
4041
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
4042
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
4043
|
+
var cloneableTags = {};
|
|
4044
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag$1] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
4045
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
4046
|
+
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
4047
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
4048
|
+
if (customizer) {
|
|
4049
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
4050
|
+
}
|
|
4051
|
+
if (result !== void 0) {
|
|
4052
|
+
return result;
|
|
4053
|
+
}
|
|
4054
|
+
if (!isObject(value)) {
|
|
4055
|
+
return value;
|
|
4056
|
+
}
|
|
4057
|
+
var isArr = isArray$4(value);
|
|
4058
|
+
if (isArr) {
|
|
4059
|
+
result = initCloneArray(value);
|
|
4060
|
+
if (!isDeep) {
|
|
4061
|
+
return copyArray(value, result);
|
|
4062
|
+
}
|
|
4063
|
+
} else {
|
|
4064
|
+
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
4065
|
+
if (isBuffer(value)) {
|
|
4066
|
+
return cloneBuffer(value, isDeep);
|
|
4067
|
+
}
|
|
4068
|
+
if (tag == objectTag$1 || tag == argsTag || isFunc && !object) {
|
|
4069
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
4070
|
+
if (!isDeep) {
|
|
4071
|
+
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
4072
|
+
}
|
|
4073
|
+
} else {
|
|
4074
|
+
if (!cloneableTags[tag]) {
|
|
4075
|
+
return object ? value : {};
|
|
4076
|
+
}
|
|
4077
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
stack || (stack = new Stack());
|
|
4081
|
+
var stacked = stack.get(value);
|
|
4082
|
+
if (stacked) {
|
|
4083
|
+
return stacked;
|
|
4084
|
+
}
|
|
4085
|
+
stack.set(value, result);
|
|
4086
|
+
if (isSet(value)) {
|
|
4087
|
+
value.forEach(function(subValue) {
|
|
4088
|
+
result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
4089
|
+
});
|
|
4090
|
+
} else if (isMap(value)) {
|
|
4091
|
+
value.forEach(function(subValue, key2) {
|
|
4092
|
+
result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
4093
|
+
});
|
|
4094
|
+
}
|
|
4095
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn$1 : getAllKeys : isFlat ? keysIn : keys;
|
|
4096
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
4097
|
+
arrayEach(props || value, function(subValue, key2) {
|
|
4098
|
+
if (props) {
|
|
4099
|
+
key2 = subValue;
|
|
4100
|
+
subValue = value[key2];
|
|
4101
|
+
}
|
|
4102
|
+
assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
4103
|
+
});
|
|
4104
|
+
return result;
|
|
4105
|
+
}
|
|
4106
|
+
var _baseClone = baseClone$1;
|
|
4107
|
+
var baseGetTag$1 = _baseGetTag, isObjectLike$1 = isObjectLike_1;
|
|
4108
|
+
var symbolTag = "[object Symbol]";
|
|
4109
|
+
function isSymbol$3(value) {
|
|
4110
|
+
return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag$1(value) == symbolTag;
|
|
4111
|
+
}
|
|
4112
|
+
var isSymbol_1 = isSymbol$3;
|
|
4113
|
+
var isArray$3 = isArray_1, isSymbol$2 = isSymbol_1;
|
|
4114
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
4115
|
+
function isKey$1(value, object) {
|
|
4116
|
+
if (isArray$3(value)) {
|
|
4117
|
+
return false;
|
|
4118
|
+
}
|
|
4119
|
+
var type = typeof value;
|
|
4120
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$2(value)) {
|
|
4121
|
+
return true;
|
|
4122
|
+
}
|
|
4123
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
4124
|
+
}
|
|
4125
|
+
var _isKey = isKey$1;
|
|
4126
|
+
var MapCache = _MapCache;
|
|
4127
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
4128
|
+
function memoize$1(func, resolver) {
|
|
4129
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
4130
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
4131
|
+
}
|
|
4132
|
+
var memoized = function() {
|
|
4133
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
4134
|
+
if (cache.has(key)) {
|
|
4135
|
+
return cache.get(key);
|
|
4136
|
+
}
|
|
4137
|
+
var result = func.apply(this, args);
|
|
4138
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
4139
|
+
return result;
|
|
4140
|
+
};
|
|
4141
|
+
memoized.cache = new (memoize$1.Cache || MapCache)();
|
|
4142
|
+
return memoized;
|
|
4143
|
+
}
|
|
4144
|
+
memoize$1.Cache = MapCache;
|
|
4145
|
+
var memoize_1 = memoize$1;
|
|
4146
|
+
var memoize = memoize_1;
|
|
4147
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
4148
|
+
function memoizeCapped$1(func) {
|
|
4149
|
+
var result = memoize(func, function(key) {
|
|
4150
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
4151
|
+
cache.clear();
|
|
4152
|
+
}
|
|
4153
|
+
return key;
|
|
4154
|
+
});
|
|
4155
|
+
var cache = result.cache;
|
|
4156
|
+
return result;
|
|
4157
|
+
}
|
|
4158
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
4159
|
+
var memoizeCapped = _memoizeCapped;
|
|
4160
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
4161
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
4162
|
+
var stringToPath$1 = memoizeCapped(function(string) {
|
|
4163
|
+
var result = [];
|
|
4164
|
+
if (string.charCodeAt(0) === 46) {
|
|
4165
|
+
result.push("");
|
|
4166
|
+
}
|
|
4167
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
4168
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
4169
|
+
});
|
|
4170
|
+
return result;
|
|
4171
|
+
});
|
|
4172
|
+
var _stringToPath = stringToPath$1;
|
|
4173
|
+
var Symbol$2 = _Symbol, arrayMap$1 = _arrayMap, isArray$2 = isArray_1, isSymbol$1 = isSymbol_1;
|
|
4174
|
+
var INFINITY$1 = 1 / 0;
|
|
4175
|
+
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
4176
|
+
function baseToString$1(value) {
|
|
4177
|
+
if (typeof value == "string") {
|
|
4178
|
+
return value;
|
|
4179
|
+
}
|
|
4180
|
+
if (isArray$2(value)) {
|
|
4181
|
+
return arrayMap$1(value, baseToString$1) + "";
|
|
4182
|
+
}
|
|
4183
|
+
if (isSymbol$1(value)) {
|
|
4184
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
4185
|
+
}
|
|
4186
|
+
var result = value + "";
|
|
4187
|
+
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
4188
|
+
}
|
|
4189
|
+
var _baseToString = baseToString$1;
|
|
4190
|
+
var baseToString = _baseToString;
|
|
4191
|
+
function toString$1(value) {
|
|
4192
|
+
return value == null ? "" : baseToString(value);
|
|
4193
|
+
}
|
|
4194
|
+
var toString_1 = toString$1;
|
|
4195
|
+
var isArray$1 = isArray_1, isKey = _isKey, stringToPath = _stringToPath, toString = toString_1;
|
|
4196
|
+
function castPath$3(value, object) {
|
|
4197
|
+
if (isArray$1(value)) {
|
|
4198
|
+
return value;
|
|
4199
|
+
}
|
|
4200
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
4201
|
+
}
|
|
4202
|
+
var _castPath = castPath$3;
|
|
4203
|
+
function last$1(array) {
|
|
4204
|
+
var length = array == null ? 0 : array.length;
|
|
4205
|
+
return length ? array[length - 1] : void 0;
|
|
4206
|
+
}
|
|
4207
|
+
var last_1 = last$1;
|
|
4208
|
+
var isSymbol = isSymbol_1;
|
|
4209
|
+
var INFINITY = 1 / 0;
|
|
4210
|
+
function toKey$2(value) {
|
|
4211
|
+
if (typeof value == "string" || isSymbol(value)) {
|
|
4212
|
+
return value;
|
|
4213
|
+
}
|
|
4214
|
+
var result = value + "";
|
|
4215
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
4216
|
+
}
|
|
4217
|
+
var _toKey = toKey$2;
|
|
4218
|
+
var castPath$2 = _castPath, toKey$1 = _toKey;
|
|
4219
|
+
function baseGet$1(object, path) {
|
|
4220
|
+
path = castPath$2(path, object);
|
|
4221
|
+
var index = 0, length = path.length;
|
|
4222
|
+
while (object != null && index < length) {
|
|
4223
|
+
object = object[toKey$1(path[index++])];
|
|
4224
|
+
}
|
|
4225
|
+
return index && index == length ? object : void 0;
|
|
4226
|
+
}
|
|
4227
|
+
var _baseGet = baseGet$1;
|
|
4228
|
+
function baseSlice$1(array, start, end) {
|
|
4229
|
+
var index = -1, length = array.length;
|
|
4230
|
+
if (start < 0) {
|
|
4231
|
+
start = -start > length ? 0 : length + start;
|
|
4232
|
+
}
|
|
4233
|
+
end = end > length ? length : end;
|
|
4234
|
+
if (end < 0) {
|
|
4235
|
+
end += length;
|
|
4236
|
+
}
|
|
4237
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
4238
|
+
start >>>= 0;
|
|
4239
|
+
var result = Array(length);
|
|
4240
|
+
while (++index < length) {
|
|
4241
|
+
result[index] = array[index + start];
|
|
4242
|
+
}
|
|
4243
|
+
return result;
|
|
4244
|
+
}
|
|
4245
|
+
var _baseSlice = baseSlice$1;
|
|
4246
|
+
var baseGet = _baseGet, baseSlice = _baseSlice;
|
|
4247
|
+
function parent$1(object, path) {
|
|
4248
|
+
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
4249
|
+
}
|
|
4250
|
+
var _parent = parent$1;
|
|
4251
|
+
var castPath$1 = _castPath, last = last_1, parent = _parent, toKey = _toKey;
|
|
4252
|
+
function baseUnset$1(object, path) {
|
|
4253
|
+
path = castPath$1(path, object);
|
|
4254
|
+
object = parent(object, path);
|
|
4255
|
+
return object == null || delete object[toKey(last(path))];
|
|
4256
|
+
}
|
|
4257
|
+
var _baseUnset = baseUnset$1;
|
|
4258
|
+
var baseGetTag = _baseGetTag, getPrototype = _getPrototype, isObjectLike = isObjectLike_1;
|
|
4259
|
+
var objectTag = "[object Object]";
|
|
4260
|
+
var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
4261
|
+
var funcToString = funcProto.toString;
|
|
4262
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4263
|
+
var objectCtorString = funcToString.call(Object);
|
|
4264
|
+
function isPlainObject$1(value) {
|
|
4265
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
4266
|
+
return false;
|
|
4267
|
+
}
|
|
4268
|
+
var proto = getPrototype(value);
|
|
4269
|
+
if (proto === null) {
|
|
4270
|
+
return true;
|
|
4271
|
+
}
|
|
4272
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
4273
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
4274
|
+
}
|
|
4275
|
+
var isPlainObject_1 = isPlainObject$1;
|
|
4276
|
+
var isPlainObject = isPlainObject_1;
|
|
4277
|
+
function customOmitClone$1(value) {
|
|
4278
|
+
return isPlainObject(value) ? void 0 : value;
|
|
4279
|
+
}
|
|
4280
|
+
var _customOmitClone = customOmitClone$1;
|
|
4281
|
+
var Symbol$1 = _Symbol, isArguments = isArguments_1, isArray = isArray_1;
|
|
4282
|
+
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
|
|
4283
|
+
function isFlattenable$1(value) {
|
|
4284
|
+
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
4285
|
+
}
|
|
4286
|
+
var _isFlattenable = isFlattenable$1;
|
|
4287
|
+
var arrayPush = _arrayPush, isFlattenable = _isFlattenable;
|
|
4288
|
+
function baseFlatten$1(array, depth, predicate, isStrict, result) {
|
|
4289
|
+
var index = -1, length = array.length;
|
|
4290
|
+
predicate || (predicate = isFlattenable);
|
|
4291
|
+
result || (result = []);
|
|
4292
|
+
while (++index < length) {
|
|
4293
|
+
var value = array[index];
|
|
4294
|
+
if (depth > 0 && predicate(value)) {
|
|
4295
|
+
if (depth > 1) {
|
|
4296
|
+
baseFlatten$1(value, depth - 1, predicate, isStrict, result);
|
|
4297
|
+
} else {
|
|
4298
|
+
arrayPush(result, value);
|
|
4299
|
+
}
|
|
4300
|
+
} else if (!isStrict) {
|
|
4301
|
+
result[result.length] = value;
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
return result;
|
|
4305
|
+
}
|
|
4306
|
+
var _baseFlatten = baseFlatten$1;
|
|
4307
|
+
var baseFlatten = _baseFlatten;
|
|
4308
|
+
function flatten$1(array) {
|
|
4309
|
+
var length = array == null ? 0 : array.length;
|
|
4310
|
+
return length ? baseFlatten(array, 1) : [];
|
|
4311
|
+
}
|
|
4312
|
+
var flatten_1 = flatten$1;
|
|
4313
|
+
function apply$1(func, thisArg, args) {
|
|
4314
|
+
switch (args.length) {
|
|
4315
|
+
case 0:
|
|
4316
|
+
return func.call(thisArg);
|
|
4317
|
+
case 1:
|
|
4318
|
+
return func.call(thisArg, args[0]);
|
|
4319
|
+
case 2:
|
|
4320
|
+
return func.call(thisArg, args[0], args[1]);
|
|
4321
|
+
case 3:
|
|
4322
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
4323
|
+
}
|
|
4324
|
+
return func.apply(thisArg, args);
|
|
4325
|
+
}
|
|
4326
|
+
var _apply = apply$1;
|
|
4327
|
+
var apply = _apply;
|
|
4328
|
+
var nativeMax = Math.max;
|
|
4329
|
+
function overRest$1(func, start, transform) {
|
|
4330
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
4331
|
+
return function() {
|
|
4332
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
4333
|
+
while (++index < length) {
|
|
4334
|
+
array[index] = args[start + index];
|
|
4335
|
+
}
|
|
4336
|
+
index = -1;
|
|
4337
|
+
var otherArgs = Array(start + 1);
|
|
4338
|
+
while (++index < start) {
|
|
4339
|
+
otherArgs[index] = args[index];
|
|
4340
|
+
}
|
|
4341
|
+
otherArgs[start] = transform(array);
|
|
4342
|
+
return apply(func, this, otherArgs);
|
|
4343
|
+
};
|
|
4344
|
+
}
|
|
4345
|
+
var _overRest = overRest$1;
|
|
4346
|
+
function constant$1(value) {
|
|
4347
|
+
return function() {
|
|
4348
|
+
return value;
|
|
4349
|
+
};
|
|
4350
|
+
}
|
|
4351
|
+
var constant_1 = constant$1;
|
|
4352
|
+
function identity$1(value) {
|
|
4353
|
+
return value;
|
|
4354
|
+
}
|
|
4355
|
+
var identity_1 = identity$1;
|
|
4356
|
+
var constant = constant_1, defineProperty = _defineProperty, identity = identity_1;
|
|
4357
|
+
var baseSetToString$1 = !defineProperty ? identity : function(func, string) {
|
|
4358
|
+
return defineProperty(func, "toString", {
|
|
4359
|
+
"configurable": true,
|
|
4360
|
+
"enumerable": false,
|
|
4361
|
+
"value": constant(string),
|
|
4362
|
+
"writable": true
|
|
4363
|
+
});
|
|
4364
|
+
};
|
|
4365
|
+
var _baseSetToString = baseSetToString$1;
|
|
4366
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
4367
|
+
var nativeNow = Date.now;
|
|
4368
|
+
function shortOut$1(func) {
|
|
4369
|
+
var count = 0, lastCalled = 0;
|
|
4370
|
+
return function() {
|
|
4371
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
4372
|
+
lastCalled = stamp;
|
|
4373
|
+
if (remaining > 0) {
|
|
4374
|
+
if (++count >= HOT_COUNT) {
|
|
4375
|
+
return arguments[0];
|
|
4376
|
+
}
|
|
4377
|
+
} else {
|
|
4378
|
+
count = 0;
|
|
4379
|
+
}
|
|
4380
|
+
return func.apply(void 0, arguments);
|
|
4381
|
+
};
|
|
4382
|
+
}
|
|
4383
|
+
var _shortOut = shortOut$1;
|
|
4384
|
+
var baseSetToString = _baseSetToString, shortOut = _shortOut;
|
|
4385
|
+
var setToString$1 = shortOut(baseSetToString);
|
|
4386
|
+
var _setToString = setToString$1;
|
|
4387
|
+
var flatten = flatten_1, overRest = _overRest, setToString = _setToString;
|
|
4388
|
+
function flatRest$1(func) {
|
|
4389
|
+
return setToString(overRest(func, void 0, flatten), func + "");
|
|
4390
|
+
}
|
|
4391
|
+
var _flatRest = flatRest$1;
|
|
4392
|
+
var arrayMap = _arrayMap, baseClone = _baseClone, baseUnset = _baseUnset, castPath = _castPath, copyObject = _copyObject, customOmitClone = _customOmitClone, flatRest = _flatRest, getAllKeysIn = _getAllKeysIn;
|
|
4393
|
+
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
|
|
4394
|
+
var omit = flatRest(function(object, paths) {
|
|
4395
|
+
var result = {};
|
|
4396
|
+
if (object == null) {
|
|
4397
|
+
return result;
|
|
4398
|
+
}
|
|
4399
|
+
var isDeep = false;
|
|
4400
|
+
paths = arrayMap(paths, function(path) {
|
|
4401
|
+
path = castPath(path, object);
|
|
4402
|
+
isDeep || (isDeep = path.length > 1);
|
|
4403
|
+
return path;
|
|
4404
|
+
});
|
|
4405
|
+
copyObject(object, getAllKeysIn(object), result);
|
|
4406
|
+
if (isDeep) {
|
|
4407
|
+
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
|
4408
|
+
}
|
|
4409
|
+
var length = paths.length;
|
|
4410
|
+
while (length--) {
|
|
4411
|
+
baseUnset(result, paths[length]);
|
|
4412
|
+
}
|
|
4413
|
+
return result;
|
|
4414
|
+
});
|
|
4415
|
+
var omit_1 = omit;
|
|
4416
|
+
const omit$1 = /* @__PURE__ */ getDefaultExportFromCjs(omit_1);
|
|
3127
4417
|
function useAdheseSlot(elementRef, options) {
|
|
3128
4418
|
const [slot, setSlot] = reactExports.useState(null);
|
|
3129
4419
|
const adhese = useAdhese();
|
|
@@ -3141,7 +4431,7 @@ function useAdheseSlot(elementRef, options) {
|
|
|
3141
4431
|
return () => {
|
|
3142
4432
|
intermediate == null ? void 0 : intermediate.dispose();
|
|
3143
4433
|
};
|
|
3144
|
-
}, [adhese, omit(options, Object.entries(options).filter(([, value]) => typeof value === "function").map(([key]) => key)), elementRef.current]);
|
|
4434
|
+
}, [adhese, omit$1(options, Object.entries(options).filter(([, value]) => typeof value === "function").map(([key]) => key)), elementRef.current]);
|
|
3145
4435
|
return slot;
|
|
3146
4436
|
}
|
|
3147
4437
|
export {
|