@dovetail-v2/refine 0.0.27 → 0.0.29
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/{MonacoYamlDiffEditor-b06840cc.js → MonacoYamlDiffEditor-37f2db86.js} +1 -1
- package/dist/{index-56189b86.js → index-3716ce7b.js} +455 -452
- package/dist/refine.js +4 -4
- package/dist/refine.umd.cjs +454 -451
- package/lib/src/components/ConditionsTable/ConditionsTable.js +2 -2
- package/lib/src/components/CreateButton/index.js +2 -2
- package/lib/src/components/CronJobDropdown/index.js +2 -2
- package/lib/src/components/CronjobJobsTable/index.js +2 -2
- package/lib/src/components/DeleteButton/index.js +2 -2
- package/lib/src/components/DeleteManyButton/index.js +2 -2
- package/lib/src/components/EditField/index.js +3 -3
- package/lib/src/components/ErrorContent/index.js +2 -2
- package/lib/src/components/EventsTable/EventsTable.js +2 -2
- package/lib/src/components/FormLayout/index.js +2 -2
- package/lib/src/components/FormModal/index.js +2 -2
- package/lib/src/components/ImageNames/index.js +2 -2
- package/lib/src/components/IngressRulesTable/IngressRulesTable.js +2 -2
- package/lib/src/components/K8sDropdown/index.js +2 -2
- package/lib/src/components/KeyValueData/index.js +2 -2
- package/lib/src/components/NamespacesFilter/index.js +2 -2
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +2 -2
- package/lib/src/components/PodContainersTable/PodContainersTable.js +2 -2
- package/lib/src/components/PodLog/index.js +2 -2
- package/lib/src/components/ResourceCRUD/list/index.js +2 -2
- package/lib/src/components/ShowContent/ShowContent.js +2 -2
- package/lib/src/components/StateTag/StateTag.js +2 -2
- package/lib/src/components/Table/ErrorContent.js +2 -2
- package/lib/src/components/Table/index.js +2 -2
- package/lib/src/components/WorkloadDropdown/index.js +2 -2
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +2 -2
- package/lib/src/components/YamlEditor/YamlEditorComponent.js +2 -2
- package/lib/src/components/YamlForm/index.js +2 -2
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +2 -2
- package/lib/src/hooks/useDeleteModal/useDeleteModal.js +2 -2
- package/lib/src/hooks/useEagleForm.js +2 -2
- package/lib/src/hooks/useSubmitForm.js +2 -2
- package/lib/src/i18n.d.ts +1 -0
- package/lib/src/i18n.js +8 -7
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locales/index.d.ts +115 -2
- package/lib/src/locales/index.js +6 -2
- package/lib/src/pages/cronjobs/list/index.js +2 -2
- package/lib/src/pages/cronjobs/show/index.js +2 -2
- package/lib/src/pages/daemonsets/list/index.js +2 -2
- package/lib/src/pages/daemonsets/show/index.js +2 -2
- package/lib/src/pages/deployments/list/index.js +2 -2
- package/lib/src/pages/deployments/show/index.js +2 -2
- package/lib/src/pages/pods/list/index.js +2 -2
- package/lib/src/pages/pods/show/index.js +2 -2
- package/lib/src/pages/statefulsets/list/index.js +2 -2
- package/lib/src/pages/statefulsets/show/index.js +2 -2
- package/package.json +1 -1
package/dist/refine.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global2, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("i18next"), require("
|
|
3
|
-
})(this, function(exports2, i18n, core, qs,
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("i18next"), require("react"), require("@refinedev/core"), require("qs"), require("react-router-dom"), require("@cloudtower/eagle"), require("js-yaml"), require("lodash-es"), require("sunflower-antd"), require("@cloudtower/icons-react"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("antd"), require("k8s-api-provider")) : typeof define === "function" && define.amd ? define(["exports", "i18next", "react", "@refinedev/core", "qs", "react-router-dom", "@cloudtower/eagle", "js-yaml", "lodash-es", "sunflower-antd", "@cloudtower/icons-react", "monaco-editor", "monaco-yaml", "react-dom", "antd", "k8s-api-provider"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.i18n, global2.React, global2.core, global2.qs, global2.reactRouterDom, global2.eagle, global2.yaml, global2.lodashEs, global2.sunflowerAntd, global2.iconsReact, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.antd, global2.k8sApiProvider));
|
|
3
|
+
})(this, function(exports2, i18n, React, core, qs, reactRouterDom, eagle, yaml, lodashEs, sunflowerAntd, iconsReact, monaco, monacoYaml, ReactDOM, antd, k8sApiProvider) {
|
|
4
4
|
"use strict";var __defProp = Object.defineProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
6
|
var __publicField = (obj, key, value) => {
|
|
@@ -343,7 +343,7 @@ var __publicField = (obj, key, value) => {
|
|
|
343
343
|
edit_resource: edit_resource$1,
|
|
344
344
|
status: status$1
|
|
345
345
|
};
|
|
346
|
-
const
|
|
346
|
+
const D2LocalesEN = {
|
|
347
347
|
dovetail: dovetail$1
|
|
348
348
|
};
|
|
349
349
|
const copy = "复制";
|
|
@@ -525,13 +525,14 @@ var __publicField = (obj, key, value) => {
|
|
|
525
525
|
ingress_rule_type,
|
|
526
526
|
port
|
|
527
527
|
};
|
|
528
|
-
const
|
|
528
|
+
const D2LocalesZH = {
|
|
529
529
|
dovetail
|
|
530
530
|
};
|
|
531
|
-
const
|
|
532
|
-
"en-US":
|
|
533
|
-
"zh-CN":
|
|
531
|
+
const D2Locales = {
|
|
532
|
+
"en-US": D2LocalesEN,
|
|
533
|
+
"zh-CN": D2LocalesZH
|
|
534
534
|
};
|
|
535
|
+
const resources = D2Locales;
|
|
535
536
|
i18n.use(initReactI18next).init({
|
|
536
537
|
supportedLngs: ["en-US", "zh-CN"],
|
|
537
538
|
resources,
|
|
@@ -541,9 +542,11 @@ var __publicField = (obj, key, value) => {
|
|
|
541
542
|
lng: "zh-CN",
|
|
542
543
|
nsSeparator: "."
|
|
543
544
|
});
|
|
544
|
-
const
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
const useD2Translation = () => {
|
|
546
|
+
return useTranslation(void 0, {
|
|
547
|
+
i18n
|
|
548
|
+
});
|
|
549
|
+
};
|
|
547
550
|
var jsxRuntime = { exports: {} };
|
|
548
551
|
var reactJsxRuntime_production_min = {};
|
|
549
552
|
/** @license React v16.14.0
|
|
@@ -1716,17 +1719,17 @@ var __publicField = (obj, key, value) => {
|
|
|
1716
1719
|
return func.apply(thisArg, args);
|
|
1717
1720
|
}
|
|
1718
1721
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
1719
|
-
var
|
|
1720
|
-
while (++
|
|
1721
|
-
var value = array[
|
|
1722
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1723
|
+
while (++index < length) {
|
|
1724
|
+
var value = array[index];
|
|
1722
1725
|
setter(accumulator, value, iteratee(value), array);
|
|
1723
1726
|
}
|
|
1724
1727
|
return accumulator;
|
|
1725
1728
|
}
|
|
1726
1729
|
function arrayEach(array, iteratee) {
|
|
1727
|
-
var
|
|
1728
|
-
while (++
|
|
1729
|
-
if (iteratee(array[
|
|
1730
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1731
|
+
while (++index < length) {
|
|
1732
|
+
if (iteratee(array[index], index, array) === false) {
|
|
1730
1733
|
break;
|
|
1731
1734
|
}
|
|
1732
1735
|
}
|
|
@@ -1742,19 +1745,19 @@ var __publicField = (obj, key, value) => {
|
|
|
1742
1745
|
return array;
|
|
1743
1746
|
}
|
|
1744
1747
|
function arrayEvery(array, predicate) {
|
|
1745
|
-
var
|
|
1746
|
-
while (++
|
|
1747
|
-
if (!predicate(array[
|
|
1748
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1749
|
+
while (++index < length) {
|
|
1750
|
+
if (!predicate(array[index], index, array)) {
|
|
1748
1751
|
return false;
|
|
1749
1752
|
}
|
|
1750
1753
|
}
|
|
1751
1754
|
return true;
|
|
1752
1755
|
}
|
|
1753
1756
|
function arrayFilter(array, predicate) {
|
|
1754
|
-
var
|
|
1755
|
-
while (++
|
|
1756
|
-
var value = array[
|
|
1757
|
-
if (predicate(value,
|
|
1757
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1758
|
+
while (++index < length) {
|
|
1759
|
+
var value = array[index];
|
|
1760
|
+
if (predicate(value, index, array)) {
|
|
1758
1761
|
result[resIndex++] = value;
|
|
1759
1762
|
}
|
|
1760
1763
|
}
|
|
@@ -1765,35 +1768,35 @@ var __publicField = (obj, key, value) => {
|
|
|
1765
1768
|
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
1766
1769
|
}
|
|
1767
1770
|
function arrayIncludesWith(array, value, comparator) {
|
|
1768
|
-
var
|
|
1769
|
-
while (++
|
|
1770
|
-
if (comparator(value, array[
|
|
1771
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1772
|
+
while (++index < length) {
|
|
1773
|
+
if (comparator(value, array[index])) {
|
|
1771
1774
|
return true;
|
|
1772
1775
|
}
|
|
1773
1776
|
}
|
|
1774
1777
|
return false;
|
|
1775
1778
|
}
|
|
1776
1779
|
function arrayMap(array, iteratee) {
|
|
1777
|
-
var
|
|
1778
|
-
while (++
|
|
1779
|
-
result[
|
|
1780
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
1781
|
+
while (++index < length) {
|
|
1782
|
+
result[index] = iteratee(array[index], index, array);
|
|
1780
1783
|
}
|
|
1781
1784
|
return result;
|
|
1782
1785
|
}
|
|
1783
1786
|
function arrayPush(array, values) {
|
|
1784
|
-
var
|
|
1785
|
-
while (++
|
|
1786
|
-
array[offset +
|
|
1787
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1788
|
+
while (++index < length) {
|
|
1789
|
+
array[offset + index] = values[index];
|
|
1787
1790
|
}
|
|
1788
1791
|
return array;
|
|
1789
1792
|
}
|
|
1790
1793
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
1791
|
-
var
|
|
1794
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1792
1795
|
if (initAccum && length) {
|
|
1793
|
-
accumulator = array[++
|
|
1796
|
+
accumulator = array[++index];
|
|
1794
1797
|
}
|
|
1795
|
-
while (++
|
|
1796
|
-
accumulator = iteratee(accumulator, array[
|
|
1798
|
+
while (++index < length) {
|
|
1799
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
1797
1800
|
}
|
|
1798
1801
|
return accumulator;
|
|
1799
1802
|
}
|
|
@@ -1808,9 +1811,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1808
1811
|
return accumulator;
|
|
1809
1812
|
}
|
|
1810
1813
|
function arraySome(array, predicate) {
|
|
1811
|
-
var
|
|
1812
|
-
while (++
|
|
1813
|
-
if (predicate(array[
|
|
1814
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1815
|
+
while (++index < length) {
|
|
1816
|
+
if (predicate(array[index], index, array)) {
|
|
1814
1817
|
return true;
|
|
1815
1818
|
}
|
|
1816
1819
|
}
|
|
@@ -1834,10 +1837,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1834
1837
|
return result;
|
|
1835
1838
|
}
|
|
1836
1839
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1837
|
-
var length = array.length,
|
|
1838
|
-
while (fromRight ?
|
|
1839
|
-
if (predicate(array[
|
|
1840
|
-
return
|
|
1840
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
1841
|
+
while (fromRight ? index-- : ++index < length) {
|
|
1842
|
+
if (predicate(array[index], index, array)) {
|
|
1843
|
+
return index;
|
|
1841
1844
|
}
|
|
1842
1845
|
}
|
|
1843
1846
|
return -1;
|
|
@@ -1846,10 +1849,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1846
1849
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
1847
1850
|
}
|
|
1848
1851
|
function baseIndexOfWith(array, value, fromIndex, comparator) {
|
|
1849
|
-
var
|
|
1850
|
-
while (++
|
|
1851
|
-
if (comparator(array[
|
|
1852
|
-
return
|
|
1852
|
+
var index = fromIndex - 1, length = array.length;
|
|
1853
|
+
while (++index < length) {
|
|
1854
|
+
if (comparator(array[index], value)) {
|
|
1855
|
+
return index;
|
|
1853
1856
|
}
|
|
1854
1857
|
}
|
|
1855
1858
|
return -1;
|
|
@@ -1872,8 +1875,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1872
1875
|
};
|
|
1873
1876
|
}
|
|
1874
1877
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
1875
|
-
eachFunc(collection, function(value,
|
|
1876
|
-
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value,
|
|
1878
|
+
eachFunc(collection, function(value, index, collection2) {
|
|
1879
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2);
|
|
1877
1880
|
});
|
|
1878
1881
|
return accumulator;
|
|
1879
1882
|
}
|
|
@@ -1886,9 +1889,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1886
1889
|
return array;
|
|
1887
1890
|
}
|
|
1888
1891
|
function baseSum(array, iteratee) {
|
|
1889
|
-
var result,
|
|
1890
|
-
while (++
|
|
1891
|
-
var current = iteratee(array[
|
|
1892
|
+
var result, index = -1, length = array.length;
|
|
1893
|
+
while (++index < length) {
|
|
1894
|
+
var current = iteratee(array[index]);
|
|
1892
1895
|
if (current !== undefined$1) {
|
|
1893
1896
|
result = result === undefined$1 ? current : result + current;
|
|
1894
1897
|
}
|
|
@@ -1896,9 +1899,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1896
1899
|
return result;
|
|
1897
1900
|
}
|
|
1898
1901
|
function baseTimes(n, iteratee) {
|
|
1899
|
-
var
|
|
1900
|
-
while (++
|
|
1901
|
-
result[
|
|
1902
|
+
var index = -1, result = Array(n);
|
|
1903
|
+
while (++index < n) {
|
|
1904
|
+
result[index] = iteratee(index);
|
|
1902
1905
|
}
|
|
1903
1906
|
return result;
|
|
1904
1907
|
}
|
|
@@ -1924,16 +1927,16 @@ var __publicField = (obj, key, value) => {
|
|
|
1924
1927
|
return cache.has(key);
|
|
1925
1928
|
}
|
|
1926
1929
|
function charsStartIndex(strSymbols, chrSymbols) {
|
|
1927
|
-
var
|
|
1928
|
-
while (++
|
|
1930
|
+
var index = -1, length = strSymbols.length;
|
|
1931
|
+
while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
|
|
1929
1932
|
}
|
|
1930
|
-
return
|
|
1933
|
+
return index;
|
|
1931
1934
|
}
|
|
1932
1935
|
function charsEndIndex(strSymbols, chrSymbols) {
|
|
1933
|
-
var
|
|
1934
|
-
while (
|
|
1936
|
+
var index = strSymbols.length;
|
|
1937
|
+
while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
|
|
1935
1938
|
}
|
|
1936
|
-
return
|
|
1939
|
+
return index;
|
|
1937
1940
|
}
|
|
1938
1941
|
function countHolders(array, placeholder) {
|
|
1939
1942
|
var length = array.length, result = 0;
|
|
@@ -1966,9 +1969,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1966
1969
|
return result;
|
|
1967
1970
|
}
|
|
1968
1971
|
function mapToArray(map) {
|
|
1969
|
-
var
|
|
1972
|
+
var index = -1, result = Array(map.size);
|
|
1970
1973
|
map.forEach(function(value, key) {
|
|
1971
|
-
result[++
|
|
1974
|
+
result[++index] = [key, value];
|
|
1972
1975
|
});
|
|
1973
1976
|
return result;
|
|
1974
1977
|
}
|
|
@@ -1978,47 +1981,47 @@ var __publicField = (obj, key, value) => {
|
|
|
1978
1981
|
};
|
|
1979
1982
|
}
|
|
1980
1983
|
function replaceHolders(array, placeholder) {
|
|
1981
|
-
var
|
|
1982
|
-
while (++
|
|
1983
|
-
var value = array[
|
|
1984
|
+
var index = -1, length = array.length, resIndex = 0, result = [];
|
|
1985
|
+
while (++index < length) {
|
|
1986
|
+
var value = array[index];
|
|
1984
1987
|
if (value === placeholder || value === PLACEHOLDER) {
|
|
1985
|
-
array[
|
|
1986
|
-
result[resIndex++] =
|
|
1988
|
+
array[index] = PLACEHOLDER;
|
|
1989
|
+
result[resIndex++] = index;
|
|
1987
1990
|
}
|
|
1988
1991
|
}
|
|
1989
1992
|
return result;
|
|
1990
1993
|
}
|
|
1991
1994
|
function setToArray(set) {
|
|
1992
|
-
var
|
|
1995
|
+
var index = -1, result = Array(set.size);
|
|
1993
1996
|
set.forEach(function(value) {
|
|
1994
|
-
result[++
|
|
1997
|
+
result[++index] = value;
|
|
1995
1998
|
});
|
|
1996
1999
|
return result;
|
|
1997
2000
|
}
|
|
1998
2001
|
function setToPairs(set) {
|
|
1999
|
-
var
|
|
2002
|
+
var index = -1, result = Array(set.size);
|
|
2000
2003
|
set.forEach(function(value) {
|
|
2001
|
-
result[++
|
|
2004
|
+
result[++index] = [value, value];
|
|
2002
2005
|
});
|
|
2003
2006
|
return result;
|
|
2004
2007
|
}
|
|
2005
2008
|
function strictIndexOf(array, value, fromIndex) {
|
|
2006
|
-
var
|
|
2007
|
-
while (++
|
|
2008
|
-
if (array[
|
|
2009
|
-
return
|
|
2009
|
+
var index = fromIndex - 1, length = array.length;
|
|
2010
|
+
while (++index < length) {
|
|
2011
|
+
if (array[index] === value) {
|
|
2012
|
+
return index;
|
|
2010
2013
|
}
|
|
2011
2014
|
}
|
|
2012
2015
|
return -1;
|
|
2013
2016
|
}
|
|
2014
2017
|
function strictLastIndexOf(array, value, fromIndex) {
|
|
2015
|
-
var
|
|
2016
|
-
while (
|
|
2017
|
-
if (array[
|
|
2018
|
-
return
|
|
2018
|
+
var index = fromIndex + 1;
|
|
2019
|
+
while (index--) {
|
|
2020
|
+
if (array[index] === value) {
|
|
2021
|
+
return index;
|
|
2019
2022
|
}
|
|
2020
2023
|
}
|
|
2021
|
-
return
|
|
2024
|
+
return index;
|
|
2022
2025
|
}
|
|
2023
2026
|
function stringSize(string) {
|
|
2024
2027
|
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
|
@@ -2027,10 +2030,10 @@ var __publicField = (obj, key, value) => {
|
|
|
2027
2030
|
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
2028
2031
|
}
|
|
2029
2032
|
function trimmedEndIndex(string) {
|
|
2030
|
-
var
|
|
2031
|
-
while (
|
|
2033
|
+
var index = string.length;
|
|
2034
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
2032
2035
|
}
|
|
2033
|
-
return
|
|
2036
|
+
return index;
|
|
2034
2037
|
}
|
|
2035
2038
|
var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
|
2036
2039
|
function unicodeSize(string) {
|
|
@@ -2196,15 +2199,15 @@ var __publicField = (obj, key, value) => {
|
|
|
2196
2199
|
return result2;
|
|
2197
2200
|
}
|
|
2198
2201
|
function lazyValue() {
|
|
2199
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start,
|
|
2202
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
|
2200
2203
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
|
2201
2204
|
return baseWrapperValue(array, this.__actions__);
|
|
2202
2205
|
}
|
|
2203
2206
|
var result2 = [];
|
|
2204
2207
|
outer:
|
|
2205
2208
|
while (length-- && resIndex < takeCount) {
|
|
2206
|
-
|
|
2207
|
-
var iterIndex = -1, value = array[
|
|
2209
|
+
index += dir;
|
|
2210
|
+
var iterIndex = -1, value = array[index];
|
|
2208
2211
|
while (++iterIndex < iterLength) {
|
|
2209
2212
|
var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type2 = data2.type, computed = iteratee2(value);
|
|
2210
2213
|
if (type2 == LAZY_MAP_FLAG) {
|
|
@@ -2224,10 +2227,10 @@ var __publicField = (obj, key, value) => {
|
|
|
2224
2227
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
|
2225
2228
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
2226
2229
|
function Hash(entries) {
|
|
2227
|
-
var
|
|
2230
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2228
2231
|
this.clear();
|
|
2229
|
-
while (++
|
|
2230
|
-
var entry = entries[
|
|
2232
|
+
while (++index < length) {
|
|
2233
|
+
var entry = entries[index];
|
|
2231
2234
|
this.set(entry[0], entry[1]);
|
|
2232
2235
|
}
|
|
2233
2236
|
}
|
|
@@ -2264,10 +2267,10 @@ var __publicField = (obj, key, value) => {
|
|
|
2264
2267
|
Hash.prototype.has = hashHas;
|
|
2265
2268
|
Hash.prototype.set = hashSet;
|
|
2266
2269
|
function ListCache(entries) {
|
|
2267
|
-
var
|
|
2270
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2268
2271
|
this.clear();
|
|
2269
|
-
while (++
|
|
2270
|
-
var entry = entries[
|
|
2272
|
+
while (++index < length) {
|
|
2273
|
+
var entry = entries[index];
|
|
2271
2274
|
this.set(entry[0], entry[1]);
|
|
2272
2275
|
}
|
|
2273
2276
|
}
|
|
@@ -2276,33 +2279,33 @@ var __publicField = (obj, key, value) => {
|
|
|
2276
2279
|
this.size = 0;
|
|
2277
2280
|
}
|
|
2278
2281
|
function listCacheDelete(key) {
|
|
2279
|
-
var data2 = this.__data__,
|
|
2280
|
-
if (
|
|
2282
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
2283
|
+
if (index < 0) {
|
|
2281
2284
|
return false;
|
|
2282
2285
|
}
|
|
2283
2286
|
var lastIndex = data2.length - 1;
|
|
2284
|
-
if (
|
|
2287
|
+
if (index == lastIndex) {
|
|
2285
2288
|
data2.pop();
|
|
2286
2289
|
} else {
|
|
2287
|
-
splice.call(data2,
|
|
2290
|
+
splice.call(data2, index, 1);
|
|
2288
2291
|
}
|
|
2289
2292
|
--this.size;
|
|
2290
2293
|
return true;
|
|
2291
2294
|
}
|
|
2292
2295
|
function listCacheGet(key) {
|
|
2293
|
-
var data2 = this.__data__,
|
|
2294
|
-
return
|
|
2296
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
2297
|
+
return index < 0 ? undefined$1 : data2[index][1];
|
|
2295
2298
|
}
|
|
2296
2299
|
function listCacheHas(key) {
|
|
2297
2300
|
return assocIndexOf(this.__data__, key) > -1;
|
|
2298
2301
|
}
|
|
2299
2302
|
function listCacheSet(key, value) {
|
|
2300
|
-
var data2 = this.__data__,
|
|
2301
|
-
if (
|
|
2303
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
2304
|
+
if (index < 0) {
|
|
2302
2305
|
++this.size;
|
|
2303
2306
|
data2.push([key, value]);
|
|
2304
2307
|
} else {
|
|
2305
|
-
data2[
|
|
2308
|
+
data2[index][1] = value;
|
|
2306
2309
|
}
|
|
2307
2310
|
return this;
|
|
2308
2311
|
}
|
|
@@ -2312,10 +2315,10 @@ var __publicField = (obj, key, value) => {
|
|
|
2312
2315
|
ListCache.prototype.has = listCacheHas;
|
|
2313
2316
|
ListCache.prototype.set = listCacheSet;
|
|
2314
2317
|
function MapCache(entries) {
|
|
2315
|
-
var
|
|
2318
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2316
2319
|
this.clear();
|
|
2317
|
-
while (++
|
|
2318
|
-
var entry = entries[
|
|
2320
|
+
while (++index < length) {
|
|
2321
|
+
var entry = entries[index];
|
|
2319
2322
|
this.set(entry[0], entry[1]);
|
|
2320
2323
|
}
|
|
2321
2324
|
}
|
|
@@ -2350,10 +2353,10 @@ var __publicField = (obj, key, value) => {
|
|
|
2350
2353
|
MapCache.prototype.has = mapCacheHas;
|
|
2351
2354
|
MapCache.prototype.set = mapCacheSet;
|
|
2352
2355
|
function SetCache(values2) {
|
|
2353
|
-
var
|
|
2356
|
+
var index = -1, length = values2 == null ? 0 : values2.length;
|
|
2354
2357
|
this.__data__ = new MapCache();
|
|
2355
|
-
while (++
|
|
2356
|
-
this.add(values2[
|
|
2358
|
+
while (++index < length) {
|
|
2359
|
+
this.add(values2[index]);
|
|
2357
2360
|
}
|
|
2358
2361
|
}
|
|
2359
2362
|
function setCacheAdd(value) {
|
|
@@ -2472,9 +2475,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2472
2475
|
}
|
|
2473
2476
|
}
|
|
2474
2477
|
function baseAt(object2, paths) {
|
|
2475
|
-
var
|
|
2476
|
-
while (++
|
|
2477
|
-
result2[
|
|
2478
|
+
var index = -1, length = paths.length, result2 = Array2(length), skip = object2 == null;
|
|
2479
|
+
while (++index < length) {
|
|
2480
|
+
result2[index] = skip ? undefined$1 : get(object2, paths[index]);
|
|
2478
2481
|
}
|
|
2479
2482
|
return result2;
|
|
2480
2483
|
}
|
|
@@ -2578,7 +2581,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2578
2581
|
}, wait);
|
|
2579
2582
|
}
|
|
2580
2583
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
2581
|
-
var
|
|
2584
|
+
var index = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
|
2582
2585
|
if (!length) {
|
|
2583
2586
|
return result2;
|
|
2584
2587
|
}
|
|
@@ -2594,8 +2597,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2594
2597
|
values2 = new SetCache(values2);
|
|
2595
2598
|
}
|
|
2596
2599
|
outer:
|
|
2597
|
-
while (++
|
|
2598
|
-
var value = array[
|
|
2600
|
+
while (++index < length) {
|
|
2601
|
+
var value = array[index], computed = iteratee2 == null ? value : iteratee2(value);
|
|
2599
2602
|
value = comparator || value !== 0 ? value : 0;
|
|
2600
2603
|
if (isCommon && computed === computed) {
|
|
2601
2604
|
var valuesIndex = valuesLength;
|
|
@@ -2615,16 +2618,16 @@ var __publicField = (obj, key, value) => {
|
|
|
2615
2618
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
|
2616
2619
|
function baseEvery(collection, predicate) {
|
|
2617
2620
|
var result2 = true;
|
|
2618
|
-
baseEach(collection, function(value,
|
|
2619
|
-
result2 = !!predicate(value,
|
|
2621
|
+
baseEach(collection, function(value, index, collection2) {
|
|
2622
|
+
result2 = !!predicate(value, index, collection2);
|
|
2620
2623
|
return result2;
|
|
2621
2624
|
});
|
|
2622
2625
|
return result2;
|
|
2623
2626
|
}
|
|
2624
2627
|
function baseExtremum(array, iteratee2, comparator) {
|
|
2625
|
-
var
|
|
2626
|
-
while (++
|
|
2627
|
-
var value = array[
|
|
2628
|
+
var index = -1, length = array.length;
|
|
2629
|
+
while (++index < length) {
|
|
2630
|
+
var value = array[index], current = iteratee2(value);
|
|
2628
2631
|
if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) {
|
|
2629
2632
|
var computed = current, result2 = value;
|
|
2630
2633
|
}
|
|
@@ -2649,19 +2652,19 @@ var __publicField = (obj, key, value) => {
|
|
|
2649
2652
|
}
|
|
2650
2653
|
function baseFilter(collection, predicate) {
|
|
2651
2654
|
var result2 = [];
|
|
2652
|
-
baseEach(collection, function(value,
|
|
2653
|
-
if (predicate(value,
|
|
2655
|
+
baseEach(collection, function(value, index, collection2) {
|
|
2656
|
+
if (predicate(value, index, collection2)) {
|
|
2654
2657
|
result2.push(value);
|
|
2655
2658
|
}
|
|
2656
2659
|
});
|
|
2657
2660
|
return result2;
|
|
2658
2661
|
}
|
|
2659
2662
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
|
2660
|
-
var
|
|
2663
|
+
var index = -1, length = array.length;
|
|
2661
2664
|
predicate || (predicate = isFlattenable);
|
|
2662
2665
|
result2 || (result2 = []);
|
|
2663
|
-
while (++
|
|
2664
|
-
var value = array[
|
|
2666
|
+
while (++index < length) {
|
|
2667
|
+
var value = array[index];
|
|
2665
2668
|
if (depth > 0 && predicate(value)) {
|
|
2666
2669
|
if (depth > 1) {
|
|
2667
2670
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
|
@@ -2689,11 +2692,11 @@ var __publicField = (obj, key, value) => {
|
|
|
2689
2692
|
}
|
|
2690
2693
|
function baseGet(object2, path) {
|
|
2691
2694
|
path = castPath(path, object2);
|
|
2692
|
-
var
|
|
2693
|
-
while (object2 != null &&
|
|
2694
|
-
object2 = object2[toKey(path[
|
|
2695
|
+
var index = 0, length = path.length;
|
|
2696
|
+
while (object2 != null && index < length) {
|
|
2697
|
+
object2 = object2[toKey(path[index++])];
|
|
2695
2698
|
}
|
|
2696
|
-
return
|
|
2699
|
+
return index && index == length ? object2 : undefined$1;
|
|
2697
2700
|
}
|
|
2698
2701
|
function baseGetAllKeys(object2, keysFunc, symbolsFunc) {
|
|
2699
2702
|
var result2 = keysFunc(object2);
|
|
@@ -2728,10 +2731,10 @@ var __publicField = (obj, key, value) => {
|
|
|
2728
2731
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
|
2729
2732
|
}
|
|
2730
2733
|
array = arrays[0];
|
|
2731
|
-
var
|
|
2734
|
+
var index = -1, seen = caches[0];
|
|
2732
2735
|
outer:
|
|
2733
|
-
while (++
|
|
2734
|
-
var value = array[
|
|
2736
|
+
while (++index < length && result2.length < maxLength) {
|
|
2737
|
+
var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
2735
2738
|
value = comparator || value !== 0 ? value : 0;
|
|
2736
2739
|
if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
|
|
2737
2740
|
othIndex = othLength;
|
|
@@ -2813,19 +2816,19 @@ var __publicField = (obj, key, value) => {
|
|
|
2813
2816
|
return isObjectLike(value) && getTag(value) == mapTag;
|
|
2814
2817
|
}
|
|
2815
2818
|
function baseIsMatch(object2, source, matchData, customizer) {
|
|
2816
|
-
var
|
|
2819
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
2817
2820
|
if (object2 == null) {
|
|
2818
2821
|
return !length;
|
|
2819
2822
|
}
|
|
2820
2823
|
object2 = Object2(object2);
|
|
2821
|
-
while (
|
|
2822
|
-
var data2 = matchData[
|
|
2824
|
+
while (index--) {
|
|
2825
|
+
var data2 = matchData[index];
|
|
2823
2826
|
if (noCustomizer && data2[2] ? data2[1] !== object2[data2[0]] : !(data2[0] in object2)) {
|
|
2824
2827
|
return false;
|
|
2825
2828
|
}
|
|
2826
2829
|
}
|
|
2827
|
-
while (++
|
|
2828
|
-
data2 = matchData[
|
|
2830
|
+
while (++index < length) {
|
|
2831
|
+
data2 = matchData[index];
|
|
2829
2832
|
var key = data2[0], objValue = object2[key], srcValue = data2[1];
|
|
2830
2833
|
if (noCustomizer && data2[2]) {
|
|
2831
2834
|
if (objValue === undefined$1 && !(key in object2)) {
|
|
@@ -2899,9 +2902,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2899
2902
|
return value < other;
|
|
2900
2903
|
}
|
|
2901
2904
|
function baseMap(collection, iteratee2) {
|
|
2902
|
-
var
|
|
2905
|
+
var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
2903
2906
|
baseEach(collection, function(value, key, collection2) {
|
|
2904
|
-
result2[++
|
|
2907
|
+
result2[++index] = iteratee2(value, key, collection2);
|
|
2905
2908
|
});
|
|
2906
2909
|
return result2;
|
|
2907
2910
|
}
|
|
@@ -3004,13 +3007,13 @@ var __publicField = (obj, key, value) => {
|
|
|
3004
3007
|
} else {
|
|
3005
3008
|
iteratees = [identity];
|
|
3006
3009
|
}
|
|
3007
|
-
var
|
|
3010
|
+
var index = -1;
|
|
3008
3011
|
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
|
3009
3012
|
var result2 = baseMap(collection, function(value, key, collection2) {
|
|
3010
3013
|
var criteria = arrayMap(iteratees, function(iteratee2) {
|
|
3011
3014
|
return iteratee2(value);
|
|
3012
3015
|
});
|
|
3013
|
-
return { "criteria": criteria, "index": ++
|
|
3016
|
+
return { "criteria": criteria, "index": ++index, "value": value };
|
|
3014
3017
|
});
|
|
3015
3018
|
return baseSortBy(result2, function(object2, other) {
|
|
3016
3019
|
return compareMultiple(object2, other, orders);
|
|
@@ -3022,9 +3025,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3022
3025
|
});
|
|
3023
3026
|
}
|
|
3024
3027
|
function basePickBy(object2, paths, predicate) {
|
|
3025
|
-
var
|
|
3026
|
-
while (++
|
|
3027
|
-
var path = paths[
|
|
3028
|
+
var index = -1, length = paths.length, result2 = {};
|
|
3029
|
+
while (++index < length) {
|
|
3030
|
+
var path = paths[index], value = baseGet(object2, path);
|
|
3028
3031
|
if (predicate(value, path)) {
|
|
3029
3032
|
baseSet(result2, castPath(path, object2), value);
|
|
3030
3033
|
}
|
|
@@ -3037,15 +3040,15 @@ var __publicField = (obj, key, value) => {
|
|
|
3037
3040
|
};
|
|
3038
3041
|
}
|
|
3039
3042
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
3040
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf,
|
|
3043
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array;
|
|
3041
3044
|
if (array === values2) {
|
|
3042
3045
|
values2 = copyArray(values2);
|
|
3043
3046
|
}
|
|
3044
3047
|
if (iteratee2) {
|
|
3045
3048
|
seen = arrayMap(array, baseUnary(iteratee2));
|
|
3046
3049
|
}
|
|
3047
|
-
while (++
|
|
3048
|
-
var fromIndex = 0, value = values2[
|
|
3050
|
+
while (++index < length) {
|
|
3051
|
+
var fromIndex = 0, value = values2[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
3049
3052
|
while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
|
|
3050
3053
|
if (seen !== array) {
|
|
3051
3054
|
splice.call(seen, fromIndex, 1);
|
|
@@ -3058,13 +3061,13 @@ var __publicField = (obj, key, value) => {
|
|
|
3058
3061
|
function basePullAt(array, indexes) {
|
|
3059
3062
|
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
|
3060
3063
|
while (length--) {
|
|
3061
|
-
var
|
|
3062
|
-
if (length == lastIndex ||
|
|
3063
|
-
var previous =
|
|
3064
|
-
if (isIndex(
|
|
3065
|
-
splice.call(array,
|
|
3064
|
+
var index = indexes[length];
|
|
3065
|
+
if (length == lastIndex || index !== previous) {
|
|
3066
|
+
var previous = index;
|
|
3067
|
+
if (isIndex(index)) {
|
|
3068
|
+
splice.call(array, index, 1);
|
|
3066
3069
|
} else {
|
|
3067
|
-
baseUnset(array,
|
|
3070
|
+
baseUnset(array, index);
|
|
3068
3071
|
}
|
|
3069
3072
|
}
|
|
3070
3073
|
}
|
|
@@ -3074,9 +3077,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3074
3077
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
3075
3078
|
}
|
|
3076
3079
|
function baseRange(start, end, step, fromRight) {
|
|
3077
|
-
var
|
|
3080
|
+
var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
|
|
3078
3081
|
while (length--) {
|
|
3079
|
-
result2[fromRight ? length : ++
|
|
3082
|
+
result2[fromRight ? length : ++index] = start;
|
|
3080
3083
|
start += step;
|
|
3081
3084
|
}
|
|
3082
3085
|
return result2;
|
|
@@ -3112,17 +3115,17 @@ var __publicField = (obj, key, value) => {
|
|
|
3112
3115
|
return object2;
|
|
3113
3116
|
}
|
|
3114
3117
|
path = castPath(path, object2);
|
|
3115
|
-
var
|
|
3116
|
-
while (nested != null && ++
|
|
3117
|
-
var key = toKey(path[
|
|
3118
|
+
var index = -1, length = path.length, lastIndex = length - 1, nested = object2;
|
|
3119
|
+
while (nested != null && ++index < length) {
|
|
3120
|
+
var key = toKey(path[index]), newValue = value;
|
|
3118
3121
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
3119
3122
|
return object2;
|
|
3120
3123
|
}
|
|
3121
|
-
if (
|
|
3124
|
+
if (index != lastIndex) {
|
|
3122
3125
|
var objValue = nested[key];
|
|
3123
3126
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
3124
3127
|
if (newValue === undefined$1) {
|
|
3125
|
-
newValue = isObject(objValue) ? objValue : isIndex(path[
|
|
3128
|
+
newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
3126
3129
|
}
|
|
3127
3130
|
}
|
|
3128
3131
|
assignValue(nested, key, newValue);
|
|
@@ -3146,7 +3149,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3146
3149
|
return shuffleSelf(values(collection));
|
|
3147
3150
|
}
|
|
3148
3151
|
function baseSlice(array, start, end) {
|
|
3149
|
-
var
|
|
3152
|
+
var index = -1, length = array.length;
|
|
3150
3153
|
if (start < 0) {
|
|
3151
3154
|
start = -start > length ? 0 : length + start;
|
|
3152
3155
|
}
|
|
@@ -3157,15 +3160,15 @@ var __publicField = (obj, key, value) => {
|
|
|
3157
3160
|
length = start > end ? 0 : end - start >>> 0;
|
|
3158
3161
|
start >>>= 0;
|
|
3159
3162
|
var result2 = Array2(length);
|
|
3160
|
-
while (++
|
|
3161
|
-
result2[
|
|
3163
|
+
while (++index < length) {
|
|
3164
|
+
result2[index] = array[index + start];
|
|
3162
3165
|
}
|
|
3163
3166
|
return result2;
|
|
3164
3167
|
}
|
|
3165
3168
|
function baseSome(collection, predicate) {
|
|
3166
3169
|
var result2;
|
|
3167
|
-
baseEach(collection, function(value,
|
|
3168
|
-
result2 = predicate(value,
|
|
3170
|
+
baseEach(collection, function(value, index, collection2) {
|
|
3171
|
+
result2 = predicate(value, index, collection2);
|
|
3169
3172
|
return !result2;
|
|
3170
3173
|
});
|
|
3171
3174
|
return !!result2;
|
|
@@ -3216,10 +3219,10 @@ var __publicField = (obj, key, value) => {
|
|
|
3216
3219
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
3217
3220
|
}
|
|
3218
3221
|
function baseSortedUniq(array, iteratee2) {
|
|
3219
|
-
var
|
|
3220
|
-
while (++
|
|
3221
|
-
var value = array[
|
|
3222
|
-
if (!
|
|
3222
|
+
var index = -1, length = array.length, resIndex = 0, result2 = [];
|
|
3223
|
+
while (++index < length) {
|
|
3224
|
+
var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
3225
|
+
if (!index || !eq(computed, seen)) {
|
|
3223
3226
|
var seen = computed;
|
|
3224
3227
|
result2[resIndex++] = value === 0 ? 0 : value;
|
|
3225
3228
|
}
|
|
@@ -3249,7 +3252,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3249
3252
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
3250
3253
|
}
|
|
3251
3254
|
function baseUniq(array, iteratee2, comparator) {
|
|
3252
|
-
var
|
|
3255
|
+
var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
3253
3256
|
if (comparator) {
|
|
3254
3257
|
isCommon = false;
|
|
3255
3258
|
includes2 = arrayIncludesWith;
|
|
@@ -3265,8 +3268,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3265
3268
|
seen = iteratee2 ? [] : result2;
|
|
3266
3269
|
}
|
|
3267
3270
|
outer:
|
|
3268
|
-
while (++
|
|
3269
|
-
var value = array[
|
|
3271
|
+
while (++index < length) {
|
|
3272
|
+
var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
|
|
3270
3273
|
value = comparator || value !== 0 ? value : 0;
|
|
3271
3274
|
if (isCommon && computed === computed) {
|
|
3272
3275
|
var seenIndex = seen.length;
|
|
@@ -3297,10 +3300,10 @@ var __publicField = (obj, key, value) => {
|
|
|
3297
3300
|
return baseSet(object2, path, updater(baseGet(object2, path)), customizer);
|
|
3298
3301
|
}
|
|
3299
3302
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
3300
|
-
var length = array.length,
|
|
3301
|
-
while ((fromRight ?
|
|
3303
|
+
var length = array.length, index = fromRight ? length : -1;
|
|
3304
|
+
while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {
|
|
3302
3305
|
}
|
|
3303
|
-
return isDrop ? baseSlice(array, fromRight ? 0 :
|
|
3306
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index);
|
|
3304
3307
|
}
|
|
3305
3308
|
function baseWrapperValue(value, actions) {
|
|
3306
3309
|
var result2 = value;
|
|
@@ -3316,22 +3319,22 @@ var __publicField = (obj, key, value) => {
|
|
|
3316
3319
|
if (length < 2) {
|
|
3317
3320
|
return length ? baseUniq(arrays[0]) : [];
|
|
3318
3321
|
}
|
|
3319
|
-
var
|
|
3320
|
-
while (++
|
|
3321
|
-
var array = arrays[
|
|
3322
|
+
var index = -1, result2 = Array2(length);
|
|
3323
|
+
while (++index < length) {
|
|
3324
|
+
var array = arrays[index], othIndex = -1;
|
|
3322
3325
|
while (++othIndex < length) {
|
|
3323
|
-
if (othIndex !=
|
|
3324
|
-
result2[
|
|
3326
|
+
if (othIndex != index) {
|
|
3327
|
+
result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator);
|
|
3325
3328
|
}
|
|
3326
3329
|
}
|
|
3327
3330
|
}
|
|
3328
3331
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
|
3329
3332
|
}
|
|
3330
3333
|
function baseZipObject(props, values2, assignFunc) {
|
|
3331
|
-
var
|
|
3332
|
-
while (++
|
|
3333
|
-
var value =
|
|
3334
|
-
assignFunc(result2, props[
|
|
3334
|
+
var index = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
3335
|
+
while (++index < length) {
|
|
3336
|
+
var value = index < valsLength ? values2[index] : undefined$1;
|
|
3337
|
+
assignFunc(result2, props[index], value);
|
|
3335
3338
|
}
|
|
3336
3339
|
return result2;
|
|
3337
3340
|
}
|
|
@@ -3399,14 +3402,14 @@ var __publicField = (obj, key, value) => {
|
|
|
3399
3402
|
return 0;
|
|
3400
3403
|
}
|
|
3401
3404
|
function compareMultiple(object2, other, orders) {
|
|
3402
|
-
var
|
|
3403
|
-
while (++
|
|
3404
|
-
var result2 = compareAscending(objCriteria[
|
|
3405
|
+
var index = -1, objCriteria = object2.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
3406
|
+
while (++index < length) {
|
|
3407
|
+
var result2 = compareAscending(objCriteria[index], othCriteria[index]);
|
|
3405
3408
|
if (result2) {
|
|
3406
|
-
if (
|
|
3409
|
+
if (index >= ordersLength) {
|
|
3407
3410
|
return result2;
|
|
3408
3411
|
}
|
|
3409
|
-
var order = orders[
|
|
3412
|
+
var order = orders[index];
|
|
3410
3413
|
return result2 * (order == "desc" ? -1 : 1);
|
|
3411
3414
|
}
|
|
3412
3415
|
}
|
|
@@ -3444,19 +3447,19 @@ var __publicField = (obj, key, value) => {
|
|
|
3444
3447
|
return result2;
|
|
3445
3448
|
}
|
|
3446
3449
|
function copyArray(source, array) {
|
|
3447
|
-
var
|
|
3450
|
+
var index = -1, length = source.length;
|
|
3448
3451
|
array || (array = Array2(length));
|
|
3449
|
-
while (++
|
|
3450
|
-
array[
|
|
3452
|
+
while (++index < length) {
|
|
3453
|
+
array[index] = source[index];
|
|
3451
3454
|
}
|
|
3452
3455
|
return array;
|
|
3453
3456
|
}
|
|
3454
3457
|
function copyObject(source, props, object2, customizer) {
|
|
3455
3458
|
var isNew = !object2;
|
|
3456
3459
|
object2 || (object2 = {});
|
|
3457
|
-
var
|
|
3458
|
-
while (++
|
|
3459
|
-
var key = props[
|
|
3460
|
+
var index = -1, length = props.length;
|
|
3461
|
+
while (++index < length) {
|
|
3462
|
+
var key = props[index];
|
|
3460
3463
|
var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : undefined$1;
|
|
3461
3464
|
if (newValue === undefined$1) {
|
|
3462
3465
|
newValue = source[key];
|
|
@@ -3483,17 +3486,17 @@ var __publicField = (obj, key, value) => {
|
|
|
3483
3486
|
}
|
|
3484
3487
|
function createAssigner(assigner) {
|
|
3485
3488
|
return baseRest(function(object2, sources) {
|
|
3486
|
-
var
|
|
3489
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
|
|
3487
3490
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
|
|
3488
3491
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
3489
3492
|
customizer = length < 3 ? undefined$1 : customizer;
|
|
3490
3493
|
length = 1;
|
|
3491
3494
|
}
|
|
3492
3495
|
object2 = Object2(object2);
|
|
3493
|
-
while (++
|
|
3494
|
-
var source = sources[
|
|
3496
|
+
while (++index < length) {
|
|
3497
|
+
var source = sources[index];
|
|
3495
3498
|
if (source) {
|
|
3496
|
-
assigner(object2, source,
|
|
3499
|
+
assigner(object2, source, index, customizer);
|
|
3497
3500
|
}
|
|
3498
3501
|
}
|
|
3499
3502
|
return object2;
|
|
@@ -3507,9 +3510,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3507
3510
|
if (!isArrayLike(collection)) {
|
|
3508
3511
|
return eachFunc(collection, iteratee2);
|
|
3509
3512
|
}
|
|
3510
|
-
var length = collection.length,
|
|
3511
|
-
while (fromRight ?
|
|
3512
|
-
if (iteratee2(iterable[
|
|
3513
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection);
|
|
3514
|
+
while (fromRight ? index-- : ++index < length) {
|
|
3515
|
+
if (iteratee2(iterable[index], index, iterable) === false) {
|
|
3513
3516
|
break;
|
|
3514
3517
|
}
|
|
3515
3518
|
}
|
|
@@ -3518,9 +3521,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3518
3521
|
}
|
|
3519
3522
|
function createBaseFor(fromRight) {
|
|
3520
3523
|
return function(object2, iteratee2, keysFunc) {
|
|
3521
|
-
var
|
|
3524
|
+
var index = -1, iterable = Object2(object2), props = keysFunc(object2), length = props.length;
|
|
3522
3525
|
while (length--) {
|
|
3523
|
-
var key = props[fromRight ? length : ++
|
|
3526
|
+
var key = props[fromRight ? length : ++index];
|
|
3524
3527
|
if (iteratee2(iterable[key], key, iterable) === false) {
|
|
3525
3528
|
break;
|
|
3526
3529
|
}
|
|
@@ -3578,9 +3581,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3578
3581
|
function createCurry(func, bitmask, arity) {
|
|
3579
3582
|
var Ctor = createCtor(func);
|
|
3580
3583
|
function wrapper() {
|
|
3581
|
-
var length = arguments.length, args = Array2(length),
|
|
3582
|
-
while (
|
|
3583
|
-
args[
|
|
3584
|
+
var length = arguments.length, args = Array2(length), index = length, placeholder = getHolder(wrapper);
|
|
3585
|
+
while (index--) {
|
|
3586
|
+
args[index] = arguments[index];
|
|
3584
3587
|
}
|
|
3585
3588
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
3586
3589
|
length -= holders.length;
|
|
@@ -3613,18 +3616,18 @@ var __publicField = (obj, key, value) => {
|
|
|
3613
3616
|
return iteratee2(iterable[key], key, iterable);
|
|
3614
3617
|
};
|
|
3615
3618
|
}
|
|
3616
|
-
var
|
|
3617
|
-
return
|
|
3619
|
+
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
3620
|
+
return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1;
|
|
3618
3621
|
};
|
|
3619
3622
|
}
|
|
3620
3623
|
function createFlow(fromRight) {
|
|
3621
3624
|
return flatRest(function(funcs) {
|
|
3622
|
-
var length = funcs.length,
|
|
3625
|
+
var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru;
|
|
3623
3626
|
if (fromRight) {
|
|
3624
3627
|
funcs.reverse();
|
|
3625
3628
|
}
|
|
3626
|
-
while (
|
|
3627
|
-
var func = funcs[
|
|
3629
|
+
while (index--) {
|
|
3630
|
+
var func = funcs[index];
|
|
3628
3631
|
if (typeof func != "function") {
|
|
3629
3632
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
3630
3633
|
}
|
|
@@ -3632,9 +3635,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3632
3635
|
var wrapper = new LodashWrapper([], true);
|
|
3633
3636
|
}
|
|
3634
3637
|
}
|
|
3635
|
-
|
|
3636
|
-
while (++
|
|
3637
|
-
func = funcs[
|
|
3638
|
+
index = wrapper ? index : length;
|
|
3639
|
+
while (++index < length) {
|
|
3640
|
+
func = funcs[index];
|
|
3638
3641
|
var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
|
|
3639
3642
|
if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
|
|
3640
3643
|
wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
|
|
@@ -3647,9 +3650,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3647
3650
|
if (wrapper && args.length == 1 && isArray(value)) {
|
|
3648
3651
|
return wrapper.plant(value).value();
|
|
3649
3652
|
}
|
|
3650
|
-
var
|
|
3651
|
-
while (++
|
|
3652
|
-
result2 = funcs[
|
|
3653
|
+
var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value;
|
|
3654
|
+
while (++index2 < length) {
|
|
3655
|
+
result2 = funcs[index2].call(this, result2);
|
|
3653
3656
|
}
|
|
3654
3657
|
return result2;
|
|
3655
3658
|
};
|
|
@@ -3658,9 +3661,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3658
3661
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
3659
3662
|
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
|
|
3660
3663
|
function wrapper() {
|
|
3661
|
-
var length = arguments.length, args = Array2(length),
|
|
3662
|
-
while (
|
|
3663
|
-
args[
|
|
3664
|
+
var length = arguments.length, args = Array2(length), index = length;
|
|
3665
|
+
while (index--) {
|
|
3666
|
+
args[index] = arguments[index];
|
|
3664
3667
|
}
|
|
3665
3668
|
if (isCurried) {
|
|
3666
3669
|
var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
|
|
@@ -3928,13 +3931,13 @@ var __publicField = (obj, key, value) => {
|
|
|
3928
3931
|
if (arrStacked && othStacked) {
|
|
3929
3932
|
return arrStacked == other && othStacked == array;
|
|
3930
3933
|
}
|
|
3931
|
-
var
|
|
3934
|
+
var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
|
|
3932
3935
|
stack.set(array, other);
|
|
3933
3936
|
stack.set(other, array);
|
|
3934
|
-
while (++
|
|
3935
|
-
var arrValue = array[
|
|
3937
|
+
while (++index < arrLength) {
|
|
3938
|
+
var arrValue = array[index], othValue = other[index];
|
|
3936
3939
|
if (customizer) {
|
|
3937
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
|
3940
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
3938
3941
|
}
|
|
3939
3942
|
if (compared !== undefined$1) {
|
|
3940
3943
|
if (compared) {
|
|
@@ -4012,9 +4015,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4012
4015
|
if (objLength != othLength && !isPartial) {
|
|
4013
4016
|
return false;
|
|
4014
4017
|
}
|
|
4015
|
-
var
|
|
4016
|
-
while (
|
|
4017
|
-
var key = objProps[
|
|
4018
|
+
var index = objLength;
|
|
4019
|
+
while (index--) {
|
|
4020
|
+
var key = objProps[index];
|
|
4018
4021
|
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
4019
4022
|
return false;
|
|
4020
4023
|
}
|
|
@@ -4028,8 +4031,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4028
4031
|
stack.set(object2, other);
|
|
4029
4032
|
stack.set(other, object2);
|
|
4030
4033
|
var skipCtor = isPartial;
|
|
4031
|
-
while (++
|
|
4032
|
-
key = objProps[
|
|
4034
|
+
while (++index < objLength) {
|
|
4035
|
+
key = objProps[index];
|
|
4033
4036
|
var objValue = object2[key], othValue = other[key];
|
|
4034
4037
|
if (customizer) {
|
|
4035
4038
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object2, stack) : customizer(objValue, othValue, key, object2, other, stack);
|
|
@@ -4153,9 +4156,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4153
4156
|
};
|
|
4154
4157
|
}
|
|
4155
4158
|
function getView(start, end, transforms) {
|
|
4156
|
-
var
|
|
4157
|
-
while (++
|
|
4158
|
-
var data2 = transforms[
|
|
4159
|
+
var index = -1, length = transforms.length;
|
|
4160
|
+
while (++index < length) {
|
|
4161
|
+
var data2 = transforms[index], size2 = data2.size;
|
|
4159
4162
|
switch (data2.type) {
|
|
4160
4163
|
case "drop":
|
|
4161
4164
|
start += size2;
|
|
@@ -4179,15 +4182,15 @@ var __publicField = (obj, key, value) => {
|
|
|
4179
4182
|
}
|
|
4180
4183
|
function hasPath(object2, path, hasFunc) {
|
|
4181
4184
|
path = castPath(path, object2);
|
|
4182
|
-
var
|
|
4183
|
-
while (++
|
|
4184
|
-
var key = toKey(path[
|
|
4185
|
+
var index = -1, length = path.length, result2 = false;
|
|
4186
|
+
while (++index < length) {
|
|
4187
|
+
var key = toKey(path[index]);
|
|
4185
4188
|
if (!(result2 = object2 != null && hasFunc(object2, key))) {
|
|
4186
4189
|
break;
|
|
4187
4190
|
}
|
|
4188
4191
|
object2 = object2[key];
|
|
4189
4192
|
}
|
|
4190
|
-
if (result2 || ++
|
|
4193
|
+
if (result2 || ++index != length) {
|
|
4191
4194
|
return result2;
|
|
4192
4195
|
}
|
|
4193
4196
|
length = object2 == null ? 0 : object2.length;
|
|
@@ -4255,13 +4258,13 @@ var __publicField = (obj, key, value) => {
|
|
|
4255
4258
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4256
4259
|
return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
4257
4260
|
}
|
|
4258
|
-
function isIterateeCall(value,
|
|
4261
|
+
function isIterateeCall(value, index, object2) {
|
|
4259
4262
|
if (!isObject(object2)) {
|
|
4260
4263
|
return false;
|
|
4261
4264
|
}
|
|
4262
|
-
var type2 = typeof
|
|
4263
|
-
if (type2 == "number" ? isArrayLike(object2) && isIndex(
|
|
4264
|
-
return eq(object2[
|
|
4265
|
+
var type2 = typeof index;
|
|
4266
|
+
if (type2 == "number" ? isArrayLike(object2) && isIndex(index, object2.length) : type2 == "string" && index in object2) {
|
|
4267
|
+
return eq(object2[index], value);
|
|
4265
4268
|
}
|
|
4266
4269
|
return false;
|
|
4267
4270
|
}
|
|
@@ -4370,14 +4373,14 @@ var __publicField = (obj, key, value) => {
|
|
|
4370
4373
|
function overRest(func, start, transform2) {
|
|
4371
4374
|
start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
|
|
4372
4375
|
return function() {
|
|
4373
|
-
var args = arguments,
|
|
4374
|
-
while (++
|
|
4375
|
-
array[
|
|
4376
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
|
|
4377
|
+
while (++index < length) {
|
|
4378
|
+
array[index] = args[start + index];
|
|
4376
4379
|
}
|
|
4377
|
-
|
|
4380
|
+
index = -1;
|
|
4378
4381
|
var otherArgs = Array2(start + 1);
|
|
4379
|
-
while (++
|
|
4380
|
-
otherArgs[
|
|
4382
|
+
while (++index < start) {
|
|
4383
|
+
otherArgs[index] = args[index];
|
|
4381
4384
|
}
|
|
4382
4385
|
otherArgs[start] = transform2(array);
|
|
4383
4386
|
return apply(func, this, otherArgs);
|
|
@@ -4389,8 +4392,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4389
4392
|
function reorder(array, indexes) {
|
|
4390
4393
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
4391
4394
|
while (length--) {
|
|
4392
|
-
var
|
|
4393
|
-
array[length] = isIndex(
|
|
4395
|
+
var index = indexes[length];
|
|
4396
|
+
array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;
|
|
4394
4397
|
}
|
|
4395
4398
|
return array;
|
|
4396
4399
|
}
|
|
@@ -4428,12 +4431,12 @@ var __publicField = (obj, key, value) => {
|
|
|
4428
4431
|
};
|
|
4429
4432
|
}
|
|
4430
4433
|
function shuffleSelf(array, size2) {
|
|
4431
|
-
var
|
|
4434
|
+
var index = -1, length = array.length, lastIndex = length - 1;
|
|
4432
4435
|
size2 = size2 === undefined$1 ? length : size2;
|
|
4433
|
-
while (++
|
|
4434
|
-
var rand = baseRandom(
|
|
4435
|
-
array[rand] = array[
|
|
4436
|
-
array[
|
|
4436
|
+
while (++index < size2) {
|
|
4437
|
+
var rand = baseRandom(index, lastIndex), value = array[rand];
|
|
4438
|
+
array[rand] = array[index];
|
|
4439
|
+
array[index] = value;
|
|
4437
4440
|
}
|
|
4438
4441
|
array.length = size2;
|
|
4439
4442
|
return array;
|
|
@@ -4497,16 +4500,16 @@ var __publicField = (obj, key, value) => {
|
|
|
4497
4500
|
if (!length || size2 < 1) {
|
|
4498
4501
|
return [];
|
|
4499
4502
|
}
|
|
4500
|
-
var
|
|
4501
|
-
while (
|
|
4502
|
-
result2[resIndex++] = baseSlice(array,
|
|
4503
|
+
var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
|
4504
|
+
while (index < length) {
|
|
4505
|
+
result2[resIndex++] = baseSlice(array, index, index += size2);
|
|
4503
4506
|
}
|
|
4504
4507
|
return result2;
|
|
4505
4508
|
}
|
|
4506
4509
|
function compact(array) {
|
|
4507
|
-
var
|
|
4508
|
-
while (++
|
|
4509
|
-
var value = array[
|
|
4510
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
|
4511
|
+
while (++index < length) {
|
|
4512
|
+
var value = array[index];
|
|
4510
4513
|
if (value) {
|
|
4511
4514
|
result2[resIndex++] = value;
|
|
4512
4515
|
}
|
|
@@ -4518,9 +4521,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4518
4521
|
if (!length) {
|
|
4519
4522
|
return [];
|
|
4520
4523
|
}
|
|
4521
|
-
var args = Array2(length - 1), array = arguments[0],
|
|
4522
|
-
while (
|
|
4523
|
-
args[
|
|
4524
|
+
var args = Array2(length - 1), array = arguments[0], index = length;
|
|
4525
|
+
while (index--) {
|
|
4526
|
+
args[index - 1] = arguments[index];
|
|
4524
4527
|
}
|
|
4525
4528
|
return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
|
4526
4529
|
}
|
|
@@ -4580,23 +4583,23 @@ var __publicField = (obj, key, value) => {
|
|
|
4580
4583
|
if (!length) {
|
|
4581
4584
|
return -1;
|
|
4582
4585
|
}
|
|
4583
|
-
var
|
|
4584
|
-
if (
|
|
4585
|
-
|
|
4586
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4587
|
+
if (index < 0) {
|
|
4588
|
+
index = nativeMax(length + index, 0);
|
|
4586
4589
|
}
|
|
4587
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
4590
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index);
|
|
4588
4591
|
}
|
|
4589
4592
|
function findLastIndex(array, predicate, fromIndex) {
|
|
4590
4593
|
var length = array == null ? 0 : array.length;
|
|
4591
4594
|
if (!length) {
|
|
4592
4595
|
return -1;
|
|
4593
4596
|
}
|
|
4594
|
-
var
|
|
4597
|
+
var index = length - 1;
|
|
4595
4598
|
if (fromIndex !== undefined$1) {
|
|
4596
|
-
|
|
4597
|
-
|
|
4599
|
+
index = toInteger(fromIndex);
|
|
4600
|
+
index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
4598
4601
|
}
|
|
4599
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
4602
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index, true);
|
|
4600
4603
|
}
|
|
4601
4604
|
function flatten(array) {
|
|
4602
4605
|
var length = array == null ? 0 : array.length;
|
|
@@ -4615,9 +4618,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4615
4618
|
return baseFlatten(array, depth);
|
|
4616
4619
|
}
|
|
4617
4620
|
function fromPairs(pairs) {
|
|
4618
|
-
var
|
|
4619
|
-
while (++
|
|
4620
|
-
var pair = pairs[
|
|
4621
|
+
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
4622
|
+
while (++index < length) {
|
|
4623
|
+
var pair = pairs[index];
|
|
4621
4624
|
result2[pair[0]] = pair[1];
|
|
4622
4625
|
}
|
|
4623
4626
|
return result2;
|
|
@@ -4630,11 +4633,11 @@ var __publicField = (obj, key, value) => {
|
|
|
4630
4633
|
if (!length) {
|
|
4631
4634
|
return -1;
|
|
4632
4635
|
}
|
|
4633
|
-
var
|
|
4634
|
-
if (
|
|
4635
|
-
|
|
4636
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
4637
|
+
if (index < 0) {
|
|
4638
|
+
index = nativeMax(length + index, 0);
|
|
4636
4639
|
}
|
|
4637
|
-
return baseIndexOf(array, value,
|
|
4640
|
+
return baseIndexOf(array, value, index);
|
|
4638
4641
|
}
|
|
4639
4642
|
function initial(array) {
|
|
4640
4643
|
var length = array == null ? 0 : array.length;
|
|
@@ -4673,12 +4676,12 @@ var __publicField = (obj, key, value) => {
|
|
|
4673
4676
|
if (!length) {
|
|
4674
4677
|
return -1;
|
|
4675
4678
|
}
|
|
4676
|
-
var
|
|
4679
|
+
var index = length;
|
|
4677
4680
|
if (fromIndex !== undefined$1) {
|
|
4678
|
-
|
|
4679
|
-
|
|
4681
|
+
index = toInteger(fromIndex);
|
|
4682
|
+
index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
4680
4683
|
}
|
|
4681
|
-
return value === value ? strictLastIndexOf(array, value,
|
|
4684
|
+
return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
|
|
4682
4685
|
}
|
|
4683
4686
|
function nth(array, n) {
|
|
4684
4687
|
return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
|
|
@@ -4695,8 +4698,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4695
4698
|
}
|
|
4696
4699
|
var pullAt = flatRest(function(array, indexes) {
|
|
4697
4700
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
4698
|
-
basePullAt(array, arrayMap(indexes, function(
|
|
4699
|
-
return isIndex(
|
|
4701
|
+
basePullAt(array, arrayMap(indexes, function(index) {
|
|
4702
|
+
return isIndex(index, length) ? +index : index;
|
|
4700
4703
|
}).sort(compareAscending));
|
|
4701
4704
|
return result2;
|
|
4702
4705
|
});
|
|
@@ -4705,13 +4708,13 @@ var __publicField = (obj, key, value) => {
|
|
|
4705
4708
|
if (!(array && array.length)) {
|
|
4706
4709
|
return result2;
|
|
4707
4710
|
}
|
|
4708
|
-
var
|
|
4711
|
+
var index = -1, indexes = [], length = array.length;
|
|
4709
4712
|
predicate = getIteratee(predicate, 3);
|
|
4710
|
-
while (++
|
|
4711
|
-
var value = array[
|
|
4712
|
-
if (predicate(value,
|
|
4713
|
+
while (++index < length) {
|
|
4714
|
+
var value = array[index];
|
|
4715
|
+
if (predicate(value, index, array)) {
|
|
4713
4716
|
result2.push(value);
|
|
4714
|
-
indexes.push(
|
|
4717
|
+
indexes.push(index);
|
|
4715
4718
|
}
|
|
4716
4719
|
}
|
|
4717
4720
|
basePullAt(array, indexes);
|
|
@@ -4743,9 +4746,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4743
4746
|
function sortedIndexOf(array, value) {
|
|
4744
4747
|
var length = array == null ? 0 : array.length;
|
|
4745
4748
|
if (length) {
|
|
4746
|
-
var
|
|
4747
|
-
if (
|
|
4748
|
-
return
|
|
4749
|
+
var index = baseSortedIndex(array, value);
|
|
4750
|
+
if (index < length && eq(array[index], value)) {
|
|
4751
|
+
return index;
|
|
4749
4752
|
}
|
|
4750
4753
|
}
|
|
4751
4754
|
return -1;
|
|
@@ -4759,9 +4762,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4759
4762
|
function sortedLastIndexOf(array, value) {
|
|
4760
4763
|
var length = array == null ? 0 : array.length;
|
|
4761
4764
|
if (length) {
|
|
4762
|
-
var
|
|
4763
|
-
if (eq(array[
|
|
4764
|
-
return
|
|
4765
|
+
var index = baseSortedIndex(array, value, true) - 1;
|
|
4766
|
+
if (eq(array[index], value)) {
|
|
4767
|
+
return index;
|
|
4765
4768
|
}
|
|
4766
4769
|
}
|
|
4767
4770
|
return -1;
|
|
@@ -4834,8 +4837,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4834
4837
|
return true;
|
|
4835
4838
|
}
|
|
4836
4839
|
});
|
|
4837
|
-
return baseTimes(length, function(
|
|
4838
|
-
return arrayMap(array, baseProperty(
|
|
4840
|
+
return baseTimes(length, function(index) {
|
|
4841
|
+
return arrayMap(array, baseProperty(index));
|
|
4839
4842
|
});
|
|
4840
4843
|
}
|
|
4841
4844
|
function unzipWith(array, iteratee2) {
|
|
@@ -5020,9 +5023,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5020
5023
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
5021
5024
|
}
|
|
5022
5025
|
var invokeMap = baseRest(function(collection, path, args) {
|
|
5023
|
-
var
|
|
5026
|
+
var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
5024
5027
|
baseEach(collection, function(value) {
|
|
5025
|
-
result2[++
|
|
5028
|
+
result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
|
|
5026
5029
|
});
|
|
5027
5030
|
return result2;
|
|
5028
5031
|
});
|
|
@@ -5308,9 +5311,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5308
5311
|
transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
|
|
5309
5312
|
var funcsLength = transforms.length;
|
|
5310
5313
|
return baseRest(function(args) {
|
|
5311
|
-
var
|
|
5312
|
-
while (++
|
|
5313
|
-
args[
|
|
5314
|
+
var index = -1, length = nativeMin(args.length, funcsLength);
|
|
5315
|
+
while (++index < length) {
|
|
5316
|
+
args[index] = transforms[index].call(this, args[index]);
|
|
5314
5317
|
}
|
|
5315
5318
|
return apply(func, this, args);
|
|
5316
5319
|
});
|
|
@@ -5625,14 +5628,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5625
5628
|
}
|
|
5626
5629
|
var defaults = baseRest(function(object2, sources) {
|
|
5627
5630
|
object2 = Object2(object2);
|
|
5628
|
-
var
|
|
5631
|
+
var index = -1;
|
|
5629
5632
|
var length = sources.length;
|
|
5630
5633
|
var guard = length > 2 ? sources[2] : undefined$1;
|
|
5631
5634
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
5632
5635
|
length = 1;
|
|
5633
5636
|
}
|
|
5634
|
-
while (++
|
|
5635
|
-
var source = sources[
|
|
5637
|
+
while (++index < length) {
|
|
5638
|
+
var source = sources[index];
|
|
5636
5639
|
var props = keysIn(source);
|
|
5637
5640
|
var propsIndex = -1;
|
|
5638
5641
|
var propsLength = props.length;
|
|
@@ -5770,15 +5773,15 @@ var __publicField = (obj, key, value) => {
|
|
|
5770
5773
|
}
|
|
5771
5774
|
function result(object2, path, defaultValue) {
|
|
5772
5775
|
path = castPath(path, object2);
|
|
5773
|
-
var
|
|
5776
|
+
var index = -1, length = path.length;
|
|
5774
5777
|
if (!length) {
|
|
5775
5778
|
length = 1;
|
|
5776
5779
|
object2 = undefined$1;
|
|
5777
5780
|
}
|
|
5778
|
-
while (++
|
|
5779
|
-
var value = object2 == null ? undefined$1 : object2[toKey(path[
|
|
5781
|
+
while (++index < length) {
|
|
5782
|
+
var value = object2 == null ? undefined$1 : object2[toKey(path[index])];
|
|
5780
5783
|
if (value === undefined$1) {
|
|
5781
|
-
|
|
5784
|
+
index = length;
|
|
5782
5785
|
value = defaultValue;
|
|
5783
5786
|
}
|
|
5784
5787
|
object2 = isFunction(value) ? value.call(object2) : value;
|
|
@@ -5807,8 +5810,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5807
5810
|
accumulator = {};
|
|
5808
5811
|
}
|
|
5809
5812
|
}
|
|
5810
|
-
(isArrLike ? arrayEach : baseForOwn)(object2, function(value,
|
|
5811
|
-
return iteratee2(accumulator, value,
|
|
5813
|
+
(isArrLike ? arrayEach : baseForOwn)(object2, function(value, index, object3) {
|
|
5814
|
+
return iteratee2(accumulator, value, index, object3);
|
|
5812
5815
|
});
|
|
5813
5816
|
return accumulator;
|
|
5814
5817
|
}
|
|
@@ -5890,9 +5893,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5890
5893
|
}
|
|
5891
5894
|
return baseRandom(lower, upper);
|
|
5892
5895
|
}
|
|
5893
|
-
var camelCase = createCompounder(function(result2, word,
|
|
5896
|
+
var camelCase = createCompounder(function(result2, word, index) {
|
|
5894
5897
|
word = word.toLowerCase();
|
|
5895
|
-
return result2 + (
|
|
5898
|
+
return result2 + (index ? capitalize(word) : word);
|
|
5896
5899
|
});
|
|
5897
5900
|
function capitalize(string) {
|
|
5898
5901
|
return upperFirst(toString(string).toLowerCase());
|
|
@@ -5918,11 +5921,11 @@ var __publicField = (obj, key, value) => {
|
|
|
5918
5921
|
string = toString(string);
|
|
5919
5922
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
|
|
5920
5923
|
}
|
|
5921
|
-
var kebabCase = createCompounder(function(result2, word,
|
|
5922
|
-
return result2 + (
|
|
5924
|
+
var kebabCase = createCompounder(function(result2, word, index) {
|
|
5925
|
+
return result2 + (index ? "-" : "") + word.toLowerCase();
|
|
5923
5926
|
});
|
|
5924
|
-
var lowerCase = createCompounder(function(result2, word,
|
|
5925
|
-
return result2 + (
|
|
5927
|
+
var lowerCase = createCompounder(function(result2, word, index) {
|
|
5928
|
+
return result2 + (index ? " " : "") + word.toLowerCase();
|
|
5926
5929
|
});
|
|
5927
5930
|
var lowerFirst = createCaseFirst("toLowerCase");
|
|
5928
5931
|
function pad(string, length, chars) {
|
|
@@ -5967,8 +5970,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5967
5970
|
var args = arguments, string = toString(args[0]);
|
|
5968
5971
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
|
5969
5972
|
}
|
|
5970
|
-
var snakeCase = createCompounder(function(result2, word,
|
|
5971
|
-
return result2 + (
|
|
5973
|
+
var snakeCase = createCompounder(function(result2, word, index) {
|
|
5974
|
+
return result2 + (index ? "_" : "") + word.toLowerCase();
|
|
5972
5975
|
});
|
|
5973
5976
|
function split(string, separator, limit) {
|
|
5974
5977
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
|
|
@@ -5987,8 +5990,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5987
5990
|
}
|
|
5988
5991
|
return string.split(separator, limit);
|
|
5989
5992
|
}
|
|
5990
|
-
var startCase = createCompounder(function(result2, word,
|
|
5991
|
-
return result2 + (
|
|
5993
|
+
var startCase = createCompounder(function(result2, word, index) {
|
|
5994
|
+
return result2 + (index ? " " : "") + upperFirst(word);
|
|
5992
5995
|
});
|
|
5993
5996
|
function startsWith(string, target, position) {
|
|
5994
5997
|
string = toString(string);
|
|
@@ -6004,7 +6007,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6004
6007
|
string = toString(string);
|
|
6005
6008
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
6006
6009
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
6007
|
-
var isEscaping, isEvaluating,
|
|
6010
|
+
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
6008
6011
|
var reDelimiters = RegExp2(
|
|
6009
6012
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
6010
6013
|
"g"
|
|
@@ -6012,7 +6015,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6012
6015
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
6013
6016
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
6014
6017
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
6015
|
-
source += string.slice(
|
|
6018
|
+
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
|
6016
6019
|
if (escapeValue) {
|
|
6017
6020
|
isEscaping = true;
|
|
6018
6021
|
source += "' +\n__e(" + escapeValue + ") +\n'";
|
|
@@ -6024,7 +6027,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6024
6027
|
if (interpolateValue) {
|
|
6025
6028
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
6026
6029
|
}
|
|
6027
|
-
|
|
6030
|
+
index = offset + match.length;
|
|
6028
6031
|
return match;
|
|
6029
6032
|
});
|
|
6030
6033
|
source += "';\n";
|
|
@@ -6124,9 +6127,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6124
6127
|
result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
|
|
6125
6128
|
}
|
|
6126
6129
|
} else if (string.indexOf(baseToString(separator), end) != end) {
|
|
6127
|
-
var
|
|
6128
|
-
if (
|
|
6129
|
-
result2 = result2.slice(0,
|
|
6130
|
+
var index = result2.lastIndexOf(separator);
|
|
6131
|
+
if (index > -1) {
|
|
6132
|
+
result2 = result2.slice(0, index);
|
|
6130
6133
|
}
|
|
6131
6134
|
}
|
|
6132
6135
|
return result2 + omission;
|
|
@@ -6135,8 +6138,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6135
6138
|
string = toString(string);
|
|
6136
6139
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
6137
6140
|
}
|
|
6138
|
-
var upperCase = createCompounder(function(result2, word,
|
|
6139
|
-
return result2 + (
|
|
6141
|
+
var upperCase = createCompounder(function(result2, word, index) {
|
|
6142
|
+
return result2 + (index ? " " : "") + word.toUpperCase();
|
|
6140
6143
|
});
|
|
6141
6144
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
6142
6145
|
function words(string, pattern, guard) {
|
|
@@ -6170,9 +6173,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6170
6173
|
return [toIteratee(pair[0]), pair[1]];
|
|
6171
6174
|
});
|
|
6172
6175
|
return baseRest(function(args) {
|
|
6173
|
-
var
|
|
6174
|
-
while (++
|
|
6175
|
-
var pair = pairs[
|
|
6176
|
+
var index = -1;
|
|
6177
|
+
while (++index < length) {
|
|
6178
|
+
var pair = pairs[index];
|
|
6176
6179
|
if (apply(pair[0], this, args)) {
|
|
6177
6180
|
return apply(pair[1], this, args);
|
|
6178
6181
|
}
|
|
@@ -6288,12 +6291,12 @@ var __publicField = (obj, key, value) => {
|
|
|
6288
6291
|
if (n < 1 || n > MAX_SAFE_INTEGER) {
|
|
6289
6292
|
return [];
|
|
6290
6293
|
}
|
|
6291
|
-
var
|
|
6294
|
+
var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
6292
6295
|
iteratee2 = getIteratee(iteratee2);
|
|
6293
6296
|
n -= MAX_ARRAY_LENGTH;
|
|
6294
6297
|
var result2 = baseTimes(length, iteratee2);
|
|
6295
|
-
while (++
|
|
6296
|
-
iteratee2(
|
|
6298
|
+
while (++index < n) {
|
|
6299
|
+
iteratee2(index);
|
|
6297
6300
|
}
|
|
6298
6301
|
return result2;
|
|
6299
6302
|
}
|
|
@@ -6665,10 +6668,10 @@ var __publicField = (obj, key, value) => {
|
|
|
6665
6668
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
6666
6669
|
lodash2[methodName].placeholder = lodash2;
|
|
6667
6670
|
});
|
|
6668
|
-
arrayEach(["drop", "take"], function(methodName,
|
|
6671
|
+
arrayEach(["drop", "take"], function(methodName, index) {
|
|
6669
6672
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
6670
6673
|
n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
|
|
6671
|
-
var result2 = this.__filtered__ && !
|
|
6674
|
+
var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
|
|
6672
6675
|
if (result2.__filtered__) {
|
|
6673
6676
|
result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
|
|
6674
6677
|
} else {
|
|
@@ -6683,8 +6686,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6683
6686
|
return this.reverse()[methodName](n).reverse();
|
|
6684
6687
|
};
|
|
6685
6688
|
});
|
|
6686
|
-
arrayEach(["filter", "map", "takeWhile"], function(methodName,
|
|
6687
|
-
var type2 =
|
|
6689
|
+
arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
|
|
6690
|
+
var type2 = index + 1, isFilter = type2 == LAZY_FILTER_FLAG || type2 == LAZY_WHILE_FLAG;
|
|
6688
6691
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
|
6689
6692
|
var result2 = this.clone();
|
|
6690
6693
|
result2.__iteratees__.push({
|
|
@@ -6695,14 +6698,14 @@ var __publicField = (obj, key, value) => {
|
|
|
6695
6698
|
return result2;
|
|
6696
6699
|
};
|
|
6697
6700
|
});
|
|
6698
|
-
arrayEach(["head", "last"], function(methodName,
|
|
6699
|
-
var takeName = "take" + (
|
|
6701
|
+
arrayEach(["head", "last"], function(methodName, index) {
|
|
6702
|
+
var takeName = "take" + (index ? "Right" : "");
|
|
6700
6703
|
LazyWrapper.prototype[methodName] = function() {
|
|
6701
6704
|
return this[takeName](1).value()[0];
|
|
6702
6705
|
};
|
|
6703
6706
|
});
|
|
6704
|
-
arrayEach(["initial", "tail"], function(methodName,
|
|
6705
|
-
var dropName = "drop" + (
|
|
6707
|
+
arrayEach(["initial", "tail"], function(methodName, index) {
|
|
6708
|
+
var dropName = "drop" + (index ? "" : "Right");
|
|
6706
6709
|
LazyWrapper.prototype[methodName] = function() {
|
|
6707
6710
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
|
6708
6711
|
};
|
|
@@ -7096,7 +7099,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7096
7099
|
var _a, _b, _c;
|
|
7097
7100
|
const editor = React.useRef(null);
|
|
7098
7101
|
const isFoldRef = React.useRef(false);
|
|
7099
|
-
const { t } =
|
|
7102
|
+
const { t } = useD2Translation();
|
|
7100
7103
|
const [enableEditor, setEnableEditor] = React.useState(false);
|
|
7101
7104
|
const [isYamlValid, setIsYamlValid] = React.useState(true);
|
|
7102
7105
|
const [isSchemaValid, setIsSchemaValid] = React.useState(true);
|
|
@@ -7269,7 +7272,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7269
7272
|
const [visible, setVisible] = React.useState(false);
|
|
7270
7273
|
const navigation = core.useNavigation();
|
|
7271
7274
|
const [id, setId] = React.useState("");
|
|
7272
|
-
const { t } =
|
|
7275
|
+
const { t } = useD2Translation();
|
|
7273
7276
|
const modalProps = {
|
|
7274
7277
|
title: t("dovetail.delete"),
|
|
7275
7278
|
okText: t("dovetail.delete"),
|
|
@@ -7462,9 +7465,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7462
7465
|
[props]
|
|
7463
7466
|
);
|
|
7464
7467
|
const onRemove = React.useCallback(
|
|
7465
|
-
(
|
|
7468
|
+
(index) => {
|
|
7466
7469
|
const result = [...items];
|
|
7467
|
-
result.splice(
|
|
7470
|
+
result.splice(index, 1);
|
|
7468
7471
|
onChange(result);
|
|
7469
7472
|
},
|
|
7470
7473
|
[onChange, items]
|
|
@@ -7473,28 +7476,28 @@ var __publicField = (obj, key, value) => {
|
|
|
7473
7476
|
onChange([...items, { key: "", value: "" }]);
|
|
7474
7477
|
}, [onChange, items]);
|
|
7475
7478
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
7476
|
-
items.map((item,
|
|
7479
|
+
items.map((item, index) => {
|
|
7477
7480
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7478
7481
|
KeyValueInput,
|
|
7479
7482
|
{
|
|
7480
7483
|
item,
|
|
7481
7484
|
onChange: (newItem) => {
|
|
7482
7485
|
const temp = [...items];
|
|
7483
|
-
temp.splice(
|
|
7486
|
+
temp.splice(index, 1, newItem);
|
|
7484
7487
|
onChange(temp);
|
|
7485
7488
|
},
|
|
7486
7489
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7487
7490
|
kit.button,
|
|
7488
7491
|
{
|
|
7489
7492
|
onClick: () => {
|
|
7490
|
-
onRemove(
|
|
7493
|
+
onRemove(index);
|
|
7491
7494
|
},
|
|
7492
7495
|
danger: true,
|
|
7493
7496
|
children: "Remove"
|
|
7494
7497
|
}
|
|
7495
7498
|
)
|
|
7496
7499
|
},
|
|
7497
|
-
|
|
7500
|
+
index
|
|
7498
7501
|
);
|
|
7499
7502
|
}),
|
|
7500
7503
|
/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: onAdd, children: "Add" }) })
|
|
@@ -7535,7 +7538,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7535
7538
|
const kit = React.useContext(eagle.kitContext);
|
|
7536
7539
|
const {
|
|
7537
7540
|
t
|
|
7538
|
-
} =
|
|
7541
|
+
} = useD2Translation();
|
|
7539
7542
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
7540
7543
|
className: ErrorWrapper$1,
|
|
7541
7544
|
style: props.style,
|
|
@@ -7878,7 +7881,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7878
7881
|
};
|
|
7879
7882
|
const ConditionsTable = ({ conditions = [] }) => {
|
|
7880
7883
|
const kit = eagle.useUIKit();
|
|
7881
|
-
const { t } =
|
|
7884
|
+
const { t } = useD2Translation();
|
|
7882
7885
|
const conditionsWithId = addId(conditions, "type");
|
|
7883
7886
|
const columns = [
|
|
7884
7887
|
{
|
|
@@ -8064,7 +8067,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8064
8067
|
const kit = eagle.useUIKit();
|
|
8065
8068
|
const {
|
|
8066
8069
|
t
|
|
8067
|
-
} =
|
|
8070
|
+
} = useD2Translation();
|
|
8068
8071
|
const {
|
|
8069
8072
|
loading,
|
|
8070
8073
|
error,
|
|
@@ -9591,14 +9594,14 @@ var __publicField = (obj, key, value) => {
|
|
|
9591
9594
|
if (!rootProps) {
|
|
9592
9595
|
return React.createElement(node.tag, _objectSpread$1({
|
|
9593
9596
|
key
|
|
9594
|
-
}, normalizeAttrs(node.attrs)), (node.children || []).map(function(child,
|
|
9595
|
-
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(
|
|
9597
|
+
}, normalizeAttrs(node.attrs)), (node.children || []).map(function(child, index) {
|
|
9598
|
+
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
9596
9599
|
}));
|
|
9597
9600
|
}
|
|
9598
9601
|
return React.createElement(node.tag, _objectSpread$1(_objectSpread$1({
|
|
9599
9602
|
key
|
|
9600
|
-
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function(child,
|
|
9601
|
-
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(
|
|
9603
|
+
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function(child, index) {
|
|
9604
|
+
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
9602
9605
|
}));
|
|
9603
9606
|
}
|
|
9604
9607
|
function getSecondaryColor(primaryColor) {
|
|
@@ -9781,7 +9784,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9781
9784
|
const kit = React.useContext(eagle.kitContext);
|
|
9782
9785
|
const {
|
|
9783
9786
|
t
|
|
9784
|
-
} =
|
|
9787
|
+
} = useD2Translation();
|
|
9785
9788
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
9786
9789
|
className: props.className,
|
|
9787
9790
|
style: props.style,
|
|
@@ -9807,8 +9810,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9807
9810
|
return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9808
9811
|
kit.alert,
|
|
9809
9812
|
{
|
|
9810
|
-
message: errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg,
|
|
9811
|
-
|
|
9813
|
+
message: errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
9814
|
+
index + 1 + ". ",
|
|
9812
9815
|
" ",
|
|
9813
9816
|
errorMsg
|
|
9814
9817
|
] }, errorMsg)) }) : lodashEs.first(errorMsgs),
|
|
@@ -9833,7 +9836,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9833
9836
|
} = core.useResource();
|
|
9834
9837
|
const {
|
|
9835
9838
|
t
|
|
9836
|
-
} =
|
|
9839
|
+
} = useD2Translation();
|
|
9837
9840
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
9838
9841
|
className: WrapperStyle$3,
|
|
9839
9842
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
@@ -9883,7 +9886,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9883
9886
|
className
|
|
9884
9887
|
} = props;
|
|
9885
9888
|
const kit = eagle.useUIKit();
|
|
9886
|
-
const { t } =
|
|
9889
|
+
const { t } = useD2Translation();
|
|
9887
9890
|
const [isCollapsed, setIsCollapsed] = React.useState(
|
|
9888
9891
|
collapsable ? isDefaultCollapsed : false
|
|
9889
9892
|
);
|
|
@@ -10062,8 +10065,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10062
10065
|
] }),
|
|
10063
10066
|
errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
|
|
10064
10067
|
/* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.XmarkFailedSeriousWarningFill16RedIcon, { className: ErrorIconStyle }),
|
|
10065
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg,
|
|
10066
|
-
errorMsgs.length > 1 ? `${
|
|
10068
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: ErrorMsgStyle, children: [
|
|
10069
|
+
errorMsgs.length > 1 ? `${index + 1}. ` : "",
|
|
10067
10070
|
errorMsg
|
|
10068
10071
|
] }, errorMsg)) })
|
|
10069
10072
|
] }) : void 0
|
|
@@ -10405,7 +10408,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10405
10408
|
const {
|
|
10406
10409
|
t,
|
|
10407
10410
|
i18n: i18n2
|
|
10408
|
-
} =
|
|
10411
|
+
} = useD2Translation();
|
|
10409
10412
|
const responseErrors = errorResponseBody ? getCommonErrors(errorResponseBody, i18n2) : [];
|
|
10410
10413
|
const FormWrapper = isShowLayout ? FormLayout : React.Fragment;
|
|
10411
10414
|
const schema = React.useMemo(() => {
|
|
@@ -10470,7 +10473,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10470
10473
|
} = props;
|
|
10471
10474
|
const {
|
|
10472
10475
|
i18n: i18n2
|
|
10473
|
-
} =
|
|
10476
|
+
} = useD2Translation();
|
|
10474
10477
|
const {
|
|
10475
10478
|
resource
|
|
10476
10479
|
} = core.useResource();
|
|
@@ -10592,14 +10595,14 @@ var __publicField = (obj, key, value) => {
|
|
|
10592
10595
|
}
|
|
10593
10596
|
function CreateButton() {
|
|
10594
10597
|
const kit = eagle.useUIKit();
|
|
10595
|
-
const { t } =
|
|
10598
|
+
const { t } = useD2Translation();
|
|
10596
10599
|
const openForm = useOpenForm();
|
|
10597
10600
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: openForm, children: t("dovetail.create") });
|
|
10598
10601
|
}
|
|
10599
10602
|
const useDeleteManyModal = (resource, ids) => {
|
|
10600
10603
|
const { mutate } = core.useDeleteMany();
|
|
10601
10604
|
const [visible, setVisible] = React.useState(false);
|
|
10602
|
-
const { t } =
|
|
10605
|
+
const { t } = useD2Translation();
|
|
10603
10606
|
const modalProps = {
|
|
10604
10607
|
title: t("dovetail.delete"),
|
|
10605
10608
|
okText: t("dovetail.delete"),
|
|
@@ -10627,7 +10630,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10627
10630
|
const DeleteManyButton = (props) => {
|
|
10628
10631
|
const { resource } = core.useResource();
|
|
10629
10632
|
const kit = eagle.useUIKit();
|
|
10630
|
-
const { t } =
|
|
10633
|
+
const { t } = useD2Translation();
|
|
10631
10634
|
const { modalProps, visible, setVisible } = useDeleteManyModal(
|
|
10632
10635
|
(resource == null ? void 0 : resource.name) || "",
|
|
10633
10636
|
props.ids
|
|
@@ -10676,7 +10679,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10676
10679
|
}) => {
|
|
10677
10680
|
const {
|
|
10678
10681
|
i18n: i18n2
|
|
10679
|
-
} =
|
|
10682
|
+
} = useD2Translation();
|
|
10680
10683
|
const kit = eagle.useUIKit();
|
|
10681
10684
|
const [selectedKeys, setSelectedKeys] = React.useState([]);
|
|
10682
10685
|
const [currentPage, setCurrentPage] = React.useState(1);
|
|
@@ -10718,7 +10721,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10718
10721
|
});
|
|
10719
10722
|
};
|
|
10720
10723
|
const EventsTable = ({}) => {
|
|
10721
|
-
const { i18n: i18n2 } =
|
|
10724
|
+
const { i18n: i18n2 } = useD2Translation();
|
|
10722
10725
|
const [currentPage, setCurrentPage] = React.useState(1);
|
|
10723
10726
|
const { data: data2, isLoading } = core.useList({
|
|
10724
10727
|
resource: "events",
|
|
@@ -10794,16 +10797,16 @@ var __publicField = (obj, key, value) => {
|
|
|
10794
10797
|
const kit = eagle.useUIKit();
|
|
10795
10798
|
const {
|
|
10796
10799
|
t
|
|
10797
|
-
} =
|
|
10800
|
+
} = useD2Translation();
|
|
10798
10801
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
10799
10802
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10800
10803
|
children: value[0]
|
|
10801
10804
|
}), value.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tooltip, {
|
|
10802
10805
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
10803
|
-
children: value.slice(1).map((name2,
|
|
10806
|
+
children: value.slice(1).map((name2, index) => {
|
|
10804
10807
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
10805
10808
|
children: name2
|
|
10806
|
-
},
|
|
10809
|
+
}, index);
|
|
10807
10810
|
})
|
|
10808
10811
|
}),
|
|
10809
10812
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
@@ -10833,7 +10836,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10833
10836
|
};
|
|
10834
10837
|
const IngressRulesTable = ({ ingress }) => {
|
|
10835
10838
|
const kit = eagle.useUIKit();
|
|
10836
|
-
const { t } =
|
|
10839
|
+
const { t } = useD2Translation();
|
|
10837
10840
|
const rows = React.useMemo(() => {
|
|
10838
10841
|
return addId(ingress.flattenedRules, "fullPath");
|
|
10839
10842
|
}, [ingress.flattenedRules]);
|
|
@@ -10940,7 +10943,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10940
10943
|
}) => {
|
|
10941
10944
|
const {
|
|
10942
10945
|
i18n: i18n2
|
|
10943
|
-
} =
|
|
10946
|
+
} = useD2Translation();
|
|
10944
10947
|
const kit = eagle.useUIKit();
|
|
10945
10948
|
const [selectedKeys, setSelectedKeys] = React.useState([]);
|
|
10946
10949
|
const [currentPage, setCurrentPage] = React.useState(1);
|
|
@@ -10986,7 +10989,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10986
10989
|
};
|
|
10987
10990
|
function useSubmitForm(options) {
|
|
10988
10991
|
const { formRef, onSubmitSuccess } = options;
|
|
10989
|
-
const { i18n: i18n2 } =
|
|
10992
|
+
const { i18n: i18n2 } = useD2Translation();
|
|
10990
10993
|
const [submitting, setSubmitting] = React.useState(false);
|
|
10991
10994
|
const [errorMsgs, setErrorMsgs] = React.useState([]);
|
|
10992
10995
|
const reset = React.useCallback(() => {
|
|
@@ -11033,7 +11036,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11033
11036
|
const kit = eagle.useUIKit();
|
|
11034
11037
|
const {
|
|
11035
11038
|
i18n: i18n2
|
|
11036
|
-
} =
|
|
11039
|
+
} = useD2Translation();
|
|
11037
11040
|
const {
|
|
11038
11041
|
submitting,
|
|
11039
11042
|
errorMsgs,
|
|
@@ -11070,7 +11073,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11070
11073
|
const kit = eagle.useUIKit();
|
|
11071
11074
|
const {
|
|
11072
11075
|
i18n: i18n2
|
|
11073
|
-
} =
|
|
11076
|
+
} = useD2Translation();
|
|
11074
11077
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
11075
11078
|
className: EditButtonStyle,
|
|
11076
11079
|
type: "link",
|
|
@@ -11354,7 +11357,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11354
11357
|
(resource == null ? void 0 : resource.name) || ""
|
|
11355
11358
|
);
|
|
11356
11359
|
const download2 = useDownloadYAML();
|
|
11357
|
-
const { t } =
|
|
11360
|
+
const { t } = useD2Translation();
|
|
11358
11361
|
const openForm = useOpenForm({ id: record.id });
|
|
11359
11362
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
11360
11363
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -11417,7 +11420,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11417
11420
|
const kit = eagle.useUIKit();
|
|
11418
11421
|
const {
|
|
11419
11422
|
t
|
|
11420
|
-
} =
|
|
11423
|
+
} = useD2Translation();
|
|
11421
11424
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
11422
11425
|
className: WrapperStyle$1,
|
|
11423
11426
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
@@ -11613,7 +11616,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11613
11616
|
})(WorkloadState || {});
|
|
11614
11617
|
const StateTag = ({ state: state2 = WorkloadState.UPDATEING, className }) => {
|
|
11615
11618
|
const kit = eagle.useUIKit();
|
|
11616
|
-
const { t } =
|
|
11619
|
+
const { t } = useD2Translation();
|
|
11617
11620
|
const colorMap = {
|
|
11618
11621
|
updating: "blue",
|
|
11619
11622
|
ready: "green",
|
|
@@ -11692,7 +11695,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11692
11695
|
});
|
|
11693
11696
|
const {
|
|
11694
11697
|
t
|
|
11695
|
-
} =
|
|
11698
|
+
} = useD2Translation();
|
|
11696
11699
|
const {
|
|
11697
11700
|
fold: fold2
|
|
11698
11701
|
} = useK8sYamlEditor();
|
|
@@ -11815,10 +11818,10 @@ var __publicField = (obj, key, value) => {
|
|
|
11815
11818
|
});
|
|
11816
11819
|
const groups = (showConfig.groups || []).concat([{
|
|
11817
11820
|
fields: LABELS_ANNOTATIONS_GROUP_FIELDS
|
|
11818
|
-
}]).map((group,
|
|
11821
|
+
}]).map((group, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.row, {
|
|
11819
11822
|
gutter: [24, 16],
|
|
11820
11823
|
children: renderFields(group.fields)
|
|
11821
|
-
},
|
|
11824
|
+
}, index));
|
|
11822
11825
|
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabs, {
|
|
11823
11826
|
className: TabsStyle,
|
|
11824
11827
|
children: (showConfig.tabs || []).map((field) => {
|
|
@@ -11876,7 +11879,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11876
11879
|
initContainerStatuses
|
|
11877
11880
|
}) => {
|
|
11878
11881
|
const kit = eagle.useUIKit();
|
|
11879
|
-
const { i18n: i18n2 } =
|
|
11882
|
+
const { i18n: i18n2 } = useD2Translation();
|
|
11880
11883
|
const columns = React.useMemo(
|
|
11881
11884
|
() => [
|
|
11882
11885
|
{
|
|
@@ -11970,7 +11973,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11970
11973
|
const kit = eagle.useUIKit();
|
|
11971
11974
|
const { resource } = core.useResource();
|
|
11972
11975
|
const { mutate } = core.useUpdate();
|
|
11973
|
-
const { t } =
|
|
11976
|
+
const { t } = useD2Translation();
|
|
11974
11977
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11975
11978
|
kit.menu.Item,
|
|
11976
11979
|
{
|
|
@@ -12018,7 +12021,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12018
12021
|
}
|
|
12019
12022
|
function ResourceList(props) {
|
|
12020
12023
|
const { formatter, name: name2, columns, Dropdown } = props;
|
|
12021
|
-
const { i18n: i18n2 } =
|
|
12024
|
+
const { i18n: i18n2 } = useD2Translation();
|
|
12022
12025
|
const { tableProps, selectedKeys } = useEagleTable({
|
|
12023
12026
|
useTableParams: {},
|
|
12024
12027
|
columns: [NameColumnRenderer(i18n2), ...columns],
|
|
@@ -12091,7 +12094,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12091
12094
|
const kit = eagle.useUIKit();
|
|
12092
12095
|
const { resource } = core.useResource();
|
|
12093
12096
|
const { mutate } = core.useUpdate();
|
|
12094
|
-
const { t } =
|
|
12097
|
+
const { t } = useD2Translation();
|
|
12095
12098
|
const suspended2 = Boolean(spec == null ? void 0 : spec.suspend);
|
|
12096
12099
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12097
12100
|
kit.menu.Item,
|
|
@@ -12246,7 +12249,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12246
12249
|
const { resource } = core.useResource();
|
|
12247
12250
|
const { id } = core.useParsed();
|
|
12248
12251
|
const kit = eagle.useUIKit();
|
|
12249
|
-
const { t } =
|
|
12252
|
+
const { t } = useD2Translation();
|
|
12250
12253
|
const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
|
|
12251
12254
|
(resource == null ? void 0 : resource.name) || ""
|
|
12252
12255
|
);
|
|
@@ -12420,7 +12423,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12420
12423
|
};
|
|
12421
12424
|
const NamespacesFilter = () => {
|
|
12422
12425
|
const kit = eagle.useUIKit();
|
|
12423
|
-
const { t } =
|
|
12426
|
+
const { t } = useD2Translation();
|
|
12424
12427
|
const { data: data2 } = core.useList({
|
|
12425
12428
|
resource: "namespaces",
|
|
12426
12429
|
meta: {
|
|
@@ -14455,10 +14458,10 @@ var __publicField = (obj, key, value) => {
|
|
|
14455
14458
|
}
|
|
14456
14459
|
var escape;
|
|
14457
14460
|
var html = "";
|
|
14458
|
-
var
|
|
14461
|
+
var index;
|
|
14459
14462
|
var lastIndex = 0;
|
|
14460
|
-
for (
|
|
14461
|
-
switch (str.charCodeAt(
|
|
14463
|
+
for (index = match.index; index < str.length; index++) {
|
|
14464
|
+
switch (str.charCodeAt(index)) {
|
|
14462
14465
|
case 34:
|
|
14463
14466
|
escape = """;
|
|
14464
14467
|
break;
|
|
@@ -14477,13 +14480,13 @@ var __publicField = (obj, key, value) => {
|
|
|
14477
14480
|
default:
|
|
14478
14481
|
continue;
|
|
14479
14482
|
}
|
|
14480
|
-
if (lastIndex !==
|
|
14481
|
-
html += str.substring(lastIndex,
|
|
14483
|
+
if (lastIndex !== index) {
|
|
14484
|
+
html += str.substring(lastIndex, index);
|
|
14482
14485
|
}
|
|
14483
|
-
lastIndex =
|
|
14486
|
+
lastIndex = index + 1;
|
|
14484
14487
|
html += escape;
|
|
14485
14488
|
}
|
|
14486
|
-
return lastIndex !==
|
|
14489
|
+
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
|
|
14487
14490
|
}
|
|
14488
14491
|
function escapeTextForBrowser(text) {
|
|
14489
14492
|
if (typeof text === "boolean" || typeof text === "number") {
|
|
@@ -16346,39 +16349,39 @@ var __publicField = (obj, key, value) => {
|
|
|
16346
16349
|
}
|
|
16347
16350
|
};
|
|
16348
16351
|
_proto.pushProvider = function pushProvider(provider) {
|
|
16349
|
-
var
|
|
16352
|
+
var index = ++this.contextIndex;
|
|
16350
16353
|
var context = provider.type._context;
|
|
16351
16354
|
var threadID = this.threadID;
|
|
16352
16355
|
validateContextBounds(context, threadID);
|
|
16353
16356
|
var previousValue = context[threadID];
|
|
16354
|
-
this.contextStack[
|
|
16355
|
-
this.contextValueStack[
|
|
16357
|
+
this.contextStack[index] = context;
|
|
16358
|
+
this.contextValueStack[index] = previousValue;
|
|
16356
16359
|
{
|
|
16357
|
-
this.contextProviderStack[
|
|
16360
|
+
this.contextProviderStack[index] = provider;
|
|
16358
16361
|
}
|
|
16359
16362
|
context[threadID] = provider.props.value;
|
|
16360
16363
|
};
|
|
16361
16364
|
_proto.popProvider = function popProvider(provider) {
|
|
16362
|
-
var
|
|
16365
|
+
var index = this.contextIndex;
|
|
16363
16366
|
{
|
|
16364
|
-
if (
|
|
16367
|
+
if (index < 0 || provider !== this.contextProviderStack[index]) {
|
|
16365
16368
|
error("Unexpected pop.");
|
|
16366
16369
|
}
|
|
16367
16370
|
}
|
|
16368
|
-
var context = this.contextStack[
|
|
16369
|
-
var previousValue = this.contextValueStack[
|
|
16370
|
-
this.contextStack[
|
|
16371
|
-
this.contextValueStack[
|
|
16371
|
+
var context = this.contextStack[index];
|
|
16372
|
+
var previousValue = this.contextValueStack[index];
|
|
16373
|
+
this.contextStack[index] = null;
|
|
16374
|
+
this.contextValueStack[index] = null;
|
|
16372
16375
|
{
|
|
16373
|
-
this.contextProviderStack[
|
|
16376
|
+
this.contextProviderStack[index] = null;
|
|
16374
16377
|
}
|
|
16375
16378
|
this.contextIndex--;
|
|
16376
16379
|
context[this.threadID] = previousValue;
|
|
16377
16380
|
};
|
|
16378
16381
|
_proto.clearProviders = function clearProviders() {
|
|
16379
|
-
for (var
|
|
16380
|
-
var context = this.contextStack[
|
|
16381
|
-
var previousValue = this.contextValueStack[
|
|
16382
|
+
for (var index = this.contextIndex; index >= 0; index--) {
|
|
16383
|
+
var context = this.contextStack[index];
|
|
16384
|
+
var previousValue = this.contextValueStack[index];
|
|
16382
16385
|
context[this.threadID] = previousValue;
|
|
16383
16386
|
}
|
|
16384
16387
|
};
|
|
@@ -16997,15 +17000,15 @@ var __publicField = (obj, key, value) => {
|
|
|
16997
17000
|
return "'";
|
|
16998
17001
|
}
|
|
16999
17002
|
});
|
|
17000
|
-
const LogViewerRow = React.memo(({ index
|
|
17003
|
+
const LogViewerRow = React.memo(({ index, style, data: data2, ansiUp }) => {
|
|
17001
17004
|
const { parsedData, searchedWordIndexes, rowInFocus } = data2;
|
|
17002
17005
|
const context = React.useContext(LogViewerContext);
|
|
17003
|
-
const getData = (
|
|
17004
|
-
const getRowIndex = (
|
|
17006
|
+
const getData = (index2) => parsedData ? parsedData[index2] : null;
|
|
17007
|
+
const getRowIndex = (index2) => index2 + LOGGER_LINE_NUMBER_INDEX_DELTA;
|
|
17005
17008
|
const handleHighlight = (matchCounter) => {
|
|
17006
|
-
const searchedWordResult = searchedWordIndexes.filter((searchedWord) => searchedWord.rowIndex ===
|
|
17009
|
+
const searchedWordResult = searchedWordIndexes.filter((searchedWord) => searchedWord.rowIndex === index);
|
|
17007
17010
|
if (searchedWordResult.length !== 0) {
|
|
17008
|
-
if (rowInFocus.rowIndex ===
|
|
17011
|
+
if (rowInFocus.rowIndex === index && rowInFocus.matchIndex === matchCounter) {
|
|
17009
17012
|
return styles$1.modifiers.current;
|
|
17010
17013
|
}
|
|
17011
17014
|
return styles$1.modifiers.match;
|
|
@@ -17013,7 +17016,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17013
17016
|
return "";
|
|
17014
17017
|
};
|
|
17015
17018
|
const getFormattedData = () => {
|
|
17016
|
-
const rowText = getData(
|
|
17019
|
+
const rowText = getData(index);
|
|
17017
17020
|
let matchCounter = 0;
|
|
17018
17021
|
if (context.searchedInput) {
|
|
17019
17022
|
const splitAnsiString = splitAnsi(rowText);
|
|
@@ -17042,7 +17045,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17042
17045
|
return React.createElement(
|
|
17043
17046
|
"div",
|
|
17044
17047
|
{ style, className: css(styles$1.logViewerListItem) },
|
|
17045
|
-
React.createElement("span", { className: css(styles$1.logViewerIndex) }, getRowIndex(
|
|
17048
|
+
React.createElement("span", { className: css(styles$1.logViewerIndex) }, getRowIndex(index)),
|
|
17046
17049
|
React.createElement("span", { className: css(styles$1.logViewerText), style: { width: "fit-content" }, dangerouslySetInnerHTML: { __html: ansiUp.ansi_to_html(getFormattedData()) } })
|
|
17047
17050
|
);
|
|
17048
17051
|
});
|
|
@@ -17132,7 +17135,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17132
17135
|
return timeoutID;
|
|
17133
17136
|
}
|
|
17134
17137
|
const IS_SCROLLING_DEBOUNCE_INTERVAL = 150;
|
|
17135
|
-
const defaultItemKey = (
|
|
17138
|
+
const defaultItemKey = (index, _data) => index;
|
|
17136
17139
|
let devWarningsTagName = null;
|
|
17137
17140
|
if (process.env.NODE_ENV !== "production") {
|
|
17138
17141
|
if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
|
|
@@ -17169,16 +17172,16 @@ var __publicField = (obj, key, value) => {
|
|
|
17169
17172
|
scrollOffsetToBottom,
|
|
17170
17173
|
scrollUpdateWasRequested
|
|
17171
17174
|
}));
|
|
17172
|
-
this._getItemStyle = (
|
|
17175
|
+
this._getItemStyle = (index) => {
|
|
17173
17176
|
const { itemSize } = this.props;
|
|
17174
17177
|
const itemStyleCache = this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize);
|
|
17175
17178
|
let style;
|
|
17176
|
-
if (itemStyleCache.hasOwnProperty(
|
|
17177
|
-
style = itemStyleCache[
|
|
17179
|
+
if (itemStyleCache.hasOwnProperty(index)) {
|
|
17180
|
+
style = itemStyleCache[index];
|
|
17178
17181
|
} else {
|
|
17179
|
-
const offset = getItemOffset(this.props,
|
|
17180
|
-
const size = getItemSize(this.props,
|
|
17181
|
-
itemStyleCache[
|
|
17182
|
+
const offset = getItemOffset(this.props, index, this._instanceProps);
|
|
17183
|
+
const size = getItemSize(this.props, index, this._instanceProps);
|
|
17184
|
+
itemStyleCache[index] = style = {
|
|
17182
17185
|
position: "absolute",
|
|
17183
17186
|
top: offset,
|
|
17184
17187
|
height: size
|
|
@@ -17244,11 +17247,11 @@ var __publicField = (obj, key, value) => {
|
|
|
17244
17247
|
};
|
|
17245
17248
|
}, this._resetIsScrollingDebounced);
|
|
17246
17249
|
}
|
|
17247
|
-
scrollToItem(
|
|
17250
|
+
scrollToItem(index, align = "auto") {
|
|
17248
17251
|
const { itemCount } = this.props;
|
|
17249
17252
|
const { scrollOffset } = this.state;
|
|
17250
|
-
|
|
17251
|
-
this.scrollTo(getOffsetForIndexAndAlignment(this.props,
|
|
17253
|
+
index = Math.max(0, Math.min(index, itemCount - 1));
|
|
17254
|
+
this.scrollTo(getOffsetForIndexAndAlignment(this.props, index, align, scrollOffset, this._instanceProps));
|
|
17252
17255
|
}
|
|
17253
17256
|
scrollToBottom() {
|
|
17254
17257
|
const outerRef = this._outerRef;
|
|
@@ -17307,13 +17310,13 @@ var __publicField = (obj, key, value) => {
|
|
|
17307
17310
|
const [startIndex, stopIndex] = this._getRangeToRender();
|
|
17308
17311
|
const items = [];
|
|
17309
17312
|
if (itemCount > 0) {
|
|
17310
|
-
for (let
|
|
17313
|
+
for (let index = startIndex; index <= stopIndex; index++) {
|
|
17311
17314
|
items.push(React.createElement(children, {
|
|
17312
17315
|
data: itemData,
|
|
17313
|
-
key: itemKey(
|
|
17314
|
-
index
|
|
17316
|
+
key: itemKey(index, itemData),
|
|
17317
|
+
index,
|
|
17315
17318
|
isScrolling: useIsScrolling ? isScrolling : void 0,
|
|
17316
|
-
style: this._getItemStyle(
|
|
17319
|
+
style: this._getItemStyle(index),
|
|
17317
17320
|
ansiUp
|
|
17318
17321
|
}));
|
|
17319
17322
|
}
|
|
@@ -17386,16 +17389,16 @@ var __publicField = (obj, key, value) => {
|
|
|
17386
17389
|
}
|
|
17387
17390
|
};
|
|
17388
17391
|
const DEFAULT_ESTIMATED_ITEM_SIZE = 50;
|
|
17389
|
-
const getItemMetadata = (props,
|
|
17392
|
+
const getItemMetadata = (props, index, instanceProps) => {
|
|
17390
17393
|
const { itemSize } = props;
|
|
17391
17394
|
const { itemMetadataMap, lastMeasuredIndex } = instanceProps;
|
|
17392
|
-
if (
|
|
17395
|
+
if (index > lastMeasuredIndex) {
|
|
17393
17396
|
let offset = 0;
|
|
17394
17397
|
if (lastMeasuredIndex >= 0) {
|
|
17395
17398
|
const itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
17396
17399
|
offset = itemMetadata.offset + itemMetadata.size;
|
|
17397
17400
|
}
|
|
17398
|
-
for (let i = lastMeasuredIndex + 1; i <=
|
|
17401
|
+
for (let i = lastMeasuredIndex + 1; i <= index; i++) {
|
|
17399
17402
|
const size = typeof itemSize === "number" ? itemSize : itemSize(i);
|
|
17400
17403
|
itemMetadataMap[i] = {
|
|
17401
17404
|
offset,
|
|
@@ -17403,9 +17406,9 @@ var __publicField = (obj, key, value) => {
|
|
|
17403
17406
|
};
|
|
17404
17407
|
offset += size;
|
|
17405
17408
|
}
|
|
17406
|
-
instanceProps.lastMeasuredIndex =
|
|
17409
|
+
instanceProps.lastMeasuredIndex = index;
|
|
17407
17410
|
}
|
|
17408
|
-
return itemMetadataMap[
|
|
17411
|
+
return itemMetadataMap[index];
|
|
17409
17412
|
};
|
|
17410
17413
|
const findNearestItem = (props, instanceProps, offset) => {
|
|
17411
17414
|
const { itemMetadataMap, lastMeasuredIndex } = instanceProps;
|
|
@@ -17434,14 +17437,14 @@ var __publicField = (obj, key, value) => {
|
|
|
17434
17437
|
return 0;
|
|
17435
17438
|
}
|
|
17436
17439
|
};
|
|
17437
|
-
const findNearestItemExponentialSearch = (props, instanceProps,
|
|
17440
|
+
const findNearestItemExponentialSearch = (props, instanceProps, index, offset) => {
|
|
17438
17441
|
const { itemCount } = props;
|
|
17439
17442
|
let interval = 1;
|
|
17440
|
-
while (
|
|
17441
|
-
|
|
17443
|
+
while (index < itemCount && getItemMetadata(props, index, instanceProps).offset < offset) {
|
|
17444
|
+
index += interval;
|
|
17442
17445
|
interval *= 2;
|
|
17443
17446
|
}
|
|
17444
|
-
return findNearestItemBinarySearch(props, instanceProps, Math.min(
|
|
17447
|
+
return findNearestItemBinarySearch(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);
|
|
17445
17448
|
};
|
|
17446
17449
|
const getEstimatedTotalSize = ({ itemCount }, { itemMetadataMap, estimatedItemSize, lastMeasuredIndex }) => {
|
|
17447
17450
|
let totalSizeOfMeasuredItems = 0;
|
|
@@ -17457,13 +17460,13 @@ var __publicField = (obj, key, value) => {
|
|
|
17457
17460
|
return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
|
|
17458
17461
|
};
|
|
17459
17462
|
const VariableSizeList = createListComponent({
|
|
17460
|
-
getItemOffset: (props,
|
|
17461
|
-
getItemSize: (props,
|
|
17463
|
+
getItemOffset: (props, index, instanceProps) => getItemMetadata(props, index, instanceProps).offset,
|
|
17464
|
+
getItemSize: (props, index, instanceProps) => instanceProps.itemMetadataMap[index].size,
|
|
17462
17465
|
getEstimatedTotalSize,
|
|
17463
|
-
getOffsetForIndexAndAlignment: (props,
|
|
17466
|
+
getOffsetForIndexAndAlignment: (props, index, align, scrollOffset, instanceProps) => {
|
|
17464
17467
|
const { height } = props;
|
|
17465
17468
|
const size = height;
|
|
17466
|
-
const itemMetadata = getItemMetadata(props,
|
|
17469
|
+
const itemMetadata = getItemMetadata(props, index, instanceProps);
|
|
17467
17470
|
const estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
|
|
17468
17471
|
const maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));
|
|
17469
17472
|
const minOffset = Math.max(0, itemMetadata.offset - size + itemMetadata.size);
|
|
@@ -17513,8 +17516,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17513
17516
|
estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE,
|
|
17514
17517
|
lastMeasuredIndex: -1
|
|
17515
17518
|
};
|
|
17516
|
-
instance.resetAfterIndex = (
|
|
17517
|
-
instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex,
|
|
17519
|
+
instance.resetAfterIndex = (index, shouldForceUpdate = true) => {
|
|
17520
|
+
instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1);
|
|
17518
17521
|
instance._getItemStyleCache(-1);
|
|
17519
17522
|
if (shouldForceUpdate) {
|
|
17520
17523
|
instance.forceUpdate();
|
|
@@ -18156,7 +18159,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18156
18159
|
const apiUrl = dataProvider()["getApiUrl"]();
|
|
18157
18160
|
const {
|
|
18158
18161
|
t
|
|
18159
|
-
} =
|
|
18162
|
+
} = useD2Translation();
|
|
18160
18163
|
React.useEffect(() => {
|
|
18161
18164
|
if (!paused && logs.length > 0) {
|
|
18162
18165
|
setCurrentItemCount(logs.length);
|
|
@@ -18308,7 +18311,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18308
18311
|
};
|
|
18309
18312
|
const IngressRuleTable = ({ peers }) => {
|
|
18310
18313
|
const kit = eagle.useUIKit();
|
|
18311
|
-
const { t } =
|
|
18314
|
+
const { t } = useD2Translation();
|
|
18312
18315
|
const rows = React.useMemo(() => {
|
|
18313
18316
|
const rows2 = (peers == null ? void 0 : peers.map((p) => {
|
|
18314
18317
|
return Object.keys(p).map((key) => {
|
|
@@ -19388,7 +19391,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19388
19391
|
exports2.CronJobDropdown = CronJobDropdown;
|
|
19389
19392
|
exports2.CronJobModel = CronJobModel;
|
|
19390
19393
|
exports2.CronjobJobsTable = CronjobJobsTable;
|
|
19391
|
-
exports2.D2Locales =
|
|
19394
|
+
exports2.D2Locales = D2Locales;
|
|
19392
19395
|
exports2.DAEMONSET_INIT_VALUE = DAEMONSET_INIT_VALUE;
|
|
19393
19396
|
exports2.DEPLOYMENT_INIT_VALUE = DEPLOYMENT_INIT_VALUE;
|
|
19394
19397
|
exports2.DaemonSetModel = DaemonSetModel;
|