@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.
Files changed (53) hide show
  1. package/dist/{MonacoYamlDiffEditor-b06840cc.js → MonacoYamlDiffEditor-37f2db86.js} +1 -1
  2. package/dist/{index-56189b86.js → index-3716ce7b.js} +455 -452
  3. package/dist/refine.js +4 -4
  4. package/dist/refine.umd.cjs +454 -451
  5. package/lib/src/components/ConditionsTable/ConditionsTable.js +2 -2
  6. package/lib/src/components/CreateButton/index.js +2 -2
  7. package/lib/src/components/CronJobDropdown/index.js +2 -2
  8. package/lib/src/components/CronjobJobsTable/index.js +2 -2
  9. package/lib/src/components/DeleteButton/index.js +2 -2
  10. package/lib/src/components/DeleteManyButton/index.js +2 -2
  11. package/lib/src/components/EditField/index.js +3 -3
  12. package/lib/src/components/ErrorContent/index.js +2 -2
  13. package/lib/src/components/EventsTable/EventsTable.js +2 -2
  14. package/lib/src/components/FormLayout/index.js +2 -2
  15. package/lib/src/components/FormModal/index.js +2 -2
  16. package/lib/src/components/ImageNames/index.js +2 -2
  17. package/lib/src/components/IngressRulesTable/IngressRulesTable.js +2 -2
  18. package/lib/src/components/K8sDropdown/index.js +2 -2
  19. package/lib/src/components/KeyValueData/index.js +2 -2
  20. package/lib/src/components/NamespacesFilter/index.js +2 -2
  21. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +2 -2
  22. package/lib/src/components/PodContainersTable/PodContainersTable.js +2 -2
  23. package/lib/src/components/PodLog/index.js +2 -2
  24. package/lib/src/components/ResourceCRUD/list/index.js +2 -2
  25. package/lib/src/components/ShowContent/ShowContent.js +2 -2
  26. package/lib/src/components/StateTag/StateTag.js +2 -2
  27. package/lib/src/components/Table/ErrorContent.js +2 -2
  28. package/lib/src/components/Table/index.js +2 -2
  29. package/lib/src/components/WorkloadDropdown/index.js +2 -2
  30. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +2 -2
  31. package/lib/src/components/YamlEditor/YamlEditorComponent.js +2 -2
  32. package/lib/src/components/YamlForm/index.js +2 -2
  33. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +2 -2
  34. package/lib/src/hooks/useDeleteModal/useDeleteModal.js +2 -2
  35. package/lib/src/hooks/useEagleForm.js +2 -2
  36. package/lib/src/hooks/useSubmitForm.js +2 -2
  37. package/lib/src/i18n.d.ts +1 -0
  38. package/lib/src/i18n.js +8 -7
  39. package/lib/src/index.d.ts +1 -1
  40. package/lib/src/index.js +1 -1
  41. package/lib/src/locales/index.d.ts +115 -2
  42. package/lib/src/locales/index.js +6 -2
  43. package/lib/src/pages/cronjobs/list/index.js +2 -2
  44. package/lib/src/pages/cronjobs/show/index.js +2 -2
  45. package/lib/src/pages/daemonsets/list/index.js +2 -2
  46. package/lib/src/pages/daemonsets/show/index.js +2 -2
  47. package/lib/src/pages/deployments/list/index.js +2 -2
  48. package/lib/src/pages/deployments/show/index.js +2 -2
  49. package/lib/src/pages/pods/list/index.js +2 -2
  50. package/lib/src/pages/pods/show/index.js +2 -2
  51. package/lib/src/pages/statefulsets/list/index.js +2 -2
  52. package/lib/src/pages/statefulsets/show/index.js +2 -2
  53. package/package.json +1 -1
@@ -337,7 +337,7 @@ const dovetail$1 = {
337
337
  edit_resource: edit_resource$1,
338
338
  status: status$1
339
339
  };
340
- const EN = {
340
+ const D2LocalesEN = {
341
341
  dovetail: dovetail$1
342
342
  };
343
343
  const copy = "复制";
@@ -519,13 +519,14 @@ const dovetail = {
519
519
  ingress_rule_type,
520
520
  port
521
521
  };
522
- const ZH = {
522
+ const D2LocalesZH = {
523
523
  dovetail
524
524
  };
525
- const resources = {
526
- "en-US": EN,
527
- "zh-CN": ZH
525
+ const D2Locales = {
526
+ "en-US": D2LocalesEN,
527
+ "zh-CN": D2LocalesZH
528
528
  };
529
+ const resources = D2Locales;
529
530
  i18n.use(initReactI18next).init({
530
531
  supportedLngs: ["en-US", "zh-CN"],
531
532
  resources,
@@ -535,9 +536,11 @@ i18n.use(initReactI18next).init({
535
536
  lng: "zh-CN",
536
537
  nsSeparator: "."
537
538
  });
538
- const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
539
- __proto__: null
540
- }, Symbol.toStringTag, { value: "Module" }));
539
+ const useD2Translation = () => {
540
+ return useTranslation(void 0, {
541
+ i18n
542
+ });
543
+ };
541
544
  var jsxRuntime = { exports: {} };
542
545
  var reactJsxRuntime_production_min = {};
543
546
  /** @license React v16.14.0
@@ -1710,17 +1713,17 @@ lodash.exports;
1710
1713
  return func.apply(thisArg, args);
1711
1714
  }
1712
1715
  function arrayAggregator(array, setter, iteratee, accumulator) {
1713
- var index2 = -1, length = array == null ? 0 : array.length;
1714
- while (++index2 < length) {
1715
- var value = array[index2];
1716
+ var index = -1, length = array == null ? 0 : array.length;
1717
+ while (++index < length) {
1718
+ var value = array[index];
1716
1719
  setter(accumulator, value, iteratee(value), array);
1717
1720
  }
1718
1721
  return accumulator;
1719
1722
  }
1720
1723
  function arrayEach(array, iteratee) {
1721
- var index2 = -1, length = array == null ? 0 : array.length;
1722
- while (++index2 < length) {
1723
- if (iteratee(array[index2], index2, array) === false) {
1724
+ var index = -1, length = array == null ? 0 : array.length;
1725
+ while (++index < length) {
1726
+ if (iteratee(array[index], index, array) === false) {
1724
1727
  break;
1725
1728
  }
1726
1729
  }
@@ -1736,19 +1739,19 @@ lodash.exports;
1736
1739
  return array;
1737
1740
  }
1738
1741
  function arrayEvery(array, predicate) {
1739
- var index2 = -1, length = array == null ? 0 : array.length;
1740
- while (++index2 < length) {
1741
- if (!predicate(array[index2], index2, array)) {
1742
+ var index = -1, length = array == null ? 0 : array.length;
1743
+ while (++index < length) {
1744
+ if (!predicate(array[index], index, array)) {
1742
1745
  return false;
1743
1746
  }
1744
1747
  }
1745
1748
  return true;
1746
1749
  }
1747
1750
  function arrayFilter(array, predicate) {
1748
- var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
1749
- while (++index2 < length) {
1750
- var value = array[index2];
1751
- if (predicate(value, index2, array)) {
1751
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
1752
+ while (++index < length) {
1753
+ var value = array[index];
1754
+ if (predicate(value, index, array)) {
1752
1755
  result[resIndex++] = value;
1753
1756
  }
1754
1757
  }
@@ -1759,35 +1762,35 @@ lodash.exports;
1759
1762
  return !!length && baseIndexOf(array, value, 0) > -1;
1760
1763
  }
1761
1764
  function arrayIncludesWith(array, value, comparator) {
1762
- var index2 = -1, length = array == null ? 0 : array.length;
1763
- while (++index2 < length) {
1764
- if (comparator(value, array[index2])) {
1765
+ var index = -1, length = array == null ? 0 : array.length;
1766
+ while (++index < length) {
1767
+ if (comparator(value, array[index])) {
1765
1768
  return true;
1766
1769
  }
1767
1770
  }
1768
1771
  return false;
1769
1772
  }
1770
1773
  function arrayMap(array, iteratee) {
1771
- var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
1772
- while (++index2 < length) {
1773
- result[index2] = iteratee(array[index2], index2, array);
1774
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
1775
+ while (++index < length) {
1776
+ result[index] = iteratee(array[index], index, array);
1774
1777
  }
1775
1778
  return result;
1776
1779
  }
1777
1780
  function arrayPush(array, values) {
1778
- var index2 = -1, length = values.length, offset = array.length;
1779
- while (++index2 < length) {
1780
- array[offset + index2] = values[index2];
1781
+ var index = -1, length = values.length, offset = array.length;
1782
+ while (++index < length) {
1783
+ array[offset + index] = values[index];
1781
1784
  }
1782
1785
  return array;
1783
1786
  }
1784
1787
  function arrayReduce(array, iteratee, accumulator, initAccum) {
1785
- var index2 = -1, length = array == null ? 0 : array.length;
1788
+ var index = -1, length = array == null ? 0 : array.length;
1786
1789
  if (initAccum && length) {
1787
- accumulator = array[++index2];
1790
+ accumulator = array[++index];
1788
1791
  }
1789
- while (++index2 < length) {
1790
- accumulator = iteratee(accumulator, array[index2], index2, array);
1792
+ while (++index < length) {
1793
+ accumulator = iteratee(accumulator, array[index], index, array);
1791
1794
  }
1792
1795
  return accumulator;
1793
1796
  }
@@ -1802,9 +1805,9 @@ lodash.exports;
1802
1805
  return accumulator;
1803
1806
  }
1804
1807
  function arraySome(array, predicate) {
1805
- var index2 = -1, length = array == null ? 0 : array.length;
1806
- while (++index2 < length) {
1807
- if (predicate(array[index2], index2, array)) {
1808
+ var index = -1, length = array == null ? 0 : array.length;
1809
+ while (++index < length) {
1810
+ if (predicate(array[index], index, array)) {
1808
1811
  return true;
1809
1812
  }
1810
1813
  }
@@ -1828,10 +1831,10 @@ lodash.exports;
1828
1831
  return result;
1829
1832
  }
1830
1833
  function baseFindIndex(array, predicate, fromIndex, fromRight) {
1831
- var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1);
1832
- while (fromRight ? index2-- : ++index2 < length) {
1833
- if (predicate(array[index2], index2, array)) {
1834
- return index2;
1834
+ var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
1835
+ while (fromRight ? index-- : ++index < length) {
1836
+ if (predicate(array[index], index, array)) {
1837
+ return index;
1835
1838
  }
1836
1839
  }
1837
1840
  return -1;
@@ -1840,10 +1843,10 @@ lodash.exports;
1840
1843
  return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
1841
1844
  }
1842
1845
  function baseIndexOfWith(array, value, fromIndex, comparator) {
1843
- var index2 = fromIndex - 1, length = array.length;
1844
- while (++index2 < length) {
1845
- if (comparator(array[index2], value)) {
1846
- return index2;
1846
+ var index = fromIndex - 1, length = array.length;
1847
+ while (++index < length) {
1848
+ if (comparator(array[index], value)) {
1849
+ return index;
1847
1850
  }
1848
1851
  }
1849
1852
  return -1;
@@ -1866,8 +1869,8 @@ lodash.exports;
1866
1869
  };
1867
1870
  }
1868
1871
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
1869
- eachFunc(collection, function(value, index2, collection2) {
1870
- accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, collection2);
1872
+ eachFunc(collection, function(value, index, collection2) {
1873
+ accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2);
1871
1874
  });
1872
1875
  return accumulator;
1873
1876
  }
@@ -1880,9 +1883,9 @@ lodash.exports;
1880
1883
  return array;
1881
1884
  }
1882
1885
  function baseSum(array, iteratee) {
1883
- var result, index2 = -1, length = array.length;
1884
- while (++index2 < length) {
1885
- var current = iteratee(array[index2]);
1886
+ var result, index = -1, length = array.length;
1887
+ while (++index < length) {
1888
+ var current = iteratee(array[index]);
1886
1889
  if (current !== undefined$1) {
1887
1890
  result = result === undefined$1 ? current : result + current;
1888
1891
  }
@@ -1890,9 +1893,9 @@ lodash.exports;
1890
1893
  return result;
1891
1894
  }
1892
1895
  function baseTimes(n, iteratee) {
1893
- var index2 = -1, result = Array(n);
1894
- while (++index2 < n) {
1895
- result[index2] = iteratee(index2);
1896
+ var index = -1, result = Array(n);
1897
+ while (++index < n) {
1898
+ result[index] = iteratee(index);
1896
1899
  }
1897
1900
  return result;
1898
1901
  }
@@ -1918,16 +1921,16 @@ lodash.exports;
1918
1921
  return cache.has(key);
1919
1922
  }
1920
1923
  function charsStartIndex(strSymbols, chrSymbols) {
1921
- var index2 = -1, length = strSymbols.length;
1922
- while (++index2 < length && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
1924
+ var index = -1, length = strSymbols.length;
1925
+ while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
1923
1926
  }
1924
- return index2;
1927
+ return index;
1925
1928
  }
1926
1929
  function charsEndIndex(strSymbols, chrSymbols) {
1927
- var index2 = strSymbols.length;
1928
- while (index2-- && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
1930
+ var index = strSymbols.length;
1931
+ while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
1929
1932
  }
1930
- return index2;
1933
+ return index;
1931
1934
  }
1932
1935
  function countHolders(array, placeholder) {
1933
1936
  var length = array.length, result = 0;
@@ -1960,9 +1963,9 @@ lodash.exports;
1960
1963
  return result;
1961
1964
  }
1962
1965
  function mapToArray(map) {
1963
- var index2 = -1, result = Array(map.size);
1966
+ var index = -1, result = Array(map.size);
1964
1967
  map.forEach(function(value, key) {
1965
- result[++index2] = [key, value];
1968
+ result[++index] = [key, value];
1966
1969
  });
1967
1970
  return result;
1968
1971
  }
@@ -1972,47 +1975,47 @@ lodash.exports;
1972
1975
  };
1973
1976
  }
1974
1977
  function replaceHolders(array, placeholder) {
1975
- var index2 = -1, length = array.length, resIndex = 0, result = [];
1976
- while (++index2 < length) {
1977
- var value = array[index2];
1978
+ var index = -1, length = array.length, resIndex = 0, result = [];
1979
+ while (++index < length) {
1980
+ var value = array[index];
1978
1981
  if (value === placeholder || value === PLACEHOLDER) {
1979
- array[index2] = PLACEHOLDER;
1980
- result[resIndex++] = index2;
1982
+ array[index] = PLACEHOLDER;
1983
+ result[resIndex++] = index;
1981
1984
  }
1982
1985
  }
1983
1986
  return result;
1984
1987
  }
1985
1988
  function setToArray(set) {
1986
- var index2 = -1, result = Array(set.size);
1989
+ var index = -1, result = Array(set.size);
1987
1990
  set.forEach(function(value) {
1988
- result[++index2] = value;
1991
+ result[++index] = value;
1989
1992
  });
1990
1993
  return result;
1991
1994
  }
1992
1995
  function setToPairs(set) {
1993
- var index2 = -1, result = Array(set.size);
1996
+ var index = -1, result = Array(set.size);
1994
1997
  set.forEach(function(value) {
1995
- result[++index2] = [value, value];
1998
+ result[++index] = [value, value];
1996
1999
  });
1997
2000
  return result;
1998
2001
  }
1999
2002
  function strictIndexOf(array, value, fromIndex) {
2000
- var index2 = fromIndex - 1, length = array.length;
2001
- while (++index2 < length) {
2002
- if (array[index2] === value) {
2003
- return index2;
2003
+ var index = fromIndex - 1, length = array.length;
2004
+ while (++index < length) {
2005
+ if (array[index] === value) {
2006
+ return index;
2004
2007
  }
2005
2008
  }
2006
2009
  return -1;
2007
2010
  }
2008
2011
  function strictLastIndexOf(array, value, fromIndex) {
2009
- var index2 = fromIndex + 1;
2010
- while (index2--) {
2011
- if (array[index2] === value) {
2012
- return index2;
2012
+ var index = fromIndex + 1;
2013
+ while (index--) {
2014
+ if (array[index] === value) {
2015
+ return index;
2013
2016
  }
2014
2017
  }
2015
- return index2;
2018
+ return index;
2016
2019
  }
2017
2020
  function stringSize(string) {
2018
2021
  return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
@@ -2021,10 +2024,10 @@ lodash.exports;
2021
2024
  return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
2022
2025
  }
2023
2026
  function trimmedEndIndex(string) {
2024
- var index2 = string.length;
2025
- while (index2-- && reWhitespace.test(string.charAt(index2))) {
2027
+ var index = string.length;
2028
+ while (index-- && reWhitespace.test(string.charAt(index))) {
2026
2029
  }
2027
- return index2;
2030
+ return index;
2028
2031
  }
2029
2032
  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
2030
2033
  function unicodeSize(string) {
@@ -2190,15 +2193,15 @@ lodash.exports;
2190
2193
  return result2;
2191
2194
  }
2192
2195
  function lazyValue() {
2193
- 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, index2 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
2196
+ 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__);
2194
2197
  if (!isArr || !isRight && arrLength == length && takeCount == length) {
2195
2198
  return baseWrapperValue(array, this.__actions__);
2196
2199
  }
2197
2200
  var result2 = [];
2198
2201
  outer:
2199
2202
  while (length-- && resIndex < takeCount) {
2200
- index2 += dir;
2201
- var iterIndex = -1, value = array[index2];
2203
+ index += dir;
2204
+ var iterIndex = -1, value = array[index];
2202
2205
  while (++iterIndex < iterLength) {
2203
2206
  var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type2 = data2.type, computed = iteratee2(value);
2204
2207
  if (type2 == LAZY_MAP_FLAG) {
@@ -2218,10 +2221,10 @@ lodash.exports;
2218
2221
  LazyWrapper.prototype = baseCreate(baseLodash.prototype);
2219
2222
  LazyWrapper.prototype.constructor = LazyWrapper;
2220
2223
  function Hash(entries) {
2221
- var index2 = -1, length = entries == null ? 0 : entries.length;
2224
+ var index = -1, length = entries == null ? 0 : entries.length;
2222
2225
  this.clear();
2223
- while (++index2 < length) {
2224
- var entry = entries[index2];
2226
+ while (++index < length) {
2227
+ var entry = entries[index];
2225
2228
  this.set(entry[0], entry[1]);
2226
2229
  }
2227
2230
  }
@@ -2258,10 +2261,10 @@ lodash.exports;
2258
2261
  Hash.prototype.has = hashHas;
2259
2262
  Hash.prototype.set = hashSet;
2260
2263
  function ListCache(entries) {
2261
- var index2 = -1, length = entries == null ? 0 : entries.length;
2264
+ var index = -1, length = entries == null ? 0 : entries.length;
2262
2265
  this.clear();
2263
- while (++index2 < length) {
2264
- var entry = entries[index2];
2266
+ while (++index < length) {
2267
+ var entry = entries[index];
2265
2268
  this.set(entry[0], entry[1]);
2266
2269
  }
2267
2270
  }
@@ -2270,33 +2273,33 @@ lodash.exports;
2270
2273
  this.size = 0;
2271
2274
  }
2272
2275
  function listCacheDelete(key) {
2273
- var data2 = this.__data__, index2 = assocIndexOf(data2, key);
2274
- if (index2 < 0) {
2276
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
2277
+ if (index < 0) {
2275
2278
  return false;
2276
2279
  }
2277
2280
  var lastIndex = data2.length - 1;
2278
- if (index2 == lastIndex) {
2281
+ if (index == lastIndex) {
2279
2282
  data2.pop();
2280
2283
  } else {
2281
- splice.call(data2, index2, 1);
2284
+ splice.call(data2, index, 1);
2282
2285
  }
2283
2286
  --this.size;
2284
2287
  return true;
2285
2288
  }
2286
2289
  function listCacheGet(key) {
2287
- var data2 = this.__data__, index2 = assocIndexOf(data2, key);
2288
- return index2 < 0 ? undefined$1 : data2[index2][1];
2290
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
2291
+ return index < 0 ? undefined$1 : data2[index][1];
2289
2292
  }
2290
2293
  function listCacheHas(key) {
2291
2294
  return assocIndexOf(this.__data__, key) > -1;
2292
2295
  }
2293
2296
  function listCacheSet(key, value) {
2294
- var data2 = this.__data__, index2 = assocIndexOf(data2, key);
2295
- if (index2 < 0) {
2297
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
2298
+ if (index < 0) {
2296
2299
  ++this.size;
2297
2300
  data2.push([key, value]);
2298
2301
  } else {
2299
- data2[index2][1] = value;
2302
+ data2[index][1] = value;
2300
2303
  }
2301
2304
  return this;
2302
2305
  }
@@ -2306,10 +2309,10 @@ lodash.exports;
2306
2309
  ListCache.prototype.has = listCacheHas;
2307
2310
  ListCache.prototype.set = listCacheSet;
2308
2311
  function MapCache(entries) {
2309
- var index2 = -1, length = entries == null ? 0 : entries.length;
2312
+ var index = -1, length = entries == null ? 0 : entries.length;
2310
2313
  this.clear();
2311
- while (++index2 < length) {
2312
- var entry = entries[index2];
2314
+ while (++index < length) {
2315
+ var entry = entries[index];
2313
2316
  this.set(entry[0], entry[1]);
2314
2317
  }
2315
2318
  }
@@ -2344,10 +2347,10 @@ lodash.exports;
2344
2347
  MapCache.prototype.has = mapCacheHas;
2345
2348
  MapCache.prototype.set = mapCacheSet;
2346
2349
  function SetCache(values2) {
2347
- var index2 = -1, length = values2 == null ? 0 : values2.length;
2350
+ var index = -1, length = values2 == null ? 0 : values2.length;
2348
2351
  this.__data__ = new MapCache();
2349
- while (++index2 < length) {
2350
- this.add(values2[index2]);
2352
+ while (++index < length) {
2353
+ this.add(values2[index]);
2351
2354
  }
2352
2355
  }
2353
2356
  function setCacheAdd(value) {
@@ -2466,9 +2469,9 @@ lodash.exports;
2466
2469
  }
2467
2470
  }
2468
2471
  function baseAt(object2, paths) {
2469
- var index2 = -1, length = paths.length, result2 = Array2(length), skip = object2 == null;
2470
- while (++index2 < length) {
2471
- result2[index2] = skip ? undefined$1 : get2(object2, paths[index2]);
2472
+ var index = -1, length = paths.length, result2 = Array2(length), skip = object2 == null;
2473
+ while (++index < length) {
2474
+ result2[index] = skip ? undefined$1 : get2(object2, paths[index]);
2472
2475
  }
2473
2476
  return result2;
2474
2477
  }
@@ -2572,7 +2575,7 @@ lodash.exports;
2572
2575
  }, wait);
2573
2576
  }
2574
2577
  function baseDifference(array, values2, iteratee2, comparator) {
2575
- var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
2578
+ var index = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
2576
2579
  if (!length) {
2577
2580
  return result2;
2578
2581
  }
@@ -2588,8 +2591,8 @@ lodash.exports;
2588
2591
  values2 = new SetCache(values2);
2589
2592
  }
2590
2593
  outer:
2591
- while (++index2 < length) {
2592
- var value = array[index2], computed = iteratee2 == null ? value : iteratee2(value);
2594
+ while (++index < length) {
2595
+ var value = array[index], computed = iteratee2 == null ? value : iteratee2(value);
2593
2596
  value = comparator || value !== 0 ? value : 0;
2594
2597
  if (isCommon && computed === computed) {
2595
2598
  var valuesIndex = valuesLength;
@@ -2609,16 +2612,16 @@ lodash.exports;
2609
2612
  var baseEachRight = createBaseEach(baseForOwnRight, true);
2610
2613
  function baseEvery(collection, predicate) {
2611
2614
  var result2 = true;
2612
- baseEach(collection, function(value, index2, collection2) {
2613
- result2 = !!predicate(value, index2, collection2);
2615
+ baseEach(collection, function(value, index, collection2) {
2616
+ result2 = !!predicate(value, index, collection2);
2614
2617
  return result2;
2615
2618
  });
2616
2619
  return result2;
2617
2620
  }
2618
2621
  function baseExtremum(array, iteratee2, comparator) {
2619
- var index2 = -1, length = array.length;
2620
- while (++index2 < length) {
2621
- var value = array[index2], current = iteratee2(value);
2622
+ var index = -1, length = array.length;
2623
+ while (++index < length) {
2624
+ var value = array[index], current = iteratee2(value);
2622
2625
  if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) {
2623
2626
  var computed = current, result2 = value;
2624
2627
  }
@@ -2643,19 +2646,19 @@ lodash.exports;
2643
2646
  }
2644
2647
  function baseFilter(collection, predicate) {
2645
2648
  var result2 = [];
2646
- baseEach(collection, function(value, index2, collection2) {
2647
- if (predicate(value, index2, collection2)) {
2649
+ baseEach(collection, function(value, index, collection2) {
2650
+ if (predicate(value, index, collection2)) {
2648
2651
  result2.push(value);
2649
2652
  }
2650
2653
  });
2651
2654
  return result2;
2652
2655
  }
2653
2656
  function baseFlatten(array, depth, predicate, isStrict, result2) {
2654
- var index2 = -1, length = array.length;
2657
+ var index = -1, length = array.length;
2655
2658
  predicate || (predicate = isFlattenable);
2656
2659
  result2 || (result2 = []);
2657
- while (++index2 < length) {
2658
- var value = array[index2];
2660
+ while (++index < length) {
2661
+ var value = array[index];
2659
2662
  if (depth > 0 && predicate(value)) {
2660
2663
  if (depth > 1) {
2661
2664
  baseFlatten(value, depth - 1, predicate, isStrict, result2);
@@ -2683,11 +2686,11 @@ lodash.exports;
2683
2686
  }
2684
2687
  function baseGet(object2, path) {
2685
2688
  path = castPath(path, object2);
2686
- var index2 = 0, length = path.length;
2687
- while (object2 != null && index2 < length) {
2688
- object2 = object2[toKey(path[index2++])];
2689
+ var index = 0, length = path.length;
2690
+ while (object2 != null && index < length) {
2691
+ object2 = object2[toKey(path[index++])];
2689
2692
  }
2690
- return index2 && index2 == length ? object2 : undefined$1;
2693
+ return index && index == length ? object2 : undefined$1;
2691
2694
  }
2692
2695
  function baseGetAllKeys(object2, keysFunc, symbolsFunc) {
2693
2696
  var result2 = keysFunc(object2);
@@ -2722,10 +2725,10 @@ lodash.exports;
2722
2725
  caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
2723
2726
  }
2724
2727
  array = arrays[0];
2725
- var index2 = -1, seen = caches[0];
2728
+ var index = -1, seen = caches[0];
2726
2729
  outer:
2727
- while (++index2 < length && result2.length < maxLength) {
2728
- var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
2730
+ while (++index < length && result2.length < maxLength) {
2731
+ var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
2729
2732
  value = comparator || value !== 0 ? value : 0;
2730
2733
  if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
2731
2734
  othIndex = othLength;
@@ -2807,19 +2810,19 @@ lodash.exports;
2807
2810
  return isObjectLike(value) && getTag(value) == mapTag;
2808
2811
  }
2809
2812
  function baseIsMatch(object2, source, matchData, customizer) {
2810
- var index2 = matchData.length, length = index2, noCustomizer = !customizer;
2813
+ var index = matchData.length, length = index, noCustomizer = !customizer;
2811
2814
  if (object2 == null) {
2812
2815
  return !length;
2813
2816
  }
2814
2817
  object2 = Object2(object2);
2815
- while (index2--) {
2816
- var data2 = matchData[index2];
2818
+ while (index--) {
2819
+ var data2 = matchData[index];
2817
2820
  if (noCustomizer && data2[2] ? data2[1] !== object2[data2[0]] : !(data2[0] in object2)) {
2818
2821
  return false;
2819
2822
  }
2820
2823
  }
2821
- while (++index2 < length) {
2822
- data2 = matchData[index2];
2824
+ while (++index < length) {
2825
+ data2 = matchData[index];
2823
2826
  var key = data2[0], objValue = object2[key], srcValue = data2[1];
2824
2827
  if (noCustomizer && data2[2]) {
2825
2828
  if (objValue === undefined$1 && !(key in object2)) {
@@ -2893,9 +2896,9 @@ lodash.exports;
2893
2896
  return value < other;
2894
2897
  }
2895
2898
  function baseMap(collection, iteratee2) {
2896
- var index2 = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
2899
+ var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
2897
2900
  baseEach(collection, function(value, key, collection2) {
2898
- result2[++index2] = iteratee2(value, key, collection2);
2901
+ result2[++index] = iteratee2(value, key, collection2);
2899
2902
  });
2900
2903
  return result2;
2901
2904
  }
@@ -2998,13 +3001,13 @@ lodash.exports;
2998
3001
  } else {
2999
3002
  iteratees = [identity];
3000
3003
  }
3001
- var index2 = -1;
3004
+ var index = -1;
3002
3005
  iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
3003
3006
  var result2 = baseMap(collection, function(value, key, collection2) {
3004
3007
  var criteria = arrayMap(iteratees, function(iteratee2) {
3005
3008
  return iteratee2(value);
3006
3009
  });
3007
- return { "criteria": criteria, "index": ++index2, "value": value };
3010
+ return { "criteria": criteria, "index": ++index, "value": value };
3008
3011
  });
3009
3012
  return baseSortBy(result2, function(object2, other) {
3010
3013
  return compareMultiple(object2, other, orders);
@@ -3016,9 +3019,9 @@ lodash.exports;
3016
3019
  });
3017
3020
  }
3018
3021
  function basePickBy(object2, paths, predicate) {
3019
- var index2 = -1, length = paths.length, result2 = {};
3020
- while (++index2 < length) {
3021
- var path = paths[index2], value = baseGet(object2, path);
3022
+ var index = -1, length = paths.length, result2 = {};
3023
+ while (++index < length) {
3024
+ var path = paths[index], value = baseGet(object2, path);
3022
3025
  if (predicate(value, path)) {
3023
3026
  baseSet(result2, castPath(path, object2), value);
3024
3027
  }
@@ -3031,15 +3034,15 @@ lodash.exports;
3031
3034
  };
3032
3035
  }
3033
3036
  function basePullAll(array, values2, iteratee2, comparator) {
3034
- var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values2.length, seen = array;
3037
+ var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array;
3035
3038
  if (array === values2) {
3036
3039
  values2 = copyArray(values2);
3037
3040
  }
3038
3041
  if (iteratee2) {
3039
3042
  seen = arrayMap(array, baseUnary(iteratee2));
3040
3043
  }
3041
- while (++index2 < length) {
3042
- var fromIndex = 0, value = values2[index2], computed = iteratee2 ? iteratee2(value) : value;
3044
+ while (++index < length) {
3045
+ var fromIndex = 0, value = values2[index], computed = iteratee2 ? iteratee2(value) : value;
3043
3046
  while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
3044
3047
  if (seen !== array) {
3045
3048
  splice.call(seen, fromIndex, 1);
@@ -3052,13 +3055,13 @@ lodash.exports;
3052
3055
  function basePullAt(array, indexes) {
3053
3056
  var length = array ? indexes.length : 0, lastIndex = length - 1;
3054
3057
  while (length--) {
3055
- var index2 = indexes[length];
3056
- if (length == lastIndex || index2 !== previous) {
3057
- var previous = index2;
3058
- if (isIndex(index2)) {
3059
- splice.call(array, index2, 1);
3058
+ var index = indexes[length];
3059
+ if (length == lastIndex || index !== previous) {
3060
+ var previous = index;
3061
+ if (isIndex(index)) {
3062
+ splice.call(array, index, 1);
3060
3063
  } else {
3061
- baseUnset(array, index2);
3064
+ baseUnset(array, index);
3062
3065
  }
3063
3066
  }
3064
3067
  }
@@ -3068,9 +3071,9 @@ lodash.exports;
3068
3071
  return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
3069
3072
  }
3070
3073
  function baseRange(start, end, step, fromRight) {
3071
- var index2 = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
3074
+ var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
3072
3075
  while (length--) {
3073
- result2[fromRight ? length : ++index2] = start;
3076
+ result2[fromRight ? length : ++index] = start;
3074
3077
  start += step;
3075
3078
  }
3076
3079
  return result2;
@@ -3106,17 +3109,17 @@ lodash.exports;
3106
3109
  return object2;
3107
3110
  }
3108
3111
  path = castPath(path, object2);
3109
- var index2 = -1, length = path.length, lastIndex = length - 1, nested = object2;
3110
- while (nested != null && ++index2 < length) {
3111
- var key = toKey(path[index2]), newValue = value;
3112
+ var index = -1, length = path.length, lastIndex = length - 1, nested = object2;
3113
+ while (nested != null && ++index < length) {
3114
+ var key = toKey(path[index]), newValue = value;
3112
3115
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
3113
3116
  return object2;
3114
3117
  }
3115
- if (index2 != lastIndex) {
3118
+ if (index != lastIndex) {
3116
3119
  var objValue = nested[key];
3117
3120
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
3118
3121
  if (newValue === undefined$1) {
3119
- newValue = isObject2(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
3122
+ newValue = isObject2(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
3120
3123
  }
3121
3124
  }
3122
3125
  assignValue(nested, key, newValue);
@@ -3140,7 +3143,7 @@ lodash.exports;
3140
3143
  return shuffleSelf(values(collection));
3141
3144
  }
3142
3145
  function baseSlice(array, start, end) {
3143
- var index2 = -1, length = array.length;
3146
+ var index = -1, length = array.length;
3144
3147
  if (start < 0) {
3145
3148
  start = -start > length ? 0 : length + start;
3146
3149
  }
@@ -3151,15 +3154,15 @@ lodash.exports;
3151
3154
  length = start > end ? 0 : end - start >>> 0;
3152
3155
  start >>>= 0;
3153
3156
  var result2 = Array2(length);
3154
- while (++index2 < length) {
3155
- result2[index2] = array[index2 + start];
3157
+ while (++index < length) {
3158
+ result2[index] = array[index + start];
3156
3159
  }
3157
3160
  return result2;
3158
3161
  }
3159
3162
  function baseSome(collection, predicate) {
3160
3163
  var result2;
3161
- baseEach(collection, function(value, index2, collection2) {
3162
- result2 = predicate(value, index2, collection2);
3164
+ baseEach(collection, function(value, index, collection2) {
3165
+ result2 = predicate(value, index, collection2);
3163
3166
  return !result2;
3164
3167
  });
3165
3168
  return !!result2;
@@ -3210,10 +3213,10 @@ lodash.exports;
3210
3213
  return nativeMin(high, MAX_ARRAY_INDEX);
3211
3214
  }
3212
3215
  function baseSortedUniq(array, iteratee2) {
3213
- var index2 = -1, length = array.length, resIndex = 0, result2 = [];
3214
- while (++index2 < length) {
3215
- var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
3216
- if (!index2 || !eq(computed, seen)) {
3216
+ var index = -1, length = array.length, resIndex = 0, result2 = [];
3217
+ while (++index < length) {
3218
+ var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
3219
+ if (!index || !eq(computed, seen)) {
3217
3220
  var seen = computed;
3218
3221
  result2[resIndex++] = value === 0 ? 0 : value;
3219
3222
  }
@@ -3243,7 +3246,7 @@ lodash.exports;
3243
3246
  return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
3244
3247
  }
3245
3248
  function baseUniq(array, iteratee2, comparator) {
3246
- var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
3249
+ var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
3247
3250
  if (comparator) {
3248
3251
  isCommon = false;
3249
3252
  includes2 = arrayIncludesWith;
@@ -3259,8 +3262,8 @@ lodash.exports;
3259
3262
  seen = iteratee2 ? [] : result2;
3260
3263
  }
3261
3264
  outer:
3262
- while (++index2 < length) {
3263
- var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
3265
+ while (++index < length) {
3266
+ var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
3264
3267
  value = comparator || value !== 0 ? value : 0;
3265
3268
  if (isCommon && computed === computed) {
3266
3269
  var seenIndex = seen.length;
@@ -3291,10 +3294,10 @@ lodash.exports;
3291
3294
  return baseSet(object2, path, updater(baseGet(object2, path)), customizer);
3292
3295
  }
3293
3296
  function baseWhile(array, predicate, isDrop, fromRight) {
3294
- var length = array.length, index2 = fromRight ? length : -1;
3295
- while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) {
3297
+ var length = array.length, index = fromRight ? length : -1;
3298
+ while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {
3296
3299
  }
3297
- return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2);
3300
+ return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index);
3298
3301
  }
3299
3302
  function baseWrapperValue(value, actions) {
3300
3303
  var result2 = value;
@@ -3310,22 +3313,22 @@ lodash.exports;
3310
3313
  if (length < 2) {
3311
3314
  return length ? baseUniq(arrays[0]) : [];
3312
3315
  }
3313
- var index2 = -1, result2 = Array2(length);
3314
- while (++index2 < length) {
3315
- var array = arrays[index2], othIndex = -1;
3316
+ var index = -1, result2 = Array2(length);
3317
+ while (++index < length) {
3318
+ var array = arrays[index], othIndex = -1;
3316
3319
  while (++othIndex < length) {
3317
- if (othIndex != index2) {
3318
- result2[index2] = baseDifference(result2[index2] || array, arrays[othIndex], iteratee2, comparator);
3320
+ if (othIndex != index) {
3321
+ result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator);
3319
3322
  }
3320
3323
  }
3321
3324
  }
3322
3325
  return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
3323
3326
  }
3324
3327
  function baseZipObject(props, values2, assignFunc) {
3325
- var index2 = -1, length = props.length, valsLength = values2.length, result2 = {};
3326
- while (++index2 < length) {
3327
- var value = index2 < valsLength ? values2[index2] : undefined$1;
3328
- assignFunc(result2, props[index2], value);
3328
+ var index = -1, length = props.length, valsLength = values2.length, result2 = {};
3329
+ while (++index < length) {
3330
+ var value = index < valsLength ? values2[index] : undefined$1;
3331
+ assignFunc(result2, props[index], value);
3329
3332
  }
3330
3333
  return result2;
3331
3334
  }
@@ -3393,14 +3396,14 @@ lodash.exports;
3393
3396
  return 0;
3394
3397
  }
3395
3398
  function compareMultiple(object2, other, orders) {
3396
- var index2 = -1, objCriteria = object2.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
3397
- while (++index2 < length) {
3398
- var result2 = compareAscending(objCriteria[index2], othCriteria[index2]);
3399
+ var index = -1, objCriteria = object2.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
3400
+ while (++index < length) {
3401
+ var result2 = compareAscending(objCriteria[index], othCriteria[index]);
3399
3402
  if (result2) {
3400
- if (index2 >= ordersLength) {
3403
+ if (index >= ordersLength) {
3401
3404
  return result2;
3402
3405
  }
3403
- var order = orders[index2];
3406
+ var order = orders[index];
3404
3407
  return result2 * (order == "desc" ? -1 : 1);
3405
3408
  }
3406
3409
  }
@@ -3438,19 +3441,19 @@ lodash.exports;
3438
3441
  return result2;
3439
3442
  }
3440
3443
  function copyArray(source, array) {
3441
- var index2 = -1, length = source.length;
3444
+ var index = -1, length = source.length;
3442
3445
  array || (array = Array2(length));
3443
- while (++index2 < length) {
3444
- array[index2] = source[index2];
3446
+ while (++index < length) {
3447
+ array[index] = source[index];
3445
3448
  }
3446
3449
  return array;
3447
3450
  }
3448
3451
  function copyObject(source, props, object2, customizer) {
3449
3452
  var isNew = !object2;
3450
3453
  object2 || (object2 = {});
3451
- var index2 = -1, length = props.length;
3452
- while (++index2 < length) {
3453
- var key = props[index2];
3454
+ var index = -1, length = props.length;
3455
+ while (++index < length) {
3456
+ var key = props[index];
3454
3457
  var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : undefined$1;
3455
3458
  if (newValue === undefined$1) {
3456
3459
  newValue = source[key];
@@ -3477,17 +3480,17 @@ lodash.exports;
3477
3480
  }
3478
3481
  function createAssigner(assigner) {
3479
3482
  return baseRest(function(object2, sources) {
3480
- var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
3483
+ var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
3481
3484
  customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
3482
3485
  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
3483
3486
  customizer = length < 3 ? undefined$1 : customizer;
3484
3487
  length = 1;
3485
3488
  }
3486
3489
  object2 = Object2(object2);
3487
- while (++index2 < length) {
3488
- var source = sources[index2];
3490
+ while (++index < length) {
3491
+ var source = sources[index];
3489
3492
  if (source) {
3490
- assigner(object2, source, index2, customizer);
3493
+ assigner(object2, source, index, customizer);
3491
3494
  }
3492
3495
  }
3493
3496
  return object2;
@@ -3501,9 +3504,9 @@ lodash.exports;
3501
3504
  if (!isArrayLike(collection)) {
3502
3505
  return eachFunc(collection, iteratee2);
3503
3506
  }
3504
- var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection);
3505
- while (fromRight ? index2-- : ++index2 < length) {
3506
- if (iteratee2(iterable[index2], index2, iterable) === false) {
3507
+ var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection);
3508
+ while (fromRight ? index-- : ++index < length) {
3509
+ if (iteratee2(iterable[index], index, iterable) === false) {
3507
3510
  break;
3508
3511
  }
3509
3512
  }
@@ -3512,9 +3515,9 @@ lodash.exports;
3512
3515
  }
3513
3516
  function createBaseFor(fromRight) {
3514
3517
  return function(object2, iteratee2, keysFunc) {
3515
- var index2 = -1, iterable = Object2(object2), props = keysFunc(object2), length = props.length;
3518
+ var index = -1, iterable = Object2(object2), props = keysFunc(object2), length = props.length;
3516
3519
  while (length--) {
3517
- var key = props[fromRight ? length : ++index2];
3520
+ var key = props[fromRight ? length : ++index];
3518
3521
  if (iteratee2(iterable[key], key, iterable) === false) {
3519
3522
  break;
3520
3523
  }
@@ -3572,9 +3575,9 @@ lodash.exports;
3572
3575
  function createCurry(func, bitmask, arity) {
3573
3576
  var Ctor = createCtor(func);
3574
3577
  function wrapper() {
3575
- var length = arguments.length, args = Array2(length), index2 = length, placeholder = getHolder(wrapper);
3576
- while (index2--) {
3577
- args[index2] = arguments[index2];
3578
+ var length = arguments.length, args = Array2(length), index = length, placeholder = getHolder(wrapper);
3579
+ while (index--) {
3580
+ args[index] = arguments[index];
3578
3581
  }
3579
3582
  var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
3580
3583
  length -= holders.length;
@@ -3607,18 +3610,18 @@ lodash.exports;
3607
3610
  return iteratee2(iterable[key], key, iterable);
3608
3611
  };
3609
3612
  }
3610
- var index2 = findIndexFunc(collection, predicate, fromIndex);
3611
- return index2 > -1 ? iterable[iteratee2 ? collection[index2] : index2] : undefined$1;
3613
+ var index = findIndexFunc(collection, predicate, fromIndex);
3614
+ return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1;
3612
3615
  };
3613
3616
  }
3614
3617
  function createFlow(fromRight) {
3615
3618
  return flatRest(function(funcs) {
3616
- var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru;
3619
+ var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru;
3617
3620
  if (fromRight) {
3618
3621
  funcs.reverse();
3619
3622
  }
3620
- while (index2--) {
3621
- var func = funcs[index2];
3623
+ while (index--) {
3624
+ var func = funcs[index];
3622
3625
  if (typeof func != "function") {
3623
3626
  throw new TypeError2(FUNC_ERROR_TEXT);
3624
3627
  }
@@ -3626,9 +3629,9 @@ lodash.exports;
3626
3629
  var wrapper = new LodashWrapper([], true);
3627
3630
  }
3628
3631
  }
3629
- index2 = wrapper ? index2 : length;
3630
- while (++index2 < length) {
3631
- func = funcs[index2];
3632
+ index = wrapper ? index : length;
3633
+ while (++index < length) {
3634
+ func = funcs[index];
3632
3635
  var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
3633
3636
  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) {
3634
3637
  wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
@@ -3641,9 +3644,9 @@ lodash.exports;
3641
3644
  if (wrapper && args.length == 1 && isArray(value)) {
3642
3645
  return wrapper.plant(value).value();
3643
3646
  }
3644
- var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
3645
- while (++index3 < length) {
3646
- result2 = funcs[index3].call(this, result2);
3647
+ var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value;
3648
+ while (++index2 < length) {
3649
+ result2 = funcs[index2].call(this, result2);
3647
3650
  }
3648
3651
  return result2;
3649
3652
  };
@@ -3652,9 +3655,9 @@ lodash.exports;
3652
3655
  function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
3653
3656
  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);
3654
3657
  function wrapper() {
3655
- var length = arguments.length, args = Array2(length), index2 = length;
3656
- while (index2--) {
3657
- args[index2] = arguments[index2];
3658
+ var length = arguments.length, args = Array2(length), index = length;
3659
+ while (index--) {
3660
+ args[index] = arguments[index];
3658
3661
  }
3659
3662
  if (isCurried) {
3660
3663
  var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
@@ -3922,13 +3925,13 @@ lodash.exports;
3922
3925
  if (arrStacked && othStacked) {
3923
3926
  return arrStacked == other && othStacked == array;
3924
3927
  }
3925
- var index2 = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
3928
+ var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
3926
3929
  stack.set(array, other);
3927
3930
  stack.set(other, array);
3928
- while (++index2 < arrLength) {
3929
- var arrValue = array[index2], othValue = other[index2];
3931
+ while (++index < arrLength) {
3932
+ var arrValue = array[index], othValue = other[index];
3930
3933
  if (customizer) {
3931
- var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
3934
+ var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
3932
3935
  }
3933
3936
  if (compared !== undefined$1) {
3934
3937
  if (compared) {
@@ -4006,9 +4009,9 @@ lodash.exports;
4006
4009
  if (objLength != othLength && !isPartial) {
4007
4010
  return false;
4008
4011
  }
4009
- var index2 = objLength;
4010
- while (index2--) {
4011
- var key = objProps[index2];
4012
+ var index = objLength;
4013
+ while (index--) {
4014
+ var key = objProps[index];
4012
4015
  if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
4013
4016
  return false;
4014
4017
  }
@@ -4022,8 +4025,8 @@ lodash.exports;
4022
4025
  stack.set(object2, other);
4023
4026
  stack.set(other, object2);
4024
4027
  var skipCtor = isPartial;
4025
- while (++index2 < objLength) {
4026
- key = objProps[index2];
4028
+ while (++index < objLength) {
4029
+ key = objProps[index];
4027
4030
  var objValue = object2[key], othValue = other[key];
4028
4031
  if (customizer) {
4029
4032
  var compared = isPartial ? customizer(othValue, objValue, key, other, object2, stack) : customizer(objValue, othValue, key, object2, other, stack);
@@ -4147,9 +4150,9 @@ lodash.exports;
4147
4150
  };
4148
4151
  }
4149
4152
  function getView(start, end, transforms) {
4150
- var index2 = -1, length = transforms.length;
4151
- while (++index2 < length) {
4152
- var data2 = transforms[index2], size2 = data2.size;
4153
+ var index = -1, length = transforms.length;
4154
+ while (++index < length) {
4155
+ var data2 = transforms[index], size2 = data2.size;
4153
4156
  switch (data2.type) {
4154
4157
  case "drop":
4155
4158
  start += size2;
@@ -4173,15 +4176,15 @@ lodash.exports;
4173
4176
  }
4174
4177
  function hasPath(object2, path, hasFunc) {
4175
4178
  path = castPath(path, object2);
4176
- var index2 = -1, length = path.length, result2 = false;
4177
- while (++index2 < length) {
4178
- var key = toKey(path[index2]);
4179
+ var index = -1, length = path.length, result2 = false;
4180
+ while (++index < length) {
4181
+ var key = toKey(path[index]);
4179
4182
  if (!(result2 = object2 != null && hasFunc(object2, key))) {
4180
4183
  break;
4181
4184
  }
4182
4185
  object2 = object2[key];
4183
4186
  }
4184
- if (result2 || ++index2 != length) {
4187
+ if (result2 || ++index != length) {
4185
4188
  return result2;
4186
4189
  }
4187
4190
  length = object2 == null ? 0 : object2.length;
@@ -4249,13 +4252,13 @@ lodash.exports;
4249
4252
  length = length == null ? MAX_SAFE_INTEGER : length;
4250
4253
  return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
4251
4254
  }
4252
- function isIterateeCall(value, index2, object2) {
4255
+ function isIterateeCall(value, index, object2) {
4253
4256
  if (!isObject2(object2)) {
4254
4257
  return false;
4255
4258
  }
4256
- var type2 = typeof index2;
4257
- if (type2 == "number" ? isArrayLike(object2) && isIndex(index2, object2.length) : type2 == "string" && index2 in object2) {
4258
- return eq(object2[index2], value);
4259
+ var type2 = typeof index;
4260
+ if (type2 == "number" ? isArrayLike(object2) && isIndex(index, object2.length) : type2 == "string" && index in object2) {
4261
+ return eq(object2[index], value);
4259
4262
  }
4260
4263
  return false;
4261
4264
  }
@@ -4364,14 +4367,14 @@ lodash.exports;
4364
4367
  function overRest(func, start, transform2) {
4365
4368
  start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
4366
4369
  return function() {
4367
- var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
4368
- while (++index2 < length) {
4369
- array[index2] = args[start + index2];
4370
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
4371
+ while (++index < length) {
4372
+ array[index] = args[start + index];
4370
4373
  }
4371
- index2 = -1;
4374
+ index = -1;
4372
4375
  var otherArgs = Array2(start + 1);
4373
- while (++index2 < start) {
4374
- otherArgs[index2] = args[index2];
4376
+ while (++index < start) {
4377
+ otherArgs[index] = args[index];
4375
4378
  }
4376
4379
  otherArgs[start] = transform2(array);
4377
4380
  return apply(func, this, otherArgs);
@@ -4383,8 +4386,8 @@ lodash.exports;
4383
4386
  function reorder(array, indexes) {
4384
4387
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
4385
4388
  while (length--) {
4386
- var index2 = indexes[length];
4387
- array[length] = isIndex(index2, arrLength) ? oldArray[index2] : undefined$1;
4389
+ var index = indexes[length];
4390
+ array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;
4388
4391
  }
4389
4392
  return array;
4390
4393
  }
@@ -4422,12 +4425,12 @@ lodash.exports;
4422
4425
  };
4423
4426
  }
4424
4427
  function shuffleSelf(array, size2) {
4425
- var index2 = -1, length = array.length, lastIndex = length - 1;
4428
+ var index = -1, length = array.length, lastIndex = length - 1;
4426
4429
  size2 = size2 === undefined$1 ? length : size2;
4427
- while (++index2 < size2) {
4428
- var rand = baseRandom(index2, lastIndex), value = array[rand];
4429
- array[rand] = array[index2];
4430
- array[index2] = value;
4430
+ while (++index < size2) {
4431
+ var rand = baseRandom(index, lastIndex), value = array[rand];
4432
+ array[rand] = array[index];
4433
+ array[index] = value;
4431
4434
  }
4432
4435
  array.length = size2;
4433
4436
  return array;
@@ -4491,16 +4494,16 @@ lodash.exports;
4491
4494
  if (!length || size2 < 1) {
4492
4495
  return [];
4493
4496
  }
4494
- var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
4495
- while (index2 < length) {
4496
- result2[resIndex++] = baseSlice(array, index2, index2 += size2);
4497
+ var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
4498
+ while (index < length) {
4499
+ result2[resIndex++] = baseSlice(array, index, index += size2);
4497
4500
  }
4498
4501
  return result2;
4499
4502
  }
4500
4503
  function compact(array) {
4501
- var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
4502
- while (++index2 < length) {
4503
- var value = array[index2];
4504
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
4505
+ while (++index < length) {
4506
+ var value = array[index];
4504
4507
  if (value) {
4505
4508
  result2[resIndex++] = value;
4506
4509
  }
@@ -4512,9 +4515,9 @@ lodash.exports;
4512
4515
  if (!length) {
4513
4516
  return [];
4514
4517
  }
4515
- var args = Array2(length - 1), array = arguments[0], index2 = length;
4516
- while (index2--) {
4517
- args[index2 - 1] = arguments[index2];
4518
+ var args = Array2(length - 1), array = arguments[0], index = length;
4519
+ while (index--) {
4520
+ args[index - 1] = arguments[index];
4518
4521
  }
4519
4522
  return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
4520
4523
  }
@@ -4574,23 +4577,23 @@ lodash.exports;
4574
4577
  if (!length) {
4575
4578
  return -1;
4576
4579
  }
4577
- var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
4578
- if (index2 < 0) {
4579
- index2 = nativeMax(length + index2, 0);
4580
+ var index = fromIndex == null ? 0 : toInteger(fromIndex);
4581
+ if (index < 0) {
4582
+ index = nativeMax(length + index, 0);
4580
4583
  }
4581
- return baseFindIndex(array, getIteratee(predicate, 3), index2);
4584
+ return baseFindIndex(array, getIteratee(predicate, 3), index);
4582
4585
  }
4583
4586
  function findLastIndex(array, predicate, fromIndex) {
4584
4587
  var length = array == null ? 0 : array.length;
4585
4588
  if (!length) {
4586
4589
  return -1;
4587
4590
  }
4588
- var index2 = length - 1;
4591
+ var index = length - 1;
4589
4592
  if (fromIndex !== undefined$1) {
4590
- index2 = toInteger(fromIndex);
4591
- index2 = fromIndex < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
4593
+ index = toInteger(fromIndex);
4594
+ index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
4592
4595
  }
4593
- return baseFindIndex(array, getIteratee(predicate, 3), index2, true);
4596
+ return baseFindIndex(array, getIteratee(predicate, 3), index, true);
4594
4597
  }
4595
4598
  function flatten2(array) {
4596
4599
  var length = array == null ? 0 : array.length;
@@ -4609,9 +4612,9 @@ lodash.exports;
4609
4612
  return baseFlatten(array, depth);
4610
4613
  }
4611
4614
  function fromPairs(pairs) {
4612
- var index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
4613
- while (++index2 < length) {
4614
- var pair = pairs[index2];
4615
+ var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
4616
+ while (++index < length) {
4617
+ var pair = pairs[index];
4615
4618
  result2[pair[0]] = pair[1];
4616
4619
  }
4617
4620
  return result2;
@@ -4624,11 +4627,11 @@ lodash.exports;
4624
4627
  if (!length) {
4625
4628
  return -1;
4626
4629
  }
4627
- var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
4628
- if (index2 < 0) {
4629
- index2 = nativeMax(length + index2, 0);
4630
+ var index = fromIndex == null ? 0 : toInteger(fromIndex);
4631
+ if (index < 0) {
4632
+ index = nativeMax(length + index, 0);
4630
4633
  }
4631
- return baseIndexOf(array, value, index2);
4634
+ return baseIndexOf(array, value, index);
4632
4635
  }
4633
4636
  function initial(array) {
4634
4637
  var length = array == null ? 0 : array.length;
@@ -4667,12 +4670,12 @@ lodash.exports;
4667
4670
  if (!length) {
4668
4671
  return -1;
4669
4672
  }
4670
- var index2 = length;
4673
+ var index = length;
4671
4674
  if (fromIndex !== undefined$1) {
4672
- index2 = toInteger(fromIndex);
4673
- index2 = index2 < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
4675
+ index = toInteger(fromIndex);
4676
+ index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
4674
4677
  }
4675
- return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex(array, baseIsNaN, index2, true);
4678
+ return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
4676
4679
  }
4677
4680
  function nth(array, n) {
4678
4681
  return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
@@ -4689,8 +4692,8 @@ lodash.exports;
4689
4692
  }
4690
4693
  var pullAt = flatRest(function(array, indexes) {
4691
4694
  var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
4692
- basePullAt(array, arrayMap(indexes, function(index2) {
4693
- return isIndex(index2, length) ? +index2 : index2;
4695
+ basePullAt(array, arrayMap(indexes, function(index) {
4696
+ return isIndex(index, length) ? +index : index;
4694
4697
  }).sort(compareAscending));
4695
4698
  return result2;
4696
4699
  });
@@ -4699,13 +4702,13 @@ lodash.exports;
4699
4702
  if (!(array && array.length)) {
4700
4703
  return result2;
4701
4704
  }
4702
- var index2 = -1, indexes = [], length = array.length;
4705
+ var index = -1, indexes = [], length = array.length;
4703
4706
  predicate = getIteratee(predicate, 3);
4704
- while (++index2 < length) {
4705
- var value = array[index2];
4706
- if (predicate(value, index2, array)) {
4707
+ while (++index < length) {
4708
+ var value = array[index];
4709
+ if (predicate(value, index, array)) {
4707
4710
  result2.push(value);
4708
- indexes.push(index2);
4711
+ indexes.push(index);
4709
4712
  }
4710
4713
  }
4711
4714
  basePullAt(array, indexes);
@@ -4737,9 +4740,9 @@ lodash.exports;
4737
4740
  function sortedIndexOf(array, value) {
4738
4741
  var length = array == null ? 0 : array.length;
4739
4742
  if (length) {
4740
- var index2 = baseSortedIndex(array, value);
4741
- if (index2 < length && eq(array[index2], value)) {
4742
- return index2;
4743
+ var index = baseSortedIndex(array, value);
4744
+ if (index < length && eq(array[index], value)) {
4745
+ return index;
4743
4746
  }
4744
4747
  }
4745
4748
  return -1;
@@ -4753,9 +4756,9 @@ lodash.exports;
4753
4756
  function sortedLastIndexOf(array, value) {
4754
4757
  var length = array == null ? 0 : array.length;
4755
4758
  if (length) {
4756
- var index2 = baseSortedIndex(array, value, true) - 1;
4757
- if (eq(array[index2], value)) {
4758
- return index2;
4759
+ var index = baseSortedIndex(array, value, true) - 1;
4760
+ if (eq(array[index], value)) {
4761
+ return index;
4759
4762
  }
4760
4763
  }
4761
4764
  return -1;
@@ -4828,8 +4831,8 @@ lodash.exports;
4828
4831
  return true;
4829
4832
  }
4830
4833
  });
4831
- return baseTimes(length, function(index2) {
4832
- return arrayMap(array, baseProperty(index2));
4834
+ return baseTimes(length, function(index) {
4835
+ return arrayMap(array, baseProperty(index));
4833
4836
  });
4834
4837
  }
4835
4838
  function unzipWith(array, iteratee2) {
@@ -5014,9 +5017,9 @@ lodash.exports;
5014
5017
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
5015
5018
  }
5016
5019
  var invokeMap = baseRest(function(collection, path, args) {
5017
- var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
5020
+ var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
5018
5021
  baseEach(collection, function(value) {
5019
- result2[++index2] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
5022
+ result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
5020
5023
  });
5021
5024
  return result2;
5022
5025
  });
@@ -5302,9 +5305,9 @@ lodash.exports;
5302
5305
  transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
5303
5306
  var funcsLength = transforms.length;
5304
5307
  return baseRest(function(args) {
5305
- var index2 = -1, length = nativeMin(args.length, funcsLength);
5306
- while (++index2 < length) {
5307
- args[index2] = transforms[index2].call(this, args[index2]);
5308
+ var index = -1, length = nativeMin(args.length, funcsLength);
5309
+ while (++index < length) {
5310
+ args[index] = transforms[index].call(this, args[index]);
5308
5311
  }
5309
5312
  return apply(func, this, args);
5310
5313
  });
@@ -5619,14 +5622,14 @@ lodash.exports;
5619
5622
  }
5620
5623
  var defaults = baseRest(function(object2, sources) {
5621
5624
  object2 = Object2(object2);
5622
- var index2 = -1;
5625
+ var index = -1;
5623
5626
  var length = sources.length;
5624
5627
  var guard = length > 2 ? sources[2] : undefined$1;
5625
5628
  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
5626
5629
  length = 1;
5627
5630
  }
5628
- while (++index2 < length) {
5629
- var source = sources[index2];
5631
+ while (++index < length) {
5632
+ var source = sources[index];
5630
5633
  var props = keysIn(source);
5631
5634
  var propsIndex = -1;
5632
5635
  var propsLength = props.length;
@@ -5764,15 +5767,15 @@ lodash.exports;
5764
5767
  }
5765
5768
  function result(object2, path, defaultValue) {
5766
5769
  path = castPath(path, object2);
5767
- var index2 = -1, length = path.length;
5770
+ var index = -1, length = path.length;
5768
5771
  if (!length) {
5769
5772
  length = 1;
5770
5773
  object2 = undefined$1;
5771
5774
  }
5772
- while (++index2 < length) {
5773
- var value = object2 == null ? undefined$1 : object2[toKey(path[index2])];
5775
+ while (++index < length) {
5776
+ var value = object2 == null ? undefined$1 : object2[toKey(path[index])];
5774
5777
  if (value === undefined$1) {
5775
- index2 = length;
5778
+ index = length;
5776
5779
  value = defaultValue;
5777
5780
  }
5778
5781
  object2 = isFunction(value) ? value.call(object2) : value;
@@ -5801,8 +5804,8 @@ lodash.exports;
5801
5804
  accumulator = {};
5802
5805
  }
5803
5806
  }
5804
- (isArrLike ? arrayEach : baseForOwn)(object2, function(value, index2, object3) {
5805
- return iteratee2(accumulator, value, index2, object3);
5807
+ (isArrLike ? arrayEach : baseForOwn)(object2, function(value, index, object3) {
5808
+ return iteratee2(accumulator, value, index, object3);
5806
5809
  });
5807
5810
  return accumulator;
5808
5811
  }
@@ -5884,9 +5887,9 @@ lodash.exports;
5884
5887
  }
5885
5888
  return baseRandom(lower, upper);
5886
5889
  }
5887
- var camelCase = createCompounder(function(result2, word, index2) {
5890
+ var camelCase = createCompounder(function(result2, word, index) {
5888
5891
  word = word.toLowerCase();
5889
- return result2 + (index2 ? capitalize(word) : word);
5892
+ return result2 + (index ? capitalize(word) : word);
5890
5893
  });
5891
5894
  function capitalize(string) {
5892
5895
  return upperFirst(toString(string).toLowerCase());
@@ -5912,11 +5915,11 @@ lodash.exports;
5912
5915
  string = toString(string);
5913
5916
  return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
5914
5917
  }
5915
- var kebabCase = createCompounder(function(result2, word, index2) {
5916
- return result2 + (index2 ? "-" : "") + word.toLowerCase();
5918
+ var kebabCase = createCompounder(function(result2, word, index) {
5919
+ return result2 + (index ? "-" : "") + word.toLowerCase();
5917
5920
  });
5918
- var lowerCase = createCompounder(function(result2, word, index2) {
5919
- return result2 + (index2 ? " " : "") + word.toLowerCase();
5921
+ var lowerCase = createCompounder(function(result2, word, index) {
5922
+ return result2 + (index ? " " : "") + word.toLowerCase();
5920
5923
  });
5921
5924
  var lowerFirst = createCaseFirst("toLowerCase");
5922
5925
  function pad(string, length, chars) {
@@ -5961,8 +5964,8 @@ lodash.exports;
5961
5964
  var args = arguments, string = toString(args[0]);
5962
5965
  return args.length < 3 ? string : string.replace(args[1], args[2]);
5963
5966
  }
5964
- var snakeCase = createCompounder(function(result2, word, index2) {
5965
- return result2 + (index2 ? "_" : "") + word.toLowerCase();
5967
+ var snakeCase = createCompounder(function(result2, word, index) {
5968
+ return result2 + (index ? "_" : "") + word.toLowerCase();
5966
5969
  });
5967
5970
  function split(string, separator, limit) {
5968
5971
  if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
@@ -5981,8 +5984,8 @@ lodash.exports;
5981
5984
  }
5982
5985
  return string.split(separator, limit);
5983
5986
  }
5984
- var startCase = createCompounder(function(result2, word, index2) {
5985
- return result2 + (index2 ? " " : "") + upperFirst(word);
5987
+ var startCase = createCompounder(function(result2, word, index) {
5988
+ return result2 + (index ? " " : "") + upperFirst(word);
5986
5989
  });
5987
5990
  function startsWith(string, target, position) {
5988
5991
  string = toString(string);
@@ -5998,7 +6001,7 @@ lodash.exports;
5998
6001
  string = toString(string);
5999
6002
  options = assignInWith({}, options, settings, customDefaultsAssignIn);
6000
6003
  var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
6001
- var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
6004
+ var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
6002
6005
  var reDelimiters = RegExp2(
6003
6006
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
6004
6007
  "g"
@@ -6006,7 +6009,7 @@ lodash.exports;
6006
6009
  var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
6007
6010
  string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
6008
6011
  interpolateValue || (interpolateValue = esTemplateValue);
6009
- source += string.slice(index2, offset).replace(reUnescapedString, escapeStringChar);
6012
+ source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
6010
6013
  if (escapeValue) {
6011
6014
  isEscaping = true;
6012
6015
  source += "' +\n__e(" + escapeValue + ") +\n'";
@@ -6018,7 +6021,7 @@ lodash.exports;
6018
6021
  if (interpolateValue) {
6019
6022
  source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
6020
6023
  }
6021
- index2 = offset + match.length;
6024
+ index = offset + match.length;
6022
6025
  return match;
6023
6026
  });
6024
6027
  source += "';\n";
@@ -6118,9 +6121,9 @@ lodash.exports;
6118
6121
  result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
6119
6122
  }
6120
6123
  } else if (string.indexOf(baseToString(separator), end) != end) {
6121
- var index2 = result2.lastIndexOf(separator);
6122
- if (index2 > -1) {
6123
- result2 = result2.slice(0, index2);
6124
+ var index = result2.lastIndexOf(separator);
6125
+ if (index > -1) {
6126
+ result2 = result2.slice(0, index);
6124
6127
  }
6125
6128
  }
6126
6129
  return result2 + omission;
@@ -6129,8 +6132,8 @@ lodash.exports;
6129
6132
  string = toString(string);
6130
6133
  return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
6131
6134
  }
6132
- var upperCase = createCompounder(function(result2, word, index2) {
6133
- return result2 + (index2 ? " " : "") + word.toUpperCase();
6135
+ var upperCase = createCompounder(function(result2, word, index) {
6136
+ return result2 + (index ? " " : "") + word.toUpperCase();
6134
6137
  });
6135
6138
  var upperFirst = createCaseFirst("toUpperCase");
6136
6139
  function words(string, pattern, guard) {
@@ -6164,9 +6167,9 @@ lodash.exports;
6164
6167
  return [toIteratee(pair[0]), pair[1]];
6165
6168
  });
6166
6169
  return baseRest(function(args) {
6167
- var index2 = -1;
6168
- while (++index2 < length) {
6169
- var pair = pairs[index2];
6170
+ var index = -1;
6171
+ while (++index < length) {
6172
+ var pair = pairs[index];
6170
6173
  if (apply(pair[0], this, args)) {
6171
6174
  return apply(pair[1], this, args);
6172
6175
  }
@@ -6282,12 +6285,12 @@ lodash.exports;
6282
6285
  if (n < 1 || n > MAX_SAFE_INTEGER) {
6283
6286
  return [];
6284
6287
  }
6285
- var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
6288
+ var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
6286
6289
  iteratee2 = getIteratee(iteratee2);
6287
6290
  n -= MAX_ARRAY_LENGTH;
6288
6291
  var result2 = baseTimes(length, iteratee2);
6289
- while (++index2 < n) {
6290
- iteratee2(index2);
6292
+ while (++index < n) {
6293
+ iteratee2(index);
6291
6294
  }
6292
6295
  return result2;
6293
6296
  }
@@ -6659,10 +6662,10 @@ lodash.exports;
6659
6662
  arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
6660
6663
  lodash2[methodName].placeholder = lodash2;
6661
6664
  });
6662
- arrayEach(["drop", "take"], function(methodName, index2) {
6665
+ arrayEach(["drop", "take"], function(methodName, index) {
6663
6666
  LazyWrapper.prototype[methodName] = function(n) {
6664
6667
  n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
6665
- var result2 = this.__filtered__ && !index2 ? new LazyWrapper(this) : this.clone();
6668
+ var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
6666
6669
  if (result2.__filtered__) {
6667
6670
  result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
6668
6671
  } else {
@@ -6677,8 +6680,8 @@ lodash.exports;
6677
6680
  return this.reverse()[methodName](n).reverse();
6678
6681
  };
6679
6682
  });
6680
- arrayEach(["filter", "map", "takeWhile"], function(methodName, index2) {
6681
- var type2 = index2 + 1, isFilter = type2 == LAZY_FILTER_FLAG || type2 == LAZY_WHILE_FLAG;
6683
+ arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
6684
+ var type2 = index + 1, isFilter = type2 == LAZY_FILTER_FLAG || type2 == LAZY_WHILE_FLAG;
6682
6685
  LazyWrapper.prototype[methodName] = function(iteratee2) {
6683
6686
  var result2 = this.clone();
6684
6687
  result2.__iteratees__.push({
@@ -6689,14 +6692,14 @@ lodash.exports;
6689
6692
  return result2;
6690
6693
  };
6691
6694
  });
6692
- arrayEach(["head", "last"], function(methodName, index2) {
6693
- var takeName = "take" + (index2 ? "Right" : "");
6695
+ arrayEach(["head", "last"], function(methodName, index) {
6696
+ var takeName = "take" + (index ? "Right" : "");
6694
6697
  LazyWrapper.prototype[methodName] = function() {
6695
6698
  return this[takeName](1).value()[0];
6696
6699
  };
6697
6700
  });
6698
- arrayEach(["initial", "tail"], function(methodName, index2) {
6699
- var dropName = "drop" + (index2 ? "" : "Right");
6701
+ arrayEach(["initial", "tail"], function(methodName, index) {
6702
+ var dropName = "drop" + (index ? "" : "Right");
6700
6703
  LazyWrapper.prototype[methodName] = function() {
6701
6704
  return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
6702
6705
  };
@@ -7090,7 +7093,7 @@ const useEagleForm = ({
7090
7093
  var _a, _b, _c;
7091
7094
  const editor = useRef(null);
7092
7095
  const isFoldRef = useRef(false);
7093
- const { t } = useTranslation();
7096
+ const { t } = useD2Translation();
7094
7097
  const [enableEditor, setEnableEditor] = useState(false);
7095
7098
  const [isYamlValid, setIsYamlValid] = useState(true);
7096
7099
  const [isSchemaValid, setIsSchemaValid] = useState(true);
@@ -7263,7 +7266,7 @@ const useDeleteModal = (resource) => {
7263
7266
  const [visible, setVisible] = useState(false);
7264
7267
  const navigation = useNavigation();
7265
7268
  const [id, setId] = useState("");
7266
- const { t } = useTranslation();
7269
+ const { t } = useD2Translation();
7267
7270
  const modalProps = {
7268
7271
  title: t("dovetail.delete"),
7269
7272
  okText: t("dovetail.delete"),
@@ -7456,9 +7459,9 @@ function KeyValueListWidget(props) {
7456
7459
  [props]
7457
7460
  );
7458
7461
  const onRemove = useCallback(
7459
- (index2) => {
7462
+ (index) => {
7460
7463
  const result = [...items];
7461
- result.splice(index2, 1);
7464
+ result.splice(index, 1);
7462
7465
  onChange(result);
7463
7466
  },
7464
7467
  [onChange, items]
@@ -7467,28 +7470,28 @@ function KeyValueListWidget(props) {
7467
7470
  onChange([...items, { key: "", value: "" }]);
7468
7471
  }, [onChange, items]);
7469
7472
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
7470
- items.map((item, index2) => {
7473
+ items.map((item, index) => {
7471
7474
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
7472
7475
  KeyValueInput,
7473
7476
  {
7474
7477
  item,
7475
7478
  onChange: (newItem) => {
7476
7479
  const temp = [...items];
7477
- temp.splice(index2, 1, newItem);
7480
+ temp.splice(index, 1, newItem);
7478
7481
  onChange(temp);
7479
7482
  },
7480
7483
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
7481
7484
  kit.button,
7482
7485
  {
7483
7486
  onClick: () => {
7484
- onRemove(index2);
7487
+ onRemove(index);
7485
7488
  },
7486
7489
  danger: true,
7487
7490
  children: "Remove"
7488
7491
  }
7489
7492
  )
7490
7493
  },
7491
- index2
7494
+ index
7492
7495
  );
7493
7496
  }),
7494
7497
  /* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: onAdd, children: "Add" }) })
@@ -7529,7 +7532,7 @@ const WidgetErrorContent$1 = (props) => {
7529
7532
  const kit = useContext(kitContext);
7530
7533
  const {
7531
7534
  t
7532
- } = useTranslation();
7535
+ } = useD2Translation();
7533
7536
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
7534
7537
  className: ErrorWrapper$1,
7535
7538
  style: props.style,
@@ -7872,7 +7875,7 @@ const Time = (props) => {
7872
7875
  };
7873
7876
  const ConditionsTable = ({ conditions = [] }) => {
7874
7877
  const kit = useUIKit();
7875
- const { t } = useTranslation();
7878
+ const { t } = useD2Translation();
7876
7879
  const conditionsWithId = addId(conditions, "type");
7877
7880
  const columns = [
7878
7881
  {
@@ -8058,7 +8061,7 @@ function Table(props) {
8058
8061
  const kit = useUIKit();
8059
8062
  const {
8060
8063
  t
8061
- } = useTranslation();
8064
+ } = useD2Translation();
8062
8065
  const {
8063
8066
  loading,
8064
8067
  error,
@@ -9585,14 +9588,14 @@ function generate(node, key, rootProps) {
9585
9588
  if (!rootProps) {
9586
9589
  return React__default.createElement(node.tag, _objectSpread$1({
9587
9590
  key
9588
- }, normalizeAttrs(node.attrs)), (node.children || []).map(function(child, index2) {
9589
- return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
9591
+ }, normalizeAttrs(node.attrs)), (node.children || []).map(function(child, index) {
9592
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
9590
9593
  }));
9591
9594
  }
9592
9595
  return React__default.createElement(node.tag, _objectSpread$1(_objectSpread$1({
9593
9596
  key
9594
- }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function(child, index2) {
9595
- return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
9597
+ }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function(child, index) {
9598
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
9596
9599
  }));
9597
9600
  }
9598
9601
  function getSecondaryColor(primaryColor) {
@@ -9775,7 +9778,7 @@ const WidgetErrorContent = (props) => {
9775
9778
  const kit = useContext(kitContext);
9776
9779
  const {
9777
9780
  t
9778
- } = useTranslation();
9781
+ } = useD2Translation();
9779
9782
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
9780
9783
  className: props.className,
9781
9784
  style: props.style,
@@ -9801,8 +9804,8 @@ function FormErrorAlert(props) {
9801
9804
  return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
9802
9805
  kit.alert,
9803
9806
  {
9804
- message: errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
9805
- index2 + 1 + ". ",
9807
+ message: errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
9808
+ index + 1 + ". ",
9806
9809
  " ",
9807
9810
  errorMsg
9808
9811
  ] }, errorMsg)) }) : first(errorMsgs),
@@ -9827,7 +9830,7 @@ function FormLayout(props) {
9827
9830
  } = useResource();
9828
9831
  const {
9829
9832
  t
9830
- } = useTranslation();
9833
+ } = useD2Translation();
9831
9834
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
9832
9835
  className: WrapperStyle$3,
9833
9836
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
@@ -9861,7 +9864,7 @@ const ErrorMsgStyle = "eh2qjnl";
9861
9864
  const ErrorWrapperStyle = "e19q2bnp";
9862
9865
  const YamlEditorStyle = "y16u5v3w";
9863
9866
  const MonacoYamlEditor$2 = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
9864
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-b06840cc.js"));
9867
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-37f2db86.js"));
9865
9868
  const YamlEditorComponent = forwardRef(
9866
9869
  function YamlEditorComponent2(props, ref) {
9867
9870
  const {
@@ -9877,7 +9880,7 @@ const YamlEditorComponent = forwardRef(
9877
9880
  className
9878
9881
  } = props;
9879
9882
  const kit = useUIKit();
9880
- const { t } = useTranslation();
9883
+ const { t } = useD2Translation();
9881
9884
  const [isCollapsed, setIsCollapsed] = useState(
9882
9885
  collapsable ? isDefaultCollapsed : false
9883
9886
  );
@@ -10056,8 +10059,8 @@ const YamlEditorComponent = forwardRef(
10056
10059
  ] }),
10057
10060
  errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
10058
10061
  /* @__PURE__ */ jsxRuntimeExports.jsx(XmarkFailedSeriousWarningFill16RedIcon, { className: ErrorIconStyle }),
10059
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: ErrorMsgStyle, children: [
10060
- errorMsgs.length > 1 ? `${index2 + 1}. ` : "",
10062
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: ErrorMsgStyle, children: [
10063
+ errorMsgs.length > 1 ? `${index + 1}. ` : "",
10061
10064
  errorMsg
10062
10065
  ] }, errorMsg)) })
10063
10066
  ] }) : void 0
@@ -10399,7 +10402,7 @@ function YamlForm(props) {
10399
10402
  const {
10400
10403
  t,
10401
10404
  i18n: i18n2
10402
- } = useTranslation();
10405
+ } = useD2Translation();
10403
10406
  const responseErrors = errorResponseBody ? getCommonErrors(errorResponseBody, i18n2) : [];
10404
10407
  const FormWrapper = isShowLayout ? FormLayout : React__default.Fragment;
10405
10408
  const schema = useMemo(() => {
@@ -10464,7 +10467,7 @@ function FormModal(props) {
10464
10467
  } = props;
10465
10468
  const {
10466
10469
  i18n: i18n2
10467
- } = useTranslation();
10470
+ } = useD2Translation();
10468
10471
  const {
10469
10472
  resource
10470
10473
  } = useResource();
@@ -10586,14 +10589,14 @@ function useOpenForm(options) {
10586
10589
  }
10587
10590
  function CreateButton() {
10588
10591
  const kit = useUIKit();
10589
- const { t } = useTranslation();
10592
+ const { t } = useD2Translation();
10590
10593
  const openForm = useOpenForm();
10591
10594
  return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, { type: "primary", onClick: openForm, children: t("dovetail.create") });
10592
10595
  }
10593
10596
  const useDeleteManyModal = (resource, ids) => {
10594
10597
  const { mutate } = useDeleteMany();
10595
10598
  const [visible, setVisible] = useState(false);
10596
- const { t } = useTranslation();
10599
+ const { t } = useD2Translation();
10597
10600
  const modalProps = {
10598
10601
  title: t("dovetail.delete"),
10599
10602
  okText: t("dovetail.delete"),
@@ -10621,7 +10624,7 @@ const useDeleteManyModal = (resource, ids) => {
10621
10624
  const DeleteManyButton = (props) => {
10622
10625
  const { resource } = useResource();
10623
10626
  const kit = useUIKit();
10624
- const { t } = useTranslation();
10627
+ const { t } = useD2Translation();
10625
10628
  const { modalProps, visible, setVisible } = useDeleteManyModal(
10626
10629
  (resource == null ? void 0 : resource.name) || "",
10627
10630
  props.ids
@@ -10670,7 +10673,7 @@ const CronjobJobsTable = ({
10670
10673
  }) => {
10671
10674
  const {
10672
10675
  i18n: i18n2
10673
- } = useTranslation();
10676
+ } = useD2Translation();
10674
10677
  const kit = useUIKit();
10675
10678
  const [selectedKeys, setSelectedKeys] = useState([]);
10676
10679
  const [currentPage, setCurrentPage] = useState(1);
@@ -10712,7 +10715,7 @@ const CronjobJobsTable = ({
10712
10715
  });
10713
10716
  };
10714
10717
  const EventsTable = ({}) => {
10715
- const { i18n: i18n2 } = useTranslation();
10718
+ const { i18n: i18n2 } = useD2Translation();
10716
10719
  const [currentPage, setCurrentPage] = useState(1);
10717
10720
  const { data: data2, isLoading } = useList({
10718
10721
  resource: "events",
@@ -10788,16 +10791,16 @@ const ImageNames = ({
10788
10791
  const kit = useUIKit();
10789
10792
  const {
10790
10793
  t
10791
- } = useTranslation();
10794
+ } = useD2Translation();
10792
10795
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
10793
10796
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
10794
10797
  children: value[0]
10795
10798
  }), value.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tooltip, {
10796
10799
  title: /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
10797
- children: value.slice(1).map((name2, index2) => {
10800
+ children: value.slice(1).map((name2, index) => {
10798
10801
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
10799
10802
  children: name2
10800
- }, index2);
10803
+ }, index);
10801
10804
  })
10802
10805
  }),
10803
10806
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
@@ -10827,7 +10830,7 @@ const ResourceLink = (props) => {
10827
10830
  };
10828
10831
  const IngressRulesTable = ({ ingress }) => {
10829
10832
  const kit = useUIKit();
10830
- const { t } = useTranslation();
10833
+ const { t } = useD2Translation();
10831
10834
  const rows = useMemo(() => {
10832
10835
  return addId(ingress.flattenedRules, "fullPath");
10833
10836
  }, [ingress.flattenedRules]);
@@ -10934,7 +10937,7 @@ const WorkloadPodsTable = ({
10934
10937
  }) => {
10935
10938
  const {
10936
10939
  i18n: i18n2
10937
- } = useTranslation();
10940
+ } = useD2Translation();
10938
10941
  const kit = useUIKit();
10939
10942
  const [selectedKeys, setSelectedKeys] = useState([]);
10940
10943
  const [currentPage, setCurrentPage] = useState(1);
@@ -10980,7 +10983,7 @@ const WorkloadPodsTable = ({
10980
10983
  };
10981
10984
  function useSubmitForm(options) {
10982
10985
  const { formRef, onSubmitSuccess } = options;
10983
- const { i18n: i18n2 } = useTranslation();
10986
+ const { i18n: i18n2 } = useD2Translation();
10984
10987
  const [submitting, setSubmitting] = useState(false);
10985
10988
  const [errorMsgs, setErrorMsgs] = useState([]);
10986
10989
  const reset = useCallback(() => {
@@ -11027,7 +11030,7 @@ function EditFieldModal(props) {
11027
11030
  const kit = useUIKit();
11028
11031
  const {
11029
11032
  i18n: i18n2
11030
- } = useTranslation();
11033
+ } = useD2Translation();
11031
11034
  const {
11032
11035
  submitting,
11033
11036
  errorMsgs,
@@ -11064,7 +11067,7 @@ function EditField(props) {
11064
11067
  const kit = useUIKit();
11065
11068
  const {
11066
11069
  i18n: i18n2
11067
- } = useTranslation();
11070
+ } = useD2Translation();
11068
11071
  return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
11069
11072
  className: EditButtonStyle,
11070
11073
  type: "link",
@@ -11348,7 +11351,7 @@ function K8sDropdown(props) {
11348
11351
  (resource == null ? void 0 : resource.name) || ""
11349
11352
  );
11350
11353
  const download2 = useDownloadYAML();
11351
- const { t } = useTranslation();
11354
+ const { t } = useD2Translation();
11352
11355
  const openForm = useOpenForm({ id: record.id });
11353
11356
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
11354
11357
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -11411,7 +11414,7 @@ function KeyValueData(props) {
11411
11414
  const kit = useUIKit();
11412
11415
  const {
11413
11416
  t
11414
- } = useTranslation();
11417
+ } = useD2Translation();
11415
11418
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
11416
11419
  className: WrapperStyle$1,
11417
11420
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
@@ -11607,7 +11610,7 @@ var WorkloadState = /* @__PURE__ */ ((WorkloadState2) => {
11607
11610
  })(WorkloadState || {});
11608
11611
  const StateTag = ({ state: state2 = WorkloadState.UPDATEING, className }) => {
11609
11612
  const kit = useUIKit();
11610
- const { t } = useTranslation();
11613
+ const { t } = useD2Translation();
11611
11614
  const colorMap = {
11612
11615
  updating: "blue",
11613
11616
  ready: "green",
@@ -11686,7 +11689,7 @@ const ShowContent = (props) => {
11686
11689
  });
11687
11690
  const {
11688
11691
  t
11689
- } = useTranslation();
11692
+ } = useD2Translation();
11690
11693
  const {
11691
11694
  fold: fold2
11692
11695
  } = useK8sYamlEditor();
@@ -11809,10 +11812,10 @@ const ShowContent = (props) => {
11809
11812
  });
11810
11813
  const groups = (showConfig.groups || []).concat([{
11811
11814
  fields: LABELS_ANNOTATIONS_GROUP_FIELDS
11812
- }]).map((group, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.row, {
11815
+ }]).map((group, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(kit.row, {
11813
11816
  gutter: [24, 16],
11814
11817
  children: renderFields(group.fields)
11815
- }, index2));
11818
+ }, index));
11816
11819
  const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabs, {
11817
11820
  className: TabsStyle,
11818
11821
  children: (showConfig.tabs || []).map((field) => {
@@ -11870,7 +11873,7 @@ const PodContainersTable = ({
11870
11873
  initContainerStatuses
11871
11874
  }) => {
11872
11875
  const kit = useUIKit();
11873
- const { i18n: i18n2 } = useTranslation();
11876
+ const { i18n: i18n2 } = useD2Translation();
11874
11877
  const columns = useMemo(
11875
11878
  () => [
11876
11879
  {
@@ -11964,7 +11967,7 @@ function WorkloadDropdown(props) {
11964
11967
  const kit = useUIKit();
11965
11968
  const { resource } = useResource();
11966
11969
  const { mutate } = useUpdate();
11967
- const { t } = useTranslation();
11970
+ const { t } = useD2Translation();
11968
11971
  return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
11969
11972
  kit.menu.Item,
11970
11973
  {
@@ -12012,7 +12015,7 @@ function ListPage(props) {
12012
12015
  }
12013
12016
  function ResourceList(props) {
12014
12017
  const { formatter, name: name2, columns, Dropdown } = props;
12015
- const { i18n: i18n2 } = useTranslation();
12018
+ const { i18n: i18n2 } = useD2Translation();
12016
12019
  const { tableProps, selectedKeys } = useEagleTable({
12017
12020
  useTableParams: {},
12018
12021
  columns: [NameColumnRenderer(i18n2), ...columns],
@@ -12085,7 +12088,7 @@ function CronJobDropdown(props) {
12085
12088
  const kit = useUIKit();
12086
12089
  const { resource } = useResource();
12087
12090
  const { mutate } = useUpdate();
12088
- const { t } = useTranslation();
12091
+ const { t } = useD2Translation();
12089
12092
  const suspended2 = Boolean(spec == null ? void 0 : spec.suspend);
12090
12093
  return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12091
12094
  kit.menu.Item,
@@ -12240,7 +12243,7 @@ const DeleteButton = () => {
12240
12243
  const { resource } = useResource();
12241
12244
  const { id } = useParsed();
12242
12245
  const kit = useUIKit();
12243
- const { t } = useTranslation();
12246
+ const { t } = useD2Translation();
12244
12247
  const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
12245
12248
  (resource == null ? void 0 : resource.name) || ""
12246
12249
  );
@@ -12414,7 +12417,7 @@ const useNamespacesFilter = () => {
12414
12417
  };
12415
12418
  const NamespacesFilter = () => {
12416
12419
  const kit = useUIKit();
12417
- const { t } = useTranslation();
12420
+ const { t } = useD2Translation();
12418
12421
  const { data: data2 } = useList({
12419
12422
  resource: "namespaces",
12420
12423
  meta: {
@@ -14449,10 +14452,10 @@ function requireReactDomServer_browser_development() {
14449
14452
  }
14450
14453
  var escape;
14451
14454
  var html = "";
14452
- var index2;
14455
+ var index;
14453
14456
  var lastIndex = 0;
14454
- for (index2 = match.index; index2 < str.length; index2++) {
14455
- switch (str.charCodeAt(index2)) {
14457
+ for (index = match.index; index < str.length; index++) {
14458
+ switch (str.charCodeAt(index)) {
14456
14459
  case 34:
14457
14460
  escape = "&quot;";
14458
14461
  break;
@@ -14471,13 +14474,13 @@ function requireReactDomServer_browser_development() {
14471
14474
  default:
14472
14475
  continue;
14473
14476
  }
14474
- if (lastIndex !== index2) {
14475
- html += str.substring(lastIndex, index2);
14477
+ if (lastIndex !== index) {
14478
+ html += str.substring(lastIndex, index);
14476
14479
  }
14477
- lastIndex = index2 + 1;
14480
+ lastIndex = index + 1;
14478
14481
  html += escape;
14479
14482
  }
14480
- return lastIndex !== index2 ? html + str.substring(lastIndex, index2) : html;
14483
+ return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
14481
14484
  }
14482
14485
  function escapeTextForBrowser(text) {
14483
14486
  if (typeof text === "boolean" || typeof text === "number") {
@@ -16340,39 +16343,39 @@ function requireReactDomServer_browser_development() {
16340
16343
  }
16341
16344
  };
16342
16345
  _proto.pushProvider = function pushProvider(provider) {
16343
- var index2 = ++this.contextIndex;
16346
+ var index = ++this.contextIndex;
16344
16347
  var context = provider.type._context;
16345
16348
  var threadID = this.threadID;
16346
16349
  validateContextBounds(context, threadID);
16347
16350
  var previousValue = context[threadID];
16348
- this.contextStack[index2] = context;
16349
- this.contextValueStack[index2] = previousValue;
16351
+ this.contextStack[index] = context;
16352
+ this.contextValueStack[index] = previousValue;
16350
16353
  {
16351
- this.contextProviderStack[index2] = provider;
16354
+ this.contextProviderStack[index] = provider;
16352
16355
  }
16353
16356
  context[threadID] = provider.props.value;
16354
16357
  };
16355
16358
  _proto.popProvider = function popProvider(provider) {
16356
- var index2 = this.contextIndex;
16359
+ var index = this.contextIndex;
16357
16360
  {
16358
- if (index2 < 0 || provider !== this.contextProviderStack[index2]) {
16361
+ if (index < 0 || provider !== this.contextProviderStack[index]) {
16359
16362
  error("Unexpected pop.");
16360
16363
  }
16361
16364
  }
16362
- var context = this.contextStack[index2];
16363
- var previousValue = this.contextValueStack[index2];
16364
- this.contextStack[index2] = null;
16365
- this.contextValueStack[index2] = null;
16365
+ var context = this.contextStack[index];
16366
+ var previousValue = this.contextValueStack[index];
16367
+ this.contextStack[index] = null;
16368
+ this.contextValueStack[index] = null;
16366
16369
  {
16367
- this.contextProviderStack[index2] = null;
16370
+ this.contextProviderStack[index] = null;
16368
16371
  }
16369
16372
  this.contextIndex--;
16370
16373
  context[this.threadID] = previousValue;
16371
16374
  };
16372
16375
  _proto.clearProviders = function clearProviders() {
16373
- for (var index2 = this.contextIndex; index2 >= 0; index2--) {
16374
- var context = this.contextStack[index2];
16375
- var previousValue = this.contextValueStack[index2];
16376
+ for (var index = this.contextIndex; index >= 0; index--) {
16377
+ var context = this.contextStack[index];
16378
+ var previousValue = this.contextValueStack[index];
16376
16379
  context[this.threadID] = previousValue;
16377
16380
  }
16378
16381
  };
@@ -16991,15 +16994,15 @@ const escapeTextForHtml = (inputString) => inputString.replace(/[&<>"']/gm, (str
16991
16994
  return "&#x27;";
16992
16995
  }
16993
16996
  });
16994
- const LogViewerRow = memo(({ index: index2, style, data: data2, ansiUp }) => {
16997
+ const LogViewerRow = memo(({ index, style, data: data2, ansiUp }) => {
16995
16998
  const { parsedData, searchedWordIndexes, rowInFocus } = data2;
16996
16999
  const context = useContext(LogViewerContext);
16997
- const getData = (index3) => parsedData ? parsedData[index3] : null;
16998
- const getRowIndex = (index3) => index3 + LOGGER_LINE_NUMBER_INDEX_DELTA;
17000
+ const getData = (index2) => parsedData ? parsedData[index2] : null;
17001
+ const getRowIndex = (index2) => index2 + LOGGER_LINE_NUMBER_INDEX_DELTA;
16999
17002
  const handleHighlight = (matchCounter) => {
17000
- const searchedWordResult = searchedWordIndexes.filter((searchedWord) => searchedWord.rowIndex === index2);
17003
+ const searchedWordResult = searchedWordIndexes.filter((searchedWord) => searchedWord.rowIndex === index);
17001
17004
  if (searchedWordResult.length !== 0) {
17002
- if (rowInFocus.rowIndex === index2 && rowInFocus.matchIndex === matchCounter) {
17005
+ if (rowInFocus.rowIndex === index && rowInFocus.matchIndex === matchCounter) {
17003
17006
  return styles$1.modifiers.current;
17004
17007
  }
17005
17008
  return styles$1.modifiers.match;
@@ -17007,7 +17010,7 @@ const LogViewerRow = memo(({ index: index2, style, data: data2, ansiUp }) => {
17007
17010
  return "";
17008
17011
  };
17009
17012
  const getFormattedData = () => {
17010
- const rowText = getData(index2);
17013
+ const rowText = getData(index);
17011
17014
  let matchCounter = 0;
17012
17015
  if (context.searchedInput) {
17013
17016
  const splitAnsiString = splitAnsi(rowText);
@@ -17036,7 +17039,7 @@ const LogViewerRow = memo(({ index: index2, style, data: data2, ansiUp }) => {
17036
17039
  return React__default.createElement(
17037
17040
  "div",
17038
17041
  { style, className: css(styles$1.logViewerListItem) },
17039
- React__default.createElement("span", { className: css(styles$1.logViewerIndex) }, getRowIndex(index2)),
17042
+ React__default.createElement("span", { className: css(styles$1.logViewerIndex) }, getRowIndex(index)),
17040
17043
  React__default.createElement("span", { className: css(styles$1.logViewerText), style: { width: "fit-content" }, dangerouslySetInnerHTML: { __html: ansiUp.ansi_to_html(getFormattedData()) } })
17041
17044
  );
17042
17045
  });
@@ -17126,7 +17129,7 @@ function requestTimeout(callback, delay) {
17126
17129
  return timeoutID;
17127
17130
  }
17128
17131
  const IS_SCROLLING_DEBOUNCE_INTERVAL = 150;
17129
- const defaultItemKey = (index2, _data) => index2;
17132
+ const defaultItemKey = (index, _data) => index;
17130
17133
  let devWarningsTagName = null;
17131
17134
  if (process.env.NODE_ENV !== "production") {
17132
17135
  if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
@@ -17163,16 +17166,16 @@ function createListComponent({ getItemOffset, getEstimatedTotalSize: getEstimate
17163
17166
  scrollOffsetToBottom,
17164
17167
  scrollUpdateWasRequested
17165
17168
  }));
17166
- this._getItemStyle = (index2) => {
17169
+ this._getItemStyle = (index) => {
17167
17170
  const { itemSize } = this.props;
17168
17171
  const itemStyleCache = this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize);
17169
17172
  let style;
17170
- if (itemStyleCache.hasOwnProperty(index2)) {
17171
- style = itemStyleCache[index2];
17173
+ if (itemStyleCache.hasOwnProperty(index)) {
17174
+ style = itemStyleCache[index];
17172
17175
  } else {
17173
- const offset = getItemOffset(this.props, index2, this._instanceProps);
17174
- const size = getItemSize(this.props, index2, this._instanceProps);
17175
- itemStyleCache[index2] = style = {
17176
+ const offset = getItemOffset(this.props, index, this._instanceProps);
17177
+ const size = getItemSize(this.props, index, this._instanceProps);
17178
+ itemStyleCache[index] = style = {
17176
17179
  position: "absolute",
17177
17180
  top: offset,
17178
17181
  height: size
@@ -17238,11 +17241,11 @@ function createListComponent({ getItemOffset, getEstimatedTotalSize: getEstimate
17238
17241
  };
17239
17242
  }, this._resetIsScrollingDebounced);
17240
17243
  }
17241
- scrollToItem(index2, align = "auto") {
17244
+ scrollToItem(index, align = "auto") {
17242
17245
  const { itemCount } = this.props;
17243
17246
  const { scrollOffset } = this.state;
17244
- index2 = Math.max(0, Math.min(index2, itemCount - 1));
17245
- this.scrollTo(getOffsetForIndexAndAlignment(this.props, index2, align, scrollOffset, this._instanceProps));
17247
+ index = Math.max(0, Math.min(index, itemCount - 1));
17248
+ this.scrollTo(getOffsetForIndexAndAlignment(this.props, index, align, scrollOffset, this._instanceProps));
17246
17249
  }
17247
17250
  scrollToBottom() {
17248
17251
  const outerRef = this._outerRef;
@@ -17301,13 +17304,13 @@ function createListComponent({ getItemOffset, getEstimatedTotalSize: getEstimate
17301
17304
  const [startIndex, stopIndex] = this._getRangeToRender();
17302
17305
  const items = [];
17303
17306
  if (itemCount > 0) {
17304
- for (let index2 = startIndex; index2 <= stopIndex; index2++) {
17307
+ for (let index = startIndex; index <= stopIndex; index++) {
17305
17308
  items.push(createElement(children, {
17306
17309
  data: itemData,
17307
- key: itemKey(index2, itemData),
17308
- index: index2,
17310
+ key: itemKey(index, itemData),
17311
+ index,
17309
17312
  isScrolling: useIsScrolling ? isScrolling : void 0,
17310
- style: this._getItemStyle(index2),
17313
+ style: this._getItemStyle(index),
17311
17314
  ansiUp
17312
17315
  }));
17313
17316
  }
@@ -17380,16 +17383,16 @@ const validateSharedProps = ({ children, innerTagName, outerTagName }, { instanc
17380
17383
  }
17381
17384
  };
17382
17385
  const DEFAULT_ESTIMATED_ITEM_SIZE = 50;
17383
- const getItemMetadata = (props, index2, instanceProps) => {
17386
+ const getItemMetadata = (props, index, instanceProps) => {
17384
17387
  const { itemSize } = props;
17385
17388
  const { itemMetadataMap, lastMeasuredIndex } = instanceProps;
17386
- if (index2 > lastMeasuredIndex) {
17389
+ if (index > lastMeasuredIndex) {
17387
17390
  let offset = 0;
17388
17391
  if (lastMeasuredIndex >= 0) {
17389
17392
  const itemMetadata = itemMetadataMap[lastMeasuredIndex];
17390
17393
  offset = itemMetadata.offset + itemMetadata.size;
17391
17394
  }
17392
- for (let i = lastMeasuredIndex + 1; i <= index2; i++) {
17395
+ for (let i = lastMeasuredIndex + 1; i <= index; i++) {
17393
17396
  const size = typeof itemSize === "number" ? itemSize : itemSize(i);
17394
17397
  itemMetadataMap[i] = {
17395
17398
  offset,
@@ -17397,9 +17400,9 @@ const getItemMetadata = (props, index2, instanceProps) => {
17397
17400
  };
17398
17401
  offset += size;
17399
17402
  }
17400
- instanceProps.lastMeasuredIndex = index2;
17403
+ instanceProps.lastMeasuredIndex = index;
17401
17404
  }
17402
- return itemMetadataMap[index2];
17405
+ return itemMetadataMap[index];
17403
17406
  };
17404
17407
  const findNearestItem = (props, instanceProps, offset) => {
17405
17408
  const { itemMetadataMap, lastMeasuredIndex } = instanceProps;
@@ -17428,14 +17431,14 @@ const findNearestItemBinarySearch = (props, instanceProps, high, low, offset) =>
17428
17431
  return 0;
17429
17432
  }
17430
17433
  };
17431
- const findNearestItemExponentialSearch = (props, instanceProps, index2, offset) => {
17434
+ const findNearestItemExponentialSearch = (props, instanceProps, index, offset) => {
17432
17435
  const { itemCount } = props;
17433
17436
  let interval = 1;
17434
- while (index2 < itemCount && getItemMetadata(props, index2, instanceProps).offset < offset) {
17435
- index2 += interval;
17437
+ while (index < itemCount && getItemMetadata(props, index, instanceProps).offset < offset) {
17438
+ index += interval;
17436
17439
  interval *= 2;
17437
17440
  }
17438
- return findNearestItemBinarySearch(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset);
17441
+ return findNearestItemBinarySearch(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);
17439
17442
  };
17440
17443
  const getEstimatedTotalSize = ({ itemCount }, { itemMetadataMap, estimatedItemSize, lastMeasuredIndex }) => {
17441
17444
  let totalSizeOfMeasuredItems = 0;
@@ -17451,13 +17454,13 @@ const getEstimatedTotalSize = ({ itemCount }, { itemMetadataMap, estimatedItemSi
17451
17454
  return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
17452
17455
  };
17453
17456
  const VariableSizeList = createListComponent({
17454
- getItemOffset: (props, index2, instanceProps) => getItemMetadata(props, index2, instanceProps).offset,
17455
- getItemSize: (props, index2, instanceProps) => instanceProps.itemMetadataMap[index2].size,
17457
+ getItemOffset: (props, index, instanceProps) => getItemMetadata(props, index, instanceProps).offset,
17458
+ getItemSize: (props, index, instanceProps) => instanceProps.itemMetadataMap[index].size,
17456
17459
  getEstimatedTotalSize,
17457
- getOffsetForIndexAndAlignment: (props, index2, align, scrollOffset, instanceProps) => {
17460
+ getOffsetForIndexAndAlignment: (props, index, align, scrollOffset, instanceProps) => {
17458
17461
  const { height } = props;
17459
17462
  const size = height;
17460
- const itemMetadata = getItemMetadata(props, index2, instanceProps);
17463
+ const itemMetadata = getItemMetadata(props, index, instanceProps);
17461
17464
  const estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
17462
17465
  const maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));
17463
17466
  const minOffset = Math.max(0, itemMetadata.offset - size + itemMetadata.size);
@@ -17507,8 +17510,8 @@ const VariableSizeList = createListComponent({
17507
17510
  estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE,
17508
17511
  lastMeasuredIndex: -1
17509
17512
  };
17510
- instance.resetAfterIndex = (index2, shouldForceUpdate = true) => {
17511
- instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
17513
+ instance.resetAfterIndex = (index, shouldForceUpdate = true) => {
17514
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1);
17512
17515
  instance._getItemStyleCache(-1);
17513
17516
  if (shouldForceUpdate) {
17514
17517
  instance.forceUpdate();
@@ -18150,7 +18153,7 @@ const PodLog = ({
18150
18153
  const apiUrl = dataProvider2()["getApiUrl"]();
18151
18154
  const {
18152
18155
  t
18153
- } = useTranslation();
18156
+ } = useD2Translation();
18154
18157
  useEffect(() => {
18155
18158
  if (!paused && logs.length > 0) {
18156
18159
  setCurrentItemCount(logs.length);
@@ -18302,7 +18305,7 @@ const NetworkPolicyRulesTable = ({ ingressOrEgress }) => {
18302
18305
  };
18303
18306
  const IngressRuleTable = ({ peers }) => {
18304
18307
  const kit = useUIKit();
18305
- const { t } = useTranslation();
18308
+ const { t } = useD2Translation();
18306
18309
  const rows = useMemo(() => {
18307
18310
  const rows2 = (peers == null ? void 0 : peers.map((p) => {
18308
18311
  return Object.keys(p).map((key) => {
@@ -19330,7 +19333,7 @@ export {
19330
19333
  AgeColumnRenderer as A,
19331
19334
  Breadcrumb as B,
19332
19335
  CommonSorter as C,
19333
- DurationColumnRenderer as D,
19336
+ D2Locales as D,
19334
19337
  PodContainersTable as E,
19335
19338
  WorkloadDropdown as F,
19336
19339
  CreateButton as G,
@@ -19427,8 +19430,8 @@ export {
19427
19430
  NodeNameColumnRenderer as e,
19428
19431
  RestartCountColumnRenderer as f,
19429
19432
  CompletionsCountColumnRenderer as g,
19430
- ServiceTypeColumnRenderer as h,
19431
- index as i,
19433
+ DurationColumnRenderer as h,
19434
+ ServiceTypeColumnRenderer as i,
19432
19435
  jsxRuntimeExports as j,
19433
19436
  IngressDefaultBackendColumnRenderer as k,
19434
19437
  ColumnKeys as l,