@ant-design/pro-components 2.3.50 → 2.3.51

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.
@@ -1612,6 +1612,491 @@ function pad2(c) {
1612
1612
 
1613
1613
  /***/ }),
1614
1614
 
1615
+ /***/ 1880:
1616
+ /***/ (function(__unused_webpack_module, exports) {
1617
+
1618
+ var __webpack_unused_export__;
1619
+ function _typeof(obj) {
1620
+ "@babel/helpers - typeof";
1621
+
1622
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1623
+ return typeof obj;
1624
+ } : function (obj) {
1625
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1626
+ }, _typeof(obj);
1627
+ }
1628
+ __webpack_unused_export__ = ({
1629
+ value: true
1630
+ });
1631
+ exports.Bo = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = void 0;
1632
+ /**
1633
+ * Tokenize input string.
1634
+ */
1635
+
1636
+ function lexer(str) {
1637
+ var tokens = [];
1638
+ var i = 0;
1639
+ while (i < str.length) {
1640
+ var char = str[i];
1641
+ if (char === '*' || char === '+' || char === '?') {
1642
+ tokens.push({
1643
+ type: 'MODIFIER',
1644
+ index: i,
1645
+ value: str[i++]
1646
+ });
1647
+ continue;
1648
+ }
1649
+ if (char === '\\') {
1650
+ tokens.push({
1651
+ type: 'ESCAPED_CHAR',
1652
+ index: i++,
1653
+ value: str[i++]
1654
+ });
1655
+ continue;
1656
+ }
1657
+ if (char === '{') {
1658
+ tokens.push({
1659
+ type: 'OPEN',
1660
+ index: i,
1661
+ value: str[i++]
1662
+ });
1663
+ continue;
1664
+ }
1665
+ if (char === '}') {
1666
+ tokens.push({
1667
+ type: 'CLOSE',
1668
+ index: i,
1669
+ value: str[i++]
1670
+ });
1671
+ continue;
1672
+ }
1673
+ if (char === ':') {
1674
+ var name = '';
1675
+ var j = i + 1;
1676
+ while (j < str.length) {
1677
+ var code = str.charCodeAt(j);
1678
+ if (
1679
+ // `0-9`
1680
+ code >= 48 && code <= 57 ||
1681
+ // `A-Z`
1682
+ code >= 65 && code <= 90 ||
1683
+ // `a-z`
1684
+ code >= 97 && code <= 122 ||
1685
+ // `_`
1686
+ code === 95) {
1687
+ name += str[j++];
1688
+ continue;
1689
+ }
1690
+ break;
1691
+ }
1692
+ if (!name) throw new TypeError('Missing parameter name at ' + i);
1693
+ tokens.push({
1694
+ type: 'NAME',
1695
+ index: i,
1696
+ value: name
1697
+ });
1698
+ i = j;
1699
+ continue;
1700
+ }
1701
+ if (char === '(') {
1702
+ var count = 1;
1703
+ var pattern = '';
1704
+ var j = i + 1;
1705
+ if (str[j] === '?') {
1706
+ throw new TypeError('Pattern cannot start with "?" at ' + j);
1707
+ }
1708
+ while (j < str.length) {
1709
+ if (str[j] === '\\') {
1710
+ pattern += str[j++] + str[j++];
1711
+ continue;
1712
+ }
1713
+ if (str[j] === ')') {
1714
+ count--;
1715
+ if (count === 0) {
1716
+ j++;
1717
+ break;
1718
+ }
1719
+ } else if (str[j] === '(') {
1720
+ count++;
1721
+ if (str[j + 1] !== '?') {
1722
+ throw new TypeError('Capturing groups are not allowed at ' + j);
1723
+ }
1724
+ }
1725
+ pattern += str[j++];
1726
+ }
1727
+ if (count) throw new TypeError('Unbalanced pattern at ' + i);
1728
+ if (!pattern) throw new TypeError('Missing pattern at ' + i);
1729
+ tokens.push({
1730
+ type: 'PATTERN',
1731
+ index: i,
1732
+ value: pattern
1733
+ });
1734
+ i = j;
1735
+ continue;
1736
+ }
1737
+ tokens.push({
1738
+ type: 'CHAR',
1739
+ index: i,
1740
+ value: str[i++]
1741
+ });
1742
+ }
1743
+ tokens.push({
1744
+ type: 'END',
1745
+ index: i,
1746
+ value: ''
1747
+ });
1748
+ return tokens;
1749
+ }
1750
+ /**
1751
+ * Parse a string for the raw tokens.
1752
+ */
1753
+
1754
+ function parse(str, options) {
1755
+ if (options === void 0) {
1756
+ // eslint-disable-next-line no-param-reassign
1757
+ options = {};
1758
+ }
1759
+ var tokens = lexer(str);
1760
+ var _a = options.prefixes,
1761
+ prefixes = _a === void 0 ? './' : _a;
1762
+ var defaultPattern = '[^' + escapeString(options.delimiter || '/#?') + ']+?';
1763
+ var result = [];
1764
+ var key = 0;
1765
+ var i = 0;
1766
+ var path = '';
1767
+ var tryConsume = function tryConsume(type) {
1768
+ if (i < tokens.length && tokens[i].type === type) return tokens[i++].value;
1769
+ };
1770
+ var mustConsume = function mustConsume(type) {
1771
+ var value = tryConsume(type);
1772
+ if (value !== undefined) return value;
1773
+ var _a = tokens[i],
1774
+ nextType = _a.type,
1775
+ index = _a.index;
1776
+ throw new TypeError('Unexpected ' + nextType + ' at ' + index + ', expected ' + type);
1777
+ };
1778
+ var consumeText = function consumeText() {
1779
+ var result = '';
1780
+ var value; // tslint:disable-next-line
1781
+
1782
+ while (value = tryConsume('CHAR') || tryConsume('ESCAPED_CHAR')) {
1783
+ result += value;
1784
+ }
1785
+ return result;
1786
+ };
1787
+ while (i < tokens.length) {
1788
+ var char = tryConsume('CHAR');
1789
+ var name = tryConsume('NAME');
1790
+ var pattern = tryConsume('PATTERN');
1791
+ if (name || pattern) {
1792
+ var prefix = char || '';
1793
+ if (prefixes.indexOf(prefix) === -1) {
1794
+ path += prefix;
1795
+ prefix = '';
1796
+ }
1797
+ if (path) {
1798
+ result.push(path);
1799
+ path = '';
1800
+ }
1801
+ result.push({
1802
+ name: name || key++,
1803
+ prefix: prefix,
1804
+ suffix: '',
1805
+ pattern: pattern || defaultPattern,
1806
+ modifier: tryConsume('MODIFIER') || ''
1807
+ });
1808
+ continue;
1809
+ }
1810
+ var value = char || tryConsume('ESCAPED_CHAR');
1811
+ if (value) {
1812
+ path += value;
1813
+ continue;
1814
+ }
1815
+ if (path) {
1816
+ result.push(path);
1817
+ path = '';
1818
+ }
1819
+ var open = tryConsume('OPEN');
1820
+ if (open) {
1821
+ var prefix = consumeText();
1822
+ var name_1 = tryConsume('NAME') || '';
1823
+ var pattern_1 = tryConsume('PATTERN') || '';
1824
+ var suffix = consumeText();
1825
+ mustConsume('CLOSE');
1826
+ result.push({
1827
+ name: name_1 || (pattern_1 ? key++ : ''),
1828
+ pattern: name_1 && !pattern_1 ? defaultPattern : pattern_1,
1829
+ prefix: prefix,
1830
+ suffix: suffix,
1831
+ modifier: tryConsume('MODIFIER') || ''
1832
+ });
1833
+ continue;
1834
+ }
1835
+ mustConsume('END');
1836
+ }
1837
+ return result;
1838
+ }
1839
+ __webpack_unused_export__ = parse;
1840
+ /**
1841
+ * Compile a string to a template function for the path.
1842
+ */
1843
+
1844
+ function compile(str, options) {
1845
+ return tokensToFunction(parse(str, options), options);
1846
+ }
1847
+ __webpack_unused_export__ = compile;
1848
+ /**
1849
+ * Expose a method for transforming tokens into the path function.
1850
+ */
1851
+
1852
+ function tokensToFunction(tokens, options) {
1853
+ if (options === void 0) {
1854
+ // eslint-disable-next-line no-param-reassign
1855
+ options = {};
1856
+ }
1857
+ var reFlags = flags(options);
1858
+ var _a = options.encode,
1859
+ encode = _a === void 0 ? function (x) {
1860
+ return x;
1861
+ } : _a,
1862
+ _b = options.validate,
1863
+ validate = _b === void 0 ? true : _b; // Compile all the tokens into regexps.
1864
+
1865
+ var matches = tokens.map(function (token) {
1866
+ if (_typeof(token) === 'object') {
1867
+ return new RegExp('^(?:' + token.pattern + ')$', reFlags);
1868
+ }
1869
+ });
1870
+ return function (data) {
1871
+ var path = '';
1872
+ for (var i = 0; i < tokens.length; i++) {
1873
+ var token = tokens[i];
1874
+ if (typeof token === 'string') {
1875
+ path += token;
1876
+ continue;
1877
+ }
1878
+ var value = data ? data[token.name] : undefined;
1879
+ var optional = token.modifier === '?' || token.modifier === '*';
1880
+ var repeat = token.modifier === '*' || token.modifier === '+';
1881
+ if (Array.isArray(value)) {
1882
+ if (!repeat) {
1883
+ throw new TypeError('Expected "' + token.name + '" to not repeat, but got an array');
1884
+ }
1885
+ if (value.length === 0) {
1886
+ if (optional) continue;
1887
+ throw new TypeError('Expected "' + token.name + '" to not be empty');
1888
+ }
1889
+ for (var j = 0; j < value.length; j++) {
1890
+ var segment = encode(value[j], token);
1891
+ if (validate && !matches[i].test(segment)) {
1892
+ throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but got "' + segment + '"');
1893
+ }
1894
+ path += token.prefix + segment + token.suffix;
1895
+ }
1896
+ continue;
1897
+ }
1898
+ if (typeof value === 'string' || typeof value === 'number') {
1899
+ var segment = encode(String(value), token);
1900
+ if (validate && !matches[i].test(segment)) {
1901
+ throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but got "' + segment + '"');
1902
+ }
1903
+ path += token.prefix + segment + token.suffix;
1904
+ continue;
1905
+ }
1906
+ if (optional) continue;
1907
+ var typeOfMessage = repeat ? 'an array' : 'a string';
1908
+ throw new TypeError('Expected "' + token.name + '" to be ' + typeOfMessage);
1909
+ }
1910
+ return path;
1911
+ };
1912
+ }
1913
+ __webpack_unused_export__ = tokensToFunction;
1914
+ /**
1915
+ * Create path match function from `path-to-regexp` spec.
1916
+ */
1917
+
1918
+ function match(str, options) {
1919
+ var keys = [];
1920
+ var re = pathToRegexp(str, keys, options);
1921
+ return regexpToFunction(re, keys, options);
1922
+ }
1923
+ __webpack_unused_export__ = match;
1924
+ /**
1925
+ * Create a path match function from `path-to-regexp` output.
1926
+ */
1927
+
1928
+ function regexpToFunction(re, keys, options) {
1929
+ if (options === void 0) {
1930
+ // eslint-disable-next-line no-param-reassign
1931
+ options = {};
1932
+ }
1933
+ var _a = options.decode,
1934
+ decode = _a === void 0 ? function (x) {
1935
+ return x;
1936
+ } : _a;
1937
+ return function (pathname) {
1938
+ var m = re.exec(pathname);
1939
+ if (!m) return false;
1940
+ var path = m[0],
1941
+ index = m.index;
1942
+ var params = Object.create(null);
1943
+ var _loop_1 = function _loop_1(i) {
1944
+ // tslint:disable-next-line
1945
+ if (m[i] === undefined) return 'continue';
1946
+ var key = keys[i - 1];
1947
+ if (key.modifier === '*' || key.modifier === '+') {
1948
+ params[key.name] = m[i].split(key.prefix + key.suffix).map(function (value) {
1949
+ return decode(value, key);
1950
+ });
1951
+ } else {
1952
+ params[key.name] = decode(m[i], key);
1953
+ }
1954
+ };
1955
+ for (var i = 1; i < m.length; i++) {
1956
+ _loop_1(i);
1957
+ }
1958
+ return {
1959
+ path: path,
1960
+ index: index,
1961
+ params: params
1962
+ };
1963
+ };
1964
+ }
1965
+ __webpack_unused_export__ = regexpToFunction;
1966
+ /**
1967
+ * Escape a regular expression string.
1968
+ */
1969
+
1970
+ function escapeString(str) {
1971
+ return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
1972
+ }
1973
+ /**
1974
+ * Get the flags for a regexp from the options.
1975
+ */
1976
+
1977
+ function flags(options) {
1978
+ return options && options.sensitive ? '' : 'i';
1979
+ }
1980
+ /**
1981
+ * Pull out keys from a regexp.
1982
+ */
1983
+
1984
+ function regexpToRegexp(path, keys) {
1985
+ if (!keys) return path; // Use a negative lookahead to match only capturing groups.
1986
+
1987
+ var groups = path.source.match(/\((?!\?)/g);
1988
+ if (groups) {
1989
+ for (var i = 0; i < groups.length; i++) {
1990
+ keys.push({
1991
+ name: i,
1992
+ prefix: '',
1993
+ suffix: '',
1994
+ modifier: '',
1995
+ pattern: ''
1996
+ });
1997
+ }
1998
+ }
1999
+ return path;
2000
+ }
2001
+ /**
2002
+ * Transform an array into a regexp.
2003
+ */
2004
+
2005
+ function arrayToRegexp(paths, keys, options) {
2006
+ var parts = paths.map(function (path) {
2007
+ return pathToRegexp(path, keys, options).source;
2008
+ });
2009
+ return new RegExp('(?:' + parts.join('|') + ')', flags(options));
2010
+ }
2011
+ /**
2012
+ * Create a path regexp from string input.
2013
+ */
2014
+
2015
+ function stringToRegexp(path, keys, options) {
2016
+ return tokensToRegexp(parse(path, options), keys, options);
2017
+ }
2018
+ /**
2019
+ * Expose a function for taking tokens and returning a RegExp.
2020
+ */
2021
+
2022
+ function tokensToRegexp(tokens, keys, options) {
2023
+ if (options === void 0) {
2024
+ // eslint-disable-next-line no-param-reassign
2025
+ options = {};
2026
+ }
2027
+ var _a = options.strict,
2028
+ strict = _a === void 0 ? false : _a,
2029
+ _b = options.start,
2030
+ start = _b === void 0 ? true : _b,
2031
+ _c = options.end,
2032
+ end = _c === void 0 ? true : _c,
2033
+ _d = options.encode,
2034
+ encode = _d === void 0 ? function (x) {
2035
+ return x;
2036
+ } : _d;
2037
+ var endsWith = '[' + escapeString(options.endsWith || '') + ']|$';
2038
+ var delimiter = '[' + escapeString(options.delimiter || '/#?') + ']';
2039
+ var route = start ? '^' : ''; // Iterate over the tokens and create our regexp string.
2040
+
2041
+ for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
2042
+ var token = tokens_1[_i];
2043
+ if (typeof token === 'string') {
2044
+ route += escapeString(encode(token));
2045
+ } else {
2046
+ var prefix = escapeString(encode(token.prefix));
2047
+ var suffix = escapeString(encode(token.suffix));
2048
+ if (token.pattern) {
2049
+ if (keys) keys.push(token);
2050
+ if (prefix || suffix) {
2051
+ if (token.modifier === '+' || token.modifier === '*') {
2052
+ var mod = token.modifier === '*' ? '?' : '';
2053
+ route += '(?:' + prefix + '((?:' + token.pattern + ')(?:' + suffix + prefix + '(?:' + token.pattern + '))*)' + suffix + ')' + mod;
2054
+ } else {
2055
+ route += '(?:' + prefix + '(' + token.pattern + ')' + suffix + ')' + token.modifier;
2056
+ }
2057
+ } else {
2058
+ route += '(' + token.pattern + ')' + token.modifier;
2059
+ }
2060
+ } else {
2061
+ route += '(?:' + prefix + suffix + ')' + token.modifier;
2062
+ }
2063
+ }
2064
+ }
2065
+ if (end) {
2066
+ if (!strict) route += delimiter + '?';
2067
+ route += !options.endsWith ? '$' : '(?=' + endsWith + ')';
2068
+ } else {
2069
+ var endToken = tokens[tokens.length - 1];
2070
+ var isEndDelimited = typeof endToken === 'string' ? delimiter.indexOf(endToken[endToken.length - 1]) > -1 :
2071
+ // tslint:disable-next-line
2072
+ endToken === undefined;
2073
+ if (!strict) {
2074
+ route += '(?:' + delimiter + '(?=' + endsWith + '))?';
2075
+ }
2076
+ if (!isEndDelimited) {
2077
+ route += '(?=' + delimiter + '|' + endsWith + ')';
2078
+ }
2079
+ }
2080
+ return new RegExp(route, flags(options));
2081
+ }
2082
+ __webpack_unused_export__ = tokensToRegexp;
2083
+ /**
2084
+ * Normalize the given path string, returning a regular expression.
2085
+ *
2086
+ * An empty array can be passed in for the keys, which will hold the
2087
+ * placeholder key descriptions. For example, using `/user/:id`, `keys` will
2088
+ * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
2089
+ */
2090
+
2091
+ function pathToRegexp(path, keys, options) {
2092
+ if (path instanceof RegExp) return regexpToRegexp(path, keys);
2093
+ if (Array.isArray(path)) return arrayToRegexp(path, keys, options);
2094
+ return stringToRegexp(path, keys, options);
2095
+ }
2096
+ exports.Bo = pathToRegexp;
2097
+
2098
+ /***/ }),
2099
+
1615
2100
  /***/ 8266:
1616
2101
  /***/ (function(module, exports) {
1617
2102
 
@@ -2282,213 +2767,53 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
2282
2767
 
2283
2768
  /***/ }),
2284
2769
 
2285
- /***/ 3948:
2286
- /***/ (function(module, __unused_webpack___webpack_exports__, __webpack_require__) {
2770
+ /***/ 4391:
2771
+ /***/ (function(module) {
2287
2772
 
2288
2773
  "use strict";
2774
+ /**
2775
+ * Copyright (c) 2013-present, Facebook, Inc.
2776
+ *
2777
+ * This source code is licensed under the MIT license found in the
2778
+ * LICENSE file in the root directory of this source tree.
2779
+ */
2289
2780
 
2290
- // EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js + 1 modules
2291
- var unsupportedIterableToArray = __webpack_require__(5943);
2292
- ;// CONCATENATED MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
2293
2781
 
2294
- function _createForOfIteratorHelper(o, allowArrayLike) {
2295
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
2296
- if (!it) {
2297
- if (Array.isArray(o) || (it = (0,unsupportedIterableToArray/* default */.Z)(o)) || allowArrayLike && o && typeof o.length === "number") {
2298
- if (it) o = it;
2299
- var i = 0;
2300
- var F = function F() {};
2301
- return {
2302
- s: F,
2303
- n: function n() {
2304
- if (i >= o.length) return {
2305
- done: true
2306
- };
2307
- return {
2308
- done: false,
2309
- value: o[i++]
2310
- };
2311
- },
2312
- e: function e(_e) {
2313
- throw _e;
2314
- },
2315
- f: F
2316
- };
2782
+
2783
+ /**
2784
+ * Use invariant() to assert state which your program assumes to be true.
2785
+ *
2786
+ * Provide sprintf-style format (only %s is supported) and arguments
2787
+ * to provide information about what broke and what you were
2788
+ * expecting.
2789
+ *
2790
+ * The invariant message will be stripped in production, but the invariant
2791
+ * will remain to ensure logic does not differ in production.
2792
+ */
2793
+ var invariant = function invariant(condition, format, a, b, c, d, e, f) {
2794
+ if (false) {}
2795
+ if (!condition) {
2796
+ var error;
2797
+ if (format === undefined) {
2798
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
2799
+ } else {
2800
+ var args = [a, b, c, d, e, f];
2801
+ var argIndex = 0;
2802
+ error = new Error(format.replace(/%s/g, function () {
2803
+ return args[argIndex++];
2804
+ }));
2805
+ error.name = 'Invariant Violation';
2317
2806
  }
2318
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2807
+ error.framesToPop = 1; // we don't care about invariant's own frame
2808
+ throw error;
2319
2809
  }
2320
- var normalCompletion = true,
2321
- didErr = false,
2322
- err;
2323
- return {
2324
- s: function s() {
2325
- it = it.call(o);
2326
- },
2327
- n: function n() {
2328
- var step = it.next();
2329
- normalCompletion = step.done;
2330
- return step;
2331
- },
2332
- e: function e(_e2) {
2333
- didErr = true;
2334
- err = _e2;
2335
- },
2336
- f: function f() {
2337
- try {
2338
- if (!normalCompletion && it["return"] != null) it["return"]();
2339
- } finally {
2340
- if (didErr) throw err;
2341
- }
2342
- }
2343
- };
2344
- }
2345
- ;// CONCATENATED MODULE: ./node_modules/fast-deep-equal/es6/react.js
2346
- /* module decorator */ module = __webpack_require__.hmd(module);
2810
+ };
2811
+ module.exports = invariant;
2347
2812
 
2813
+ /***/ }),
2348
2814
 
2349
- // do not edit .js files directly - edit src/index.jst
2350
-
2351
- var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
2352
- module.exports = function equal(a, b) {
2353
- if (a === b) return true;
2354
- if (a && b && typeof a == 'object' && typeof b == 'object') {
2355
- if (a.constructor !== b.constructor) return false;
2356
- var length, i, keys;
2357
- if (Array.isArray(a)) {
2358
- length = a.length;
2359
- if (length != b.length) return false;
2360
- for (i = length; i-- !== 0;) {
2361
- if (!equal(a[i], b[i])) return false;
2362
- }
2363
- return true;
2364
- }
2365
- if (a instanceof Map && b instanceof Map) {
2366
- if (a.size !== b.size) return false;
2367
- var _iterator = _createForOfIteratorHelper(a.entries()),
2368
- _step;
2369
- try {
2370
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2371
- i = _step.value;
2372
- if (!b.has(i[0])) return false;
2373
- }
2374
- } catch (err) {
2375
- _iterator.e(err);
2376
- } finally {
2377
- _iterator.f();
2378
- }
2379
- var _iterator2 = _createForOfIteratorHelper(a.entries()),
2380
- _step2;
2381
- try {
2382
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2383
- i = _step2.value;
2384
- if (!equal(i[1], b.get(i[0]))) return false;
2385
- }
2386
- } catch (err) {
2387
- _iterator2.e(err);
2388
- } finally {
2389
- _iterator2.f();
2390
- }
2391
- return true;
2392
- }
2393
- if (a instanceof Set && b instanceof Set) {
2394
- if (a.size !== b.size) return false;
2395
- var _iterator3 = _createForOfIteratorHelper(a.entries()),
2396
- _step3;
2397
- try {
2398
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2399
- i = _step3.value;
2400
- if (!b.has(i[0])) return false;
2401
- }
2402
- } catch (err) {
2403
- _iterator3.e(err);
2404
- } finally {
2405
- _iterator3.f();
2406
- }
2407
- return true;
2408
- }
2409
- if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
2410
- length = a.length;
2411
- if (length != b.length) return false;
2412
- for (i = length; i-- !== 0;) {
2413
- if (a[i] !== b[i]) return false;
2414
- }
2415
- return true;
2416
- }
2417
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
2418
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
2419
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
2420
- keys = Object.keys(a);
2421
- length = keys.length;
2422
- if (length !== Object.keys(b).length) return false;
2423
- for (i = length; i-- !== 0;) {
2424
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
2425
- }
2426
- for (i = length; i-- !== 0;) {
2427
- var key = keys[i];
2428
- if (key === '_owner' && a.$$typeof) {
2429
- // React-specific: avoid traversing React elements' _owner.
2430
- // _owner contains circular references
2431
- // and is not needed when comparing the actual elements (and not their owners)
2432
- continue;
2433
- }
2434
- if (!equal(a[key], b[key])) return false;
2435
- }
2436
- return true;
2437
- }
2438
-
2439
- // true if both NaN, false otherwise
2440
- return a !== a && b !== b;
2441
- };
2442
-
2443
- /***/ }),
2444
-
2445
- /***/ 4391:
2446
- /***/ (function(module) {
2447
-
2448
- "use strict";
2449
- /**
2450
- * Copyright (c) 2013-present, Facebook, Inc.
2451
- *
2452
- * This source code is licensed under the MIT license found in the
2453
- * LICENSE file in the root directory of this source tree.
2454
- */
2455
-
2456
-
2457
-
2458
- /**
2459
- * Use invariant() to assert state which your program assumes to be true.
2460
- *
2461
- * Provide sprintf-style format (only %s is supported) and arguments
2462
- * to provide information about what broke and what you were
2463
- * expecting.
2464
- *
2465
- * The invariant message will be stripped in production, but the invariant
2466
- * will remain to ensure logic does not differ in production.
2467
- */
2468
- var invariant = function invariant(condition, format, a, b, c, d, e, f) {
2469
- if (false) {}
2470
- if (!condition) {
2471
- var error;
2472
- if (format === undefined) {
2473
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
2474
- } else {
2475
- var args = [a, b, c, d, e, f];
2476
- var argIndex = 0;
2477
- error = new Error(format.replace(/%s/g, function () {
2478
- return args[argIndex++];
2479
- }));
2480
- error.name = 'Invariant Violation';
2481
- }
2482
- error.framesToPop = 1; // we don't care about invariant's own frame
2483
- throw error;
2484
- }
2485
- };
2486
- module.exports = invariant;
2487
-
2488
- /***/ }),
2489
-
2490
- /***/ 1941:
2491
- /***/ (function(module, exports, __webpack_require__) {
2815
+ /***/ 1941:
2816
+ /***/ (function(module, exports, __webpack_require__) {
2492
2817
 
2493
2818
  /* module decorator */ module = __webpack_require__.nmd(module);
2494
2819
  /**
@@ -12757,37 +13082,6 @@ function _unsupportedIterableToArray(o, minLen) {
12757
13082
  }
12758
13083
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
12759
13084
 
12760
- /***/ }),
12761
-
12762
- /***/ 5943:
12763
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
12764
-
12765
- "use strict";
12766
-
12767
- // EXPORTS
12768
- __webpack_require__.d(__webpack_exports__, {
12769
- "Z": function() { return /* binding */ _unsupportedIterableToArray; }
12770
- });
12771
-
12772
- ;// CONCATENATED MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
12773
- function _arrayLikeToArray(arr, len) {
12774
- if (len == null || len > arr.length) len = arr.length;
12775
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
12776
- arr2[i] = arr[i];
12777
- }
12778
- return arr2;
12779
- }
12780
- ;// CONCATENATED MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
12781
-
12782
- function _unsupportedIterableToArray(o, minLen) {
12783
- if (!o) return;
12784
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
12785
- var n = Object.prototype.toString.call(o).slice(8, -1);
12786
- if (n === "Object" && o.constructor) n = o.constructor.name;
12787
- if (n === "Map" || n === "Set") return Array.from(o);
12788
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
12789
- }
12790
-
12791
13085
  /***/ })
12792
13086
 
12793
13087
  /******/ });
@@ -12856,21 +13150,6 @@ function _unsupportedIterableToArray(o, minLen) {
12856
13150
  /******/ })();
12857
13151
  /******/ }();
12858
13152
  /******/
12859
- /******/ /* webpack/runtime/harmony module decorator */
12860
- /******/ !function() {
12861
- /******/ __webpack_require__.hmd = function(module) {
12862
- /******/ module = Object.create(module);
12863
- /******/ if (!module.children) module.children = [];
12864
- /******/ Object.defineProperty(module, 'exports', {
12865
- /******/ enumerable: true,
12866
- /******/ set: function() {
12867
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
12868
- /******/ }
12869
- /******/ });
12870
- /******/ return module;
12871
- /******/ };
12872
- /******/ }();
12873
- /******/
12874
13153
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
12875
13154
  /******/ !function() {
12876
13155
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -13539,20 +13818,327 @@ var CheckCardGroup = function CheckCardGroup(props) {
13539
13818
  });
13540
13819
  };
13541
13820
  /* harmony default export */ var Group = (CheckCardGroup);
13542
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
13543
- function extends_extends() {
13544
- extends_extends = Object.assign ? Object.assign.bind() : function (target) {
13545
- for (var i = 1; i < arguments.length; i++) {
13546
- var source = arguments[i];
13547
- for (var key in source) {
13548
- if (Object.prototype.hasOwnProperty.call(source, key)) {
13549
- target[key] = source[key];
13821
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.browser.esm.js
13822
+ /* eslint-disable */
13823
+ // Inspired by https://github.com/garycourt/murmurhash-js
13824
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
13825
+ function murmur2(str) {
13826
+ // 'm' and 'r' are mixing constants generated offline.
13827
+ // They're not really 'magic', they just happen to work well.
13828
+ // const m = 0x5bd1e995;
13829
+ // const r = 24;
13830
+ // Initialize the hash
13831
+ var h = 0; // Mix 4 bytes at a time into the hash
13832
+
13833
+ var k,
13834
+ i = 0,
13835
+ len = str.length;
13836
+ for (; len >= 4; ++i, len -= 4) {
13837
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
13838
+ k = /* Math.imul(k, m): */
13839
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
13840
+ k ^= /* k >>> r: */
13841
+ k >>> 24;
13842
+ h = /* Math.imul(k, m): */
13843
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
13844
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
13845
+ } // Handle the last few bytes of the input array
13846
+
13847
+ switch (len) {
13848
+ case 3:
13849
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
13850
+ case 2:
13851
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
13852
+ case 1:
13853
+ h ^= str.charCodeAt(i) & 0xff;
13854
+ h = /* Math.imul(h, m): */
13855
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
13856
+ } // Do a few final mixes of the hash to ensure the last few
13857
+ // bytes are well-incorporated.
13858
+
13859
+ h ^= h >>> 13;
13860
+ h = /* Math.imul(h, m): */
13861
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
13862
+ return ((h ^ h >>> 15) >>> 0).toString(36);
13863
+ }
13864
+ /* harmony default export */ var hash_browser_esm = (murmur2);
13865
+ ;// CONCATENATED MODULE: ./node_modules/rc-util/es/hooks/useMemo.js
13866
+
13867
+ function useMemo_useMemo(getValue, condition, shouldUpdate) {
13868
+ var cacheRef = external_React_.useRef({});
13869
+ if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
13870
+ cacheRef.current.value = getValue();
13871
+ cacheRef.current.condition = condition;
13872
+ }
13873
+ return cacheRef.current.value;
13874
+ }
13875
+ ;// CONCATENATED MODULE: ./node_modules/rc-util/es/warning.js
13876
+ /* eslint-disable no-console */
13877
+ var warned = {};
13878
+ function warning_warning(valid, message) {
13879
+ // Support uglify
13880
+ if (false) {}
13881
+ }
13882
+ function note(valid, message) {
13883
+ // Support uglify
13884
+ if (false) {}
13885
+ }
13886
+ function resetWarned() {
13887
+ warned = {};
13888
+ }
13889
+ function call(method, valid, message) {
13890
+ if (!valid && !warned[message]) {
13891
+ method(false, message);
13892
+ warned[message] = true;
13893
+ }
13894
+ }
13895
+ function warningOnce(valid, message) {
13896
+ call(warning_warning, valid, message);
13897
+ }
13898
+ function noteOnce(valid, message) {
13899
+ call(note, valid, message);
13900
+ }
13901
+ /* harmony default export */ var es_warning = (warningOnce);
13902
+ /* eslint-enable */
13903
+ ;// CONCATENATED MODULE: ./node_modules/rc-util/es/isEqual.js
13904
+
13905
+
13906
+ /**
13907
+ * Deeply compares two object literals.
13908
+ * @param obj1 object 1
13909
+ * @param obj2 object 2
13910
+ * @param shallow shallow compare
13911
+ * @returns
13912
+ */
13913
+ function isEqual_isEqual(obj1, obj2) {
13914
+ var shallow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
13915
+ // https://github.com/mapbox/mapbox-gl-js/pull/5979/files#diff-fde7145050c47cc3a306856efd5f9c3016e86e859de9afbd02c879be5067e58f
13916
+ var refSet = new Set();
13917
+ function deepEqual(a, b) {
13918
+ var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
13919
+ var circular = refSet.has(a);
13920
+ es_warning(!circular, 'Warning: There may be circular references');
13921
+ if (circular) {
13922
+ return false;
13923
+ }
13924
+ if (a === b) {
13925
+ return true;
13926
+ }
13927
+ if (shallow && level > 1) {
13928
+ return false;
13929
+ }
13930
+ refSet.add(a);
13931
+ var newLevel = level + 1;
13932
+ if (Array.isArray(a)) {
13933
+ if (!Array.isArray(b) || a.length !== b.length) {
13934
+ return false;
13935
+ }
13936
+ for (var i = 0; i < a.length; i++) {
13937
+ if (!deepEqual(a[i], b[i], newLevel)) {
13938
+ return false;
13550
13939
  }
13551
13940
  }
13941
+ return true;
13552
13942
  }
13553
- return target;
13554
- };
13555
- return extends_extends.apply(this, arguments);
13943
+ if (a && b && typeof_typeof(a) === 'object' && typeof_typeof(b) === 'object') {
13944
+ var keys = Object.keys(a);
13945
+ if (keys.length !== Object.keys(b).length) {
13946
+ return false;
13947
+ }
13948
+ return keys.every(function (key) {
13949
+ return deepEqual(a[key], b[key], newLevel);
13950
+ });
13951
+ }
13952
+ // other
13953
+ return false;
13954
+ }
13955
+ return deepEqual(obj1, obj2);
13956
+ }
13957
+ /* harmony default export */ var es_isEqual = (isEqual_isEqual);
13958
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
13959
+ function _classCallCheck(instance, Constructor) {
13960
+ if (!(instance instanceof Constructor)) {
13961
+ throw new TypeError("Cannot call a class as a function");
13962
+ }
13963
+ }
13964
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
13965
+
13966
+ function _defineProperties(target, props) {
13967
+ for (var i = 0; i < props.length; i++) {
13968
+ var descriptor = props[i];
13969
+ descriptor.enumerable = descriptor.enumerable || false;
13970
+ descriptor.configurable = true;
13971
+ if ("value" in descriptor) descriptor.writable = true;
13972
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
13973
+ }
13974
+ }
13975
+ function _createClass(Constructor, protoProps, staticProps) {
13976
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
13977
+ if (staticProps) _defineProperties(Constructor, staticProps);
13978
+ Object.defineProperty(Constructor, "prototype", {
13979
+ writable: false
13980
+ });
13981
+ return Constructor;
13982
+ }
13983
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/Cache.js
13984
+
13985
+
13986
+
13987
+
13988
+ // [times, realValue]
13989
+ var Entity = /*#__PURE__*/function () {
13990
+ function Entity() {
13991
+ _classCallCheck(this, Entity);
13992
+ defineProperty_defineProperty(this, "cache", new Map());
13993
+ }
13994
+ _createClass(Entity, [{
13995
+ key: "get",
13996
+ value: function get(keys) {
13997
+ return this.cache.get(keys.join('%')) || null;
13998
+ }
13999
+ }, {
14000
+ key: "update",
14001
+ value: function update(keys, valueFn) {
14002
+ var path = keys.join('%');
14003
+ var prevValue = this.cache.get(path);
14004
+ var nextValue = valueFn(prevValue);
14005
+ if (nextValue === null) {
14006
+ this.cache.delete(path);
14007
+ } else {
14008
+ this.cache.set(path, nextValue);
14009
+ }
14010
+ }
14011
+ }]);
14012
+ return Entity;
14013
+ }();
14014
+ /* harmony default export */ var Cache = (Entity);
14015
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/StyleContext.js
14016
+
14017
+
14018
+ var StyleContext_excluded = (/* unused pure expression or super */ null && (["children"]));
14019
+
14020
+
14021
+
14022
+
14023
+ var StyleContext_ATTR_TOKEN = 'data-token-hash';
14024
+ var StyleContext_ATTR_MARK = 'data-css-hash';
14025
+ var ATTR_DEV_CACHE_PATH = 'data-dev-cache-path'; // Mark css-in-js instance in style element
14026
+
14027
+ var CSS_IN_JS_INSTANCE = '__cssinjs_instance__';
14028
+ var CSS_IN_JS_INSTANCE_ID = Math.random().toString(12).slice(2);
14029
+ function createCache() {
14030
+ if (typeof document !== 'undefined' && document.head && document.body) {
14031
+ var styles = document.body.querySelectorAll("style[".concat(StyleContext_ATTR_MARK, "]")) || [];
14032
+ var firstChild = document.head.firstChild;
14033
+ Array.from(styles).forEach(function (style) {
14034
+ style[CSS_IN_JS_INSTANCE] = style[CSS_IN_JS_INSTANCE] || CSS_IN_JS_INSTANCE_ID; // Not force move if no head
14035
+
14036
+ document.head.insertBefore(style, firstChild);
14037
+ }); // Deduplicate of moved styles
14038
+
14039
+ var styleHash = {};
14040
+ Array.from(document.querySelectorAll("style[".concat(StyleContext_ATTR_MARK, "]"))).forEach(function (style) {
14041
+ var hash = style.getAttribute(StyleContext_ATTR_MARK);
14042
+ if (styleHash[hash]) {
14043
+ if (style[CSS_IN_JS_INSTANCE] === CSS_IN_JS_INSTANCE_ID) {
14044
+ var _style$parentNode;
14045
+ (_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
14046
+ }
14047
+ } else {
14048
+ styleHash[hash] = true;
14049
+ }
14050
+ });
14051
+ }
14052
+ return new Cache();
14053
+ }
14054
+ var StyleContext = /*#__PURE__*/external_React_.createContext({
14055
+ hashPriority: 'low',
14056
+ cache: createCache(),
14057
+ defaultCache: true
14058
+ });
14059
+ var StyleProvider = function StyleProvider(props) {
14060
+ var children = props.children,
14061
+ restProps = _objectWithoutProperties(props, StyleContext_excluded);
14062
+ var parentContext = React.useContext(StyleContext);
14063
+ var context = useMemo(function () {
14064
+ var mergedContext = _objectSpread({}, parentContext);
14065
+ Object.keys(restProps).forEach(function (key) {
14066
+ var value = restProps[key];
14067
+ if (restProps[key] !== undefined) {
14068
+ mergedContext[key] = value;
14069
+ }
14070
+ });
14071
+ var cache = restProps.cache;
14072
+ mergedContext.cache = mergedContext.cache || createCache();
14073
+ mergedContext.defaultCache = !cache && parentContext.defaultCache;
14074
+ return mergedContext;
14075
+ }, [parentContext, restProps], function (prev, next) {
14076
+ return !isEqual(prev[0], next[0], true) || !isEqual(prev[1], next[1], true);
14077
+ });
14078
+ return /*#__PURE__*/React.createElement(StyleContext.Provider, {
14079
+ value: context
14080
+ }, children);
14081
+ };
14082
+ /* harmony default export */ var es_StyleContext = (StyleContext);
14083
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useHMR.js
14084
+ function useProdHMR() {
14085
+ return false;
14086
+ }
14087
+ var webpackHMR = false;
14088
+ function useDevHMR() {
14089
+ return webpackHMR;
14090
+ }
14091
+ /* harmony default export */ var useHMR = ( true ? useProdHMR : 0); // Webpack `module.hot.accept` do not support any deps update trigger
14092
+ // We have to hack handler to force mark as HRM
14093
+
14094
+ if (false) { var originWebpackHotUpdate, win; }
14095
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js
14096
+
14097
+
14098
+
14099
+
14100
+
14101
+ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
14102
+ var _React$useContext = external_React_.useContext(es_StyleContext),
14103
+ globalCache = _React$useContext.cache;
14104
+ var fullPath = [prefix].concat(toConsumableArray_toConsumableArray(keyPath));
14105
+ var HMRUpdate = useHMR(); // Create cache
14106
+
14107
+ external_React_.useMemo(function () {
14108
+ globalCache.update(fullPath, function (prevCache) {
14109
+ var _ref = prevCache || [],
14110
+ _ref2 = slicedToArray_slicedToArray(_ref, 2),
14111
+ _ref2$ = _ref2[0],
14112
+ times = _ref2$ === void 0 ? 0 : _ref2$,
14113
+ cache = _ref2[1]; // HMR should always ignore cache since developer may change it
14114
+
14115
+ var tmpCache = cache;
14116
+ if (false) {}
14117
+ var mergedCache = tmpCache || cacheFn();
14118
+ return [times + 1, mergedCache];
14119
+ });
14120
+ }, /* eslint-disable react-hooks/exhaustive-deps */
14121
+ [fullPath.join('_')]
14122
+ /* eslint-enable */); // Remove if no need anymore
14123
+
14124
+ external_React_.useEffect(function () {
14125
+ return function () {
14126
+ globalCache.update(fullPath, function (prevCache) {
14127
+ var _ref3 = prevCache || [],
14128
+ _ref4 = slicedToArray_slicedToArray(_ref3, 2),
14129
+ _ref4$ = _ref4[0],
14130
+ times = _ref4$ === void 0 ? 0 : _ref4$,
14131
+ cache = _ref4[1];
14132
+ var nextCount = times - 1;
14133
+ if (nextCount === 0) {
14134
+ onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache, false);
14135
+ return null;
14136
+ }
14137
+ return [times - 1, cache];
14138
+ });
14139
+ };
14140
+ }, fullPath);
14141
+ return globalCache.get(fullPath)[1];
13556
14142
  }
13557
14143
  ;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/canUseDom.js
13558
14144
  function canUseDom() {
@@ -13700,50 +14286,164 @@ function updateCSS(css, key) {
13700
14286
  newNode.setAttribute(getMark(option), key);
13701
14287
  return newNode;
13702
14288
  }
13703
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.browser.esm.js
13704
- /* eslint-disable */
13705
- // Inspired by https://github.com/garycourt/murmurhash-js
13706
- // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
13707
- function murmur2(str) {
13708
- // 'm' and 'r' are mixing constants generated offline.
13709
- // They're not really 'magic', they just happen to work well.
13710
- // const m = 0x5bd1e995;
13711
- // const r = 24;
13712
- // Initialize the hash
13713
- var h = 0; // Mix 4 bytes at a time into the hash
14289
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/util.js
13714
14290
 
13715
- var k,
13716
- i = 0,
13717
- len = str.length;
13718
- for (; len >= 4; ++i, len -= 4) {
13719
- k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
13720
- k = /* Math.imul(k, m): */
13721
- (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
13722
- k ^= /* k >>> r: */
13723
- k >>> 24;
13724
- h = /* Math.imul(k, m): */
13725
- (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
13726
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
13727
- } // Handle the last few bytes of the input array
13728
14291
 
13729
- switch (len) {
13730
- case 3:
13731
- h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
13732
- case 2:
13733
- h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
13734
- case 1:
13735
- h ^= str.charCodeAt(i) & 0xff;
13736
- h = /* Math.imul(h, m): */
13737
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
13738
- } // Do a few final mixes of the hash to ensure the last few
13739
- // bytes are well-incorporated.
13740
14292
 
13741
- h ^= h >>> 13;
13742
- h = /* Math.imul(h, m): */
13743
- (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
13744
- return ((h ^ h >>> 15) >>> 0).toString(36);
14293
+
14294
+ function flattenToken(token) {
14295
+ var str = '';
14296
+ Object.keys(token).forEach(function (key) {
14297
+ var value = token[key];
14298
+ str += key;
14299
+ if (value && typeof_typeof(value) === 'object') {
14300
+ str += flattenToken(value);
14301
+ } else {
14302
+ str += value;
14303
+ }
14304
+ });
14305
+ return str;
14306
+ }
14307
+ /**
14308
+ * Convert derivative token to key string
14309
+ */
14310
+
14311
+ function token2key(token, salt) {
14312
+ return hash_browser_esm("".concat(salt, "_").concat(flattenToken(token)));
14313
+ }
14314
+ var layerKey = "layer-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, '');
14315
+ var layerWidth = '903px';
14316
+ function supportSelector(styleStr, handleElement) {
14317
+ if (canUseDom()) {
14318
+ var _ele$parentNode;
14319
+ updateCSS(styleStr, layerKey);
14320
+ var _ele = document.createElement('div');
14321
+ _ele.style.position = 'fixed';
14322
+ _ele.style.left = '0';
14323
+ _ele.style.top = '0';
14324
+ handleElement === null || handleElement === void 0 ? void 0 : handleElement(_ele);
14325
+ document.body.appendChild(_ele);
14326
+ if (false) {}
14327
+ var support = getComputedStyle(_ele).width === layerWidth;
14328
+ (_ele$parentNode = _ele.parentNode) === null || _ele$parentNode === void 0 ? void 0 : _ele$parentNode.removeChild(_ele);
14329
+ removeCSS(layerKey);
14330
+ return support;
14331
+ }
14332
+ return false;
14333
+ }
14334
+ var canLayer = undefined;
14335
+ function supportLayer() {
14336
+ if (canLayer === undefined) {
14337
+ canLayer = supportSelector("@layer ".concat(layerKey, " { .").concat(layerKey, " { width: ").concat(layerWidth, "!important; } }"), function (ele) {
14338
+ ele.className = layerKey;
14339
+ });
14340
+ }
14341
+ return canLayer;
14342
+ }
14343
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js
14344
+
14345
+
14346
+
14347
+
14348
+
14349
+
14350
+
14351
+ var EMPTY_OVERRIDE = {}; // Generate different prefix to make user selector break in production env.
14352
+ // This helps developer not to do style override directly on the hash id.
14353
+
14354
+ var hashPrefix = false ? 0 : 'css';
14355
+ var tokenKeys = new Map();
14356
+ function recordCleanToken(tokenKey) {
14357
+ tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1);
14358
+ }
14359
+ function removeStyleTags(key) {
14360
+ if (typeof document !== 'undefined') {
14361
+ var styles = document.querySelectorAll("style[".concat(StyleContext_ATTR_TOKEN, "=\"").concat(key, "\"]"));
14362
+ styles.forEach(function (style) {
14363
+ if (style[CSS_IN_JS_INSTANCE] === CSS_IN_JS_INSTANCE_ID) {
14364
+ var _style$parentNode;
14365
+ (_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
14366
+ }
14367
+ });
14368
+ }
14369
+ } // Remove will check current keys first
14370
+
14371
+ function cleanTokenStyle(tokenKey) {
14372
+ tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);
14373
+ var tokenKeyList = Array.from(tokenKeys.keys());
14374
+ var cleanableKeyList = tokenKeyList.filter(function (key) {
14375
+ var count = tokenKeys.get(key) || 0;
14376
+ return count <= 0;
14377
+ });
14378
+ if (cleanableKeyList.length < tokenKeyList.length) {
14379
+ cleanableKeyList.forEach(function (key) {
14380
+ removeStyleTags(key);
14381
+ tokenKeys.delete(key);
14382
+ });
14383
+ }
14384
+ }
14385
+ /**
14386
+ * Cache theme derivative token as global shared one
14387
+ * @param theme Theme entity
14388
+ * @param tokens List of tokens, used for cache. Please do not dynamic generate object directly
14389
+ * @param option Additional config
14390
+ * @returns Call Theme.getDerivativeToken(tokenObject) to get token
14391
+ */
14392
+
14393
+ function useCacheToken(theme, tokens) {
14394
+ var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
14395
+ var _option$salt = option.salt,
14396
+ salt = _option$salt === void 0 ? '' : _option$salt,
14397
+ _option$override = option.override,
14398
+ override = _option$override === void 0 ? EMPTY_OVERRIDE : _option$override,
14399
+ formatToken = option.formatToken; // Basic - We do basic cache here
14400
+
14401
+ var mergedToken = external_React_.useMemo(function () {
14402
+ return Object.assign.apply(Object, [{}].concat(toConsumableArray_toConsumableArray(tokens)));
14403
+ }, [tokens]);
14404
+ var tokenStr = external_React_.useMemo(function () {
14405
+ return flattenToken(mergedToken);
14406
+ }, [mergedToken]);
14407
+ var overrideTokenStr = external_React_.useMemo(function () {
14408
+ return flattenToken(override);
14409
+ }, [override]);
14410
+ var cachedToken = useClientCache('token', [salt, theme.id, tokenStr, overrideTokenStr], function () {
14411
+ var derivativeToken = theme.getDerivativeToken(mergedToken); // Merge with override
14412
+
14413
+ var mergedDerivativeToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, derivativeToken), override); // Format if needed
14414
+
14415
+ if (formatToken) {
14416
+ mergedDerivativeToken = formatToken(mergedDerivativeToken);
14417
+ } // Optimize for `useStyleRegister` performance
14418
+
14419
+ var tokenKey = token2key(mergedDerivativeToken, salt);
14420
+ mergedDerivativeToken._tokenKey = tokenKey;
14421
+ recordCleanToken(tokenKey);
14422
+ var hashId = "".concat(hashPrefix, "-").concat(hash_browser_esm(tokenKey));
14423
+ mergedDerivativeToken._hashId = hashId; // Not used
14424
+
14425
+ return [mergedDerivativeToken, hashId];
14426
+ }, function (cache) {
14427
+ // Remove token will remove all related style
14428
+ cleanTokenStyle(cache[0]._tokenKey);
14429
+ });
14430
+ return cachedToken;
14431
+ }
14432
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
14433
+ function extends_extends() {
14434
+ extends_extends = Object.assign ? Object.assign.bind() : function (target) {
14435
+ for (var i = 1; i < arguments.length; i++) {
14436
+ var source = arguments[i];
14437
+ for (var key in source) {
14438
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
14439
+ target[key] = source[key];
14440
+ }
14441
+ }
14442
+ }
14443
+ return target;
14444
+ };
14445
+ return extends_extends.apply(this, arguments);
13745
14446
  }
13746
- /* harmony default export */ var hash_browser_esm = (murmur2);
13747
14447
  ;// CONCATENATED MODULE: ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js
13748
14448
  var unitlessKeys = {
13749
14449
  animationIterationCount: 1,
@@ -14419,326 +15119,40 @@ function comment(value, root, parent) {
14419
15119
  function declaration(value, root, parent, length) {
14420
15120
  return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length);
14421
15121
  }
14422
- ;// CONCATENATED MODULE: ./node_modules/rc-util/es/hooks/useMemo.js
15122
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/linters/utils.js
14423
15123
 
14424
- function useMemo_useMemo(getValue, condition, shouldUpdate) {
14425
- var cacheRef = external_React_.useRef({});
14426
- if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
14427
- cacheRef.current.value = getValue();
14428
- cacheRef.current.condition = condition;
14429
- }
14430
- return cacheRef.current.value;
14431
- }
14432
- ;// CONCATENATED MODULE: ./node_modules/rc-util/es/warning.js
14433
- /* eslint-disable no-console */
14434
- var warned = {};
14435
- function warning_warning(valid, message) {
14436
- // Support uglify
14437
- if (false) {}
14438
- }
14439
- function note(valid, message) {
14440
- // Support uglify
14441
- if (false) {}
14442
- }
14443
- function resetWarned() {
14444
- warned = {};
14445
- }
14446
- function call(method, valid, message) {
14447
- if (!valid && !warned[message]) {
14448
- method(false, message);
14449
- warned[message] = true;
14450
- }
14451
- }
14452
- function warningOnce(valid, message) {
14453
- call(warning_warning, valid, message);
14454
- }
14455
- function noteOnce(valid, message) {
14456
- call(note, valid, message);
15124
+ function utils_lintWarning(message, info) {
15125
+ var path = info.path,
15126
+ parentSelectors = info.parentSelectors;
15127
+ devWarning(false, "[Ant Design CSS-in-JS] ".concat(path ? "Error in '".concat(path, "': ") : '').concat(message).concat(parentSelectors.length ? " Selector info: ".concat(parentSelectors.join(' -> '), ")") : ''));
14457
15128
  }
14458
- /* harmony default export */ var es_warning = (warningOnce);
14459
- /* eslint-enable */
14460
- ;// CONCATENATED MODULE: ./node_modules/rc-util/es/isEqual.js
15129
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.js
14461
15130
 
14462
-
14463
- /**
14464
- * Deeply compares two object literals.
14465
- * @param obj1 object 1
14466
- * @param obj2 object 2
14467
- * @param shallow shallow compare
14468
- * @returns
14469
- */
14470
- function isEqual_isEqual(obj1, obj2) {
14471
- var shallow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
14472
- // https://github.com/mapbox/mapbox-gl-js/pull/5979/files#diff-fde7145050c47cc3a306856efd5f9c3016e86e859de9afbd02c879be5067e58f
14473
- var refSet = new Set();
14474
- function deepEqual(a, b) {
14475
- var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
14476
- var circular = refSet.has(a);
14477
- es_warning(!circular, 'Warning: There may be circular references');
14478
- if (circular) {
14479
- return false;
14480
- }
14481
- if (a === b) {
14482
- return true;
14483
- }
14484
- if (shallow && level > 1) {
14485
- return false;
14486
- }
14487
- refSet.add(a);
14488
- var newLevel = level + 1;
14489
- if (Array.isArray(a)) {
14490
- if (!Array.isArray(b) || a.length !== b.length) {
14491
- return false;
14492
- }
14493
- for (var i = 0; i < a.length; i++) {
14494
- if (!deepEqual(a[i], b[i], newLevel)) {
14495
- return false;
14496
- }
14497
- }
14498
- return true;
14499
- }
14500
- if (a && b && typeof_typeof(a) === 'object' && typeof_typeof(b) === 'object') {
14501
- var keys = Object.keys(a);
14502
- if (keys.length !== Object.keys(b).length) {
14503
- return false;
14504
- }
14505
- return keys.every(function (key) {
14506
- return deepEqual(a[key], b[key], newLevel);
14507
- });
15131
+ var linter = function linter(key, value, info) {
15132
+ if (key === 'content') {
15133
+ // From emotion: https://github.com/emotion-js/emotion/blob/main/packages/serialize/src/index.js#L63
15134
+ var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
15135
+ var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
15136
+ if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
15137
+ lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(value, "\"'`."), info);
14508
15138
  }
14509
- // other
14510
- return false;
14511
- }
14512
- return deepEqual(obj1, obj2);
14513
- }
14514
- /* harmony default export */ var es_isEqual = (isEqual_isEqual);
14515
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
14516
- function _classCallCheck(instance, Constructor) {
14517
- if (!(instance instanceof Constructor)) {
14518
- throw new TypeError("Cannot call a class as a function");
14519
15139
  }
14520
- }
14521
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
14522
-
14523
- function _defineProperties(target, props) {
14524
- for (var i = 0; i < props.length; i++) {
14525
- var descriptor = props[i];
14526
- descriptor.enumerable = descriptor.enumerable || false;
14527
- descriptor.configurable = true;
14528
- if ("value" in descriptor) descriptor.writable = true;
14529
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
14530
- }
14531
- }
14532
- function _createClass(Constructor, protoProps, staticProps) {
14533
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
14534
- if (staticProps) _defineProperties(Constructor, staticProps);
14535
- Object.defineProperty(Constructor, "prototype", {
14536
- writable: false
14537
- });
14538
- return Constructor;
14539
- }
14540
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/Cache.js
14541
-
14542
-
14543
-
15140
+ };
15141
+ /* harmony default export */ var contentQuotesLinter = ((/* unused pure expression or super */ null && (linter)));
15142
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.js
14544
15143
 
14545
- // [times, realValue]
14546
- var Entity = /*#__PURE__*/function () {
14547
- function Entity() {
14548
- _classCallCheck(this, Entity);
14549
- defineProperty_defineProperty(this, "cache", new Map());
14550
- }
14551
- _createClass(Entity, [{
14552
- key: "get",
14553
- value: function get(keys) {
14554
- return this.cache.get(keys.join('%')) || null;
14555
- }
14556
- }, {
14557
- key: "update",
14558
- value: function update(keys, valueFn) {
14559
- var path = keys.join('%');
14560
- var prevValue = this.cache.get(path);
14561
- var nextValue = valueFn(prevValue);
14562
- if (nextValue === null) {
14563
- this.cache.delete(path);
14564
- } else {
14565
- this.cache.set(path, nextValue);
14566
- }
15144
+ var hashedAnimationLinter_linter = function linter(key, value, info) {
15145
+ if (key === 'animation') {
15146
+ if (info.hashId && value !== 'none') {
15147
+ lintWarning("You seem to be using hashed animation '".concat(value, "', in which case 'animationName' with Keyframe as value is recommended."), info);
14567
15148
  }
14568
- }]);
14569
- return Entity;
14570
- }();
14571
- /* harmony default export */ var Cache = (Entity);
14572
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/StyleContext.js
14573
-
14574
-
14575
- var StyleContext_excluded = (/* unused pure expression or super */ null && (["children"]));
14576
-
14577
-
14578
-
14579
-
14580
- var StyleContext_ATTR_TOKEN = 'data-token-hash';
14581
- var StyleContext_ATTR_MARK = 'data-css-hash';
14582
- var ATTR_DEV_CACHE_PATH = 'data-dev-cache-path'; // Mark css-in-js instance in style element
14583
-
14584
- var CSS_IN_JS_INSTANCE = '__cssinjs_instance__';
14585
- var CSS_IN_JS_INSTANCE_ID = Math.random().toString(12).slice(2);
14586
- function createCache() {
14587
- if (typeof document !== 'undefined' && document.head && document.body) {
14588
- var styles = document.body.querySelectorAll("style[".concat(StyleContext_ATTR_MARK, "]")) || [];
14589
- var firstChild = document.head.firstChild;
14590
- Array.from(styles).forEach(function (style) {
14591
- style[CSS_IN_JS_INSTANCE] = style[CSS_IN_JS_INSTANCE] || CSS_IN_JS_INSTANCE_ID; // Not force move if no head
14592
-
14593
- document.head.insertBefore(style, firstChild);
14594
- }); // Deduplicate of moved styles
14595
-
14596
- var styleHash = {};
14597
- Array.from(document.querySelectorAll("style[".concat(StyleContext_ATTR_MARK, "]"))).forEach(function (style) {
14598
- var hash = style.getAttribute(StyleContext_ATTR_MARK);
14599
- if (styleHash[hash]) {
14600
- if (style[CSS_IN_JS_INSTANCE] === CSS_IN_JS_INSTANCE_ID) {
14601
- var _style$parentNode;
14602
- (_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
14603
- }
14604
- } else {
14605
- styleHash[hash] = true;
14606
- }
14607
- });
14608
15149
  }
14609
- return new Cache();
14610
- }
14611
- var StyleContext = /*#__PURE__*/external_React_.createContext({
14612
- hashPriority: 'low',
14613
- cache: createCache(),
14614
- defaultCache: true
14615
- });
14616
- var StyleProvider = function StyleProvider(props) {
14617
- var children = props.children,
14618
- restProps = _objectWithoutProperties(props, StyleContext_excluded);
14619
- var parentContext = React.useContext(StyleContext);
14620
- var context = useMemo(function () {
14621
- var mergedContext = _objectSpread({}, parentContext);
14622
- Object.keys(restProps).forEach(function (key) {
14623
- var value = restProps[key];
14624
- if (restProps[key] !== undefined) {
14625
- mergedContext[key] = value;
14626
- }
14627
- });
14628
- var cache = restProps.cache;
14629
- mergedContext.cache = mergedContext.cache || createCache();
14630
- mergedContext.defaultCache = !cache && parentContext.defaultCache;
14631
- return mergedContext;
14632
- }, [parentContext, restProps], function (prev, next) {
14633
- return !isEqual(prev[0], next[0], true) || !isEqual(prev[1], next[1], true);
14634
- });
14635
- return /*#__PURE__*/React.createElement(StyleContext.Provider, {
14636
- value: context
14637
- }, children);
14638
15150
  };
14639
- /* harmony default export */ var es_StyleContext = (StyleContext);
14640
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useHMR.js
14641
- function useProdHMR() {
14642
- return false;
14643
- }
14644
- var webpackHMR = false;
14645
- function useDevHMR() {
14646
- return webpackHMR;
14647
- }
14648
- /* harmony default export */ var useHMR = ( true ? useProdHMR : 0); // Webpack `module.hot.accept` do not support any deps update trigger
14649
- // We have to hack handler to force mark as HRM
14650
-
14651
- if (false) { var originWebpackHotUpdate, win; }
14652
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js
14653
-
14654
-
14655
-
14656
-
14657
-
14658
- function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
14659
- var _React$useContext = external_React_.useContext(es_StyleContext),
14660
- globalCache = _React$useContext.cache;
14661
- var fullPath = [prefix].concat(toConsumableArray_toConsumableArray(keyPath));
14662
- var HMRUpdate = useHMR(); // Create cache
14663
-
14664
- external_React_.useMemo(function () {
14665
- globalCache.update(fullPath, function (prevCache) {
14666
- var _ref = prevCache || [],
14667
- _ref2 = slicedToArray_slicedToArray(_ref, 2),
14668
- _ref2$ = _ref2[0],
14669
- times = _ref2$ === void 0 ? 0 : _ref2$,
14670
- cache = _ref2[1]; // HMR should always ignore cache since developer may change it
15151
+ /* harmony default export */ var hashedAnimationLinter = ((/* unused pure expression or super */ null && (hashedAnimationLinter_linter)));
15152
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/linters/logicalPropertiesLinter.js
14671
15153
 
14672
- var tmpCache = cache;
14673
- if (false) {}
14674
- var mergedCache = tmpCache || cacheFn();
14675
- return [times + 1, mergedCache];
14676
- });
14677
- }, /* eslint-disable react-hooks/exhaustive-deps */
14678
- [fullPath.join('_')]
14679
- /* eslint-enable */); // Remove if no need anymore
14680
-
14681
- external_React_.useEffect(function () {
14682
- return function () {
14683
- globalCache.update(fullPath, function (prevCache) {
14684
- var _ref3 = prevCache || [],
14685
- _ref4 = slicedToArray_slicedToArray(_ref3, 2),
14686
- _ref4$ = _ref4[0],
14687
- times = _ref4$ === void 0 ? 0 : _ref4$,
14688
- cache = _ref4[1];
14689
- var nextCount = times - 1;
14690
- if (nextCount === 0) {
14691
- onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache, false);
14692
- return null;
14693
- }
14694
- return [times - 1, cache];
14695
- });
14696
- };
14697
- }, fullPath);
14698
- return globalCache.get(fullPath)[1];
14699
- }
14700
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/util.js
14701
-
14702
-
14703
-
14704
-
14705
-
14706
- function flattenToken(token) {
14707
- var str = '';
14708
- Object.keys(token).forEach(function (key) {
14709
- var value = token[key];
14710
- str += key;
14711
- if (value && typeof_typeof(value) === 'object') {
14712
- str += flattenToken(value);
14713
- } else {
14714
- str += value;
14715
- }
14716
- });
14717
- return str;
14718
- }
14719
- /**
14720
- * Convert derivative token to key string
14721
- */
14722
-
14723
- function token2key(token, slat) {
14724
- return hash_browser_esm("".concat(slat, "_").concat(flattenToken(token)));
14725
- }
14726
- function util_warning(message, path) {
14727
- devWarning(false, "[Ant Design CSS-in-JS] ".concat(path ? "Error in '".concat(path, "': ") : '').concat(message));
14728
- }
14729
- var styleValidate = function styleValidate(key, value) {
14730
- var info = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
14731
- var path = info.path,
14732
- hashId = info.hashId;
15154
+ var logicalPropertiesLinter_linter = function linter(key, value, info) {
14733
15155
  switch (key) {
14734
- case 'content':
14735
- // From emotion: https://github.com/emotion-js/emotion/blob/main/packages/serialize/src/index.js#L63
14736
- var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
14737
- var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
14738
- if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
14739
- util_warning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(value, "\"'`"), path);
14740
- }
14741
- return;
14742
15156
  case 'marginLeft':
14743
15157
  case 'marginRight':
14744
15158
  case 'paddingLeft':
@@ -14757,7 +15171,7 @@ var styleValidate = function styleValidate(key, value) {
14757
15171
  case 'borderTopRightRadius':
14758
15172
  case 'borderBottomLeftRadius':
14759
15173
  case 'borderBottomRightRadius':
14760
- util_warning("You seem to be using non-logical property '".concat(key, "' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), path);
15174
+ lintWarning("You seem to be using non-logical property '".concat(key, "' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), info);
14761
15175
  return;
14762
15176
  case 'margin':
14763
15177
  case 'padding':
@@ -14769,14 +15183,14 @@ var styleValidate = function styleValidate(key, value) {
14769
15183
  return item.trim();
14770
15184
  });
14771
15185
  if (valueArr.length === 4 && valueArr[1] !== valueArr[3]) {
14772
- util_warning("You seem to be using '".concat(key, "' property with different left ").concat(key, " and right ").concat(key, ", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), path);
15186
+ lintWarning("You seem to be using '".concat(key, "' property with different left ").concat(key, " and right ").concat(key, ", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), info);
14773
15187
  }
14774
15188
  }
14775
15189
  return;
14776
15190
  case 'clear':
14777
15191
  case 'textAlign':
14778
15192
  if (value === 'left' || value === 'right') {
14779
- util_warning("You seem to be using non-logical value '".concat(value, "' of ").concat(key, ", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), path);
15193
+ lintWarning("You seem to be using non-logical value '".concat(value, "' of ").concat(key, ", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), info);
14780
15194
  }
14781
15195
  return;
14782
15196
  case 'borderRadius':
@@ -14806,47 +15220,18 @@ var styleValidate = function styleValidate(key, value) {
14806
15220
  return result;
14807
15221
  }, false);
14808
15222
  if (invalid) {
14809
- util_warning("You seem to be using non-logical value '".concat(value, "' of ").concat(key, ", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), path);
15223
+ lintWarning("You seem to be using non-logical value '".concat(value, "' of ").concat(key, ", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."), info);
14810
15224
  }
14811
15225
  }
14812
15226
  return;
14813
- case 'animation':
14814
- if (hashId && value !== 'none') {
14815
- util_warning("You seem to be using hashed animation '".concat(value, "', in which case 'animationName' with Keyframe as value is recommended."), path);
14816
- }
14817
15227
  default:
14818
- return;
14819
15228
  }
14820
15229
  };
14821
- var layerKey = "layer-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, '');
14822
- var layerWidth = '903px';
14823
- function supportSelector(styleStr, handleElement) {
14824
- if (canUseDom()) {
14825
- var _ele$parentNode;
14826
- updateCSS(styleStr, layerKey);
14827
- var _ele = document.createElement('div');
14828
- _ele.style.position = 'fixed';
14829
- _ele.style.left = '0';
14830
- _ele.style.top = '0';
14831
- handleElement === null || handleElement === void 0 ? void 0 : handleElement(_ele);
14832
- document.body.appendChild(_ele);
14833
- if (false) {}
14834
- var support = getComputedStyle(_ele).width === layerWidth;
14835
- (_ele$parentNode = _ele.parentNode) === null || _ele$parentNode === void 0 ? void 0 : _ele$parentNode.removeChild(_ele);
14836
- removeCSS(layerKey);
14837
- return support;
14838
- }
14839
- return false;
14840
- }
14841
- var canLayer = undefined;
14842
- function supportLayer() {
14843
- if (canLayer === undefined) {
14844
- canLayer = supportSelector("@layer ".concat(layerKey, " { .").concat(layerKey, " { width: ").concat(layerWidth, "!important; } }"), function (ele) {
14845
- ele.className = layerKey;
14846
- });
14847
- }
14848
- return canLayer;
14849
- }
15230
+ /* harmony default export */ var logicalPropertiesLinter = ((/* unused pure expression or super */ null && (logicalPropertiesLinter_linter)));
15231
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/linters/index.js
15232
+
15233
+
15234
+
14850
15235
  ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js
14851
15236
 
14852
15237
 
@@ -14864,6 +15249,7 @@ function supportLayer() {
14864
15249
 
14865
15250
 
14866
15251
 
15252
+
14867
15253
  var isClientSide = canUseDom();
14868
15254
  var SKIP_CHECK = '_skip_check_';
14869
15255
  // ============================================================================
@@ -14876,8 +15262,7 @@ function normalizeStyle(styleStr) {
14876
15262
  }
14877
15263
  function isCompoundCSSProperty(value) {
14878
15264
  return typeof_typeof(value) === 'object' && value && SKIP_CHECK in value;
14879
- }
14880
- var animationStatistics = {}; // 注入 hash 值
15265
+ } // 注入 hash 值
14881
15266
 
14882
15267
  function injectSelectorHash(key, hashId, hashPriority) {
14883
15268
  if (!hashId) {
@@ -14910,23 +15295,28 @@ var _cf = (/* unused pure expression or super */ null && ( false ? 0 : undefined
14910
15295
  var parseStyle = function parseStyle(interpolation) {
14911
15296
  var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14912
15297
  var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
14913
- root: true
15298
+ root: true,
15299
+ parentSelectors: []
14914
15300
  },
14915
15301
  root = _ref.root,
14916
- injectHash = _ref.injectHash;
15302
+ injectHash = _ref.injectHash,
15303
+ parentSelectors = _ref.parentSelectors;
14917
15304
  var hashId = config.hashId,
14918
15305
  layer = config.layer,
14919
15306
  path = config.path,
14920
15307
  hashPriority = config.hashPriority,
14921
15308
  _config$transformers = config.transformers,
14922
- transformers = _config$transformers === void 0 ? [] : _config$transformers;
15309
+ transformers = _config$transformers === void 0 ? [] : _config$transformers,
15310
+ _config$linters = config.linters,
15311
+ linters = _config$linters === void 0 ? [] : _config$linters;
14923
15312
  var styleStr = '';
14924
15313
  var effectStyle = {};
14925
15314
  function parseKeyframes(keyframes) {
14926
15315
  var animationName = keyframes.getName(hashId);
14927
15316
  if (!effectStyle[animationName]) {
14928
15317
  var _parseStyle = parseStyle(keyframes.style, config, {
14929
- root: false
15318
+ root: false,
15319
+ parentSelectors: parentSelectors
14930
15320
  }),
14931
15321
  _parseStyle2 = slicedToArray_slicedToArray(_parseStyle, 1),
14932
15322
  _parsedStr = _parseStyle2[0];
@@ -14985,11 +15375,10 @@ var parseStyle = function parseStyle(interpolation) {
14985
15375
  mergedKey = '';
14986
15376
  nextRoot = true;
14987
15377
  }
14988
- var _parseStyle3 = parseStyle(value, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, config), {}, {
14989
- path: "".concat(path, " -> ").concat(mergedKey)
14990
- }), {
15378
+ var _parseStyle3 = parseStyle(value, config, {
14991
15379
  root: nextRoot,
14992
- injectHash: subInjectHash
15380
+ injectHash: subInjectHash,
15381
+ parentSelectors: [].concat(toConsumableArray_toConsumableArray(parentSelectors), [mergedKey])
14993
15382
  }),
14994
15383
  _parseStyle4 = slicedToArray_slicedToArray(_parseStyle3, 2),
14995
15384
  _parsedStr2 = _parseStyle4[0],
@@ -15058,7 +15447,8 @@ function useStyleRegister(info, styleFn) {
15058
15447
  hashPriority = _React$useContext.hashPriority,
15059
15448
  container = _React$useContext.container,
15060
15449
  ssrInline = _React$useContext.ssrInline,
15061
- transformers = _React$useContext.transformers;
15450
+ transformers = _React$useContext.transformers,
15451
+ linters = _React$useContext.linters;
15062
15452
  var tokenKey = token._tokenKey;
15063
15453
  var fullPath = [tokenKey].concat(toConsumableArray_toConsumableArray(path)); // Check if need insert style
15064
15454
 
@@ -15073,15 +15463,14 @@ function useStyleRegister(info, styleFn) {
15073
15463
  hashPriority: hashPriority,
15074
15464
  layer: layer,
15075
15465
  path: path.join('-'),
15076
- transformers: transformers
15466
+ transformers: transformers,
15467
+ linters: linters
15077
15468
  }),
15078
15469
  _parseStyle6 = slicedToArray_slicedToArray(_parseStyle5, 2),
15079
15470
  parsedStyle = _parseStyle6[0],
15080
15471
  effectStyle = _parseStyle6[1];
15081
15472
  var styleStr = normalizeStyle(parsedStyle);
15082
- var styleId = uniqueHash(fullPath, styleStr); // Clear animation statistics
15083
-
15084
- animationStatistics = {};
15473
+ var styleId = uniqueHash(fullPath, styleStr);
15085
15474
  if (isMergedClientSide) {
15086
15475
  var style = updateCSS(styleStr, styleId, {
15087
15476
  mark: StyleContext_ATTR_MARK,
@@ -15156,95 +15545,6 @@ function extractStyle(cache) {
15156
15545
  });
15157
15546
  return styleText;
15158
15547
  }
15159
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js
15160
-
15161
-
15162
-
15163
-
15164
-
15165
-
15166
-
15167
- var EMPTY_OVERRIDE = {}; // Generate different prefix to make user selector break in production env.
15168
- // This helps developer not to do style override directly on the hash id.
15169
-
15170
- var hashPrefix = false ? 0 : 'css';
15171
- var tokenKeys = new Map();
15172
- function recordCleanToken(tokenKey) {
15173
- tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1);
15174
- }
15175
- function removeStyleTags(key) {
15176
- if (typeof document !== 'undefined') {
15177
- var styles = document.querySelectorAll("style[".concat(StyleContext_ATTR_TOKEN, "=\"").concat(key, "\"]"));
15178
- styles.forEach(function (style) {
15179
- if (style[CSS_IN_JS_INSTANCE] === CSS_IN_JS_INSTANCE_ID) {
15180
- var _style$parentNode;
15181
- (_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);
15182
- }
15183
- });
15184
- }
15185
- } // Remove will check current keys first
15186
-
15187
- function cleanTokenStyle(tokenKey) {
15188
- tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);
15189
- var tokenKeyList = Array.from(tokenKeys.keys());
15190
- var cleanableKeyList = tokenKeyList.filter(function (key) {
15191
- var count = tokenKeys.get(key) || 0;
15192
- return count <= 0;
15193
- });
15194
- if (cleanableKeyList.length < tokenKeyList.length) {
15195
- cleanableKeyList.forEach(function (key) {
15196
- removeStyleTags(key);
15197
- tokenKeys.delete(key);
15198
- });
15199
- }
15200
- }
15201
- /**
15202
- * Cache theme derivative token as global shared one
15203
- * @param theme Theme entity
15204
- * @param tokens List of tokens, used for cache. Please do not dynamic generate object directly
15205
- * @param option Additional config
15206
- * @returns Call Theme.getDerivativeToken(tokenObject) to get token
15207
- */
15208
-
15209
- function useCacheToken(theme, tokens) {
15210
- var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
15211
- var _option$salt = option.salt,
15212
- salt = _option$salt === void 0 ? '' : _option$salt,
15213
- _option$override = option.override,
15214
- override = _option$override === void 0 ? EMPTY_OVERRIDE : _option$override,
15215
- formatToken = option.formatToken; // Basic - We do basic cache here
15216
-
15217
- var mergedToken = external_React_.useMemo(function () {
15218
- return Object.assign.apply(Object, [{}].concat(toConsumableArray_toConsumableArray(tokens)));
15219
- }, [tokens]);
15220
- var tokenStr = external_React_.useMemo(function () {
15221
- return flattenToken(mergedToken);
15222
- }, [mergedToken]);
15223
- var overrideTokenStr = external_React_.useMemo(function () {
15224
- return flattenToken(override);
15225
- }, [override]);
15226
- var cachedToken = useClientCache('token', [salt, theme.id, tokenStr, overrideTokenStr], function () {
15227
- var derivativeToken = theme.getDerivativeToken(mergedToken); // Merge with override
15228
-
15229
- var mergedDerivativeToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, derivativeToken), override); // Format if needed
15230
-
15231
- if (formatToken) {
15232
- mergedDerivativeToken = formatToken(mergedDerivativeToken);
15233
- } // Optimize for `useStyleRegister` performance
15234
-
15235
- var tokenKey = token2key(mergedDerivativeToken, salt);
15236
- mergedDerivativeToken._tokenKey = tokenKey;
15237
- recordCleanToken(tokenKey);
15238
- var hashId = "".concat(hashPrefix, "-").concat(hash_browser_esm(tokenKey));
15239
- mergedDerivativeToken._hashId = hashId; // Not used
15240
-
15241
- return [mergedDerivativeToken, hashId];
15242
- }, function (cache) {
15243
- // Remove token will remove all related style
15244
- cleanTokenStyle(cache[0]._tokenKey);
15245
- });
15246
- return cachedToken;
15247
- }
15248
15548
  ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/Keyframes.js
15249
15549
 
15250
15550
 
@@ -15619,6 +15919,7 @@ var transform = {
15619
15919
 
15620
15920
 
15621
15921
 
15922
+
15622
15923
  // EXTERNAL MODULE: ./node_modules/@ctrl/tinycolor/dist/module/conversion.js
15623
15924
  var conversion = __webpack_require__(29);
15624
15925
  // EXTERNAL MODULE: ./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js
@@ -19980,7 +20281,8 @@ var ConfigProVidContainer = function ConfigProVidContainer(props) {
19980
20281
  valueTypeMap = props.valueTypeMap,
19981
20282
  _props$autoClearCache = props.autoClearCache,
19982
20283
  autoClearCache = _props$autoClearCache === void 0 ? false : _props$autoClearCache,
19983
- propsToken = props.token;
20284
+ propsToken = props.token,
20285
+ prefixCls = props.prefixCls;
19984
20286
  var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
19985
20287
  locale = _useContext.locale,
19986
20288
  getPrefixCls = _useContext.getPrefixCls,
@@ -19993,7 +20295,7 @@ var ConfigProVidContainer = function ConfigProVidContainer(props) {
19993
20295
  * @type {string}
19994
20296
  * @example .ant-pro
19995
20297
  */
19996
- var proComponentsCls = ".".concat(getPrefixCls(), "-pro");
20298
+ var proComponentsCls = prefixCls ? ".".concat(prefixCls) : ".".concat(getPrefixCls(), "-pro");
19997
20299
  var antCls = '.' + getPrefixCls();
19998
20300
  var salt = "".concat(proComponentsCls);
19999
20301
  /**
@@ -20061,7 +20363,7 @@ var ConfigProVidContainer = function ConfigProVidContainer(props) {
20061
20363
  }));
20062
20364
  return (0,jsx_runtime.jsx)("div", {
20063
20365
  ref: containerDomRef,
20064
- className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro').concat(hashId ? ' ' + hashId : ''),
20366
+ className: "".concat(prefixCls || (getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro').concat(hashId ? ' ' + hashId : ''),
20065
20367
  children: provide
20066
20368
  });
20067
20369
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -25735,7 +26037,7 @@ var LightWrapper = function LightWrapper(props) {
25735
26037
  /** DataRange的转化,dayjs 的 toString 有点不好用 */
25736
26038
  var labelText = (0,external_React_.useMemo)(function () {
25737
26039
  var _valueType$toLowerCas;
25738
- if ((valueType === null || valueType === void 0 ? void 0 : (_valueType$toLowerCas = valueType.toLowerCase()) === null || _valueType$toLowerCas === void 0 ? void 0 : _valueType$toLowerCas.endsWith('range')) && !labelFormatter) {
26040
+ if ((valueType === null || valueType === void 0 ? void 0 : (_valueType$toLowerCas = valueType.toLowerCase()) === null || _valueType$toLowerCas === void 0 ? void 0 : _valueType$toLowerCas.endsWith('range')) && valueType !== 'digitRange' && !labelFormatter) {
25739
26041
  return dateArrayFormatter(labelValue, dateFormatterMap[valueType] || 'YYYY-MM-DD');
25740
26042
  }
25741
26043
  return labelValue;
@@ -47276,8 +47578,8 @@ var getOpenKeysFromMenuData = function getOpenKeysFromMenuData(menuData) {
47276
47578
  if (item.key) {
47277
47579
  pre.push(item.key);
47278
47580
  }
47279
- if (item.routes) {
47280
- var newArray = pre.concat(getOpenKeysFromMenuData(item.routes) || []);
47581
+ if (item.children || item.routes) {
47582
+ var newArray = pre.concat(getOpenKeysFromMenuData(item.children || item.routes) || []);
47281
47583
  return newArray;
47282
47584
  }
47283
47585
  return pre;
@@ -48529,7 +48831,9 @@ var BaseMenu = function BaseMenu(props) {
48529
48831
  } else if ((menu === null || menu === void 0 ? void 0 : menu.ignoreFlatMenu) && defaultOpenAll) {
48530
48832
  // 忽略用户手动折叠过的菜单状态,折叠按钮切换之后也可实现默认展开所有菜单
48531
48833
  setOpenKeys(getOpenKeysFromMenuData(menuData));
48532
- } else setDefaultOpenAll(false);
48834
+ } else {
48835
+ setDefaultOpenAll(false);
48836
+ }
48533
48837
  },
48534
48838
  // eslint-disable-next-line react-hooks/exhaustive-deps
48535
48839
  [matchMenuKeys.join('-')]);
@@ -51182,499 +51486,8 @@ function useDocumentTitle(titleInfo, appDefaultTitle) {
51182
51486
  }
51183
51487
  }, [titleInfo.title, titleText]);
51184
51488
  }
51185
- // EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/react.js + 1 modules
51186
- var react = __webpack_require__(3948);
51187
- ;// CONCATENATED MODULE: ./node_modules/@umijs/route-utils/node_modules/memoize-one/dist/memoize-one.esm.js
51188
- var safeIsNaN = Number.isNaN || function ponyfill(value) {
51189
- return typeof value === 'number' && value !== value;
51190
- };
51191
- function memoize_one_esm_isEqual(first, second) {
51192
- if (first === second) {
51193
- return true;
51194
- }
51195
- if (safeIsNaN(first) && safeIsNaN(second)) {
51196
- return true;
51197
- }
51198
- return false;
51199
- }
51200
- function areInputsEqual(newInputs, lastInputs) {
51201
- if (newInputs.length !== lastInputs.length) {
51202
- return false;
51203
- }
51204
- for (var i = 0; i < newInputs.length; i++) {
51205
- if (!memoize_one_esm_isEqual(newInputs[i], lastInputs[i])) {
51206
- return false;
51207
- }
51208
- }
51209
- return true;
51210
- }
51211
- function memoizeOne(resultFn, isEqual) {
51212
- if (isEqual === void 0) {
51213
- isEqual = areInputsEqual;
51214
- }
51215
- var lastThis;
51216
- var lastArgs = [];
51217
- var lastResult;
51218
- var calledOnce = false;
51219
- function memoized() {
51220
- var newArgs = [];
51221
- for (var _i = 0; _i < arguments.length; _i++) {
51222
- newArgs[_i] = arguments[_i];
51223
- }
51224
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
51225
- return lastResult;
51226
- }
51227
- lastResult = resultFn.apply(this, newArgs);
51228
- calledOnce = true;
51229
- lastThis = this;
51230
- lastArgs = newArgs;
51231
- return lastResult;
51232
- }
51233
- return memoized;
51234
- }
51235
- /* harmony default export */ var memoize_one_esm = (memoizeOne);
51236
- ;// CONCATENATED MODULE: ./node_modules/@qixian.cs/path-to-regexp/dist.es2015/index.js
51237
- /**
51238
- * Tokenize input string.
51239
- */
51240
- function lexer(str) {
51241
- var tokens = [];
51242
- var i = 0;
51243
- while (i < str.length) {
51244
- var char = str[i];
51245
- if (char === "*" || char === "+" || char === "?") {
51246
- tokens.push({
51247
- type: "MODIFIER",
51248
- index: i,
51249
- value: str[i++]
51250
- });
51251
- continue;
51252
- }
51253
- if (char === "\\") {
51254
- tokens.push({
51255
- type: "ESCAPED_CHAR",
51256
- index: i++,
51257
- value: str[i++]
51258
- });
51259
- continue;
51260
- }
51261
- if (char === "{") {
51262
- tokens.push({
51263
- type: "OPEN",
51264
- index: i,
51265
- value: str[i++]
51266
- });
51267
- continue;
51268
- }
51269
- if (char === "}") {
51270
- tokens.push({
51271
- type: "CLOSE",
51272
- index: i,
51273
- value: str[i++]
51274
- });
51275
- continue;
51276
- }
51277
- if (char === ":") {
51278
- var name = "";
51279
- var j = i + 1;
51280
- while (j < str.length) {
51281
- var code = str.charCodeAt(j);
51282
- if (
51283
- // `0-9`
51284
- code >= 48 && code <= 57 ||
51285
- // `A-Z`
51286
- code >= 65 && code <= 90 ||
51287
- // `a-z`
51288
- code >= 97 && code <= 122 ||
51289
- // `_`
51290
- code === 95) {
51291
- name += str[j++];
51292
- continue;
51293
- }
51294
- break;
51295
- }
51296
- if (!name) throw new TypeError("Missing parameter name at " + i);
51297
- tokens.push({
51298
- type: "NAME",
51299
- index: i,
51300
- value: name
51301
- });
51302
- i = j;
51303
- continue;
51304
- }
51305
- if (char === "(") {
51306
- var count = 1;
51307
- var pattern = "";
51308
- var j = i + 1;
51309
- if (str[j] === "?") {
51310
- throw new TypeError("Pattern cannot start with \"?\" at " + j);
51311
- }
51312
- while (j < str.length) {
51313
- if (str[j] === "\\") {
51314
- pattern += str[j++] + str[j++];
51315
- continue;
51316
- }
51317
- if (str[j] === ")") {
51318
- count--;
51319
- if (count === 0) {
51320
- j++;
51321
- break;
51322
- }
51323
- } else if (str[j] === "(") {
51324
- count++;
51325
- if (str[j + 1] !== "?") {
51326
- throw new TypeError("Capturing groups are not allowed at " + j);
51327
- }
51328
- }
51329
- pattern += str[j++];
51330
- }
51331
- if (count) throw new TypeError("Unbalanced pattern at " + i);
51332
- if (!pattern) throw new TypeError("Missing pattern at " + i);
51333
- tokens.push({
51334
- type: "PATTERN",
51335
- index: i,
51336
- value: pattern
51337
- });
51338
- i = j;
51339
- continue;
51340
- }
51341
- tokens.push({
51342
- type: "CHAR",
51343
- index: i,
51344
- value: str[i++]
51345
- });
51346
- }
51347
- tokens.push({
51348
- type: "END",
51349
- index: i,
51350
- value: ""
51351
- });
51352
- return tokens;
51353
- }
51354
- /**
51355
- * Parse a string for the raw tokens.
51356
- */
51357
- function dist_es2015_parse(str, options) {
51358
- if (options === void 0) {
51359
- options = {};
51360
- }
51361
- var tokens = lexer(str);
51362
- var _a = options.prefixes,
51363
- prefixes = _a === void 0 ? "./" : _a;
51364
- var defaultPattern = "[^" + escapeString(options.delimiter || "/#?") + "]+?";
51365
- var result = [];
51366
- var key = 0;
51367
- var i = 0;
51368
- var path = "";
51369
- var tryConsume = function tryConsume(type) {
51370
- if (i < tokens.length && tokens[i].type === type) return tokens[i++].value;
51371
- };
51372
- var mustConsume = function mustConsume(type) {
51373
- var value = tryConsume(type);
51374
- if (value !== undefined) return value;
51375
- var _a = tokens[i],
51376
- nextType = _a.type,
51377
- index = _a.index;
51378
- throw new TypeError("Unexpected " + nextType + " at " + index + ", expected " + type);
51379
- };
51380
- var consumeText = function consumeText() {
51381
- var result = "";
51382
- var value;
51383
- // tslint:disable-next-line
51384
- while (value = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) {
51385
- result += value;
51386
- }
51387
- return result;
51388
- };
51389
- while (i < tokens.length) {
51390
- var char = tryConsume("CHAR");
51391
- var name = tryConsume("NAME");
51392
- var pattern = tryConsume("PATTERN");
51393
- if (name || pattern) {
51394
- var prefix = char || "";
51395
- if (prefixes.indexOf(prefix) === -1) {
51396
- path += prefix;
51397
- prefix = "";
51398
- }
51399
- if (path) {
51400
- result.push(path);
51401
- path = "";
51402
- }
51403
- result.push({
51404
- name: name || key++,
51405
- prefix: prefix,
51406
- suffix: "",
51407
- pattern: pattern || defaultPattern,
51408
- modifier: tryConsume("MODIFIER") || ""
51409
- });
51410
- continue;
51411
- }
51412
- var value = char || tryConsume("ESCAPED_CHAR");
51413
- if (value) {
51414
- path += value;
51415
- continue;
51416
- }
51417
- if (path) {
51418
- result.push(path);
51419
- path = "";
51420
- }
51421
- var open = tryConsume("OPEN");
51422
- if (open) {
51423
- var prefix = consumeText();
51424
- var name_1 = tryConsume("NAME") || "";
51425
- var pattern_1 = tryConsume("PATTERN") || "";
51426
- var suffix = consumeText();
51427
- mustConsume("CLOSE");
51428
- result.push({
51429
- name: name_1 || (pattern_1 ? key++ : ""),
51430
- pattern: name_1 && !pattern_1 ? defaultPattern : pattern_1,
51431
- prefix: prefix,
51432
- suffix: suffix,
51433
- modifier: tryConsume("MODIFIER") || ""
51434
- });
51435
- continue;
51436
- }
51437
- mustConsume("END");
51438
- }
51439
- return result;
51440
- }
51441
- /**
51442
- * Compile a string to a template function for the path.
51443
- */
51444
- function dist_es2015_compile(str, options) {
51445
- return tokensToFunction(dist_es2015_parse(str, options), options);
51446
- }
51447
- /**
51448
- * Expose a method for transforming tokens into the path function.
51449
- */
51450
- function tokensToFunction(tokens, options) {
51451
- if (options === void 0) {
51452
- options = {};
51453
- }
51454
- var reFlags = flags(options);
51455
- var _a = options.encode,
51456
- encode = _a === void 0 ? function (x) {
51457
- return x;
51458
- } : _a,
51459
- _b = options.validate,
51460
- validate = _b === void 0 ? true : _b;
51461
- // Compile all the tokens into regexps.
51462
- var matches = tokens.map(function (token) {
51463
- if (typeof token === "object") {
51464
- return new RegExp("^(?:" + token.pattern + ")$", reFlags);
51465
- }
51466
- });
51467
- return function (data) {
51468
- var path = "";
51469
- for (var i = 0; i < tokens.length; i++) {
51470
- var token = tokens[i];
51471
- if (typeof token === "string") {
51472
- path += token;
51473
- continue;
51474
- }
51475
- var value = data ? data[token.name] : undefined;
51476
- var optional = token.modifier === "?" || token.modifier === "*";
51477
- var repeat = token.modifier === "*" || token.modifier === "+";
51478
- if (Array.isArray(value)) {
51479
- if (!repeat) {
51480
- throw new TypeError("Expected \"" + token.name + "\" to not repeat, but got an array");
51481
- }
51482
- if (value.length === 0) {
51483
- if (optional) continue;
51484
- throw new TypeError("Expected \"" + token.name + "\" to not be empty");
51485
- }
51486
- for (var j = 0; j < value.length; j++) {
51487
- var segment = encode(value[j], token);
51488
- if (validate && !matches[i].test(segment)) {
51489
- throw new TypeError("Expected all \"" + token.name + "\" to match \"" + token.pattern + "\", but got \"" + segment + "\"");
51490
- }
51491
- path += token.prefix + segment + token.suffix;
51492
- }
51493
- continue;
51494
- }
51495
- if (typeof value === "string" || typeof value === "number") {
51496
- var segment = encode(String(value), token);
51497
- if (validate && !matches[i].test(segment)) {
51498
- throw new TypeError("Expected \"" + token.name + "\" to match \"" + token.pattern + "\", but got \"" + segment + "\"");
51499
- }
51500
- path += token.prefix + segment + token.suffix;
51501
- continue;
51502
- }
51503
- if (optional) continue;
51504
- var typeOfMessage = repeat ? "an array" : "a string";
51505
- throw new TypeError("Expected \"" + token.name + "\" to be " + typeOfMessage);
51506
- }
51507
- return path;
51508
- };
51509
- }
51510
- /**
51511
- * Create path match function from `path-to-regexp` spec.
51512
- */
51513
- function dist_es2015_match(str, options) {
51514
- var keys = [];
51515
- var re = pathToRegexp(str, keys, options);
51516
- return regexpToFunction(re, keys, options);
51517
- }
51518
- /**
51519
- * Create a path match function from `path-to-regexp` output.
51520
- */
51521
- function regexpToFunction(re, keys, options) {
51522
- if (options === void 0) {
51523
- options = {};
51524
- }
51525
- var _a = options.decode,
51526
- decode = _a === void 0 ? function (x) {
51527
- return x;
51528
- } : _a;
51529
- return function (pathname) {
51530
- var m = re.exec(pathname);
51531
- if (!m) return false;
51532
- var path = m[0],
51533
- index = m.index;
51534
- var params = Object.create(null);
51535
- var _loop_1 = function _loop_1(i) {
51536
- // tslint:disable-next-line
51537
- if (m[i] === undefined) return "continue";
51538
- var key = keys[i - 1];
51539
- if (key.modifier === "*" || key.modifier === "+") {
51540
- params[key.name] = m[i].split(key.prefix + key.suffix).map(function (value) {
51541
- return decode(value, key);
51542
- });
51543
- } else {
51544
- params[key.name] = decode(m[i], key);
51545
- }
51546
- };
51547
- for (var i = 1; i < m.length; i++) {
51548
- _loop_1(i);
51549
- }
51550
- return {
51551
- path: path,
51552
- index: index,
51553
- params: params
51554
- };
51555
- };
51556
- }
51557
- /**
51558
- * Escape a regular expression string.
51559
- */
51560
- function escapeString(str) {
51561
- return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
51562
- }
51563
- /**
51564
- * Get the flags for a regexp from the options.
51565
- */
51566
- function flags(options) {
51567
- return options && options.sensitive ? "" : "i";
51568
- }
51569
- /**
51570
- * Pull out keys from a regexp.
51571
- */
51572
- function regexpToRegexp(path, keys) {
51573
- if (!keys) return path;
51574
- // Use a negative lookahead to match only capturing groups.
51575
- var groups = path.source.match(/\((?!\?)/g);
51576
- if (groups) {
51577
- for (var i = 0; i < groups.length; i++) {
51578
- keys.push({
51579
- name: i,
51580
- prefix: "",
51581
- suffix: "",
51582
- modifier: "",
51583
- pattern: ""
51584
- });
51585
- }
51586
- }
51587
- return path;
51588
- }
51589
- /**
51590
- * Transform an array into a regexp.
51591
- */
51592
- function arrayToRegexp(paths, keys, options) {
51593
- var parts = paths.map(function (path) {
51594
- return pathToRegexp(path, keys, options).source;
51595
- });
51596
- return new RegExp("(?:" + parts.join("|") + ")", flags(options));
51597
- }
51598
- /**
51599
- * Create a path regexp from string input.
51600
- */
51601
- function stringToRegexp(path, keys, options) {
51602
- return tokensToRegexp(dist_es2015_parse(path, options), keys, options);
51603
- }
51604
- /**
51605
- * Expose a function for taking tokens and returning a RegExp.
51606
- */
51607
- function tokensToRegexp(tokens, keys, options) {
51608
- if (options === void 0) {
51609
- options = {};
51610
- }
51611
- var _a = options.strict,
51612
- strict = _a === void 0 ? false : _a,
51613
- _b = options.start,
51614
- start = _b === void 0 ? true : _b,
51615
- _c = options.end,
51616
- end = _c === void 0 ? true : _c,
51617
- _d = options.encode,
51618
- encode = _d === void 0 ? function (x) {
51619
- return x;
51620
- } : _d;
51621
- var endsWith = "[" + escapeString(options.endsWith || "") + "]|$";
51622
- var delimiter = "[" + escapeString(options.delimiter || "/#?") + "]";
51623
- var route = start ? "^" : "";
51624
- // Iterate over the tokens and create our regexp string.
51625
- for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
51626
- var token = tokens_1[_i];
51627
- if (typeof token === "string") {
51628
- route += escapeString(encode(token));
51629
- } else {
51630
- var prefix = escapeString(encode(token.prefix));
51631
- var suffix = escapeString(encode(token.suffix));
51632
- if (token.pattern) {
51633
- if (keys) keys.push(token);
51634
- if (prefix || suffix) {
51635
- if (token.modifier === "+" || token.modifier === "*") {
51636
- var mod = token.modifier === "*" ? "?" : "";
51637
- route += "(?:" + prefix + "((?:" + token.pattern + ")(?:" + suffix + prefix + "(?:" + token.pattern + "))*)" + suffix + ")" + mod;
51638
- } else {
51639
- route += "(?:" + prefix + "(" + token.pattern + ")" + suffix + ")" + token.modifier;
51640
- }
51641
- } else {
51642
- route += "(" + token.pattern + ")" + token.modifier;
51643
- }
51644
- } else {
51645
- route += "(?:" + prefix + suffix + ")" + token.modifier;
51646
- }
51647
- }
51648
- }
51649
- if (end) {
51650
- if (!strict) route += delimiter + "?";
51651
- route += !options.endsWith ? "$" : "(?=" + endsWith + ")";
51652
- } else {
51653
- var endToken = tokens[tokens.length - 1];
51654
- var isEndDelimited = typeof endToken === "string" ? delimiter.indexOf(endToken[endToken.length - 1]) > -1 :
51655
- // tslint:disable-next-line
51656
- endToken === undefined;
51657
- if (!strict) {
51658
- route += "(?:" + delimiter + "(?=" + endsWith + "))?";
51659
- }
51660
- if (!isEndDelimited) {
51661
- route += "(?=" + delimiter + "|" + endsWith + ")";
51662
- }
51663
- }
51664
- return new RegExp(route, flags(options));
51665
- }
51666
- /**
51667
- * Normalize the given path string, returning a regular expression.
51668
- *
51669
- * An empty array can be passed in for the keys, which will hold the
51670
- * placeholder key descriptions. For example, using `/user/:id`, `keys` will
51671
- * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
51672
- */
51673
- function pathToRegexp(path, keys, options) {
51674
- if (path instanceof RegExp) return regexpToRegexp(path, keys);
51675
- if (Array.isArray(path)) return arrayToRegexp(path, keys, options);
51676
- return stringToRegexp(path, keys, options);
51677
- }
51489
+ // EXTERNAL MODULE: ./node_modules/@umijs/route-utils/es/path-to-regexp.js
51490
+ var es_path_to_regexp = __webpack_require__(1880);
51678
51491
  ;// CONCATENATED MODULE: ./node_modules/@umijs/route-utils/es/sha265.js
51679
51492
  /* eslint-disable no-redeclare */
51680
51493
 
@@ -52263,7 +52076,7 @@ function transformRoute_defineProperty(obj, key, value) {
52263
52076
  return obj;
52264
52077
  }
52265
52078
 
52266
-
52079
+ //@ts-ignore
52267
52080
 
52268
52081
 
52269
52082
  var childrenPropsName = 'routes';
@@ -52336,7 +52149,7 @@ var bigfishCompatibleConversions = function bigfishCompatibleConversions(route,
52336
52149
  indexRoute = route.indexRoute,
52337
52150
  _route$path = route.path,
52338
52151
  path = _route$path === void 0 ? '' : _route$path;
52339
- var routerChildren = route.children || route[childrenPropsName];
52152
+ var routerChildren = route.children || [];
52340
52153
  var _menu$name = menu.name,
52341
52154
  name = _menu$name === void 0 ? route.name : _menu$name,
52342
52155
  _menu$icon = menu.icon,
@@ -52364,7 +52177,6 @@ var bigfishCompatibleConversions = function bigfishCompatibleConversions(route,
52364
52177
  if (childrenList && childrenList.length) {
52365
52178
  /** 在菜单中隐藏子项 */
52366
52179
  if (hideChildren) {
52367
- delete result[childrenPropsName];
52368
52180
  delete result.children;
52369
52181
  return result;
52370
52182
  } // 需要重新进行一次
@@ -52377,7 +52189,7 @@ var bigfishCompatibleConversions = function bigfishCompatibleConversions(route,
52377
52189
  if (flatMenu) {
52378
52190
  return finalChildren;
52379
52191
  }
52380
- result[childrenPropsName] = finalChildren;
52192
+ delete result[childrenPropsName];
52381
52193
  }
52382
52194
  return result;
52383
52195
  };
@@ -52403,7 +52215,6 @@ function formatter(props) {
52403
52215
  }
52404
52216
  return data.filter(function (item) {
52405
52217
  if (!item) return false;
52406
- if (notNullArray(item[childrenPropsName])) return true;
52407
52218
  if (notNullArray(item.children)) return true;
52408
52219
  if (item.path) return true;
52409
52220
  if (item.originPath) return true;
@@ -52424,7 +52235,13 @@ function formatter(props) {
52424
52235
  }
52425
52236
  return true;
52426
52237
  }).map(function (finallyItem) {
52427
- var item = transformRoute_objectSpread({}, finallyItem); // 是否没有权限查看
52238
+ var item = transformRoute_objectSpread(transformRoute_objectSpread({}, finallyItem), {}, {
52239
+ path: finallyItem.path || finallyItem.originPath
52240
+ });
52241
+ if (!item.children && item[childrenPropsName]) {
52242
+ item.children = item[childrenPropsName];
52243
+ delete item[childrenPropsName];
52244
+ } // 是否没有权限查看
52428
52245
  // 这样就不会显示,是一个兼容性的方式
52429
52246
 
52430
52247
  if (item.unaccessible) {
@@ -52445,7 +52262,7 @@ function formatter(props) {
52445
52262
  var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
52446
52263
  path: '/'
52447
52264
  };
52448
- var routerChildren = item.children || item[childrenPropsName];
52265
+ var routerChildren = item.children || item[childrenPropsName] || [];
52449
52266
  var path = mergePath(item.path, parent ? parent.path : '/');
52450
52267
  var name = item.name;
52451
52268
  var locale = getItemLocaleName(item, parentName || 'menu'); // if enableMenuLocale use item.name,
@@ -52493,14 +52310,12 @@ function formatter(props) {
52493
52310
  parentName: locale || ''
52494
52311
  }), finallyItem);
52495
52312
  if (notNullArray(formatterChildren)) {
52496
- finallyItem[childrenPropsName] = formatterChildren;
52497
52313
  finallyItem.children = formatterChildren;
52498
52314
  }
52499
52315
  }
52500
52316
  return bigfishCompatibleConversions(finallyItem, props);
52501
52317
  }).flat(1);
52502
52318
  }
52503
- var memoizeOneFormatter = memoize_one_esm(formatter, react/* default */.Z);
52504
52319
  /**
52505
52320
  * 删除 hideInMenu 和 item.name 不存在的
52506
52321
  */
@@ -52508,19 +52323,20 @@ var memoizeOneFormatter = memoize_one_esm(formatter, react/* default */.Z);
52508
52323
  var defaultFilterMenuData = function defaultFilterMenuData() {
52509
52324
  var menuData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
52510
52325
  return menuData.filter(function (item) {
52511
- return item && (item.name || notNullArray(item[childrenPropsName]) || notNullArray(item.children)) && !item.hideInMenu && !item.redirect;
52326
+ return item && (item.name || notNullArray(item.children)) && !item.hideInMenu && !item.redirect;
52512
52327
  }).map(function (item) {
52513
52328
  var newItem = transformRoute_objectSpread({}, item);
52514
- var routerChildren = newItem.children || newItem[childrenPropsName]; // 兼容一下使用了 children 的旧版,有空删除一下
52515
-
52329
+ var routerChildren = newItem.children || item[childrenPropsName] || [];
52330
+ delete newItem[childrenPropsName];
52516
52331
  if (notNullArray(routerChildren) && !newItem.hideChildrenInMenu && routerChildren.some(function (child) {
52517
52332
  return child && !!child.name;
52518
52333
  })) {
52519
- var _objectSpread2;
52520
52334
  var newChildren = defaultFilterMenuData(routerChildren);
52521
- if (newChildren.length) return transformRoute_objectSpread(transformRoute_objectSpread({}, newItem), {}, (_objectSpread2 = {}, transformRoute_defineProperty(_objectSpread2, childrenPropsName, newChildren), transformRoute_defineProperty(_objectSpread2, "children", newChildren), _objectSpread2));
52335
+ if (newChildren.length) return transformRoute_objectSpread(transformRoute_objectSpread({}, newItem), {}, {
52336
+ children: newChildren
52337
+ });
52522
52338
  }
52523
- return transformRoute_objectSpread(transformRoute_objectSpread({}, item), {}, transformRoute_defineProperty({}, childrenPropsName, undefined));
52339
+ return transformRoute_objectSpread({}, item);
52524
52340
  }).filter(function (item) {
52525
52341
  return item;
52526
52342
  });
@@ -52550,7 +52366,7 @@ var RouteListMap = /*#__PURE__*/function (_Map) {
52550
52366
  key = _step$value[0],
52551
52367
  value = _step$value[1];
52552
52368
  var path = stripQueryStringAndHashFromPath(key);
52553
- if (!transformRoute_isUrl(key) && pathToRegexp(path, []).test(pathname)) {
52369
+ if (!transformRoute_isUrl(key) && (0,es_path_to_regexp/* pathToRegexp */.Bo)(path, []).test(pathname)) {
52554
52370
  routeValue = value;
52555
52371
  break;
52556
52372
  }
@@ -52578,7 +52394,7 @@ var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
52578
52394
  var routerMap = new RouteListMap();
52579
52395
  var flattenMenuData = function flattenMenuData(data, parent) {
52580
52396
  data.forEach(function (menuItem) {
52581
- var routerChildren = menuItem.children || menuItem[childrenPropsName];
52397
+ var routerChildren = menuItem.children || menuItem[childrenPropsName] || [];
52582
52398
  if (notNullArray(routerChildren)) {
52583
52399
  flattenMenuData(routerChildren, menuItem);
52584
52400
  } // Reduce memory usage
@@ -52590,14 +52406,13 @@ var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
52590
52406
  flattenMenuData(menuData);
52591
52407
  return routerMap;
52592
52408
  };
52593
- var memoizeOneGetBreadcrumbNameMap = memoize_one_esm(getBreadcrumbNameMap, react/* default */.Z);
52594
52409
  var clearChildren = function clearChildren() {
52595
52410
  var menuData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
52596
52411
  return menuData.map(function (item) {
52597
52412
  var routerChildren = item.children || item[childrenPropsName];
52598
52413
  if (notNullArray(routerChildren)) {
52599
52414
  var newChildren = clearChildren(routerChildren);
52600
- if (newChildren.length) return transformRoute_objectSpread(transformRoute_objectSpread({}, item), {}, transformRoute_defineProperty({}, childrenPropsName, newChildren));
52415
+ if (newChildren.length) return transformRoute_objectSpread({}, item);
52601
52416
  }
52602
52417
  var finallyItem = transformRoute_objectSpread({}, item);
52603
52418
  delete finallyItem[childrenPropsName];
@@ -52616,14 +52431,14 @@ var clearChildren = function clearChildren() {
52616
52431
  */
52617
52432
 
52618
52433
  var transformRoute = function transformRoute(routeList, locale, formatMessage, ignoreFilter) {
52619
- var originalMenuData = memoizeOneFormatter({
52434
+ var originalMenuData = formatter({
52620
52435
  data: routeList,
52621
52436
  formatMessage: formatMessage,
52622
52437
  locale: locale
52623
52438
  });
52624
52439
  var menuData = ignoreFilter ? clearChildren(originalMenuData) : defaultFilterMenuData(originalMenuData); // Map type used for internal logic
52625
52440
 
52626
- var breadcrumb = memoizeOneGetBreadcrumbNameMap(originalMenuData);
52441
+ var breadcrumb = getBreadcrumbNameMap(originalMenuData);
52627
52442
  return {
52628
52443
  breadcrumb: breadcrumb,
52629
52444
  menuData: menuData
@@ -52675,11 +52490,16 @@ function getFlatMenus_defineProperty(obj, key, value) {
52675
52490
  var getFlatMenus = function getFlatMenus() {
52676
52491
  var menuData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
52677
52492
  var menus = {};
52678
- menuData.forEach(function (item) {
52493
+ menuData.forEach(function (mapItem) {
52494
+ var item = getFlatMenus_objectSpread({}, mapItem);
52679
52495
  if (!item || !item.key) {
52680
52496
  return;
52681
52497
  }
52682
- var routerChildren = item.children || item[childrenPropsName];
52498
+ if (!item.children && item[childrenPropsName]) {
52499
+ item.children = item[childrenPropsName];
52500
+ delete item[childrenPropsName];
52501
+ }
52502
+ var routerChildren = item.children || [];
52683
52503
  menus[stripQueryStringAndHashFromPath(item.path || item.key || '/')] = getFlatMenus_objectSpread({}, item);
52684
52504
  menus[item.key || item.path || '/'] = getFlatMenus_objectSpread({}, item);
52685
52505
  if (routerChildren) {
@@ -52690,6 +52510,7 @@ var getFlatMenus = function getFlatMenus() {
52690
52510
  };
52691
52511
  /* harmony default export */ var getFlatMenus_getFlatMenus = (getFlatMenus);
52692
52512
  ;// CONCATENATED MODULE: ./node_modules/@umijs/route-utils/es/getMatchMenu/getMatchMenu.js
52513
+ //@ts-ignore
52693
52514
 
52694
52515
 
52695
52516
 
@@ -52706,16 +52527,16 @@ var getMenuMatches = function getMenuMatches() {
52706
52527
  try {
52707
52528
  // exact
52708
52529
  if (exact) {
52709
- if (pathToRegexp("".concat(pathKey)).test(path)) {
52530
+ if ((0,es_path_to_regexp/* pathToRegexp */.Bo)("".concat(pathKey)).test(path)) {
52710
52531
  return true;
52711
52532
  }
52712
52533
  } // /a
52713
52534
 
52714
- if (pathToRegexp("".concat(pathKey), []).test(path)) {
52535
+ if ((0,es_path_to_regexp/* pathToRegexp */.Bo)("".concat(pathKey), []).test(path)) {
52715
52536
  return true;
52716
52537
  } // /a/b/b
52717
52538
 
52718
- if (pathToRegexp("".concat(pathKey, "/(.*)")).test(path)) {
52539
+ if ((0,es_path_to_regexp/* pathToRegexp */.Bo)("".concat(pathKey, "/(.*)")).test(path)) {
52719
52540
  return true;
52720
52541
  }
52721
52542
  } catch (error) {// console.log(error, path);
@@ -54010,6 +53831,7 @@ var ProLayout_ProLayout = function ProLayout(props) {
54010
53831
  autoClearCache: true
54011
53832
  }, darkProps), {}, {
54012
53833
  token: props.token,
53834
+ prefixCls: props.prefixCls,
54013
53835
  children: (0,jsx_runtime.jsx)(BaseProLayout, objectSpread2_objectSpread2({}, props))
54014
53836
  }))
54015
53837
  });
@@ -54033,6 +53855,7 @@ var ProLayout_ProLayout = function ProLayout(props) {
54033
53855
 
54034
53856
 
54035
53857
 
53858
+
54036
53859
  //----------------------
54037
53860
 
54038
53861
 
@@ -60577,8 +60400,24 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
60577
60400
  }
60578
60401
  return _arr;
60579
60402
  }
60580
- // EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js + 1 modules
60581
- var unsupportedIterableToArray = __webpack_require__(5943);
60403
+ ;// CONCATENATED MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
60404
+ function arrayLikeToArray_arrayLikeToArray(arr, len) {
60405
+ if (len == null || len > arr.length) len = arr.length;
60406
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
60407
+ arr2[i] = arr[i];
60408
+ }
60409
+ return arr2;
60410
+ }
60411
+ ;// CONCATENATED MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
60412
+
60413
+ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
60414
+ if (!o) return;
60415
+ if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
60416
+ var n = Object.prototype.toString.call(o).slice(8, -1);
60417
+ if (n === "Object" && o.constructor) n = o.constructor.name;
60418
+ if (n === "Map" || n === "Set") return Array.from(o);
60419
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
60420
+ }
60582
60421
  ;// CONCATENATED MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
60583
60422
  function nonIterableRest_nonIterableRest() {
60584
60423
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -60589,7 +60428,7 @@ function nonIterableRest_nonIterableRest() {
60589
60428
 
60590
60429
 
60591
60430
  function esm_slicedToArray_slicedToArray(arr, i) {
60592
- return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || (0,unsupportedIterableToArray/* default */.Z)(arr, i) || nonIterableRest_nonIterableRest();
60431
+ return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
60593
60432
  }
60594
60433
  ;// CONCATENATED MODULE: ./node_modules/antd/es/_util/extendsObject.js
60595
60434
  function extendsObject() {
@@ -60710,7 +60549,7 @@ function iterableToArray_iterableToArray(iter) {
60710
60549
 
60711
60550
 
60712
60551
  function esm_toArray_toArray(arr) {
60713
- return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || (0,unsupportedIterableToArray/* default */.Z)(arr) || nonIterableRest_nonIterableRest();
60552
+ return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
60714
60553
  }
60715
60554
  ;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/isVisible.js
60716
60555
  /* harmony default export */ var Dom_isVisible = (function (element) {
@@ -80675,15 +80514,15 @@ function ProList(props) {
80675
80514
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
80676
80515
  var version_version = {
80677
80516
  "@ant-design/pro-card": "2.1.8",
80678
- "@ant-design/pro-components": "2.3.49",
80679
- "@ant-design/pro-descriptions": "2.0.41",
80680
- "@ant-design/pro-field": "2.2.2",
80681
- "@ant-design/pro-form": "2.5.1",
80682
- "@ant-design/pro-layout": "7.5.1",
80683
- "@ant-design/pro-list": "2.0.42",
80517
+ "@ant-design/pro-components": "2.3.50",
80518
+ "@ant-design/pro-descriptions": "2.0.42",
80519
+ "@ant-design/pro-field": "2.2.3",
80520
+ "@ant-design/pro-form": "2.5.2",
80521
+ "@ant-design/pro-layout": "7.5.2",
80522
+ "@ant-design/pro-list": "2.0.43",
80684
80523
  "@ant-design/pro-provider": "2.3.1",
80685
80524
  "@ant-design/pro-skeleton": "2.0.7",
80686
- "@ant-design/pro-table": "3.2.9",
80525
+ "@ant-design/pro-table": "3.2.10",
80687
80526
  "@ant-design/pro-utils": "2.5.2"
80688
80527
  };
80689
80528
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx