@true-engineering/true-react-common-ui-kit 1.8.1 → 1.9.0
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/helpers/utils.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +793 -54
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +765 -25
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/FiltersPane/FilterSelect/locales.ts +1 -1
- package/src/components/FiltersPane/locales.ts +1 -1
- package/src/components/MultiSelectList/locales.ts +1 -1
- package/src/components/Select/Select.tsx +3 -3
- package/src/helpers/utils.ts +4 -2
- package/src/hooks/use-theme.ts +1 -1
- package/src/hooks/use-tweak-styles.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-transition-group"), require("clsx"), require("hex-to-rgba"), require("react-jss"), require("
|
|
3
|
-
})(this, function(exports2, React, reactTransitionGroup, clsx, hexToRgba, reactJss,
|
|
1
|
+
(function(global2, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-transition-group"), require("clsx"), require("hex-to-rgba"), require("react-jss"), require("react-input-mask"), require("react-datepicker"), require("date-fns"), require("react-overlays"), require("scroll-into-view-if-needed"), require("ts-debounce"), require("country-flag-icons"), require("react-remove-scroll")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-transition-group", "clsx", "hex-to-rgba", "react-jss", "react-input-mask", "react-datepicker", "date-fns", "react-overlays", "scroll-into-view-if-needed", "ts-debounce", "country-flag-icons", "react-remove-scroll"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.TrueReactKitUiKit = {}, global2.React, global2.reactTransitionGroup, global2.clsx, global2.hexToRgba, global2.reactJss, global2.InputMask, global2.ReactDatepicker, global2.dateFns, global2.reactOverlays, global2.scrollIntoViewIfNeeded, global2.tsDebounce, global2.countryFlagIcons, global2.reactRemoveScroll));
|
|
3
|
+
})(this, function(exports2, React, reactTransitionGroup, clsx, hexToRgba, reactJss, InputMask, ReactDatepicker, dateFns, reactOverlays, scrollIntoViewIfNeeded, tsDebounce, countryFlagIcons, reactRemoveScroll) {
|
|
4
4
|
"use strict";
|
|
5
5
|
var colors = {
|
|
6
6
|
FONT_MAIN: "#222a37",
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
}
|
|
618
618
|
return "";
|
|
619
619
|
}
|
|
620
|
-
var
|
|
620
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
621
621
|
var loggedTypeFailures = {};
|
|
622
622
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
623
623
|
function setCurrentlyValidatingElement(element) {
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
}
|
|
634
634
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
635
635
|
{
|
|
636
|
-
var has = Function.call.bind(
|
|
636
|
+
var has = Function.call.bind(hasOwnProperty2);
|
|
637
637
|
for (var typeSpecName in typeSpecs) {
|
|
638
638
|
if (has(typeSpecs, typeSpecName)) {
|
|
639
639
|
var error$1 = void 0;
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
var isArrayImpl = Array.isArray;
|
|
666
|
-
function
|
|
666
|
+
function isArray2(a) {
|
|
667
667
|
return isArrayImpl(a);
|
|
668
668
|
}
|
|
669
669
|
function typeName(value) {
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
}
|
|
710
710
|
function hasValidRef(config) {
|
|
711
711
|
{
|
|
712
|
-
if (
|
|
712
|
+
if (hasOwnProperty2.call(config, "ref")) {
|
|
713
713
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
714
714
|
if (getter && getter.isReactWarning) {
|
|
715
715
|
return false;
|
|
@@ -720,7 +720,7 @@
|
|
|
720
720
|
}
|
|
721
721
|
function hasValidKey(config) {
|
|
722
722
|
{
|
|
723
|
-
if (
|
|
723
|
+
if (hasOwnProperty2.call(config, "key")) {
|
|
724
724
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
725
725
|
if (getter && getter.isReactWarning) {
|
|
726
726
|
return false;
|
|
@@ -832,7 +832,7 @@
|
|
|
832
832
|
warnIfStringRefCannotBeAutoConverted(config, self2);
|
|
833
833
|
}
|
|
834
834
|
for (propName in config) {
|
|
835
|
-
if (
|
|
835
|
+
if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
836
836
|
props[propName] = config[propName];
|
|
837
837
|
}
|
|
838
838
|
}
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
if (typeof node !== "object") {
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
|
-
if (
|
|
940
|
+
if (isArray2(node)) {
|
|
941
941
|
for (var i = 0; i < node.length; i++) {
|
|
942
942
|
var child = node[i];
|
|
943
943
|
if (isValidElement(child)) {
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
var typeString;
|
|
1030
1030
|
if (type === null) {
|
|
1031
1031
|
typeString = "null";
|
|
1032
|
-
} else if (
|
|
1032
|
+
} else if (isArray2(type)) {
|
|
1033
1033
|
typeString = "array";
|
|
1034
1034
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1035
1035
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
var children = props.children;
|
|
1048
1048
|
if (children !== void 0) {
|
|
1049
1049
|
if (isStaticChildren) {
|
|
1050
|
-
if (
|
|
1050
|
+
if (isArray2(children)) {
|
|
1051
1051
|
for (var i = 0; i < children.length; i++) {
|
|
1052
1052
|
validateChildKeys(children[i], type);
|
|
1053
1053
|
}
|
|
@@ -1195,7 +1195,7 @@
|
|
|
1195
1195
|
};
|
|
1196
1196
|
var _element_parentNode;
|
|
1197
1197
|
var getParentNode$1 = function(element) {
|
|
1198
|
-
return element.nodeName === "HTML" ? element : (_element_parentNode = element.parentNode) !== null && _element_parentNode !== void 0 ? _element_parentNode : element.host;
|
|
1198
|
+
return element.nodeName === "HTML" || element === document ? element : (_element_parentNode = element.parentNode) !== null && _element_parentNode !== void 0 ? _element_parentNode : element.host;
|
|
1199
1199
|
};
|
|
1200
1200
|
var getStyleComputedProperty = function(element) {
|
|
1201
1201
|
return element.nodeType !== 1 ? {} : getComputedStyle(element, null);
|
|
@@ -1530,6 +1530,746 @@
|
|
|
1530
1530
|
ignoreClassName
|
|
1531
1531
|
]);
|
|
1532
1532
|
}
|
|
1533
|
+
function listCacheClear() {
|
|
1534
|
+
this.__data__ = [];
|
|
1535
|
+
this.size = 0;
|
|
1536
|
+
}
|
|
1537
|
+
function eq(value, other) {
|
|
1538
|
+
return value === other || value !== value && other !== other;
|
|
1539
|
+
}
|
|
1540
|
+
function assocIndexOf(array, key) {
|
|
1541
|
+
var length = array.length;
|
|
1542
|
+
while (length--) {
|
|
1543
|
+
if (eq(array[length][0], key)) {
|
|
1544
|
+
return length;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
return -1;
|
|
1548
|
+
}
|
|
1549
|
+
var arrayProto = Array.prototype;
|
|
1550
|
+
var splice = arrayProto.splice;
|
|
1551
|
+
function listCacheDelete(key) {
|
|
1552
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1553
|
+
if (index < 0) {
|
|
1554
|
+
return false;
|
|
1555
|
+
}
|
|
1556
|
+
var lastIndex = data.length - 1;
|
|
1557
|
+
if (index == lastIndex) {
|
|
1558
|
+
data.pop();
|
|
1559
|
+
} else {
|
|
1560
|
+
splice.call(data, index, 1);
|
|
1561
|
+
}
|
|
1562
|
+
--this.size;
|
|
1563
|
+
return true;
|
|
1564
|
+
}
|
|
1565
|
+
function listCacheGet(key) {
|
|
1566
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1567
|
+
return index < 0 ? void 0 : data[index][1];
|
|
1568
|
+
}
|
|
1569
|
+
function listCacheHas(key) {
|
|
1570
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
1571
|
+
}
|
|
1572
|
+
function listCacheSet(key, value) {
|
|
1573
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1574
|
+
if (index < 0) {
|
|
1575
|
+
++this.size;
|
|
1576
|
+
data.push([key, value]);
|
|
1577
|
+
} else {
|
|
1578
|
+
data[index][1] = value;
|
|
1579
|
+
}
|
|
1580
|
+
return this;
|
|
1581
|
+
}
|
|
1582
|
+
function ListCache(entries) {
|
|
1583
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1584
|
+
this.clear();
|
|
1585
|
+
while (++index < length) {
|
|
1586
|
+
var entry = entries[index];
|
|
1587
|
+
this.set(entry[0], entry[1]);
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
ListCache.prototype.clear = listCacheClear;
|
|
1591
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
1592
|
+
ListCache.prototype.get = listCacheGet;
|
|
1593
|
+
ListCache.prototype.has = listCacheHas;
|
|
1594
|
+
ListCache.prototype.set = listCacheSet;
|
|
1595
|
+
function stackClear() {
|
|
1596
|
+
this.__data__ = new ListCache();
|
|
1597
|
+
this.size = 0;
|
|
1598
|
+
}
|
|
1599
|
+
function stackDelete(key) {
|
|
1600
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1601
|
+
this.size = data.size;
|
|
1602
|
+
return result;
|
|
1603
|
+
}
|
|
1604
|
+
function stackGet(key) {
|
|
1605
|
+
return this.__data__.get(key);
|
|
1606
|
+
}
|
|
1607
|
+
function stackHas(key) {
|
|
1608
|
+
return this.__data__.has(key);
|
|
1609
|
+
}
|
|
1610
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
1611
|
+
const freeGlobal$1 = freeGlobal;
|
|
1612
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
1613
|
+
var root = freeGlobal$1 || freeSelf || Function("return this")();
|
|
1614
|
+
const root$1 = root;
|
|
1615
|
+
var Symbol$1 = root$1.Symbol;
|
|
1616
|
+
const Symbol$2 = Symbol$1;
|
|
1617
|
+
var objectProto$a = Object.prototype;
|
|
1618
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
1619
|
+
var nativeObjectToString$1 = objectProto$a.toString;
|
|
1620
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
1621
|
+
function getRawTag(value) {
|
|
1622
|
+
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
1623
|
+
try {
|
|
1624
|
+
value[symToStringTag$1] = void 0;
|
|
1625
|
+
var unmasked = true;
|
|
1626
|
+
} catch (e) {
|
|
1627
|
+
}
|
|
1628
|
+
var result = nativeObjectToString$1.call(value);
|
|
1629
|
+
if (unmasked) {
|
|
1630
|
+
if (isOwn) {
|
|
1631
|
+
value[symToStringTag$1] = tag;
|
|
1632
|
+
} else {
|
|
1633
|
+
delete value[symToStringTag$1];
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
return result;
|
|
1637
|
+
}
|
|
1638
|
+
var objectProto$9 = Object.prototype;
|
|
1639
|
+
var nativeObjectToString = objectProto$9.toString;
|
|
1640
|
+
function objectToString(value) {
|
|
1641
|
+
return nativeObjectToString.call(value);
|
|
1642
|
+
}
|
|
1643
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
1644
|
+
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
1645
|
+
function baseGetTag(value) {
|
|
1646
|
+
if (value == null) {
|
|
1647
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
1648
|
+
}
|
|
1649
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
1650
|
+
}
|
|
1651
|
+
function isObject(value) {
|
|
1652
|
+
var type = typeof value;
|
|
1653
|
+
return value != null && (type == "object" || type == "function");
|
|
1654
|
+
}
|
|
1655
|
+
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
1656
|
+
function isFunction(value) {
|
|
1657
|
+
if (!isObject(value)) {
|
|
1658
|
+
return false;
|
|
1659
|
+
}
|
|
1660
|
+
var tag = baseGetTag(value);
|
|
1661
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
1662
|
+
}
|
|
1663
|
+
var coreJsData = root$1["__core-js_shared__"];
|
|
1664
|
+
const coreJsData$1 = coreJsData;
|
|
1665
|
+
var maskSrcKey = function() {
|
|
1666
|
+
var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
|
|
1667
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
1668
|
+
}();
|
|
1669
|
+
function isMasked(func) {
|
|
1670
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
1671
|
+
}
|
|
1672
|
+
var funcProto$2 = Function.prototype;
|
|
1673
|
+
var funcToString$2 = funcProto$2.toString;
|
|
1674
|
+
function toSource(func) {
|
|
1675
|
+
if (func != null) {
|
|
1676
|
+
try {
|
|
1677
|
+
return funcToString$2.call(func);
|
|
1678
|
+
} catch (e) {
|
|
1679
|
+
}
|
|
1680
|
+
try {
|
|
1681
|
+
return func + "";
|
|
1682
|
+
} catch (e) {
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
return "";
|
|
1686
|
+
}
|
|
1687
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
1688
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
1689
|
+
var funcProto$1 = Function.prototype, objectProto$8 = Object.prototype;
|
|
1690
|
+
var funcToString$1 = funcProto$1.toString;
|
|
1691
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
1692
|
+
var reIsNative = RegExp(
|
|
1693
|
+
"^" + funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1694
|
+
);
|
|
1695
|
+
function baseIsNative(value) {
|
|
1696
|
+
if (!isObject(value) || isMasked(value)) {
|
|
1697
|
+
return false;
|
|
1698
|
+
}
|
|
1699
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
1700
|
+
return pattern.test(toSource(value));
|
|
1701
|
+
}
|
|
1702
|
+
function getValue(object, key) {
|
|
1703
|
+
return object == null ? void 0 : object[key];
|
|
1704
|
+
}
|
|
1705
|
+
function getNative(object, key) {
|
|
1706
|
+
var value = getValue(object, key);
|
|
1707
|
+
return baseIsNative(value) ? value : void 0;
|
|
1708
|
+
}
|
|
1709
|
+
var Map$1 = getNative(root$1, "Map");
|
|
1710
|
+
const Map$2 = Map$1;
|
|
1711
|
+
var nativeCreate = getNative(Object, "create");
|
|
1712
|
+
const nativeCreate$1 = nativeCreate;
|
|
1713
|
+
function hashClear() {
|
|
1714
|
+
this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
|
|
1715
|
+
this.size = 0;
|
|
1716
|
+
}
|
|
1717
|
+
function hashDelete(key) {
|
|
1718
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1719
|
+
this.size -= result ? 1 : 0;
|
|
1720
|
+
return result;
|
|
1721
|
+
}
|
|
1722
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1723
|
+
var objectProto$7 = Object.prototype;
|
|
1724
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
1725
|
+
function hashGet(key) {
|
|
1726
|
+
var data = this.__data__;
|
|
1727
|
+
if (nativeCreate$1) {
|
|
1728
|
+
var result = data[key];
|
|
1729
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
1730
|
+
}
|
|
1731
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
|
|
1732
|
+
}
|
|
1733
|
+
var objectProto$6 = Object.prototype;
|
|
1734
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
1735
|
+
function hashHas(key) {
|
|
1736
|
+
var data = this.__data__;
|
|
1737
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
|
|
1738
|
+
}
|
|
1739
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1740
|
+
function hashSet(key, value) {
|
|
1741
|
+
var data = this.__data__;
|
|
1742
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1743
|
+
data[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED : value;
|
|
1744
|
+
return this;
|
|
1745
|
+
}
|
|
1746
|
+
function Hash(entries) {
|
|
1747
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1748
|
+
this.clear();
|
|
1749
|
+
while (++index < length) {
|
|
1750
|
+
var entry = entries[index];
|
|
1751
|
+
this.set(entry[0], entry[1]);
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
Hash.prototype.clear = hashClear;
|
|
1755
|
+
Hash.prototype["delete"] = hashDelete;
|
|
1756
|
+
Hash.prototype.get = hashGet;
|
|
1757
|
+
Hash.prototype.has = hashHas;
|
|
1758
|
+
Hash.prototype.set = hashSet;
|
|
1759
|
+
function mapCacheClear() {
|
|
1760
|
+
this.size = 0;
|
|
1761
|
+
this.__data__ = {
|
|
1762
|
+
"hash": new Hash(),
|
|
1763
|
+
"map": new (Map$2 || ListCache)(),
|
|
1764
|
+
"string": new Hash()
|
|
1765
|
+
};
|
|
1766
|
+
}
|
|
1767
|
+
function isKeyable(value) {
|
|
1768
|
+
var type = typeof value;
|
|
1769
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1770
|
+
}
|
|
1771
|
+
function getMapData(map, key) {
|
|
1772
|
+
var data = map.__data__;
|
|
1773
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1774
|
+
}
|
|
1775
|
+
function mapCacheDelete(key) {
|
|
1776
|
+
var result = getMapData(this, key)["delete"](key);
|
|
1777
|
+
this.size -= result ? 1 : 0;
|
|
1778
|
+
return result;
|
|
1779
|
+
}
|
|
1780
|
+
function mapCacheGet(key) {
|
|
1781
|
+
return getMapData(this, key).get(key);
|
|
1782
|
+
}
|
|
1783
|
+
function mapCacheHas(key) {
|
|
1784
|
+
return getMapData(this, key).has(key);
|
|
1785
|
+
}
|
|
1786
|
+
function mapCacheSet(key, value) {
|
|
1787
|
+
var data = getMapData(this, key), size = data.size;
|
|
1788
|
+
data.set(key, value);
|
|
1789
|
+
this.size += data.size == size ? 0 : 1;
|
|
1790
|
+
return this;
|
|
1791
|
+
}
|
|
1792
|
+
function MapCache(entries) {
|
|
1793
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1794
|
+
this.clear();
|
|
1795
|
+
while (++index < length) {
|
|
1796
|
+
var entry = entries[index];
|
|
1797
|
+
this.set(entry[0], entry[1]);
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
1801
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
1802
|
+
MapCache.prototype.get = mapCacheGet;
|
|
1803
|
+
MapCache.prototype.has = mapCacheHas;
|
|
1804
|
+
MapCache.prototype.set = mapCacheSet;
|
|
1805
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
1806
|
+
function stackSet(key, value) {
|
|
1807
|
+
var data = this.__data__;
|
|
1808
|
+
if (data instanceof ListCache) {
|
|
1809
|
+
var pairs = data.__data__;
|
|
1810
|
+
if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1811
|
+
pairs.push([key, value]);
|
|
1812
|
+
this.size = ++data.size;
|
|
1813
|
+
return this;
|
|
1814
|
+
}
|
|
1815
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1816
|
+
}
|
|
1817
|
+
data.set(key, value);
|
|
1818
|
+
this.size = data.size;
|
|
1819
|
+
return this;
|
|
1820
|
+
}
|
|
1821
|
+
function Stack(entries) {
|
|
1822
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1823
|
+
this.size = data.size;
|
|
1824
|
+
}
|
|
1825
|
+
Stack.prototype.clear = stackClear;
|
|
1826
|
+
Stack.prototype["delete"] = stackDelete;
|
|
1827
|
+
Stack.prototype.get = stackGet;
|
|
1828
|
+
Stack.prototype.has = stackHas;
|
|
1829
|
+
Stack.prototype.set = stackSet;
|
|
1830
|
+
var defineProperty = function() {
|
|
1831
|
+
try {
|
|
1832
|
+
var func = getNative(Object, "defineProperty");
|
|
1833
|
+
func({}, "", {});
|
|
1834
|
+
return func;
|
|
1835
|
+
} catch (e) {
|
|
1836
|
+
}
|
|
1837
|
+
}();
|
|
1838
|
+
const defineProperty$1 = defineProperty;
|
|
1839
|
+
function baseAssignValue(object, key, value) {
|
|
1840
|
+
if (key == "__proto__" && defineProperty$1) {
|
|
1841
|
+
defineProperty$1(object, key, {
|
|
1842
|
+
"configurable": true,
|
|
1843
|
+
"enumerable": true,
|
|
1844
|
+
"value": value,
|
|
1845
|
+
"writable": true
|
|
1846
|
+
});
|
|
1847
|
+
} else {
|
|
1848
|
+
object[key] = value;
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
function assignMergeValue(object, key, value) {
|
|
1852
|
+
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
|
|
1853
|
+
baseAssignValue(object, key, value);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
function createBaseFor(fromRight) {
|
|
1857
|
+
return function(object, iteratee, keysFunc) {
|
|
1858
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
1859
|
+
while (length--) {
|
|
1860
|
+
var key = props[fromRight ? length : ++index];
|
|
1861
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1862
|
+
break;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
return object;
|
|
1866
|
+
};
|
|
1867
|
+
}
|
|
1868
|
+
var baseFor = createBaseFor();
|
|
1869
|
+
const baseFor$1 = baseFor;
|
|
1870
|
+
var freeExports$2 = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
|
|
1871
|
+
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
1872
|
+
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
1873
|
+
var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0, allocUnsafe = Buffer$1 ? Buffer$1.allocUnsafe : void 0;
|
|
1874
|
+
function cloneBuffer(buffer, isDeep) {
|
|
1875
|
+
if (isDeep) {
|
|
1876
|
+
return buffer.slice();
|
|
1877
|
+
}
|
|
1878
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1879
|
+
buffer.copy(result);
|
|
1880
|
+
return result;
|
|
1881
|
+
}
|
|
1882
|
+
var Uint8Array = root$1.Uint8Array;
|
|
1883
|
+
const Uint8Array$1 = Uint8Array;
|
|
1884
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
1885
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1886
|
+
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
1887
|
+
return result;
|
|
1888
|
+
}
|
|
1889
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
1890
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1891
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1892
|
+
}
|
|
1893
|
+
function copyArray(source, array) {
|
|
1894
|
+
var index = -1, length = source.length;
|
|
1895
|
+
array || (array = Array(length));
|
|
1896
|
+
while (++index < length) {
|
|
1897
|
+
array[index] = source[index];
|
|
1898
|
+
}
|
|
1899
|
+
return array;
|
|
1900
|
+
}
|
|
1901
|
+
var objectCreate = Object.create;
|
|
1902
|
+
var baseCreate = function() {
|
|
1903
|
+
function object() {
|
|
1904
|
+
}
|
|
1905
|
+
return function(proto) {
|
|
1906
|
+
if (!isObject(proto)) {
|
|
1907
|
+
return {};
|
|
1908
|
+
}
|
|
1909
|
+
if (objectCreate) {
|
|
1910
|
+
return objectCreate(proto);
|
|
1911
|
+
}
|
|
1912
|
+
object.prototype = proto;
|
|
1913
|
+
var result = new object();
|
|
1914
|
+
object.prototype = void 0;
|
|
1915
|
+
return result;
|
|
1916
|
+
};
|
|
1917
|
+
}();
|
|
1918
|
+
const baseCreate$1 = baseCreate;
|
|
1919
|
+
function overArg(func, transform) {
|
|
1920
|
+
return function(arg) {
|
|
1921
|
+
return func(transform(arg));
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1925
|
+
const getPrototype$1 = getPrototype;
|
|
1926
|
+
var objectProto$5 = Object.prototype;
|
|
1927
|
+
function isPrototype(value) {
|
|
1928
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$5;
|
|
1929
|
+
return value === proto;
|
|
1930
|
+
}
|
|
1931
|
+
function initCloneObject(object) {
|
|
1932
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate$1(getPrototype$1(object)) : {};
|
|
1933
|
+
}
|
|
1934
|
+
function isObjectLike(value) {
|
|
1935
|
+
return value != null && typeof value == "object";
|
|
1936
|
+
}
|
|
1937
|
+
var argsTag$1 = "[object Arguments]";
|
|
1938
|
+
function baseIsArguments(value) {
|
|
1939
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$1;
|
|
1940
|
+
}
|
|
1941
|
+
var objectProto$4 = Object.prototype;
|
|
1942
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
1943
|
+
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
1944
|
+
var isArguments = baseIsArguments(function() {
|
|
1945
|
+
return arguments;
|
|
1946
|
+
}()) ? baseIsArguments : function(value) {
|
|
1947
|
+
return isObjectLike(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
1948
|
+
};
|
|
1949
|
+
const isArguments$1 = isArguments;
|
|
1950
|
+
var isArray = Array.isArray;
|
|
1951
|
+
const isArray$1 = isArray;
|
|
1952
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
1953
|
+
function isLength(value) {
|
|
1954
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
1955
|
+
}
|
|
1956
|
+
function isArrayLike(value) {
|
|
1957
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1958
|
+
}
|
|
1959
|
+
function isArrayLikeObject(value) {
|
|
1960
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
1961
|
+
}
|
|
1962
|
+
function stubFalse() {
|
|
1963
|
+
return false;
|
|
1964
|
+
}
|
|
1965
|
+
var freeExports$1 = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
|
|
1966
|
+
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
1967
|
+
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
1968
|
+
var Buffer = moduleExports$1 ? root$1.Buffer : void 0;
|
|
1969
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
1970
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1971
|
+
const isBuffer$1 = isBuffer;
|
|
1972
|
+
var objectTag$1 = "[object Object]";
|
|
1973
|
+
var funcProto = Function.prototype, objectProto$3 = Object.prototype;
|
|
1974
|
+
var funcToString = funcProto.toString;
|
|
1975
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
1976
|
+
var objectCtorString = funcToString.call(Object);
|
|
1977
|
+
function isPlainObject(value) {
|
|
1978
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag$1) {
|
|
1979
|
+
return false;
|
|
1980
|
+
}
|
|
1981
|
+
var proto = getPrototype$1(value);
|
|
1982
|
+
if (proto === null) {
|
|
1983
|
+
return true;
|
|
1984
|
+
}
|
|
1985
|
+
var Ctor = hasOwnProperty$3.call(proto, "constructor") && proto.constructor;
|
|
1986
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
1987
|
+
}
|
|
1988
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]";
|
|
1989
|
+
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]";
|
|
1990
|
+
var typedArrayTags = {};
|
|
1991
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
1992
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
1993
|
+
function baseIsTypedArray(value) {
|
|
1994
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1995
|
+
}
|
|
1996
|
+
function baseUnary(func) {
|
|
1997
|
+
return function(value) {
|
|
1998
|
+
return func(value);
|
|
1999
|
+
};
|
|
2000
|
+
}
|
|
2001
|
+
var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
|
|
2002
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
2003
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
2004
|
+
var freeProcess = moduleExports && freeGlobal$1.process;
|
|
2005
|
+
var nodeUtil = function() {
|
|
2006
|
+
try {
|
|
2007
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
2008
|
+
if (types) {
|
|
2009
|
+
return types;
|
|
2010
|
+
}
|
|
2011
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
2012
|
+
} catch (e) {
|
|
2013
|
+
}
|
|
2014
|
+
}();
|
|
2015
|
+
const nodeUtil$1 = nodeUtil;
|
|
2016
|
+
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
2017
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
2018
|
+
const isTypedArray$1 = isTypedArray;
|
|
2019
|
+
function safeGet(object, key) {
|
|
2020
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
|
2021
|
+
return;
|
|
2022
|
+
}
|
|
2023
|
+
if (key == "__proto__") {
|
|
2024
|
+
return;
|
|
2025
|
+
}
|
|
2026
|
+
return object[key];
|
|
2027
|
+
}
|
|
2028
|
+
var objectProto$2 = Object.prototype;
|
|
2029
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
2030
|
+
function assignValue(object, key, value) {
|
|
2031
|
+
var objValue = object[key];
|
|
2032
|
+
if (!(hasOwnProperty$2.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
2033
|
+
baseAssignValue(object, key, value);
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
function copyObject(source, props, object, customizer) {
|
|
2037
|
+
var isNew = !object;
|
|
2038
|
+
object || (object = {});
|
|
2039
|
+
var index = -1, length = props.length;
|
|
2040
|
+
while (++index < length) {
|
|
2041
|
+
var key = props[index];
|
|
2042
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
2043
|
+
if (newValue === void 0) {
|
|
2044
|
+
newValue = source[key];
|
|
2045
|
+
}
|
|
2046
|
+
if (isNew) {
|
|
2047
|
+
baseAssignValue(object, key, newValue);
|
|
2048
|
+
} else {
|
|
2049
|
+
assignValue(object, key, newValue);
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
return object;
|
|
2053
|
+
}
|
|
2054
|
+
function baseTimes(n, iteratee) {
|
|
2055
|
+
var index = -1, result = Array(n);
|
|
2056
|
+
while (++index < n) {
|
|
2057
|
+
result[index] = iteratee(index);
|
|
2058
|
+
}
|
|
2059
|
+
return result;
|
|
2060
|
+
}
|
|
2061
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
2062
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
2063
|
+
function isIndex(value, length) {
|
|
2064
|
+
var type = typeof value;
|
|
2065
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
2066
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
2067
|
+
}
|
|
2068
|
+
var objectProto$1 = Object.prototype;
|
|
2069
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
2070
|
+
function arrayLikeKeys(value, inherited) {
|
|
2071
|
+
var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
2072
|
+
for (var key in value) {
|
|
2073
|
+
if ((inherited || hasOwnProperty$1.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2074
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2075
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2076
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
2077
|
+
isIndex(key, length)))) {
|
|
2078
|
+
result.push(key);
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
return result;
|
|
2082
|
+
}
|
|
2083
|
+
function nativeKeysIn(object) {
|
|
2084
|
+
var result = [];
|
|
2085
|
+
if (object != null) {
|
|
2086
|
+
for (var key in Object(object)) {
|
|
2087
|
+
result.push(key);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
return result;
|
|
2091
|
+
}
|
|
2092
|
+
var objectProto = Object.prototype;
|
|
2093
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2094
|
+
function baseKeysIn(object) {
|
|
2095
|
+
if (!isObject(object)) {
|
|
2096
|
+
return nativeKeysIn(object);
|
|
2097
|
+
}
|
|
2098
|
+
var isProto = isPrototype(object), result = [];
|
|
2099
|
+
for (var key in object) {
|
|
2100
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
2101
|
+
result.push(key);
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
return result;
|
|
2105
|
+
}
|
|
2106
|
+
function keysIn(object) {
|
|
2107
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
2108
|
+
}
|
|
2109
|
+
function toPlainObject(value) {
|
|
2110
|
+
return copyObject(value, keysIn(value));
|
|
2111
|
+
}
|
|
2112
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2113
|
+
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
2114
|
+
if (stacked) {
|
|
2115
|
+
assignMergeValue(object, key, stacked);
|
|
2116
|
+
return;
|
|
2117
|
+
}
|
|
2118
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
2119
|
+
var isCommon = newValue === void 0;
|
|
2120
|
+
if (isCommon) {
|
|
2121
|
+
var isArr = isArray$1(srcValue), isBuff = !isArr && isBuffer$1(srcValue), isTyped = !isArr && !isBuff && isTypedArray$1(srcValue);
|
|
2122
|
+
newValue = srcValue;
|
|
2123
|
+
if (isArr || isBuff || isTyped) {
|
|
2124
|
+
if (isArray$1(objValue)) {
|
|
2125
|
+
newValue = objValue;
|
|
2126
|
+
} else if (isArrayLikeObject(objValue)) {
|
|
2127
|
+
newValue = copyArray(objValue);
|
|
2128
|
+
} else if (isBuff) {
|
|
2129
|
+
isCommon = false;
|
|
2130
|
+
newValue = cloneBuffer(srcValue, true);
|
|
2131
|
+
} else if (isTyped) {
|
|
2132
|
+
isCommon = false;
|
|
2133
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
2134
|
+
} else {
|
|
2135
|
+
newValue = [];
|
|
2136
|
+
}
|
|
2137
|
+
} else if (isPlainObject(srcValue) || isArguments$1(srcValue)) {
|
|
2138
|
+
newValue = objValue;
|
|
2139
|
+
if (isArguments$1(objValue)) {
|
|
2140
|
+
newValue = toPlainObject(objValue);
|
|
2141
|
+
} else if (!isObject(objValue) || isFunction(objValue)) {
|
|
2142
|
+
newValue = initCloneObject(srcValue);
|
|
2143
|
+
}
|
|
2144
|
+
} else {
|
|
2145
|
+
isCommon = false;
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
if (isCommon) {
|
|
2149
|
+
stack.set(srcValue, newValue);
|
|
2150
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
2151
|
+
stack["delete"](srcValue);
|
|
2152
|
+
}
|
|
2153
|
+
assignMergeValue(object, key, newValue);
|
|
2154
|
+
}
|
|
2155
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
2156
|
+
if (object === source) {
|
|
2157
|
+
return;
|
|
2158
|
+
}
|
|
2159
|
+
baseFor$1(source, function(srcValue, key) {
|
|
2160
|
+
stack || (stack = new Stack());
|
|
2161
|
+
if (isObject(srcValue)) {
|
|
2162
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
2163
|
+
} else {
|
|
2164
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
2165
|
+
if (newValue === void 0) {
|
|
2166
|
+
newValue = srcValue;
|
|
2167
|
+
}
|
|
2168
|
+
assignMergeValue(object, key, newValue);
|
|
2169
|
+
}
|
|
2170
|
+
}, keysIn);
|
|
2171
|
+
}
|
|
2172
|
+
function identity(value) {
|
|
2173
|
+
return value;
|
|
2174
|
+
}
|
|
2175
|
+
function apply(func, thisArg, args) {
|
|
2176
|
+
switch (args.length) {
|
|
2177
|
+
case 0:
|
|
2178
|
+
return func.call(thisArg);
|
|
2179
|
+
case 1:
|
|
2180
|
+
return func.call(thisArg, args[0]);
|
|
2181
|
+
case 2:
|
|
2182
|
+
return func.call(thisArg, args[0], args[1]);
|
|
2183
|
+
case 3:
|
|
2184
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
2185
|
+
}
|
|
2186
|
+
return func.apply(thisArg, args);
|
|
2187
|
+
}
|
|
2188
|
+
var nativeMax = Math.max;
|
|
2189
|
+
function overRest(func, start2, transform) {
|
|
2190
|
+
start2 = nativeMax(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
2191
|
+
return function() {
|
|
2192
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start2, 0), array = Array(length);
|
|
2193
|
+
while (++index < length) {
|
|
2194
|
+
array[index] = args[start2 + index];
|
|
2195
|
+
}
|
|
2196
|
+
index = -1;
|
|
2197
|
+
var otherArgs = Array(start2 + 1);
|
|
2198
|
+
while (++index < start2) {
|
|
2199
|
+
otherArgs[index] = args[index];
|
|
2200
|
+
}
|
|
2201
|
+
otherArgs[start2] = transform(array);
|
|
2202
|
+
return apply(func, this, otherArgs);
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
function constant(value) {
|
|
2206
|
+
return function() {
|
|
2207
|
+
return value;
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2210
|
+
var baseSetToString = !defineProperty$1 ? identity : function(func, string) {
|
|
2211
|
+
return defineProperty$1(func, "toString", {
|
|
2212
|
+
"configurable": true,
|
|
2213
|
+
"enumerable": false,
|
|
2214
|
+
"value": constant(string),
|
|
2215
|
+
"writable": true
|
|
2216
|
+
});
|
|
2217
|
+
};
|
|
2218
|
+
const baseSetToString$1 = baseSetToString;
|
|
2219
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
2220
|
+
var nativeNow = Date.now;
|
|
2221
|
+
function shortOut(func) {
|
|
2222
|
+
var count = 0, lastCalled = 0;
|
|
2223
|
+
return function() {
|
|
2224
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
2225
|
+
lastCalled = stamp;
|
|
2226
|
+
if (remaining > 0) {
|
|
2227
|
+
if (++count >= HOT_COUNT) {
|
|
2228
|
+
return arguments[0];
|
|
2229
|
+
}
|
|
2230
|
+
} else {
|
|
2231
|
+
count = 0;
|
|
2232
|
+
}
|
|
2233
|
+
return func.apply(void 0, arguments);
|
|
2234
|
+
};
|
|
2235
|
+
}
|
|
2236
|
+
var setToString = shortOut(baseSetToString$1);
|
|
2237
|
+
const setToString$1 = setToString;
|
|
2238
|
+
function baseRest(func, start2) {
|
|
2239
|
+
return setToString$1(overRest(func, start2, identity), func + "");
|
|
2240
|
+
}
|
|
2241
|
+
function isIterateeCall(value, index, object) {
|
|
2242
|
+
if (!isObject(object)) {
|
|
2243
|
+
return false;
|
|
2244
|
+
}
|
|
2245
|
+
var type = typeof index;
|
|
2246
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
2247
|
+
return eq(object[index], value);
|
|
2248
|
+
}
|
|
2249
|
+
return false;
|
|
2250
|
+
}
|
|
2251
|
+
function createAssigner(assigner) {
|
|
2252
|
+
return baseRest(function(object, sources) {
|
|
2253
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
2254
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
2255
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2256
|
+
customizer = length < 3 ? void 0 : customizer;
|
|
2257
|
+
length = 1;
|
|
2258
|
+
}
|
|
2259
|
+
object = Object(object);
|
|
2260
|
+
while (++index < length) {
|
|
2261
|
+
var source = sources[index];
|
|
2262
|
+
if (source) {
|
|
2263
|
+
assigner(object, source, index, customizer);
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
return object;
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2269
|
+
var merge = createAssigner(function(object, source, srcIndex) {
|
|
2270
|
+
baseMerge(object, source, srcIndex);
|
|
2271
|
+
});
|
|
2272
|
+
const merge$1 = merge;
|
|
1533
2273
|
var ThemeContext = React.createContext({
|
|
1534
2274
|
theme: commonTheme
|
|
1535
2275
|
});
|
|
@@ -1538,7 +2278,7 @@
|
|
|
1538
2278
|
var components = theme.components;
|
|
1539
2279
|
var _components_componentName;
|
|
1540
2280
|
var newStyles = React.useMemo(function() {
|
|
1541
|
-
return
|
|
2281
|
+
return merge$1({}, styles2, (_components_componentName = components === null || components === void 0 ? void 0 : components[componentName]) !== null && _components_componentName !== void 0 ? _components_componentName : {}, tweakStyles);
|
|
1542
2282
|
}, [
|
|
1543
2283
|
styles2,
|
|
1544
2284
|
components === null || components === void 0 ? void 0 : components[componentName],
|
|
@@ -3264,7 +4004,7 @@
|
|
|
3264
4004
|
var useTweakStyles = function() {
|
|
3265
4005
|
var componentStyles = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, tweakStyles = arguments.length > 1 ? arguments[1] : void 0, className = arguments.length > 2 ? arguments[2] : void 0;
|
|
3266
4006
|
return React.useMemo(function() {
|
|
3267
|
-
return
|
|
4007
|
+
return merge$1({}, componentStyles[className], tweakStyles === null || tweakStyles === void 0 ? void 0 : tweakStyles[className]);
|
|
3268
4008
|
}, [
|
|
3269
4009
|
tweakStyles === null || tweakStyles === void 0 ? void 0 : tweakStyles[className]
|
|
3270
4010
|
]);
|
|
@@ -5342,7 +6082,7 @@
|
|
|
5342
6082
|
var _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, onClick = param.onClick, onMouseDown = param.onMouseDown;
|
|
5343
6083
|
var _useTheme = useTheme("Button", styles$D, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
5344
6084
|
var tweakPreloaderStyles = React.useMemo(function() {
|
|
5345
|
-
return
|
|
6085
|
+
return merge$1({}, size === "s" || size === "m" ? dotsPreloaderStyles : void 0, componentStyles.tweakPreloader, tweakStyles === null || tweakStyles === void 0 ? void 0 : tweakStyles.tweakPreloader);
|
|
5346
6086
|
}, [
|
|
5347
6087
|
tweakStyles === null || tweakStyles === void 0 ? void 0 : tweakStyles.tweakPreloader,
|
|
5348
6088
|
size
|
|
@@ -7890,7 +8630,7 @@
|
|
|
7890
8630
|
);
|
|
7891
8631
|
var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
|
|
7892
8632
|
var tweakInputStyles = React.useMemo(function() {
|
|
7893
|
-
return
|
|
8633
|
+
return merge$1({}, componentStyles.tweakInput, _object_spread$u({}, hasReadonlyInput && {
|
|
7894
8634
|
input: {
|
|
7895
8635
|
cursor: "pointer"
|
|
7896
8636
|
}
|
|
@@ -8808,7 +9548,7 @@
|
|
|
8808
9548
|
var DEFAULT_LOCALE$2 = "en";
|
|
8809
9549
|
var getLocale$2 = function() {
|
|
8810
9550
|
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE$2, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
8811
|
-
return
|
|
9551
|
+
return merge$1({}, SelectLocales[key], custom, custom2);
|
|
8812
9552
|
};
|
|
8813
9553
|
function _define_property$s(obj, key, value) {
|
|
8814
9554
|
if (key in obj) {
|
|
@@ -9708,7 +10448,7 @@
|
|
|
9708
10448
|
var DEFAULT_LOCALE$1 = "en";
|
|
9709
10449
|
var getLocale$1 = function() {
|
|
9710
10450
|
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE$1, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
9711
|
-
return
|
|
10451
|
+
return merge$1({}, FilterLocales[key], custom, custom2);
|
|
9712
10452
|
};
|
|
9713
10453
|
var FILTER_HEIGHT = 36;
|
|
9714
10454
|
var styles$o = {
|
|
@@ -10872,7 +11612,7 @@
|
|
|
10872
11612
|
var DEFAULT_LOCALE = "en";
|
|
10873
11613
|
var getLocale = function() {
|
|
10874
11614
|
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
10875
|
-
return
|
|
11615
|
+
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
10876
11616
|
};
|
|
10877
11617
|
function _define_property$n(obj, key, value) {
|
|
10878
11618
|
if (key in obj) {
|
|
@@ -26565,7 +27305,7 @@
|
|
|
26565
27305
|
var TextWithTooltip = function(param) {
|
|
26566
27306
|
var children = param.children, tooltipText = param.tooltipText, _param_tooltipPosition = param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top" : _param_tooltipPosition, _param_tooltipView = param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, tooltipType = param.tooltipType, _param_tooltipModifiers = param.tooltipModifiers, tooltipModifiers = _param_tooltipModifiers === void 0 ? [] : _param_tooltipModifiers, tooltipOffsetOptions = param.tooltipOffsetOptions, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_mouseEventType = param.mouseEventType, mouseEventType = _param_mouseEventType === void 0 ? "hover" : _param_mouseEventType, hoverDelay = param.hoverDelay, data = param.data, tweakStyles = param.tweakStyles;
|
|
26567
27307
|
var _useTheme = useTheme("TextWithTooltip", styles$2, tweakStyles), classes = _useTheme.classes, componentStyles = _useTheme.componentStyles;
|
|
26568
|
-
var
|
|
27308
|
+
var root2 = React.useRef(null);
|
|
26569
27309
|
var tooltip = React.useRef(null);
|
|
26570
27310
|
var _useState = _sliced_to_array(React.useState(false), 2), isTooltipVisible = _useState[0], setIsTooltipVisible = _useState[1];
|
|
26571
27311
|
var _useState1 = _sliced_to_array(React.useState(), 2), tooltipTimeout = _useState1[0], setTooltipTimeout = _useState1[1];
|
|
@@ -26591,7 +27331,7 @@
|
|
|
26591
27331
|
return clearTimeout(tooltipTimeout);
|
|
26592
27332
|
};
|
|
26593
27333
|
}, []);
|
|
26594
|
-
var _usePopper = usePopper(
|
|
27334
|
+
var _usePopper = usePopper(root2.current, tooltip.current, {
|
|
26595
27335
|
enabled: isTooltipVisible,
|
|
26596
27336
|
placement: tooltipPosition,
|
|
26597
27337
|
modifiers: [
|
|
@@ -26610,7 +27350,7 @@
|
|
|
26610
27350
|
if (mouseEventType === "click") {
|
|
26611
27351
|
setIsTooltipVisible(false);
|
|
26612
27352
|
}
|
|
26613
|
-
},
|
|
27353
|
+
}, root2);
|
|
26614
27354
|
var props = mouseEventType === "click" ? {
|
|
26615
27355
|
onClick: function() {
|
|
26616
27356
|
return setIsTooltipVisible(true);
|
|
@@ -26624,10 +27364,10 @@
|
|
|
26624
27364
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$2(_object_spread$2({
|
|
26625
27365
|
className: clsx(classes.root, mouseEventType === "click" && shouldShowTooltip && classes.clickable)
|
|
26626
27366
|
}, shouldShowTooltip ? props : void 0, addDataAttributes(data)), {
|
|
26627
|
-
ref:
|
|
27367
|
+
ref: root2,
|
|
26628
27368
|
children: [
|
|
26629
27369
|
shouldShowTooltip && /* @__PURE__ */ jsx(reactOverlays.Portal, {
|
|
26630
|
-
container: shouldRenderInBody ? document.body :
|
|
27370
|
+
container: shouldRenderInBody ? document.body : root2.current,
|
|
26631
27371
|
children: /* @__PURE__ */ jsx("div", _object_spread_props$2(_object_spread$2({
|
|
26632
27372
|
className: classes.tooltip,
|
|
26633
27373
|
style: popperStyles.popper
|