You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/20455.40d7daa9.async.js

10133 lines
341 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self["webpackChunk"] = self["webpackChunk"] || []).push([[20455],{
/***/ 29528:
/*!************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/BaseForm/BaseForm.js + 5 modules ***!
\************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
I: function() { return /* binding */ BaseForm; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(54099);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(24018);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(81162);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(80152);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(5686);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(63011);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/index.js + 2 modules
var es = __webpack_require__(83410);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/runFunction/index.js
var runFunction = __webpack_require__(22102);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/hooks/useRefFunction/index.js
var useRefFunction = __webpack_require__(40274);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/hooks/usePrevious/index.js
var usePrevious = function usePrevious(state) {
var ref = (0,_react_17_0_2_react.useRef)();
(0,_react_17_0_2_react.useEffect)(function () {
ref.current = state;
});
return ref.current;
};
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/isDeepEqualReact/index.js + 1 modules
var isDeepEqualReact = __webpack_require__(14952);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/components/ProFormContext/index.js
var ProFormContext = __webpack_require__(14451);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(71366);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/nanoid/index.js
var nanoid = __webpack_require__(55214);
// EXTERNAL MODULE: ./node_modules/_swr@2.2.5@swr/dist/core/index.mjs + 1 modules
var core = __webpack_require__(79074);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/hooks/useFetchData/index.js
var testId = 0;
function useFetchData(props) {
var abortRef = (0,_react_17_0_2_react.useRef)(null);
/** Key 是用来缓存请求的,如果不在是有问题 */
var _useState = (0,_react_17_0_2_react.useState)(function () {
if (props.proFieldKey) {
return props.proFieldKey.toString();
}
testId += 1;
return testId.toString();
}),
_useState2 = (0,slicedToArray/* default */.Z)(_useState, 1),
cacheKey = _useState2[0];
var proFieldKeyRef = (0,_react_17_0_2_react.useRef)(cacheKey);
var fetchData = /*#__PURE__*/function () {
var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
var _abortRef$current, _props$request;
var abort, loadData;
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
(_abortRef$current = abortRef.current) === null || _abortRef$current === void 0 || _abortRef$current.abort();
abort = new AbortController();
abortRef.current = abort;
_context.next = 5;
return Promise.race([(_props$request = props.request) === null || _props$request === void 0 ? void 0 : _props$request.call(props, props.params, props), new Promise(function (_, reject) {
var _abortRef$current2;
(_abortRef$current2 = abortRef.current) === null || _abortRef$current2 === void 0 || (_abortRef$current2 = _abortRef$current2.signal) === null || _abortRef$current2 === void 0 || _abortRef$current2.addEventListener('abort', function () {
reject(new Error('aborted'));
});
})]);
case 5:
loadData = _context.sent;
return _context.abrupt("return", loadData);
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return function fetchData() {
return _ref.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
return function () {
testId += 1;
};
}, []);
var _useSWR = (0,core/* default */.ZP)([proFieldKeyRef.current, props.params], fetchData, {
revalidateOnFocus: false,
shouldRetryOnError: false,
revalidateOnReconnect: false
}),
data = _useSWR.data,
error = _useSWR.error;
return [data || error];
}
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/useStyle/index.js
var useStyle = __webpack_require__(75898);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(61414);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(80017);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/merge.js + 11 modules
var merge = __webpack_require__(24230);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/utils/get.js
var get = __webpack_require__(90996);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/utils/set.js
var set = __webpack_require__(74136);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/isNil/index.js
var isNil = __webpack_require__(3214);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/merge/index.js
var es_merge = __webpack_require__(99969);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/transformKeySubmitValue/index.js
/**
* 暂时还不支持 Set和 Map 结构 判断是不是一个能遍历的对象
*
* @param itemValue
* @returns Boolean
*/
function isPlainObj(itemValue) {
if ((0,esm_typeof/* default */.Z)(itemValue) !== 'object') return false;
/** Null 也要处理不然omit空会失效 */
if (itemValue === null) return true;
if ( /*#__PURE__*/_react_17_0_2_react.isValidElement(itemValue)) return false;
if (itemValue.constructor === RegExp) return false;
if (itemValue instanceof Map) return false;
if (itemValue instanceof Set) return false;
if (itemValue instanceof HTMLElement) return false;
if (itemValue instanceof Blob) return false;
if (itemValue instanceof File) return false;
if (Array.isArray(itemValue)) return false;
return true;
}
var transformKeySubmitValue = function transformKeySubmitValue(values, dataFormatMapRaw) {
var omit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
// ignore nil transform
var dataFormatMap = Object.keys(dataFormatMapRaw).reduce(function (ret, key) {
var value = dataFormatMapRaw[key];
if (!(0,isNil/* isNil */.k)(value)) {
// eslint-disable-next-line no-param-reassign
ret[key] = value; // can't be undefined
}
return ret;
}, {});
if (Object.keys(dataFormatMap).length < 1) {
return values;
}
if (typeof window === 'undefined') return values;
// 如果 value 是 string | null | Array | Blob类型 其中之一,直接返回
// 形如 {key: [File, File]} 的表单字段当进行第二次递归时会导致其直接越过 typeof value !== 'object' 这一判断 https://github.com/ant-design/pro-components/issues/2071
if ((0,esm_typeof/* default */.Z)(values) !== 'object' || (0,isNil/* isNil */.k)(values) || values instanceof Blob) {
return values;
}
var finalValues = Array.isArray(values) ? [] : {};
var gen = function gen(tempValues, parentsKey) {
var isArrayValues = Array.isArray(tempValues);
var result = isArrayValues ? [] : {};
if (tempValues == null || tempValues === undefined) {
return result;
}
Object.keys(tempValues).forEach(function (entityKey) {
var transformForArray = function transformForArray(transformList, subItemValue) {
if (!Array.isArray(transformList)) return entityKey;
transformList.forEach(function (transform, idx) {
// 如果不存在直接返回
if (!transform) return;
var subTransformItem = subItemValue === null || subItemValue === void 0 ? void 0 : subItemValue[idx];
// 如果是个方法把key设置为方法的返回值
if (typeof transform === 'function') {
subItemValue[idx] = transform(subItemValue, entityKey, tempValues);
}
if ((0,esm_typeof/* default */.Z)(transform) === 'object' && !Array.isArray(transform)) {
Object.keys(transform).forEach(function (transformArrayItem) {
var subTransformItemValue = subTransformItem === null || subTransformItem === void 0 ? void 0 : subTransformItem[transformArrayItem];
if (typeof transform[transformArrayItem] === 'function' && subTransformItemValue) {
var res = transform[transformArrayItem](subTransformItem[transformArrayItem], entityKey, tempValues);
subTransformItem[transformArrayItem] = (0,esm_typeof/* default */.Z)(res) === 'object' ? res[transformArrayItem] : res;
} else if ((0,esm_typeof/* default */.Z)(transform[transformArrayItem]) === 'object' && Array.isArray(transform[transformArrayItem]) && subTransformItemValue) {
transformForArray(transform[transformArrayItem], subTransformItemValue);
}
});
}
if ((0,esm_typeof/* default */.Z)(transform) === 'object' && Array.isArray(transform) && subTransformItem) {
transformForArray(transform, subTransformItem);
}
});
return entityKey;
};
var key = parentsKey ? [parentsKey, entityKey].flat(1) : [entityKey].flat(1);
var itemValue = tempValues[entityKey];
var transformFunction = (0,get/* default */.Z)(dataFormatMap, key);
var transform = function transform() {
var tempKey,
transformedResult,
isTransformedResultPrimitive = false;
/**
* 先判断是否是方法,是的话执行后拿到值,如果是基本类型,则认为是直接 transform 为新的值,
* 如果返回是 Object 则认为是 transform 为新的 {newKey: newValue}
*/
if (typeof transformFunction === 'function') {
transformedResult = transformFunction === null || transformFunction === void 0 ? void 0 : transformFunction(itemValue, entityKey, tempValues);
var typeOfResult = (0,esm_typeof/* default */.Z)(transformedResult);
if (typeOfResult !== 'object' && typeOfResult !== 'undefined') {
tempKey = entityKey;
isTransformedResultPrimitive = true;
} else {
tempKey = transformedResult;
}
} else {
tempKey = transformForArray(transformFunction, itemValue);
}
// { [key:string]:any } 数组也能通过编译
if (Array.isArray(tempKey)) {
result = (0,set/* default */.Z)(result, tempKey, itemValue);
return;
}
if ((0,esm_typeof/* default */.Z)(tempKey) === 'object' && !Array.isArray(finalValues)) {
finalValues = (0,merge/* default */.Z)(finalValues, tempKey);
} else if ((0,esm_typeof/* default */.Z)(tempKey) === 'object' && Array.isArray(finalValues)) {
result = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, result), tempKey);
} else if (tempKey !== null || tempKey !== undefined) {
result = (0,set/* default */.Z)(result, [tempKey], isTransformedResultPrimitive ? transformedResult : itemValue);
}
};
/** 如果存在转化器提前渲染一下 */
if (transformFunction && typeof transformFunction === 'function') {
transform();
}
if (typeof window === 'undefined') return;
if (isPlainObj(itemValue)) {
var genValues = gen(itemValue, key);
if (Object.keys(genValues).length < 1) {
return;
}
result = (0,set/* default */.Z)(result, [entityKey], genValues);
return;
}
transform();
});
// namePath、transform在omit为false时需正常返回 https://github.com/ant-design/pro-components/issues/2901#issue-908097115
return omit ? result : tempValues;
};
finalValues = Array.isArray(values) && Array.isArray(finalValues) ? (0,toConsumableArray/* default */.Z)(gen(values)) : (0,es_merge/* merge */.T)({}, gen(values), finalValues);
return finalValues;
};
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/conversionMomentValue/index.js
var conversionMomentValue = __webpack_require__(94763);
;// CONCATENATED MODULE: ./node_modules/_@umijs_use-params@1.0.9@@umijs/use-params/es/index.js
var __assign = (undefined && undefined.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
/* eslint-disable no-restricted-syntax */
/**
*
* @param {object} params
* @returns {URL}
*/
function setQueryToCurrentUrl(params) {
var _a;
var URL = (typeof window !== 'undefined' ? window : {}).URL;
var url = new URL((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href);
Object.keys(params).forEach(function (key) {
var value = params[key];
if (value !== null && value !== undefined) {
if (Array.isArray(value)) {
url.searchParams.delete(key);
value.forEach(function (valueItem) {
url.searchParams.append(key, valueItem);
});
}
else if (value instanceof Date) {
if (!Number.isNaN(value.getTime())) {
url.searchParams.set(key, value.toISOString());
}
}
else if (typeof value === 'object') {
url.searchParams.set(key, JSON.stringify(value));
}
else {
url.searchParams.set(key, value);
}
}
else {
url.searchParams.delete(key);
}
});
return url;
}
function useUrlSearchParams(initial, config) {
var _a;
if (initial === void 0) { initial = {}; }
if (config === void 0) { config = { disabled: false }; }
/**
* The main idea of this hook is to make things response to change of `window.location.search`,
* so no need for introducing new state (in the mean time).
* Whenever `window.location.search` is changed but not cause re-render, call `forceUpdate()`.
* Whenever the component - user of this hook - re-render, this hook should return
* the query object that corresponse to the current `window.location.search`
*/
var _b = (0,_react_17_0_2_react.useState)(), forceUpdate = _b[1];
var locationSearch = typeof window !== 'undefined' && ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.search);
/**
* @type {URLSearchParams}
*/
var urlSearchParams = (0,_react_17_0_2_react.useMemo)(function () {
if (config.disabled)
return {};
return new URLSearchParams(locationSearch || {});
}, [config.disabled, locationSearch]);
var params = (0,_react_17_0_2_react.useMemo)(function () {
if (config.disabled)
return {};
if (typeof window === 'undefined' || !window.URL)
return {};
var result = [];
// @ts-ignore
urlSearchParams.forEach(function (value, key) {
result.push({
key: key,
value: value,
});
});
// group by key
result = result.reduce(function (acc, val) {
(acc[val.key] = acc[val.key] || []).push(val);
return acc;
}, {});
result = Object.keys(result).map(function (key) {
var valueGroup = result[key];
if (valueGroup.length === 1) {
return [key, valueGroup[0].value];
}
return [key, valueGroup.map(function (_a) {
var value = _a.value;
return value;
})];
});
var newParams = __assign({}, initial);
result.forEach(function (_a) {
var key = _a[0], value = _a[1];
newParams[key] = parseValue(key, value, {}, initial);
});
return newParams;
}, [config.disabled, initial, urlSearchParams]);
function redirectToNewSearchParams(newParams) {
if (typeof window === 'undefined' || !window.URL)
return;
var url = setQueryToCurrentUrl(newParams);
if (window.location.search !== url.search) {
window.history.replaceState({}, '', url.toString());
}
if (urlSearchParams.toString() !== url.searchParams.toString()) {
forceUpdate({});
}
}
(0,_react_17_0_2_react.useEffect)(function () {
if (config.disabled)
return;
if (typeof window === 'undefined' || !window.URL)
return;
redirectToNewSearchParams(__assign(__assign({}, initial), params));
}, [config.disabled, params]);
var setParams = function (newParams) {
redirectToNewSearchParams(newParams);
};
(0,_react_17_0_2_react.useEffect)(function () {
if (config.disabled)
return function () { };
if (typeof window === 'undefined' || !window.URL)
return function () { };
var onPopState = function () {
forceUpdate({});
};
window.addEventListener('popstate', onPopState);
return function () {
window.removeEventListener('popstate', onPopState);
};
}, [config.disabled]);
return [params, setParams];
}
var booleanValues = {
true: true,
false: false,
};
function parseValue(key, _value, types, defaultParams) {
if (!types)
return _value;
var type = types[key];
var value = _value === undefined ? defaultParams[key] : _value;
if (type === Number) {
return Number(value);
}
if (type === Boolean || _value === 'true' || _value === 'false') {
return booleanValues[value];
}
if (Array.isArray(type)) {
// eslint-disable-next-line eqeqeq
return type.find(function (item) { return item == value; }) || defaultParams[key];
}
return value;
}
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/index.js + 5 modules
var config_provider = __webpack_require__(92736);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_omit.js@2.0.2@omit.js/es/index.js
var _omit_js_2_0_2_omit_js_es = __webpack_require__(52535);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/warning.js
var warning = __webpack_require__(85870);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/FieldContext.js
var FieldContext = __webpack_require__(64690);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/components/Submitter/index.js
/** @name 用于配置操作栏 */
/**
* FormFooter 的组件,可以自动进行一些配置
*
* @param props
*/
var Submitter = function Submitter(props) {
var intl = (0,es/* useIntl */.YB)();
var form = es_form/* default */.Z.useFormInstance();
if (props.render === false) {
return null;
}
var onSubmit = props.onSubmit,
render = props.render,
onReset = props.onReset,
_props$searchConfig = props.searchConfig,
searchConfig = _props$searchConfig === void 0 ? {} : _props$searchConfig,
submitButtonProps = props.submitButtonProps,
resetButtonProps = props.resetButtonProps;
var _proTheme$useToken = useStyle/* proTheme */.Ow.useToken(),
token = _proTheme$useToken.token;
var submit = function submit() {
form.submit();
onSubmit === null || onSubmit === void 0 || onSubmit();
};
var reset = function reset() {
form.resetFields();
onReset === null || onReset === void 0 || onReset();
};
var _searchConfig$submitT = searchConfig.submitText,
submitText = _searchConfig$submitT === void 0 ? intl.getMessage('tableForm.submit', '提交') : _searchConfig$submitT,
_searchConfig$resetTe = searchConfig.resetText,
resetText = _searchConfig$resetTe === void 0 ? intl.getMessage('tableForm.reset', '重置') : _searchConfig$resetTe;
/** 默认的操作的逻辑 */
var dom = [];
if (resetButtonProps !== false) {
dom.push( /*#__PURE__*/(0,_react_17_0_2_react.createElement)(es_button/* default */.ZP, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, (0,_omit_js_2_0_2_omit_js_es/* default */.Z)(resetButtonProps, ['preventDefault'])), {}, {
key: "rest",
onClick: function onClick(e) {
var _resetButtonProps$onC;
if (!(resetButtonProps !== null && resetButtonProps !== void 0 && resetButtonProps.preventDefault)) reset();
resetButtonProps === null || resetButtonProps === void 0 || (_resetButtonProps$onC = resetButtonProps.onClick) === null || _resetButtonProps$onC === void 0 || _resetButtonProps$onC.call(resetButtonProps, e);
}
}), resetText));
}
if (submitButtonProps !== false) {
dom.push( /*#__PURE__*/(0,_react_17_0_2_react.createElement)(es_button/* default */.ZP, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
type: "primary"
}, (0,_omit_js_2_0_2_omit_js_es/* default */.Z)(submitButtonProps || {}, ['preventDefault'])), {}, {
key: "submit",
onClick: function onClick(e) {
var _submitButtonProps$on;
if (!(submitButtonProps !== null && submitButtonProps !== void 0 && submitButtonProps.preventDefault)) submit();
submitButtonProps === null || submitButtonProps === void 0 || (_submitButtonProps$on = submitButtonProps.onClick) === null || _submitButtonProps$on === void 0 || _submitButtonProps$on.call(submitButtonProps, e);
}
}), submitText));
}
var renderDom = render ? render((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
form: form,
submit: submit,
reset: reset
}), dom) : dom;
if (!renderDom) {
return null;
}
if (Array.isArray(renderDom)) {
if ((renderDom === null || renderDom === void 0 ? void 0 : renderDom.length) < 1) {
return null;
}
if ((renderDom === null || renderDom === void 0 ? void 0 : renderDom.length) === 1) {
return renderDom[0];
}
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: 'flex',
gap: token.marginXS,
alignItems: 'center'
},
children: renderDom
});
}
return renderDom;
};
/* harmony default export */ var components_Submitter = (Submitter);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/components/List/index.js
var List = __webpack_require__(10213);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/helpers/grid.js
var helpers_grid = __webpack_require__(1543);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/BaseForm/EditOrReadOnlyContext.js
var EditOrReadOnlyContext = __webpack_require__(12622);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/BaseForm/BaseForm.js
var _excluded = ["children", "contentRender", "submitter", "fieldProps", "formItemProps", "groupProps", "transformKey", "formRef", "onInit", "form", "loading", "formComponentType", "extraUrlParams", "syncToUrl", "onUrlSearchChange", "onReset", "omitNil", "isKeyPressSubmit", "autoFocusFirstInput", "grid", "rowProps", "colProps"],
_excluded2 = ["extraUrlParams", "syncToUrl", "isKeyPressSubmit", "syncToUrlAsImportant", "syncToInitialValues", "children", "contentRender", "submitter", "fieldProps", "proFieldProps", "formItemProps", "groupProps", "dateFormatter", "formRef", "onInit", "form", "formComponentType", "onReset", "grid", "rowProps", "colProps", "omitNil", "request", "params", "initialValues", "formKey", "readonly", "onLoadingChange", "loading"];
/* eslint-disable react-hooks/exhaustive-deps */
var genParams = function genParams(syncUrl, params, type) {
if (syncUrl === true) {
return params;
}
return (0,runFunction/* runFunction */.h)(syncUrl, params, type);
};
/**
* It takes a name path and converts it to an array.
* @param {NamePath} name - The name of the form.
* @returns string[]
*
* a-> [a]
* [a] -> [a]
*/
var covertFormName = function covertFormName(name) {
if (!name) return name;
if (Array.isArray(name)) return name;
return [name];
};
function BaseFormComponents(props) {
var _ConfigProvider$useCo;
var children = props.children,
contentRender = props.contentRender,
submitter = props.submitter,
fieldProps = props.fieldProps,
formItemProps = props.formItemProps,
groupProps = props.groupProps,
transformKey = props.transformKey,
propsFormRef = props.formRef,
onInit = props.onInit,
form = props.form,
loading = props.loading,
formComponentType = props.formComponentType,
_props$extraUrlParams = props.extraUrlParams,
extraUrlParams = _props$extraUrlParams === void 0 ? {} : _props$extraUrlParams,
syncToUrl = props.syncToUrl,
onUrlSearchChange = props.onUrlSearchChange,
_onReset = props.onReset,
_props$omitNil = props.omitNil,
omitNil = _props$omitNil === void 0 ? true : _props$omitNil,
isKeyPressSubmit = props.isKeyPressSubmit,
_props$autoFocusFirst = props.autoFocusFirstInput,
autoFocusFirstInput = _props$autoFocusFirst === void 0 ? true : _props$autoFocusFirst,
grid = props.grid,
rowProps = props.rowProps,
colProps = props.colProps,
rest = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
/**
* 获取 form 实例
*/
var formInstance = es_form/* default */.Z.useFormInstance();
var _ref = (config_provider/* default */.ZP === null || config_provider/* default */.ZP === void 0 || (_ConfigProvider$useCo = config_provider/* default */.ZP.useConfig) === null || _ConfigProvider$useCo === void 0 ? void 0 : _ConfigProvider$useCo.call(config_provider/* default */.ZP)) || {
componentSize: 'middle'
},
componentSize = _ref.componentSize;
/** 同步 url 上的参数 */
var formRef = (0,_react_17_0_2_react.useRef)(form || formInstance);
/**
* 获取布局
*/
var _useGridHelpers = (0,helpers_grid/* useGridHelpers */.zx)({
grid: grid,
rowProps: rowProps
}),
RowWrapper = _useGridHelpers.RowWrapper;
var getFormInstance = (0,useRefFunction/* useRefFunction */.J)(function () {
return formInstance;
});
var formatValues = (0,_react_17_0_2_react.useMemo)(function () {
return {
/**
* 获取被 ProForm 格式化后的所有数据
* @param allData boolean
* @returns T
*
* @example getFieldsFormatValue(true) ->返回所有数据,即使没有被 form 托管的
*/
getFieldsFormatValue: function getFieldsFormatValue(allData) {
var _getFormInstance;
return transformKey((_getFormInstance = getFormInstance()) === null || _getFormInstance === void 0 ? void 0 : _getFormInstance.getFieldsValue(allData), omitNil);
},
/**
* 获取被 ProForm 格式化后的单个数据
* @param nameList (string|number)[]
* @returns T
*
* @example {a:{b:value}} -> getFieldFormatValue(['a', 'b']) -> value
*/
/** 获取格式化之后的单个数据 */
getFieldFormatValue: function getFieldFormatValue() {
var _getFormInstance2;
var paramsNameList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var nameList = covertFormName(paramsNameList);
if (!nameList) throw new Error('nameList is require');
var value = (_getFormInstance2 = getFormInstance()) === null || _getFormInstance2 === void 0 ? void 0 : _getFormInstance2.getFieldValue(nameList);
var obj = nameList ? (0,set/* default */.Z)({}, nameList, value) : value;
return (0,get/* default */.Z)(transformKey(obj, omitNil, nameList), nameList);
},
/**
* 获取被 ProForm 格式化后的单个数据, 包含他的 name
* @param nameList (string|number)[]
* @returns T
*
* @example {a:{b:value}} -> getFieldFormatValueObject(['a', 'b']) -> {a:{b:value}}
*/
/** 获取格式化之后的单个数据 */
getFieldFormatValueObject: function getFieldFormatValueObject(paramsNameList) {
var _getFormInstance3;
var nameList = covertFormName(paramsNameList);
var value = (_getFormInstance3 = getFormInstance()) === null || _getFormInstance3 === void 0 ? void 0 : _getFormInstance3.getFieldValue(nameList);
var obj = nameList ? (0,set/* default */.Z)({}, nameList, value) : value;
return transformKey(obj, omitNil, nameList);
},
/**
/**
*验字段后返回格式化之后的所有数据
* @param nameList (string|number)[]
* @returns T
*
* @example validateFieldsReturnFormatValue -> {a:{b:value}}
*/
validateFieldsReturnFormatValue: function () {
var _validateFieldsReturnFormatValue = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(nameList) {
var _getFormInstance4;
var values, transformedKey;
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!(!Array.isArray(nameList) && nameList)) {
_context.next = 2;
break;
}
throw new Error('nameList must be array');
case 2:
_context.next = 4;
return (_getFormInstance4 = getFormInstance()) === null || _getFormInstance4 === void 0 ? void 0 : _getFormInstance4.validateFields(nameList);
case 4:
values = _context.sent;
transformedKey = transformKey(values, omitNil);
return _context.abrupt("return", transformedKey ? transformedKey : {});
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
function validateFieldsReturnFormatValue(_x) {
return _validateFieldsReturnFormatValue.apply(this, arguments);
}
return validateFieldsReturnFormatValue;
}()
};
}, [omitNil, transformKey]);
var items = (0,_react_17_0_2_react.useMemo)(function () {
return _react_17_0_2_react.Children.toArray(children).map(function (item, index) {
if (index === 0 && /*#__PURE__*/_react_17_0_2_react.isValidElement(item) && autoFocusFirstInput) {
return /*#__PURE__*/_react_17_0_2_react.cloneElement(item, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, item.props), {}, {
autoFocus: autoFocusFirstInput
}));
}
return item;
});
}, [autoFocusFirstInput, children]);
/** 计算 props 的对象 */
var submitterProps = (0,_react_17_0_2_react.useMemo)(function () {
return typeof submitter === 'boolean' || !submitter ? {} : submitter;
}, [submitter]);
/** 渲染提交按钮与重置按钮 */
var submitterNode = (0,_react_17_0_2_react.useMemo)(function () {
if (submitter === false) return undefined;
return /*#__PURE__*/(0,jsx_runtime.jsx)(components_Submitter, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, submitterProps), {}, {
onReset: function onReset() {
var _formRef$current, _submitterProps$onRes;
var finalValues = transformKey((_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : _formRef$current.getFieldsValue(), omitNil);
submitterProps === null || submitterProps === void 0 || (_submitterProps$onRes = submitterProps.onReset) === null || _submitterProps$onRes === void 0 || _submitterProps$onRes.call(submitterProps, finalValues);
_onReset === null || _onReset === void 0 || _onReset(finalValues);
// 如果 syncToUrl清空一下数据
if (syncToUrl) {
var _formRef$current2;
// 把没有的值设置为未定义可以删掉 url 的参数
var params = Object.keys(transformKey((_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.getFieldsValue(), false)).reduce(function (pre, next) {
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, pre), {}, (0,defineProperty/* default */.Z)({}, next, finalValues[next] || undefined));
}, extraUrlParams);
/** 在同步到 url 上时对参数进行转化 */
onUrlSearchChange(genParams(syncToUrl, params || {}, 'set'));
}
},
submitButtonProps: (0,objectSpread2/* default */.Z)({
loading: loading
}, submitterProps.submitButtonProps)
}), "submitter");
}, [submitter, submitterProps, loading, transformKey, omitNil, _onReset, syncToUrl, extraUrlParams, onUrlSearchChange]);
var content = (0,_react_17_0_2_react.useMemo)(function () {
var wrapItems = grid ? /*#__PURE__*/(0,jsx_runtime.jsx)(RowWrapper, {
children: items
}) : items;
if (contentRender) {
return contentRender(wrapItems, submitterNode, formRef.current);
}
return wrapItems;
}, [grid, RowWrapper, items, contentRender, submitterNode]);
var preInitialValues = usePrevious(props.initialValues);
// 提示一个 initialValues ,问的人实在是太多了
(0,_react_17_0_2_react.useEffect)(function () {
if (syncToUrl || !props.initialValues || !preInitialValues || rest.request) return;
var isEqual = (0,isDeepEqualReact/* isDeepEqualReact */.A)(props.initialValues, preInitialValues);
(0,warning/* noteOnce */.ET)(isEqual, "initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? <Form/> : null ");
(0,warning/* noteOnce */.ET)(isEqual, "The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null ");
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.initialValues]);
// 初始化给一个默认的 form
(0,_react_17_0_2_react.useImperativeHandle)(propsFormRef, function () {
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formRef.current), formatValues);
}, [formatValues, formRef.current]);
(0,_react_17_0_2_react.useEffect)(function () {
var _formRef$current3, _formRef$current3$get;
var finalValues = transformKey((_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 || (_formRef$current3$get = _formRef$current3.getFieldsValue) === null || _formRef$current3$get === void 0 ? void 0 : _formRef$current3$get.call(_formRef$current3, true), omitNil);
onInit === null || onInit === void 0 || onInit(finalValues, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formRef.current), formatValues));
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsx)(ProFormContext/* ProFormContext */.J.Provider, {
value: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formatValues), {}, {
formRef: formRef
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(config_provider/* default */.ZP, {
componentSize: rest.size || componentSize,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(helpers_grid/* GridContext */._p.Provider, {
value: {
grid: grid,
colProps: colProps
},
children: [rest.component !== false && /*#__PURE__*/(0,jsx_runtime.jsx)("input", {
type: "text",
style: {
display: 'none'
}
}), content]
})
})
});
}
/** 自动的formKey 防止重复 */
var requestFormCacheId = 0;
function BaseForm(props) {
var _props$extraUrlParams2 = props.extraUrlParams,
extraUrlParams = _props$extraUrlParams2 === void 0 ? {} : _props$extraUrlParams2,
syncToUrl = props.syncToUrl,
isKeyPressSubmit = props.isKeyPressSubmit,
_props$syncToUrlAsImp = props.syncToUrlAsImportant,
syncToUrlAsImportant = _props$syncToUrlAsImp === void 0 ? false : _props$syncToUrlAsImp,
_props$syncToInitialV = props.syncToInitialValues,
syncToInitialValues = _props$syncToInitialV === void 0 ? true : _props$syncToInitialV,
children = props.children,
contentRender = props.contentRender,
submitter = props.submitter,
fieldProps = props.fieldProps,
proFieldProps = props.proFieldProps,
formItemProps = props.formItemProps,
groupProps = props.groupProps,
_props$dateFormatter = props.dateFormatter,
dateFormatter = _props$dateFormatter === void 0 ? 'string' : _props$dateFormatter,
propsFormRef = props.formRef,
onInit = props.onInit,
form = props.form,
formComponentType = props.formComponentType,
onReset = props.onReset,
grid = props.grid,
rowProps = props.rowProps,
colProps = props.colProps,
_props$omitNil2 = props.omitNil,
omitNil = _props$omitNil2 === void 0 ? true : _props$omitNil2,
request = props.request,
params = props.params,
initialValues = props.initialValues,
_props$formKey = props.formKey,
formKey = _props$formKey === void 0 ? requestFormCacheId : _props$formKey,
readonly = props.readonly,
onLoadingChange = props.onLoadingChange,
propsLoading = props.loading,
propRest = (0,objectWithoutProperties/* default */.Z)(props, _excluded2);
var formRef = (0,_react_17_0_2_react.useRef)({});
var _useMountMergeState = (0,useMergedState/* default */.Z)(false, {
onChange: onLoadingChange,
value: propsLoading
}),
_useMountMergeState2 = (0,slicedToArray/* default */.Z)(_useMountMergeState, 2),
loading = _useMountMergeState2[0],
setLoading = _useMountMergeState2[1];
var _useUrlSearchParams = useUrlSearchParams({}, {
disabled: !syncToUrl
}),
_useUrlSearchParams2 = (0,slicedToArray/* default */.Z)(_useUrlSearchParams, 2),
urlSearch = _useUrlSearchParams2[0],
setUrlSearch = _useUrlSearchParams2[1];
var curFormKey = (0,_react_17_0_2_react.useRef)((0,nanoid/* nanoid */.x)());
(0,_react_17_0_2_react.useEffect)(function () {
requestFormCacheId += 0;
}, []);
var _useFetchData = useFetchData({
request: request,
params: params,
proFieldKey: formKey
}),
_useFetchData2 = (0,slicedToArray/* default */.Z)(_useFetchData, 1),
initialData = _useFetchData2[0];
var _useContext = (0,_react_17_0_2_react.useContext)(config_provider/* default.ConfigContext */.ZP.ConfigContext),
getPrefixCls = _useContext.getPrefixCls;
var prefixCls = getPrefixCls('pro-form');
// css
var _useStyle = (0,useStyle/* useStyle */.Xj)('ProForm', function (token) {
return (0,defineProperty/* default */.Z)({}, ".".concat(prefixCls), (0,defineProperty/* default */.Z)({}, "> div:not(".concat(token.proComponentsCls, "-form-light-filter)"), {
'.pro-field': {
maxWidth: '100%',
'@media screen and (max-width: 575px)': {
// 减少了 form 的 padding
maxWidth: 'calc(93vw - 48px)'
},
// 适用于短数字,短文本或者选项
'&-xs': {
width: 104
},
'&-s': {
width: 216
},
// 适用于较短字段录入、如姓名、电话、ID 等。
'&-sm': {
width: 216
},
'&-m': {
width: 328
},
// 标准宽度,适用于大部分字段长度
'&-md': {
width: 328
},
'&-l': {
width: 440
},
// 适用于较长字段录入,如长网址、标签组、文件路径等。
'&-lg': {
width: 440
},
// 适用于长文本录入,如长链接、描述、备注等,通常搭配自适应多行输入框或定高文本域使用。
'&-xl': {
width: 552
}
}
}));
}),
wrapSSR = _useStyle.wrapSSR,
hashId = _useStyle.hashId;
// 如果为 false不需要触发设置进去
var _useState = (0,_react_17_0_2_react.useState)(function () {
if (!syncToUrl) {
return {};
}
return genParams(syncToUrl, urlSearch, 'get');
}),
_useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
urlParamsMergeInitialValues = _useState2[0],
setUrlParamsMergeInitialValues = _useState2[1];
/** 保存 transformKeyRef用于对表单key transform */
var transformKeyRef = (0,_react_17_0_2_react.useRef)({});
var fieldsValueType = (0,_react_17_0_2_react.useRef)({});
/** 使用 callback 的类型 */
var transformKey = (0,useRefFunction/* useRefFunction */.J)(function (values, paramsOmitNil, parentKey) {
return transformKeySubmitValue((0,conversionMomentValue/* conversionMomentValue */.lp)(values, dateFormatter, fieldsValueType.current, paramsOmitNil, parentKey), transformKeyRef.current, paramsOmitNil);
});
(0,_react_17_0_2_react.useEffect)(function () {
if (syncToInitialValues) return;
setUrlParamsMergeInitialValues({});
}, [syncToInitialValues]);
(0,_react_17_0_2_react.useEffect)(function () {
if (!syncToUrl) return;
setUrlSearch(genParams(syncToUrl, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, urlSearch), extraUrlParams), 'set'));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [extraUrlParams, syncToUrl]);
var getPopupContainer = (0,_react_17_0_2_react.useMemo)(function () {
if (typeof window === 'undefined') return undefined;
// 如果在 drawerForm 和 modalForm 里就渲染dom到父节点里
// modalForm 可能高度太小不适合
if (formComponentType && ['DrawerForm'].includes(formComponentType)) {
return function (e) {
return e.parentNode || document.body;
};
}
return undefined;
}, [formComponentType]);
var onFinish = (0,useRefFunction/* useRefFunction */.J)( /*#__PURE__*/(0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2() {
var _formRef$current4, _formRef$current4$get, finalValues, response, _formRef$current5, _formRef$current5$get, syncToUrlParams;
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (propRest.onFinish) {
_context2.next = 2;
break;
}
return _context2.abrupt("return");
case 2:
if (!loading) {
_context2.next = 4;
break;
}
return _context2.abrupt("return");
case 4:
_context2.prev = 4;
finalValues = formRef === null || formRef === void 0 || (_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 || (_formRef$current4$get = _formRef$current4.getFieldsFormatValue) === null || _formRef$current4$get === void 0 ? void 0 : _formRef$current4$get.call(_formRef$current4);
response = propRest.onFinish(finalValues);
if (response instanceof Promise) {
setLoading(true);
}
_context2.next = 10;
return response;
case 10:
if (syncToUrl) {
// 把没有的值设置为未定义可以删掉 url 的参数
syncToUrlParams = Object.keys(formRef === null || formRef === void 0 || (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 || (_formRef$current5$get = _formRef$current5.getFieldsFormatValue) === null || _formRef$current5$get === void 0 ? void 0 : _formRef$current5$get.call(_formRef$current5, undefined, false)).reduce(function (pre, next) {
var _finalValues$next;
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, pre), {}, (0,defineProperty/* default */.Z)({}, next, (_finalValues$next = finalValues[next]) !== null && _finalValues$next !== void 0 ? _finalValues$next : undefined));
}, extraUrlParams); // fix #3547: 当原先在url中存在的字段被删除时应该将 params 中的该字段设置为 undefined,以便触发url同步删除
Object.keys(urlSearch).forEach(function (key) {
if (syncToUrlParams[key] !== false && syncToUrlParams[key] !== 0 && !syncToUrlParams[key]) {
syncToUrlParams[key] = undefined;
}
});
/** 在同步到 url 上时对参数进行转化 */
setUrlSearch(genParams(syncToUrl, syncToUrlParams, 'set'));
}
setLoading(false);
_context2.next = 18;
break;
case 14:
_context2.prev = 14;
_context2.t0 = _context2["catch"](4);
console.log(_context2.t0);
setLoading(false);
case 18:
case "end":
return _context2.stop();
}
}, _callee2, null, [[4, 14]]);
})));
// 初始化给一个默认的 form
(0,_react_17_0_2_react.useImperativeHandle)(propsFormRef, function () {
return formRef.current;
}, [!initialData]);
if (!initialData && props.request) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
paddingTop: 50,
paddingBottom: 50,
textAlign: 'center'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {})
});
}
return wrapSSR( /*#__PURE__*/(0,jsx_runtime.jsx)(EditOrReadOnlyContext/* EditOrReadOnlyContext */.A.Provider, {
value: {
mode: props.readonly ? 'read' : 'edit'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es/* ProConfigProvider */._Y, {
needDeps: true,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FieldContext/* default */.Z.Provider, {
value: {
formRef: formRef,
fieldProps: fieldProps,
proFieldProps: proFieldProps,
formItemProps: formItemProps,
groupProps: groupProps,
formComponentType: formComponentType,
getPopupContainer: getPopupContainer,
formKey: curFormKey.current,
setFieldValueType: function setFieldValueType(name, _ref4) {
var _ref4$valueType = _ref4.valueType,
valueType = _ref4$valueType === void 0 ? 'text' : _ref4$valueType,
dateFormat = _ref4.dateFormat,
transform = _ref4.transform;
if (!Array.isArray(name)) return;
transformKeyRef.current = (0,set/* default */.Z)(transformKeyRef.current, name, transform);
fieldsValueType.current = (0,set/* default */.Z)(fieldsValueType.current, name, {
valueType: valueType,
dateFormat: dateFormat
});
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(List/* FormListContext */.J.Provider, {
value: {},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
onKeyPress: function onKeyPress(event) {
if (!isKeyPressSubmit) return;
if (event.key === 'Enter') {
var _formRef$current6;
(_formRef$current6 = formRef.current) === null || _formRef$current6 === void 0 || _formRef$current6.submit();
}
},
autoComplete: "off",
form: form
}, (0,_omit_js_2_0_2_omit_js_es/* default */.Z)(propRest, ['labelWidth', 'autoFocusFirstInput'])), {}, {
// 组合 urlSearch 和 initialValues
initialValues: syncToUrlAsImportant ? (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, initialValues), initialData), urlParamsMergeInitialValues) : (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, urlParamsMergeInitialValues), initialValues), initialData),
onValuesChange: function onValuesChange(changedValues, values) {
var _propRest$onValuesCha;
propRest === null || propRest === void 0 || (_propRest$onValuesCha = propRest.onValuesChange) === null || _propRest$onValuesCha === void 0 || _propRest$onValuesCha.call(propRest, transformKey(changedValues, !!omitNil), transformKey(values, !!omitNil));
},
className: _classnames_2_5_1_classnames_default()(props.className, prefixCls, hashId),
onFinish: onFinish,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(BaseFormComponents, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
transformKey: transformKey,
autoComplete: "off",
loading: loading,
onUrlSearchChange: setUrlSearch
}, props), {}, {
formRef: formRef,
initialValues: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, initialValues), initialData)
}))
}))
})
})
})
}));
}
/***/ }),
/***/ 12622:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/BaseForm/EditOrReadOnlyContext.js ***!
\*************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ EditOrReadOnlyContext; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
var EditOrReadOnlyContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({
mode: 'edit'
});
/***/ }),
/***/ 64690:
/*!*******************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/FieldContext.js ***!
\*******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export FieldContext */
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
var FieldContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
/* harmony default export */ __webpack_exports__.Z = (FieldContext);
/***/ }),
/***/ 10213:
/*!****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/components/List/index.js ***!
\****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ J: function() { return /* binding */ FormListContext; }
/* harmony export */ });
/* unused harmony export ProFormList */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/warning */ 85870);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var _excluded = (/* unused pure expression or super */ null && (["transform", "actionRender", "creatorButtonProps", "label", "alwaysShowItemLabel", "tooltip", "creatorRecord", "itemRender", "rules", "itemContainerRender", "fieldExtraRender", "copyIconProps", "children", "deleteIconProps", "actionRef", "style", "prefixCls", "actionGuard", "min", "max", "colProps", "wrapperCol", "rowProps", "onAfterAdd", "onAfterRemove", "isValidateList", "emptyListMessage", "className", "containerClassName", "containerStyle", "readonly"]));
var FormListContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createContext({});
function ProFormList(props) {
var actionRefs = useRef();
var context = useContext(ConfigProvider.ConfigContext);
var listContext = useContext(FormListContext);
var baseClassName = context.getPrefixCls('pro-form-list');
// Internationalization
var intl = useIntl();
/** 从 context 中拿到的值 */
var _React$useContext = React.useContext(FieldContext),
setFieldValueType = _React$useContext.setFieldValueType;
var transform = props.transform,
actionRender = props.actionRender,
creatorButtonProps = props.creatorButtonProps,
label = props.label,
alwaysShowItemLabel = props.alwaysShowItemLabel,
tooltip = props.tooltip,
creatorRecord = props.creatorRecord,
itemRender = props.itemRender,
rules = props.rules,
itemContainerRender = props.itemContainerRender,
fieldExtraRender = props.fieldExtraRender,
_props$copyIconProps = props.copyIconProps,
copyIconProps = _props$copyIconProps === void 0 ? {
Icon: CopyOutlined,
tooltipText: intl.getMessage('copyThisLine', '复制此项')
} : _props$copyIconProps,
_children = props.children,
_props$deleteIconProp = props.deleteIconProps,
deleteIconProps = _props$deleteIconProp === void 0 ? {
Icon: DeleteOutlined,
tooltipText: intl.getMessage('deleteThisLine', '删除此项')
} : _props$deleteIconProp,
actionRef = props.actionRef,
style = props.style,
prefixCls = props.prefixCls,
actionGuard = props.actionGuard,
min = props.min,
max = props.max,
colProps = props.colProps,
wrapperCol = props.wrapperCol,
rowProps = props.rowProps,
_onAfterAdd = props.onAfterAdd,
_onAfterRemove = props.onAfterRemove,
_props$isValidateList = props.isValidateList,
isValidateList = _props$isValidateList === void 0 ? false : _props$isValidateList,
_props$emptyListMessa = props.emptyListMessage,
emptyListMessage = _props$emptyListMessa === void 0 ? '列表不能为空' : _props$emptyListMessa,
className = props.className,
containerClassName = props.containerClassName,
containerStyle = props.containerStyle,
readonly = props.readonly,
rest = _objectWithoutProperties(props, _excluded);
var _useGridHelpers = useGridHelpers({
colProps: colProps,
rowProps: rowProps
}),
ColWrapper = _useGridHelpers.ColWrapper,
RowWrapper = _useGridHelpers.RowWrapper;
var proFormContext = useContext(ProFormContext);
// 处理 list 的嵌套
var name = useMemo(function () {
if (listContext.name === undefined) {
return [rest.name].flat(1);
}
return [listContext.name, rest.name].flat(1);
}, [listContext.name, rest.name]);
// eslint-disable-next-line react-hooks/exhaustive-deps
useImperativeHandle(actionRef, function () {
return _objectSpread(_objectSpread({}, actionRefs.current), {}, {
get: function get(index) {
return proFormContext.formRef.current.getFieldValue([].concat(_toConsumableArray(name), [index]));
},
getList: function getList() {
return proFormContext.formRef.current.getFieldValue(_toConsumableArray(name));
}
});
}, [name, proFormContext.formRef]);
useEffect(function () {
noteOnce(!!proFormContext.formRef, "ProFormList \u5FC5\u987B\u8981\u653E\u5230 ProForm \u4E2D,\u5426\u5219\u4F1A\u9020\u6210\u884C\u4E3A\u5F02\u5E38\u3002");
noteOnce(!!proFormContext.formRef, "Proformlist must be placed in ProForm, otherwise it will cause abnormal behavior.");
}, [proFormContext.formRef]);
useEffect(function () {
// 如果 setFieldValueType 和 props.name 不存在不存入
if (!setFieldValueType || !props.name) {
return;
}
// Field.type === 'ProField' 时 props 里面是有 valueType 的,所以要设置一下
// 写一个 ts 比较麻烦,用 any 顶一下
setFieldValueType([props.name].flat(1).filter(function (itemName) {
return itemName !== undefined;
}), {
valueType: 'formList',
transform: transform
});
}, [props.name, setFieldValueType, transform]);
var _useStyle = useStyle(baseClassName),
wrapSSR = _useStyle.wrapSSR,
hashId = _useStyle.hashId;
if (!proFormContext.formRef) return null;
return wrapSSR( /*#__PURE__*/_jsx(ColWrapper, {
children: /*#__PURE__*/_jsx("div", {
className: classNames(baseClassName, hashId),
style: style,
children: /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({
label: label,
prefixCls: prefixCls,
tooltip: tooltip,
style: style,
required: rules === null || rules === void 0 ? void 0 : rules.some(function (rule) {
return rule.required;
}),
wrapperCol: wrapperCol,
className: className
}, rest), {}, {
name: isValidateList ? name : undefined,
rules: isValidateList ? [{
validator: function validator(rule, value) {
if (!value || value.length === 0) {
return Promise.reject(new Error(emptyListMessage));
}
return Promise.resolve();
},
required: true
}] : undefined,
children: /*#__PURE__*/_jsx(Form.List, _objectSpread(_objectSpread({
rules: rules
}, rest), {}, {
name: name,
children: function children(fields, action, meta) {
// 将 action 暴露给外部
actionRefs.current = action;
return /*#__PURE__*/_jsxs(RowWrapper, {
children: [/*#__PURE__*/_jsx(ProFormListContainer, {
name: name,
readonly: !!readonly,
originName: rest.name,
copyIconProps: copyIconProps,
deleteIconProps: deleteIconProps,
formInstance: proFormContext.formRef.current,
prefixCls: baseClassName,
meta: meta,
fields: fields,
itemContainerRender: itemContainerRender,
itemRender: itemRender,
fieldExtraRender: fieldExtraRender,
creatorButtonProps: creatorButtonProps,
creatorRecord: creatorRecord,
actionRender: actionRender,
action: action,
actionGuard: actionGuard,
alwaysShowItemLabel: alwaysShowItemLabel,
min: min,
max: max,
count: fields.length,
onAfterAdd: function onAfterAdd(defaultValue, insertIndex, count) {
if (isValidateList) {
proFormContext.formRef.current.validateFields([name]);
}
_onAfterAdd === null || _onAfterAdd === void 0 || _onAfterAdd(defaultValue, insertIndex, count);
},
onAfterRemove: function onAfterRemove(index, count) {
if (isValidateList) {
if (count === 0) {
proFormContext.formRef.current.validateFields([name]);
}
}
_onAfterRemove === null || _onAfterRemove === void 0 || _onAfterRemove(index, count);
},
containerClassName: containerClassName,
containerStyle: containerStyle,
children: _children
}), /*#__PURE__*/_jsx(Form.ErrorList, {
errors: meta.errors
})]
});
}
}))
}))
})
}));
}
/***/ }),
/***/ 1543:
/*!*******************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-form@2.29.0@@ant-design/pro-form/es/helpers/grid.js ***!
\*******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ _p: function() { return /* binding */ GridContext; },
/* harmony export */ zx: function() { return /* binding */ useGridHelpers; }
/* harmony export */ });
/* unused harmony export gridHelpers */
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ 80017);
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 81162);
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 63011);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ 95237);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd */ 43604);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var _excluded = ["children", "Wrapper"],
_excluded2 = ["children", "Wrapper"];
var GridContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({
grid: false,
colProps: undefined,
rowProps: undefined
});
var gridHelpers = function gridHelpers(_ref) {
var grid = _ref.grid,
rowProps = _ref.rowProps,
colProps = _ref.colProps;
return {
grid: !!grid,
RowWrapper: function RowWrapper() {
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
children = _ref2.children,
Wrapper = _ref2.Wrapper,
props = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_ref2, _excluded);
if (!grid) {
return Wrapper ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Wrapper, {
children: children
}) : children;
}
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({
gutter: 8
}, rowProps), props), {}, {
children: children
}));
},
ColWrapper: function ColWrapper() {
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
children = _ref3.children,
Wrapper = _ref3.Wrapper,
rest = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_ref3, _excluded2);
var props = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
var originProps = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, colProps), rest);
/**
* `xs` takes precedence over `span`
* avoid `span` doesn't work
*/
if (typeof originProps.span === 'undefined' && typeof originProps.xs === 'undefined') {
originProps.xs = 24;
}
return originProps;
}, [rest]);
if (!grid) {
return Wrapper ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Wrapper, {
children: children
}) : children;
}
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, props), {}, {
children: children
}));
}
};
};
var useGridHelpers = function useGridHelpers(props) {
var config = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
{
if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props) === 'object') {
return props;
}
return {
grid: props
};
}
}, [props]);
var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(GridContext),
grid = _useContext.grid,
colProps = _useContext.colProps;
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
return gridHelpers({
grid: !!(grid || config.grid),
rowProps: config === null || config === void 0 ? void 0 : config.rowProps,
colProps: (config === null || config === void 0 ? void 0 : config.colProps) || colProps,
Wrapper: config === null || config === void 0 ? void 0 : config.Wrapper
});
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[config === null || config === void 0 ? void 0 : config.Wrapper, config.grid, grid,
// eslint-disable-next-line react-hooks/exhaustive-deps
JSON.stringify([colProps, config === null || config === void 0 ? void 0 : config.colProps, config === null || config === void 0 ? void 0 : config.rowProps])]);
};
/***/ }),
/***/ 83410:
/*!********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/index.js + 2 modules ***!
\********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
_Y: function() { return /* binding */ ProConfigProvider; },
L_: function() { return /* binding */ ProProvider; },
ZP: function() { return /* binding */ pro_provider_es; },
YB: function() { return /* binding */ useIntl; }
});
// UNUSED EXPORTS: ConfigConsumer, arEGIntl, caESIntl, createIntl, csCZIntl, deDEIntl, enGBIntl, enUSIntl, esESIntl, faIRIntl, findIntlKeyByAntdLocaleKey, frFRIntl, heILIntl, hrHRIntl, idIDIntl, intlMap, intlMapKeys, isNeedOpenHash, itITIntl, jaJPIntl, koKRIntl, lighten, mnMNIntl, msMYIntl, operationUnit, plPLIntl, proTheme, ptBRIntl, resetComponent, ruRUIntl, setAlpha, skSKIntl, srRSIntl, thTHIntl, trTRIntl, ukUAIntl, useStyle, useToken, uzUZIntl, viVNIntl, zhCNIntl, zhTWIntl
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(61414);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(54099);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(63011);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(81162);
// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.21.1@@ant-design/cssinjs/es/index.js + 39 modules
var es = __webpack_require__(7102);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/index.js + 5 modules
var config_provider = __webpack_require__(92736);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/locale/zh_CN.js + 4 modules
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_swr@2.2.5@swr/dist/core/index.mjs + 1 modules
var core = __webpack_require__(79074);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/intl.js + 29 modules
var es_intl = __webpack_require__(81462);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/useStyle/index.js
var useStyle = __webpack_require__(75898);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/typing/layoutToken.js
var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
var _finalDesignTokens$si, _finalDesignTokens$he, _finalDesignTokens$he2, _finalDesignTokens$pa, _finalDesignTokens$pa2;
var finalDesignTokens = (0,objectSpread2/* default */.Z)({}, designTokens);
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
bgLayout: "linear-gradient(".concat(antdToken.colorBgContainer, ", ").concat(antdToken.colorBgLayout, " 28%)"),
colorTextAppListIcon: antdToken.colorTextSecondary,
appListIconHoverBgColor: finalDesignTokens === null || finalDesignTokens === void 0 || (_finalDesignTokens$si = finalDesignTokens.sider) === null || _finalDesignTokens$si === void 0 ? void 0 : _finalDesignTokens$si.colorBgMenuItemSelected,
colorBgAppListIconHover: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.04),
colorTextAppListIconHover: antdToken.colorTextBase
}, finalDesignTokens), {}, {
header: (0,objectSpread2/* default */.Z)({
colorBgHeader: (0,useStyle/* setAlpha */.uK)(antdToken.colorBgElevated, 0.6),
colorBgScrollHeader: (0,useStyle/* setAlpha */.uK)(antdToken.colorBgElevated, 0.8),
colorHeaderTitle: antdToken.colorText,
colorBgMenuItemHover: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.03),
colorBgMenuItemSelected: 'transparent',
colorBgMenuElevated: (finalDesignTokens === null || finalDesignTokens === void 0 || (_finalDesignTokens$he = finalDesignTokens.header) === null || _finalDesignTokens$he === void 0 ? void 0 : _finalDesignTokens$he.colorBgHeader) !== 'rgba(255, 255, 255, 0.6)' ? (_finalDesignTokens$he2 = finalDesignTokens.header) === null || _finalDesignTokens$he2 === void 0 ? void 0 : _finalDesignTokens$he2.colorBgHeader : antdToken.colorBgElevated,
colorTextMenuSelected: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.95),
colorBgRightActionsItemHover: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.03),
colorTextRightActionsItem: antdToken.colorTextTertiary,
heightLayoutHeader: 56,
colorTextMenu: antdToken.colorTextSecondary,
colorTextMenuSecondary: antdToken.colorTextTertiary,
colorTextMenuTitle: antdToken.colorText,
colorTextMenuActive: antdToken.colorText
}, finalDesignTokens.header),
sider: (0,objectSpread2/* default */.Z)({
paddingInlineLayoutMenu: 8,
paddingBlockLayoutMenu: 0,
colorBgCollapsedButton: antdToken.colorBgElevated,
colorTextCollapsedButtonHover: antdToken.colorTextSecondary,
colorTextCollapsedButton: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.25),
colorMenuBackground: 'transparent',
colorMenuItemDivider: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.06),
colorBgMenuItemHover: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.03),
colorBgMenuItemSelected: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.04),
colorTextMenuItemHover: antdToken.colorText,
colorTextMenuSelected: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.95),
colorTextMenuActive: antdToken.colorText,
colorTextMenu: antdToken.colorTextSecondary,
colorTextMenuSecondary: antdToken.colorTextTertiary,
colorTextMenuTitle: antdToken.colorText,
colorTextSubMenuSelected: (0,useStyle/* setAlpha */.uK)(antdToken.colorTextBase, 0.95)
}, finalDesignTokens.sider),
pageContainer: (0,objectSpread2/* default */.Z)({
colorBgPageContainer: 'transparent',
paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 32,
colorBgPageContainerFixed: antdToken.colorBgElevated
}, finalDesignTokens.pageContainer)
});
};
// EXTERNAL MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/useStyle/token.js
var useStyle_token = __webpack_require__(35681);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(80017);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/utils/merge.js
var merge = function merge() {
var obj = {};
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
rest[_key] = arguments[_key];
}
var il = rest.length;
var key;
var i = 0;
for (; i < il; i += 1) {
for (key in rest[i]) {
if (rest[i].hasOwnProperty(key)) {
if ((0,esm_typeof/* default */.Z)(obj[key]) === 'object' && (0,esm_typeof/* default */.Z)(rest[i][key]) === 'object' && obj[key] !== undefined && obj[key] !== null && !Array.isArray(obj[key]) && !Array.isArray(rest[i][key])) {
obj[key] = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, obj[key]), rest[i][key]);
} else {
obj[key] = rest[i][key];
}
}
}
}
return obj;
};
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/locale/zh-cn.js
var zh_cn = __webpack_require__(65517);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/index.js
/* provided dependency */ var process = __webpack_require__(/*! ./node_modules/_process@0.11.10@process/browser.js */ 97671);
var _excluded = ["locale", "getPrefixCls"],
_excluded2 = ["locale", "theme"];
var omitUndefined = function omitUndefined(obj) {
var newObj = {};
Object.keys(obj || {}).forEach(function (key) {
if (obj[key] !== undefined) {
newObj[key] = obj[key];
}
});
if (Object.keys(newObj).length < 1) {
return undefined;
}
return newObj;
};
/**
* 用于判断当前是否需要开启哈希Hash模式。
* 首先也会判断当前是否处于测试环境中(通过 process.env.NODE_ENV === 'TEST' 判断),
* 如果是,则返回 false。否则直接返回 true 表示需要打开。
* @returns
*/
var isNeedOpenHash = function isNeedOpenHash() {
var _process$env$NODE_ENV, _process$env$NODE_ENV2;
if (typeof process !== 'undefined' && (((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toUpperCase()) === 'TEST' || ((_process$env$NODE_ENV2 = "production") === null || _process$env$NODE_ENV2 === void 0 ? void 0 : _process$env$NODE_ENV2.toUpperCase()) === 'DEV')) {
return false;
}
return true;
};
/**
* 用于配置 ValueEnum 的通用配置
*/
/**
* 支持 Map 和 Object
*
* @name ValueEnum 的类型
*/
/**
* 支持 Map 和 Object
*/
/**
* BaseProFieldFC 的类型设置
*/
/** Render 第二个参数,里面包含了一些常用的参数 */
/**
* 自带的token 配置
*/
/* Creating a context object with the default values. */
var ProConfigContext = /*#__PURE__*/_react_17_0_2_react.createContext({
intl: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, es_intl/* zhCNIntl */.Hi), {}, {
locale: 'default'
}),
valueTypeMap: {},
theme: useStyle_token.emptyTheme,
hashed: true,
dark: false,
token: useStyle_token.defaultToken
});
var ConfigConsumer = ProConfigContext.Consumer;
/**
* 组件解除挂载后清空一下 cache
* @date 2022-11-28
* @returns null
*/
var CacheClean = function CacheClean() {
var _useSWRConfig = (0,core/* useSWRConfig */.kY)(),
cache = _useSWRConfig.cache;
(0,_react_17_0_2_react.useEffect)(function () {
return function () {
// is a map
// @ts-ignore
cache.clear();
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return null;
};
/**
* 用于配置 Pro 的组件,分装之后会简单一些
* @param props
* @returns
*/
var ConfigProviderContainer = function ConfigProviderContainer(props) {
var _proTheme$useToken;
var children = props.children,
dark = props.dark,
valueTypeMap = props.valueTypeMap,
_props$autoClearCache = props.autoClearCache,
autoClearCache = _props$autoClearCache === void 0 ? false : _props$autoClearCache,
propsToken = props.token,
prefixCls = props.prefixCls,
intl = props.intl;
var _useContext = (0,_react_17_0_2_react.useContext)(config_provider/* default.ConfigContext */.ZP.ConfigContext),
locale = _useContext.locale,
getPrefixCls = _useContext.getPrefixCls,
restConfig = (0,objectWithoutProperties/* default */.Z)(_useContext, _excluded);
var tokenContext = (_proTheme$useToken = useStyle/* proTheme */.Ow.useToken) === null || _proTheme$useToken === void 0 ? void 0 : _proTheme$useToken.call(useStyle/* proTheme */.Ow);
var proProvide = (0,_react_17_0_2_react.useContext)(ProConfigContext);
/**
* pro 的 类
* @type {string}
* @example .ant-pro
*/
var proComponentsCls = prefixCls ? ".".concat(prefixCls) : ".".concat(getPrefixCls(), "-pro");
var antCls = '.' + getPrefixCls();
var salt = "".concat(proComponentsCls);
/**
* 合并一下token不然导致嵌套 token 失效
*/
var proLayoutTokenMerge = (0,_react_17_0_2_react.useMemo)(function () {
return getLayoutDesignToken(propsToken || {}, tokenContext.token || useStyle_token.defaultToken);
}, [propsToken, tokenContext.token]);
var proProvideValue = (0,_react_17_0_2_react.useMemo)(function () {
var _proProvide$intl;
var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
var key = (0,es_intl/* findIntlKeyByAntdLocaleKey */.Vy)(localeName);
// antd 的 key 存在的时候以 antd 的为主
var resolvedIntl = intl !== null && intl !== void 0 ? intl : localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? es_intl/* intlMap */.Go[key] : proProvide.intl || es_intl/* intlMap */.Go[key];
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, proProvide), {}, {
dark: dark !== null && dark !== void 0 ? dark : proProvide.dark,
token: merge(proProvide.token, tokenContext.token, {
proComponentsCls: proComponentsCls,
antCls: antCls,
themeId: tokenContext.theme.id,
layout: proLayoutTokenMerge
}),
intl: resolvedIntl || es_intl/* zhCNIntl */.Hi
});
}, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide, dark, tokenContext.token, tokenContext.theme.id, proComponentsCls, antCls, proLayoutTokenMerge, intl]);
var finalToken = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, proProvideValue.token || {}), {}, {
proComponentsCls: proComponentsCls
});
var _useCacheToken = (0,es.useCacheToken)(tokenContext.theme, [tokenContext.token, finalToken !== null && finalToken !== void 0 ? finalToken : {}], {
salt: salt,
override: finalToken
}),
_useCacheToken2 = (0,slicedToArray/* default */.Z)(_useCacheToken, 2),
token = _useCacheToken2[0],
nativeHashId = _useCacheToken2[1];
var hashed = (0,_react_17_0_2_react.useMemo)(function () {
if (props.hashed === false) {
return false;
}
if (proProvide.hashed === false) return false;
return true;
}, [proProvide.hashed, props.hashed]);
var hashId = (0,_react_17_0_2_react.useMemo)(function () {
if (props.hashed === false) {
return '';
}
if (proProvide.hashed === false) return '';
//Fix issue with hashId code
if (isNeedOpenHash() === false) {
return '';
} else if (tokenContext.hashId) {
return tokenContext.hashId;
} else {
// 生产环境或其他环境
return nativeHashId;
}
}, [nativeHashId, proProvide.hashed, props.hashed]);
(0,_react_17_0_2_react.useEffect)(function () {
dayjs_min_default().locale((locale === null || locale === void 0 ? void 0 : locale.locale) || 'zh-cn');
}, [locale === null || locale === void 0 ? void 0 : locale.locale]);
var themeConfig = (0,_react_17_0_2_react.useMemo)(function () {
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, restConfig.theme), {}, {
hashId: hashId,
hashed: hashed && isNeedOpenHash()
});
}, [restConfig.theme, hashId, hashed, isNeedOpenHash()]);
var proConfigContextValue = (0,_react_17_0_2_react.useMemo)(function () {
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, proProvideValue), {}, {
valueTypeMap: valueTypeMap || (proProvideValue === null || proProvideValue === void 0 ? void 0 : proProvideValue.valueTypeMap),
token: token,
theme: tokenContext.theme,
hashed: hashed,
hashId: hashId
});
}, [proProvideValue, valueTypeMap, token, tokenContext.theme, hashed, hashId]);
var configProviderDom = (0,_react_17_0_2_react.useMemo)(function () {
return /*#__PURE__*/(0,jsx_runtime.jsx)(config_provider/* default */.ZP, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, restConfig), {}, {
theme: themeConfig,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ProConfigContext.Provider, {
value: proConfigContextValue,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [autoClearCache && /*#__PURE__*/(0,jsx_runtime.jsx)(CacheClean, {}), children]
})
})
}));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [restConfig, themeConfig, proConfigContextValue, autoClearCache, children]);
if (!autoClearCache) return configProviderDom;
return /*#__PURE__*/(0,jsx_runtime.jsx)(core/* SWRConfig */.J$, {
value: {
provider: function provider() {
return new Map();
}
},
children: configProviderDom
});
};
/**
* 用于配置 Pro 的一些全局性的东西
* @param props
* @returns
*/
var ProConfigProvider = function ProConfigProvider(props) {
var needDeps = props.needDeps,
dark = props.dark,
token = props.token;
var proProvide = (0,_react_17_0_2_react.useContext)(ProConfigContext);
var _useContext2 = (0,_react_17_0_2_react.useContext)(config_provider/* default.ConfigContext */.ZP.ConfigContext),
locale = _useContext2.locale,
theme = _useContext2.theme,
rest = (0,objectWithoutProperties/* default */.Z)(_useContext2, _excluded2);
// 是不是不需要渲染 provide
var isNullProvide = needDeps && proProvide.hashId !== undefined && Object.keys(props).sort().join('-') === 'children-needDeps';
if (isNullProvide) return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: props.children
});
var mergeAlgorithm = function mergeAlgorithm() {
var isDark = dark !== null && dark !== void 0 ? dark : proProvide.dark;
if (isDark && !Array.isArray(theme === null || theme === void 0 ? void 0 : theme.algorithm)) {
return [useStyle/* proTheme */.Ow.darkAlgorithm, theme === null || theme === void 0 ? void 0 : theme.algorithm].filter(Boolean);
}
if (isDark && Array.isArray(theme === null || theme === void 0 ? void 0 : theme.algorithm)) {
return [useStyle/* proTheme */.Ow.darkAlgorithm].concat((0,toConsumableArray/* default */.Z)((theme === null || theme === void 0 ? void 0 : theme.algorithm) || [])).filter(Boolean);
}
return theme === null || theme === void 0 ? void 0 : theme.algorithm;
};
// 自动注入 antd 的配置
var configProvider = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, rest), {}, {
locale: locale || zh_CN/* default */.Z,
theme: omitUndefined((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, theme), {}, {
algorithm: mergeAlgorithm()
}))
});
return /*#__PURE__*/(0,jsx_runtime.jsx)(config_provider/* default */.ZP, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, configProvider), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ConfigProviderContainer, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
token: token
}))
}));
};
/**
* It returns the intl object from the context if it exists, otherwise it returns the intl object for
* 获取国际化的方法
* @param locale
* @param localeMap
* the current locale
* @returns The return value of the function is the intl object.
*/
function useIntl() {
var _useContext3 = (0,_react_17_0_2_react.useContext)(config_provider/* default.ConfigContext */.ZP.ConfigContext),
locale = _useContext3.locale;
var _useContext4 = (0,_react_17_0_2_react.useContext)(ProConfigContext),
intl = _useContext4.intl;
if (intl && intl.locale !== 'default') {
return intl || es_intl/* zhCNIntl */.Hi;
}
if (locale !== null && locale !== void 0 && locale.locale) {
return es_intl/* intlMap */.Go[(0,es_intl/* findIntlKeyByAntdLocaleKey */.Vy)(locale.locale)] || es_intl/* zhCNIntl */.Hi;
}
return es_intl/* zhCNIntl */.Hi;
}
ProConfigContext.displayName = 'ProProvider';
var ProProvider = ProConfigContext;
/* harmony default export */ var pro_provider_es = (ProConfigContext);
/***/ }),
/***/ 81462:
/*!********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/intl.js + 29 modules ***!
\********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Vy: function() { return /* binding */ findIntlKeyByAntdLocaleKey; },
Go: function() { return /* binding */ intlMap; },
Hi: function() { return /* binding */ zhCNIntl; }
});
// UNUSED EXPORTS: arEGIntl, caESIntl, createIntl, csCZIntl, deDEIntl, enGBIntl, enUSIntl, esESIntl, faIRIntl, frFRIntl, heILIntl, hrHRIntl, idIDIntl, intlMapKeys, itITIntl, jaJPIntl, koKRIntl, mnMNIntl, msMYIntl, plPLIntl, ptBRIntl, ruRUIntl, skSKIntl, srRSIntl, thTHIntl, trTRIntl, ukUAIntl, uzUZIntl, viVNIntl, zhTWIntl
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/index.js
var es = __webpack_require__(83794);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/ar_EG.js
/* harmony default export */ var ar_EG = ({
moneySymbol: '$',
form: {
lightFilter: {
more: 'المزيد',
clear: 'نظف',
confirm: 'تأكيد',
itemUnit: 'عناصر'
}
},
tableForm: {
search: 'ابحث',
reset: 'إعادة تعيين',
submit: 'ارسال',
collapsed: 'مُقلص',
expand: 'مُوسع',
inputPlaceholder: 'الرجاء الإدخال',
selectPlaceholder: 'الرجاء الإختيار'
},
alert: {
clear: 'نظف',
selected: 'محدد',
item: 'عنصر'
},
pagination: {
total: {
range: ' ',
total: 'من',
item: 'عناصر'
}
},
tableToolBar: {
leftPin: 'ثبت على اليسار',
rightPin: 'ثبت على اليمين',
noPin: 'الغاء التثبيت',
leftFixedTitle: 'لصق على اليسار',
rightFixedTitle: 'لصق على اليمين',
noFixedTitle: 'إلغاء الإلصاق',
reset: 'إعادة تعيين',
columnDisplay: 'الأعمدة المعروضة',
columnSetting: 'الإعدادات',
fullScreen: 'وضع كامل الشاشة',
exitFullScreen: 'الخروج من وضع كامل الشاشة',
reload: 'تحديث',
density: 'الكثافة',
densityDefault: 'افتراضي',
densityLarger: 'أكبر',
densityMiddle: 'وسط',
densitySmall: 'مدمج'
},
stepsForm: {
next: 'التالي',
prev: 'السابق',
submit: 'أنهى'
},
loginForm: {
submitText: 'تسجيل الدخول'
},
editableTable: {
action: {
save: 'أنقذ',
cancel: 'إلغاء الأمر',
delete: 'حذف',
add: 'إضافة صف من البيانات'
}
},
switch: {
open: 'مفتوح',
close: 'غلق'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/ca_ES.js
/* harmony default export */ var ca_ES = ({
moneySymbol: '€',
form: {
lightFilter: {
more: 'Més',
clear: 'Netejar',
confirm: 'Confirmar',
itemUnit: 'Elements'
}
},
tableForm: {
search: 'Cercar',
reset: 'Netejar',
submit: 'Enviar',
collapsed: 'Expandir',
expand: 'Col·lapsar',
inputPlaceholder: 'Introduïu valor',
selectPlaceholder: 'Seleccioneu valor'
},
alert: {
clear: 'Netejar',
selected: 'Seleccionat',
item: 'Article'
},
pagination: {
total: {
range: ' ',
total: 'de',
item: 'articles'
}
},
tableToolBar: {
leftPin: "Pin a l'esquerra",
rightPin: 'Pin a la dreta',
noPin: 'Sense Pin',
leftFixedTitle: "Fixat a l'esquerra",
rightFixedTitle: 'Fixat a la dreta',
noFixedTitle: 'Sense fixar',
reset: 'Reiniciar',
columnDisplay: 'Mostrar Columna',
columnSetting: 'Configuració',
fullScreen: 'Pantalla Completa',
exitFullScreen: 'Sortir Pantalla Completa',
reload: 'Refrescar',
density: 'Densitat',
densityDefault: 'Per Defecte',
densityLarger: 'Llarg',
densityMiddle: 'Mitjà',
densitySmall: 'Compacte'
},
stepsForm: {
next: 'Següent',
prev: 'Anterior',
submit: 'Finalizar'
},
loginForm: {
submitText: 'Entrar'
},
editableTable: {
action: {
save: 'Guardar',
cancel: 'Cancel·lar',
delete: 'Eliminar',
add: 'afegir una fila de dades'
}
},
switch: {
open: 'obert',
close: 'tancat'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/cs_CZ.js
/* harmony default export */ var cs_CZ = ({
moneySymbol: 'Kč',
deleteThisLine: 'Smazat tento řádek',
copyThisLine: 'Kopírovat tento řádek',
form: {
lightFilter: {
more: 'Víc',
clear: 'Vymazat',
confirm: 'Potvrdit',
itemUnit: 'Položky'
}
},
tableForm: {
search: 'Dotaz',
reset: 'Resetovat',
submit: 'Odeslat',
collapsed: 'Zvětšit',
expand: 'Zmenšit',
inputPlaceholder: 'Zadejte prosím',
selectPlaceholder: 'Vyberte prosím'
},
alert: {
clear: 'Vymazat',
selected: 'Vybraný',
item: 'Položka'
},
pagination: {
total: {
range: ' ',
total: 'z',
item: 'položek'
}
},
tableToolBar: {
leftPin: 'Připnout doleva',
rightPin: 'Připnout doprava',
noPin: 'Odepnuto',
leftFixedTitle: 'Fixováno nalevo',
rightFixedTitle: 'Fixováno napravo',
noFixedTitle: 'Neopraveno',
reset: 'Resetovat',
columnDisplay: 'Zobrazení sloupců',
columnSetting: 'Nastavení',
fullScreen: 'Celá obrazovka',
exitFullScreen: 'Ukončete celou obrazovku',
reload: 'Obnovit',
density: 'Hustota',
densityDefault: 'Výchozí',
densityLarger: 'Větší',
densityMiddle: 'Střední',
densitySmall: 'Kompaktní'
},
stepsForm: {
next: 'Další',
prev: 'Předchozí',
submit: 'Dokončit'
},
loginForm: {
submitText: 'Přihlásit se'
},
editableTable: {
onlyOneLineEditor: 'Upravit lze pouze jeden řádek',
action: {
save: 'Uložit',
cancel: 'Zrušit',
delete: 'Vymazat',
add: 'přidat řádek dat'
}
},
switch: {
open: 'otevřít',
close: 'zavřít'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/de_DE.js
/* harmony default export */ var de_DE = ({
moneySymbol: '€',
form: {
lightFilter: {
more: 'Mehr',
clear: 'Zurücksetzen',
confirm: 'Bestätigen',
itemUnit: 'Einträge'
}
},
tableForm: {
search: 'Suchen',
reset: 'Zurücksetzen',
submit: 'Absenden',
collapsed: 'Zeige mehr',
expand: 'Zeige weniger',
inputPlaceholder: 'Bitte eingeben',
selectPlaceholder: 'Bitte auswählen'
},
alert: {
clear: 'Zurücksetzen',
selected: 'Ausgewählt',
item: 'Eintrag'
},
pagination: {
total: {
range: ' ',
total: 'von',
item: 'Einträgen'
}
},
tableToolBar: {
leftPin: 'Links anheften',
rightPin: 'Rechts anheften',
noPin: 'Nicht angeheftet',
leftFixedTitle: 'Links fixiert',
rightFixedTitle: 'Rechts fixiert',
noFixedTitle: 'Nicht fixiert',
reset: 'Zurücksetzen',
columnDisplay: 'Angezeigte Reihen',
columnSetting: 'Einstellungen',
fullScreen: 'Vollbild',
exitFullScreen: 'Vollbild verlassen',
reload: 'Aktualisieren',
density: 'Abstand',
densityDefault: 'Standard',
densityLarger: 'Größer',
densityMiddle: 'Mittel',
densitySmall: 'Kompakt'
},
stepsForm: {
next: 'Weiter',
prev: 'Zurück',
submit: 'Abschließen'
},
loginForm: {
submitText: 'Anmelden'
},
editableTable: {
action: {
save: 'Retten',
cancel: 'Abbrechen',
delete: 'Löschen',
add: 'Hinzufügen einer Datenzeile'
}
},
switch: {
open: 'offen',
close: 'schließen'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/en_GB.js
/* harmony default export */ var en_GB = ({
moneySymbol: '£',
form: {
lightFilter: {
more: 'More',
clear: 'Clear',
confirm: 'Confirm',
itemUnit: 'Items'
}
},
tableForm: {
search: 'Query',
reset: 'Reset',
submit: 'Submit',
collapsed: 'Expand',
expand: 'Collapse',
inputPlaceholder: 'Please enter',
selectPlaceholder: 'Please select'
},
alert: {
clear: 'Clear',
selected: 'Selected',
item: 'Item'
},
pagination: {
total: {
range: ' ',
total: 'of',
item: 'items'
}
},
tableToolBar: {
leftPin: 'Pin to left',
rightPin: 'Pin to right',
noPin: 'Unpinned',
leftFixedTitle: 'Fixed to the left',
rightFixedTitle: 'Fixed to the right',
noFixedTitle: 'Not Fixed',
reset: 'Reset',
columnDisplay: 'Column Display',
columnSetting: 'Table Settings',
fullScreen: 'Full Screen',
exitFullScreen: 'Exit Full Screen',
reload: 'Refresh',
density: 'Density',
densityDefault: 'Default',
densityLarger: 'Larger',
densityMiddle: 'Middle',
densitySmall: 'Compact'
},
stepsForm: {
next: 'Next',
prev: 'Previous',
submit: 'Finish'
},
loginForm: {
submitText: 'Login'
},
editableTable: {
onlyOneLineEditor: 'Only one line can be edited',
onlyAddOneLine: 'Only one line can be added',
action: {
save: 'Save',
cancel: 'Cancel',
delete: 'Delete',
add: 'add a row of data'
}
},
switch: {
open: 'open',
close: 'close'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/en_US.js
/* harmony default export */ var en_US = ({
moneySymbol: '$',
deleteThisLine: 'Delete this line',
copyThisLine: 'Copy this line',
form: {
lightFilter: {
more: 'More',
clear: 'Clear',
confirm: 'Confirm',
itemUnit: 'Items'
}
},
tableForm: {
search: 'Query',
reset: 'Reset',
submit: 'Submit',
collapsed: 'Expand',
expand: 'Collapse',
inputPlaceholder: 'Please enter',
selectPlaceholder: 'Please select'
},
alert: {
clear: 'Clear',
selected: 'Selected',
item: 'Item'
},
pagination: {
total: {
range: ' ',
total: 'of',
item: 'items'
}
},
tableToolBar: {
leftPin: 'Pin to left',
rightPin: 'Pin to right',
noPin: 'Unpinned',
leftFixedTitle: 'Fixed to the left',
rightFixedTitle: 'Fixed to the right',
noFixedTitle: 'Not Fixed',
reset: 'Reset',
columnDisplay: 'Column Display',
columnSetting: 'Table Settings',
fullScreen: 'Full Screen',
exitFullScreen: 'Exit Full Screen',
reload: 'Refresh',
density: 'Density',
densityDefault: 'Default',
densityLarger: 'Larger',
densityMiddle: 'Middle',
densitySmall: 'Compact'
},
stepsForm: {
next: 'Next',
prev: 'Previous',
submit: 'Finish'
},
loginForm: {
submitText: 'Login'
},
editableTable: {
onlyOneLineEditor: 'Only one line can be edited',
onlyAddOneLine: 'Only one line can be added',
action: {
save: 'Save',
cancel: 'Cancel',
delete: 'Delete',
add: 'add a row of data'
}
},
switch: {
open: 'open',
close: 'close'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/es_ES.js
/* harmony default export */ var es_ES = ({
moneySymbol: '€',
form: {
lightFilter: {
more: 'Más',
clear: 'Limpiar',
confirm: 'Confirmar',
itemUnit: 'artículos'
}
},
tableForm: {
search: 'Buscar',
reset: 'Limpiar',
submit: 'Submit',
collapsed: 'Expandir',
expand: 'Colapsar',
inputPlaceholder: 'Ingrese valor',
selectPlaceholder: 'Seleccione valor'
},
alert: {
clear: 'Limpiar',
selected: 'Seleccionado',
item: 'Articulo'
},
pagination: {
total: {
range: ' ',
total: 'de',
item: 'artículos'
}
},
tableToolBar: {
leftPin: 'Pin a la izquierda',
rightPin: 'Pin a la derecha',
noPin: 'Sin Pin',
leftFixedTitle: 'Fijado a la izquierda',
rightFixedTitle: 'Fijado a la derecha',
noFixedTitle: 'Sin Fijar',
reset: 'Reiniciar',
columnDisplay: 'Mostrar Columna',
columnSetting: 'Configuración',
fullScreen: 'Pantalla Completa',
exitFullScreen: 'Salir Pantalla Completa',
reload: 'Refrescar',
density: 'Densidad',
densityDefault: 'Por Defecto',
densityLarger: 'Largo',
densityMiddle: 'Medio',
densitySmall: 'Compacto'
},
stepsForm: {
next: 'Siguiente',
prev: 'Anterior',
submit: 'Finalizar'
},
loginForm: {
submitText: 'Entrar'
},
editableTable: {
action: {
save: 'Guardar',
cancel: 'Descartar',
delete: 'Borrar',
add: 'añadir una fila de datos'
}
},
switch: {
open: 'abrir',
close: 'cerrar'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/fa_IR.js
/* harmony default export */ var fa_IR = ({
moneySymbol: 'تومان',
form: {
lightFilter: {
more: 'بیشتر',
clear: 'پاک کردن',
confirm: 'تایید',
itemUnit: 'مورد'
}
},
tableForm: {
search: 'جستجو',
reset: 'بازنشانی',
submit: 'تایید',
collapsed: 'نمایش بیشتر',
expand: 'نمایش کمتر',
inputPlaceholder: 'پیدا کنید',
selectPlaceholder: 'انتخاب کنید'
},
alert: {
clear: 'پاک سازی',
selected: 'انتخاب',
item: 'مورد'
},
pagination: {
total: {
range: ' ',
total: 'از',
item: 'مورد'
}
},
tableToolBar: {
leftPin: 'سنجاق به چپ',
rightPin: 'سنجاق به راست',
noPin: 'سنجاق نشده',
leftFixedTitle: 'ثابت شده در چپ',
rightFixedTitle: 'ثابت شده در راست',
noFixedTitle: 'شناور',
reset: 'بازنشانی',
columnDisplay: 'نمایش همه',
columnSetting: 'تنظیمات',
fullScreen: 'تمام صفحه',
exitFullScreen: 'خروج از حالت تمام صفحه',
reload: 'تازه سازی',
density: 'تراکم',
densityDefault: 'پیش فرض',
densityLarger: 'بزرگ',
densityMiddle: 'متوسط',
densitySmall: 'کوچک'
},
stepsForm: {
next: 'بعدی',
prev: 'قبلی',
submit: 'اتمام'
},
loginForm: {
submitText: 'ورود'
},
editableTable: {
action: {
save: 'ذخیره',
cancel: 'لغو',
delete: 'حذف',
add: 'یک ردیف داده اضافه کنید'
}
},
switch: {
open: 'باز',
close: 'نزدیک'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/fr_FR.js
/* harmony default export */ var fr_FR = ({
moneySymbol: '€',
form: {
lightFilter: {
more: 'Plus',
clear: 'Effacer',
confirm: 'Confirmer',
itemUnit: 'Items'
}
},
tableForm: {
search: 'Rechercher',
reset: 'Réinitialiser',
submit: 'Envoyer',
collapsed: 'Agrandir',
expand: 'Réduire',
inputPlaceholder: 'Entrer une valeur',
selectPlaceholder: 'Sélectionner une valeur'
},
alert: {
clear: 'Réinitialiser',
selected: 'Sélectionné',
item: 'Item'
},
pagination: {
total: {
range: ' ',
total: 'sur',
item: 'éléments'
}
},
tableToolBar: {
leftPin: 'Épingler à gauche',
rightPin: 'Épingler à gauche',
noPin: 'Sans épingle',
leftFixedTitle: 'Fixer à gauche',
rightFixedTitle: 'Fixer à droite',
noFixedTitle: 'Non fixé',
reset: 'Réinitialiser',
columnDisplay: 'Affichage colonne',
columnSetting: 'Réglages',
fullScreen: 'Plein écran',
exitFullScreen: 'Quitter Plein écran',
reload: 'Rafraichir',
density: 'Densité',
densityDefault: 'Par défaut',
densityLarger: 'Larger',
densityMiddle: 'Moyenne',
densitySmall: 'Compacte'
},
stepsForm: {
next: 'Suivante',
prev: 'Précédente',
submit: 'Finaliser'
},
loginForm: {
submitText: 'Se connecter'
},
editableTable: {
action: {
save: 'Sauvegarder',
cancel: 'Annuler',
delete: 'Supprimer',
add: 'ajouter une ligne de données'
}
},
switch: {
open: 'ouvert',
close: 'près'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/he_IL.js
/* harmony default export */ var he_IL = ({
moneySymbol: '₪',
deleteThisLine: 'מחק שורה זו',
copyThisLine: 'העתק שורה זו',
form: {
lightFilter: {
more: 'יותר',
clear: 'נקה',
confirm: 'אישור',
itemUnit: 'פריטים'
}
},
tableForm: {
search: 'חיפוש',
reset: 'איפוס',
submit: 'שלח',
collapsed: 'הרחב',
expand: 'כווץ',
inputPlaceholder: 'אנא הכנס',
selectPlaceholder: 'אנא בחר'
},
alert: {
clear: 'נקה',
selected: 'נבחר',
item: 'פריט'
},
pagination: {
total: {
range: ' ',
total: 'מתוך',
item: 'פריטים'
}
},
tableToolBar: {
leftPin: 'הצמד לשמאל',
rightPin: 'הצמד לימין',
noPin: 'לא מצורף',
leftFixedTitle: 'מוצמד לשמאל',
rightFixedTitle: 'מוצמד לימין',
noFixedTitle: 'לא מוצמד',
reset: 'איפוס',
columnDisplay: 'תצוגת עמודות',
columnSetting: 'הגדרות',
fullScreen: 'מסך מלא',
exitFullScreen: 'צא ממסך מלא',
reload: 'רענן',
density: 'רזולוציה',
densityDefault: 'ברירת מחדל',
densityLarger: 'גדול',
densityMiddle: 'בינוני',
densitySmall: 'קטן'
},
stepsForm: {
next: 'הבא',
prev: 'קודם',
submit: 'סיום'
},
loginForm: {
submitText: 'כניסה'
},
editableTable: {
onlyOneLineEditor: 'ניתן לערוך רק שורה אחת',
action: {
save: 'שמור',
cancel: 'ביטול',
delete: 'מחיקה',
add: 'הוסף שורת נתונים'
}
},
switch: {
open: 'פתח',
close: 'סגור'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/hr_HR.js
/* harmony default export */ var hr_HR = ({
moneySymbol: 'kn',
form: {
lightFilter: {
more: 'Više',
clear: 'Očisti',
confirm: 'Potvrdi',
itemUnit: 'Stavke'
}
},
tableForm: {
search: 'Pretraži',
reset: 'Poništi',
submit: 'Potvrdi',
collapsed: 'Raširi',
expand: 'Skupi',
inputPlaceholder: 'Unesite',
selectPlaceholder: 'Odaberite'
},
alert: {
clear: 'Očisti',
selected: 'Odaberi',
item: 'stavke'
},
pagination: {
total: {
range: ' ',
total: 'od',
item: 'stavke'
}
},
tableToolBar: {
leftPin: 'Prikači lijevo',
rightPin: 'Prikači desno',
noPin: 'Bez prikačenja',
leftFixedTitle: 'Fiksiraj lijevo',
rightFixedTitle: 'Fiksiraj desno',
noFixedTitle: 'Bez fiksiranja',
reset: 'Resetiraj',
columnDisplay: 'Prikaz stupaca',
columnSetting: 'Postavke',
fullScreen: 'Puni zaslon',
exitFullScreen: 'Izađi iz punog zaslona',
reload: 'Ponovno učitaj',
density: 'Veličina',
densityDefault: 'Zadano',
densityLarger: 'Veliko',
densityMiddle: 'Srednje',
densitySmall: 'Malo'
},
stepsForm: {
next: 'Sljedeći',
prev: 'Prethodni',
submit: 'Kraj'
},
loginForm: {
submitText: 'Prijava'
},
editableTable: {
action: {
save: 'Spremi',
cancel: 'Odustani',
delete: 'Obriši',
add: 'dodajte red podataka'
}
},
switch: {
open: 'otvori',
close: 'zatvori'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/id_ID.js
/* harmony default export */ var id_ID = ({
moneySymbol: 'RP',
form: {
lightFilter: {
more: 'Lebih',
clear: 'Hapus',
confirm: 'Konfirmasi',
itemUnit: 'Unit'
}
},
tableForm: {
search: 'Cari',
reset: 'Atur ulang',
submit: 'Kirim',
collapsed: 'Lebih sedikit',
expand: 'Lebih banyak',
inputPlaceholder: 'Masukkan pencarian',
selectPlaceholder: 'Pilih'
},
alert: {
clear: 'Hapus',
selected: 'Dipilih',
item: 'Butir'
},
pagination: {
total: {
range: ' ',
total: 'Dari',
item: 'Butir'
}
},
tableToolBar: {
leftPin: 'Pin kiri',
rightPin: 'Pin kanan',
noPin: 'Tidak ada pin',
leftFixedTitle: 'Rata kiri',
rightFixedTitle: 'Rata kanan',
noFixedTitle: 'Tidak tetap',
reset: 'Atur ulang',
columnDisplay: 'Tampilan kolom',
columnSetting: 'Pengaturan',
fullScreen: 'Layar penuh',
exitFullScreen: 'Keluar layar penuh',
reload: 'Atur ulang',
density: 'Kerapatan',
densityDefault: 'Standar',
densityLarger: 'Lebih besar',
densityMiddle: 'Sedang',
densitySmall: 'Rapat'
},
stepsForm: {
next: 'Selanjutnya',
prev: 'Sebelumnya',
submit: 'Selesai'
},
loginForm: {
submitText: 'Login'
},
editableTable: {
action: {
save: 'simpan',
cancel: 'batal',
delete: 'hapus',
add: 'Tambahkan baris data'
}
},
switch: {
open: 'buka',
close: 'tutup'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/it_IT.js
/* harmony default export */ var it_IT = ({
moneySymbol: '€',
form: {
lightFilter: {
more: 'più',
clear: 'pulisci',
confirm: 'conferma',
itemUnit: 'elementi'
}
},
tableForm: {
search: 'Filtra',
reset: 'Pulisci',
submit: 'Invia',
collapsed: 'Espandi',
expand: 'Contrai',
inputPlaceholder: 'Digita',
selectPlaceholder: 'Seleziona'
},
alert: {
clear: 'Rimuovi',
selected: 'Selezionati',
item: 'elementi'
},
pagination: {
total: {
range: ' ',
total: 'di',
item: 'elementi'
}
},
tableToolBar: {
leftPin: 'Fissa a sinistra',
rightPin: 'Fissa a destra',
noPin: 'Ripristina posizione',
leftFixedTitle: 'Fissato a sinistra',
rightFixedTitle: 'Fissato a destra',
noFixedTitle: 'Non fissato',
reset: 'Ripristina',
columnDisplay: 'Disposizione colonne',
columnSetting: 'Impostazioni',
fullScreen: 'Modalità schermo intero',
exitFullScreen: 'Esci da modalità schermo intero',
reload: 'Ricarica',
density: 'Grandezza tabella',
densityDefault: 'predefinito',
densityLarger: 'Grande',
densityMiddle: 'Media',
densitySmall: 'Compatta'
},
stepsForm: {
next: 'successivo',
prev: 'precedente',
submit: 'finisci'
},
loginForm: {
submitText: 'Accedi'
},
editableTable: {
action: {
save: 'salva',
cancel: 'annulla',
delete: 'Delete',
add: 'add a row of data'
}
},
switch: {
open: 'open',
close: 'chiudi'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/ja_JP.js
/* harmony default export */ var ja_JP = ({
moneySymbol: '¥',
form: {
lightFilter: {
more: '更に',
clear: 'クリア',
confirm: '確認',
itemUnit: 'アイテム'
}
},
tableForm: {
search: '検索',
reset: 'リセット',
submit: '送信',
collapsed: '拡大',
expand: '折畳',
inputPlaceholder: '入力してください',
selectPlaceholder: '選択してください'
},
alert: {
clear: 'クリア',
selected: '選択した',
item: 'アイテム'
},
pagination: {
total: {
range: 'レコード',
total: '/合計',
item: ' '
}
},
tableToolBar: {
leftPin: '左に固定',
rightPin: '右に固定',
noPin: 'キャンセル',
leftFixedTitle: '左に固定された項目',
rightFixedTitle: '右に固定された項目',
noFixedTitle: '固定されてない項目',
reset: 'リセット',
columnDisplay: '表示列',
columnSetting: '列表示設定',
fullScreen: 'フルスクリーン',
exitFullScreen: '終了',
reload: '更新',
density: '行高',
densityDefault: 'デフォルト',
densityLarger: '大',
densityMiddle: '中',
densitySmall: '小'
},
stepsForm: {
next: '次へ',
prev: '前へ',
submit: '送信'
},
loginForm: {
submitText: 'ログイン'
},
editableTable: {
action: {
save: '保存',
cancel: 'キャンセル',
delete: '削除',
add: '追加'
}
},
switch: {
open: '開く',
close: '閉じる'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/ko_KR.js
/* harmony default export */ var ko_KR = ({
moneySymbol: '₩',
form: {
lightFilter: {
more: '더보기',
clear: '초기화',
confirm: '확인',
itemUnit: '건수'
}
},
tableForm: {
search: '조회',
reset: '초기화',
submit: '제출',
collapsed: '확장',
expand: '닫기',
inputPlaceholder: '입력해 주세요',
selectPlaceholder: '선택해 주세요'
},
alert: {
clear: '취소',
selected: '선택',
item: '건'
},
pagination: {
total: {
range: ' ',
total: '/ 총',
item: '건'
}
},
tableToolBar: {
leftPin: '왼쪽으로 핀',
rightPin: '오른쪽으로 핀',
noPin: '핀 제거',
leftFixedTitle: '왼쪽으로 고정',
rightFixedTitle: '오른쪽으로 고정',
noFixedTitle: '비고정',
reset: '초기화',
columnDisplay: '컬럼 표시',
columnSetting: '설정',
fullScreen: '전체 화면',
exitFullScreen: '전체 화면 취소',
reload: '새로 고침',
density: '여백',
densityDefault: '기본',
densityLarger: '많은 여백',
densityMiddle: '중간 여백',
densitySmall: '좁은 여백'
},
stepsForm: {
next: '다음',
prev: '이전',
submit: '종료'
},
loginForm: {
submitText: '로그인'
},
editableTable: {
action: {
save: '저장',
cancel: '취소',
delete: '삭제',
add: '데이터 행 추가'
}
},
switch: {
open: '열',
close: '가까 운'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/mn_MN.js
/* harmony default export */ var mn_MN = ({
moneySymbol: '₮',
form: {
lightFilter: {
more: 'Илүү',
clear: 'Цэвэрлэх',
confirm: 'Баталгаажуулах',
itemUnit: 'Нэгжүүд'
}
},
tableForm: {
search: 'Хайх',
reset: 'Шинэчлэх',
submit: 'Илгээх',
collapsed: 'Өргөтгөх',
expand: 'Хураах',
inputPlaceholder: 'Утга оруулна уу',
selectPlaceholder: 'Утга сонгоно уу'
},
alert: {
clear: 'Цэвэрлэх',
selected: 'Сонгогдсон',
item: 'Нэгж'
},
pagination: {
total: {
range: ' ',
total: 'Нийт',
item: 'мөр'
}
},
tableToolBar: {
leftPin: 'Зүүн тийш бэхлэх',
rightPin: 'Баруун тийш бэхлэх',
noPin: 'Бэхлэхгүй',
leftFixedTitle: 'Зүүн зэрэгцүүлэх',
rightFixedTitle: 'Баруун зэрэгцүүлэх',
noFixedTitle: 'Зэрэгцүүлэхгүй',
reset: 'Шинэчлэх',
columnDisplay: 'Баганаар харуулах',
columnSetting: 'Тохиргоо',
fullScreen: 'Бүтэн дэлгэцээр',
exitFullScreen: 'Бүтэн дэлгэц цуцлах',
reload: 'Шинэчлэх',
density: 'Хэмжээ',
densityDefault: 'Хэвийн',
densityLarger: 'Том',
densityMiddle: 'Дунд',
densitySmall: 'Жижиг'
},
stepsForm: {
next: 'Дараах',
prev: 'Өмнөх',
submit: 'Дуусгах'
},
loginForm: {
submitText: 'Нэвтрэх'
},
editableTable: {
action: {
save: 'Хадгалах',
cancel: 'Цуцлах',
delete: 'Устгах',
add: 'Мөр нэмэх'
}
},
switch: {
open: 'Нээх',
close: 'Хаах'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/ms_MY.js
/* harmony default export */ var ms_MY = ({
moneySymbol: 'RM',
form: {
lightFilter: {
more: 'Lebih banyak',
clear: 'Jelas',
confirm: 'Mengesahkan',
itemUnit: 'Item'
}
},
tableForm: {
search: 'Cari',
reset: 'Menetapkan semula',
submit: 'Hantar',
collapsed: 'Kembang',
expand: 'Kuncup',
inputPlaceholder: 'Sila masuk',
selectPlaceholder: 'Sila pilih'
},
alert: {
clear: 'Padam',
selected: 'Dipilih',
item: 'Item'
},
pagination: {
total: {
range: ' ',
total: 'daripada',
item: 'item'
}
},
tableToolBar: {
leftPin: 'Pin ke kiri',
rightPin: 'Pin ke kanan',
noPin: 'Tidak pin',
leftFixedTitle: 'Tetap ke kiri',
rightFixedTitle: 'Tetap ke kanan',
noFixedTitle: 'Tidak Tetap',
reset: 'Menetapkan semula',
columnDisplay: 'Lajur',
columnSetting: 'Settings',
fullScreen: 'Full Screen',
exitFullScreen: 'Keluar Full Screen',
reload: 'Muat Semula',
density: 'Densiti',
densityDefault: 'Biasa',
densityLarger: 'Besar',
densityMiddle: 'Tengah',
densitySmall: 'Kecil'
},
stepsForm: {
next: 'Seterusnya',
prev: 'Sebelumnya',
submit: 'Selesai'
},
loginForm: {
submitText: 'Log Masuk'
},
editableTable: {
action: {
save: 'Simpan',
cancel: 'Membatalkan',
delete: 'Menghapuskan',
add: 'tambah baris data'
}
},
switch: {
open: 'Terbuka',
close: 'Tutup'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/pl_PL.js
/* harmony default export */ var pl_PL = ({
moneySymbol: 'zł',
form: {
lightFilter: {
more: 'Więcej',
clear: 'Wyczyść',
confirm: 'Potwierdź',
itemUnit: 'Ilość'
}
},
tableForm: {
search: 'Szukaj',
reset: 'Reset',
submit: 'Zatwierdź',
collapsed: 'Pokaż wiecej',
expand: 'Pokaż mniej',
inputPlaceholder: 'Proszę podać',
selectPlaceholder: 'Proszę wybrać'
},
alert: {
clear: 'Wyczyść',
selected: 'Wybrane',
item: 'Wpis'
},
pagination: {
total: {
range: ' ',
total: 'z',
item: 'Wpisów'
}
},
tableToolBar: {
leftPin: 'Przypnij do lewej',
rightPin: 'Przypnij do prawej',
noPin: 'Odepnij',
leftFixedTitle: 'Przypięte do lewej',
rightFixedTitle: 'Przypięte do prawej',
noFixedTitle: 'Nieprzypięte',
reset: 'Reset',
columnDisplay: 'Wyświetlane wiersze',
columnSetting: 'Ustawienia',
fullScreen: 'Pełen ekran',
exitFullScreen: 'Zamknij pełen ekran',
reload: 'Odśwież',
density: 'Odstęp',
densityDefault: 'Standard',
densityLarger: 'Wiekszy',
densityMiddle: 'Sredni',
densitySmall: 'Kompaktowy'
},
stepsForm: {
next: 'Weiter',
prev: 'Zurück',
submit: 'Abschließen'
},
loginForm: {
submitText: 'Zaloguj się'
},
editableTable: {
action: {
save: 'Zapisać',
cancel: 'Anuluj',
delete: 'Usunąć',
add: 'dodawanie wiersza danych'
}
},
switch: {
open: 'otwierać',
close: 'zamykać'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/pt_BR.js
/* harmony default export */ var pt_BR = ({
moneySymbol: 'R$',
form: {
lightFilter: {
more: 'Mais',
clear: 'Limpar',
confirm: 'Confirmar',
itemUnit: 'Itens'
}
},
tableForm: {
search: 'Filtrar',
reset: 'Limpar',
submit: 'Confirmar',
collapsed: 'Expandir',
expand: 'Colapsar',
inputPlaceholder: 'Por favor insira',
selectPlaceholder: 'Por favor selecione'
},
alert: {
clear: 'Limpar',
selected: 'Selecionado(s)',
item: 'Item(s)'
},
pagination: {
total: {
range: ' ',
total: 'de',
item: 'itens'
}
},
tableToolBar: {
leftPin: 'Fixar à esquerda',
rightPin: 'Fixar à direita',
noPin: 'Desfixado',
leftFixedTitle: 'Fixado à esquerda',
rightFixedTitle: 'Fixado à direita',
noFixedTitle: 'Não fixado',
reset: 'Limpar',
columnDisplay: 'Mostrar Coluna',
columnSetting: 'Configurações',
fullScreen: 'Tela Cheia',
exitFullScreen: 'Sair da Tela Cheia',
reload: 'Atualizar',
density: 'Densidade',
densityDefault: 'Padrão',
densityLarger: 'Largo',
densityMiddle: 'Médio',
densitySmall: 'Compacto'
},
stepsForm: {
next: 'Próximo',
prev: 'Anterior',
submit: 'Enviar'
},
loginForm: {
submitText: 'Entrar'
},
editableTable: {
action: {
save: 'Salvar',
cancel: 'Cancelar',
delete: 'Apagar',
add: 'adicionar uma linha de dados'
}
},
switch: {
open: 'abrir',
close: 'fechar'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/ru_RU.js
/* harmony default export */ var ru_RU = ({
moneySymbol: '₽',
form: {
lightFilter: {
more: 'Еще',
clear: 'Очистить',
confirm: 'ОК',
itemUnit: 'Позиции'
}
},
tableForm: {
search: 'Найти',
reset: 'Сброс',
submit: 'Отправить',
collapsed: 'Развернуть',
expand: 'Свернуть',
inputPlaceholder: 'Введите значение',
selectPlaceholder: 'Выберите значение'
},
alert: {
clear: 'Очистить',
selected: 'Выбрано',
item: 'элементов'
},
pagination: {
total: {
range: ' ',
total: 'из',
item: 'элементов'
}
},
tableToolBar: {
leftPin: 'Закрепить слева',
rightPin: 'Закрепить справа',
noPin: 'Открепить',
leftFixedTitle: 'Закреплено слева',
rightFixedTitle: 'Закреплено справа',
noFixedTitle: 'Не закреплено',
reset: 'Сброс',
columnDisplay: 'Отображение столбца',
columnSetting: 'Настройки',
fullScreen: 'Полный экран',
exitFullScreen: 'Выйти из полноэкранного режима',
reload: 'Обновить',
density: 'Размер',
densityDefault: 'По умолчанию',
densityLarger: 'Большой',
densityMiddle: 'Средний',
densitySmall: 'Сжатый'
},
stepsForm: {
next: 'Следующий',
prev: 'Предыдущий',
submit: 'Завершить'
},
loginForm: {
submitText: 'Вход'
},
editableTable: {
action: {
save: 'Сохранить',
cancel: 'Отменить',
delete: 'Удалить',
add: 'добавить ряд данных'
}
},
switch: {
open: 'Открытый чемпионат мира по теннису',
close: 'По адресу:'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/sk_SK.js
/* harmony default export */ var sk_SK = ({
moneySymbol: '€',
deleteThisLine: 'Odstrániť tento riadok',
copyThisLine: 'Skopírujte tento riadok',
form: {
lightFilter: {
more: 'Viac',
clear: 'Vyčistiť',
confirm: 'Potvrďte',
itemUnit: 'Položky'
}
},
tableForm: {
search: 'Vyhladať',
reset: 'Resetovať',
submit: 'Odoslať',
collapsed: 'Rozbaliť',
expand: 'Zbaliť',
inputPlaceholder: 'Prosím, zadajte',
selectPlaceholder: 'Prosím, vyberte'
},
alert: {
clear: 'Vyčistiť',
selected: 'Vybraný',
item: 'Položka'
},
pagination: {
total: {
range: ' ',
total: 'z',
item: 'položiek'
}
},
tableToolBar: {
leftPin: 'Pripnúť vľavo',
rightPin: 'Pripnúť vpravo',
noPin: 'Odopnuté',
leftFixedTitle: 'Fixované na ľavo',
rightFixedTitle: 'Fixované na pravo',
noFixedTitle: 'Nefixované',
reset: 'Resetovať',
columnDisplay: 'Zobrazenie stĺpcov',
columnSetting: 'Nastavenia',
fullScreen: 'Celá obrazovka',
exitFullScreen: 'Ukončiť celú obrazovku',
reload: 'Obnoviť',
density: 'Hustota',
densityDefault: 'Predvolené',
densityLarger: 'Väčšie',
densityMiddle: 'Stredné',
densitySmall: 'Kompaktné'
},
stepsForm: {
next: 'Ďalšie',
prev: 'Predchádzajúce',
submit: 'Potvrdiť'
},
loginForm: {
submitText: 'Prihlásiť sa'
},
editableTable: {
onlyOneLineEditor: 'Upravovať možno iba jeden riadok',
action: {
save: 'Uložiť',
cancel: 'Zrušiť',
delete: 'Odstrániť',
add: 'pridať riadok údajov'
}
},
switch: {
open: 'otvoriť',
close: 'zavrieť'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/sr_RS.js
/* harmony default export */ var sr_RS = ({
moneySymbol: 'RSD',
form: {
lightFilter: {
more: 'Više',
clear: 'Očisti',
confirm: 'Potvrdi',
itemUnit: 'Stavke'
}
},
tableForm: {
search: 'Pronađi',
reset: 'Resetuj',
submit: 'Pošalji',
collapsed: 'Proširi',
expand: 'Skupi',
inputPlaceholder: 'Molimo unesite',
selectPlaceholder: 'Molimo odaberite'
},
alert: {
clear: 'Očisti',
selected: 'Odabrano',
item: 'Stavka'
},
pagination: {
total: {
range: ' ',
total: 'od',
item: 'stavki'
}
},
tableToolBar: {
leftPin: 'Zakači levo',
rightPin: 'Zakači desno',
noPin: 'Nije zakačeno',
leftFixedTitle: 'Fiksirano levo',
rightFixedTitle: 'Fiksirano desno',
noFixedTitle: 'Nije fiksirano',
reset: 'Resetuj',
columnDisplay: 'Prikaz kolona',
columnSetting: 'Podešavanja',
fullScreen: 'Pun ekran',
exitFullScreen: 'Zatvori pun ekran',
reload: 'Osveži',
density: 'Veličina',
densityDefault: 'Podrazumevana',
densityLarger: 'Veća',
densityMiddle: 'Srednja',
densitySmall: 'Kompaktna'
},
stepsForm: {
next: 'Dalje',
prev: 'Nazad',
submit: 'Gotovo'
},
loginForm: {
submitText: 'Prijavi se'
},
editableTable: {
action: {
save: 'Sačuvaj',
cancel: 'Poništi',
delete: 'Obriši',
add: 'dodajte red podataka'
}
},
switch: {
open: 'Отворите',
close: 'Затворите'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/th_TH.js
/* harmony default export */ var th_TH = ({
moneySymbol: '฿',
deleteThisLine: 'ลบบรรทัดนี้',
copyThisLine: 'คัดลอกบรรทัดนี้',
form: {
lightFilter: {
more: 'มากกว่า',
clear: 'ชัดเจน',
confirm: 'ยืนยัน',
itemUnit: 'รายการ'
}
},
tableForm: {
search: 'สอบถาม',
reset: 'รีเซ็ต',
submit: 'ส่ง',
collapsed: 'ขยาย',
expand: 'ทรุด',
inputPlaceholder: 'กรุณาป้อน',
selectPlaceholder: 'โปรดเลือก'
},
alert: {
clear: 'ชัดเจน',
selected: 'เลือกแล้ว',
item: 'รายการ'
},
pagination: {
total: {
range: ' ',
total: 'ของ',
item: 'รายการ'
}
},
tableToolBar: {
leftPin: 'ปักหมุดไปทางซ้าย',
rightPin: 'ปักหมุดไปทางขวา',
noPin: 'เลิกตรึงแล้ว',
leftFixedTitle: 'แก้ไขด้านซ้าย',
rightFixedTitle: 'แก้ไขด้านขวา',
noFixedTitle: 'ไม่คงที่',
reset: 'รีเซ็ต',
columnDisplay: 'การแสดงคอลัมน์',
columnSetting: 'การตั้งค่า',
fullScreen: 'เต็มจอ',
exitFullScreen: 'ออกจากโหมดเต็มหน้าจอ',
reload: 'รีเฟรช',
density: 'ความหนาแน่น',
densityDefault: 'ค่าเริ่มต้น',
densityLarger: 'ขนาดใหญ่ขึ้น',
densityMiddle: 'กลาง',
densitySmall: 'กะทัดรัด'
},
stepsForm: {
next: 'ถัดไป',
prev: 'ก่อนหน้า',
submit: 'เสร็จ'
},
loginForm: {
submitText: 'เข้าสู่ระบบ'
},
editableTable: {
onlyOneLineEditor: 'แก้ไขได้เพียงบรรทัดเดียวเท่านั้น',
action: {
save: 'บันทึก',
cancel: 'ยกเลิก',
delete: 'ลบ',
add: 'เพิ่มแถวของข้อมูล'
}
},
switch: {
open: 'เปิด',
close: 'ปิด'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/tr_TR.js
/* harmony default export */ var tr_TR = ({
moneySymbol: '₺',
form: {
lightFilter: {
more: 'Daha Fazla',
clear: 'Temizle',
confirm: 'Onayla',
itemUnit: 'Öğeler'
}
},
tableForm: {
search: 'Filtrele',
reset: 'Sıfırla',
submit: 'Gönder',
collapsed: 'Daha fazla',
expand: 'Daha az',
inputPlaceholder: 'Filtrelemek için bir değer girin',
selectPlaceholder: 'Filtrelemek için bir değer seçin'
},
alert: {
clear: 'Temizle',
selected: 'Seçili',
item: 'Öğe'
},
pagination: {
total: {
range: ' ',
total: 'Toplam',
item: 'Öğe'
}
},
tableToolBar: {
leftPin: 'Sola sabitle',
rightPin: 'Sağa sabitle',
noPin: 'Sabitlemeyi kaldır',
leftFixedTitle: 'Sola sabitlendi',
rightFixedTitle: 'Sağa sabitlendi',
noFixedTitle: 'Sabitlenmedi',
reset: 'Sıfırla',
columnDisplay: 'Kolon Görünümü',
columnSetting: 'Ayarlar',
fullScreen: 'Tam Ekran',
exitFullScreen: 'Tam Ekrandan Çık',
reload: 'Yenile',
density: 'Kalınlık',
densityDefault: 'Varsayılan',
densityLarger: 'Büyük',
densityMiddle: 'Orta',
densitySmall: 'Küçük'
},
stepsForm: {
next: 'Sıradaki',
prev: 'Önceki',
submit: 'Gönder'
},
loginForm: {
submitText: 'Giriş Yap'
},
editableTable: {
action: {
save: 'Kaydet',
cancel: 'Vazgeç',
delete: 'Sil',
add: 'foegje in rige gegevens ta'
}
},
switch: {
open: 'açık',
close: 'kapatmak'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/uk_UA.js
/* harmony default export */ var uk_UA = ({
moneySymbol: '₴',
deleteThisLine: 'Видатили рядок',
copyThisLine: 'Скопіювати рядок',
form: {
lightFilter: {
more: 'Ще',
clear: 'Очистити',
confirm: 'Ок',
itemUnit: 'Позиції'
}
},
tableForm: {
search: 'Пошук',
reset: 'Очистити',
submit: 'Відправити',
collapsed: 'Розгорнути',
expand: 'Згорнути',
inputPlaceholder: 'Введіть значення',
selectPlaceholder: 'Оберіть значення'
},
alert: {
clear: 'Очистити',
selected: 'Обрано',
item: 'елементів'
},
pagination: {
total: {
range: ' ',
total: 'з',
item: 'елементів'
}
},
tableToolBar: {
leftPin: 'Закріпити зліва',
rightPin: 'Закріпити справа',
noPin: 'Відкріпити',
leftFixedTitle: 'Закріплено зліва',
rightFixedTitle: 'Закріплено справа',
noFixedTitle: 'Не закріплено',
reset: 'Скинути',
columnDisplay: 'Відображення стовпців',
columnSetting: 'Налаштування',
fullScreen: 'Повноекранний режим',
exitFullScreen: 'Вийти з повноекранного режиму',
reload: 'Оновити',
density: 'Розмір',
densityDefault: 'За замовчуванням',
densityLarger: 'Великий',
densityMiddle: 'Середній',
densitySmall: 'Стислий'
},
stepsForm: {
next: 'Наступний',
prev: 'Попередній',
submit: 'Завершити'
},
loginForm: {
submitText: 'Вхіх'
},
editableTable: {
onlyOneLineEditor: 'Тільки один рядок може бути редагований одночасно',
action: {
save: 'Зберегти',
cancel: 'Відмінити',
delete: 'Видалити',
add: 'додати рядок'
}
},
switch: {
open: 'Відкрито',
close: 'Закрито'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/uz_UZ.js
/* harmony default export */ var uz_UZ = ({
moneySymbol: 'UZS',
form: {
lightFilter: {
more: 'Yana',
clear: 'Tozalash',
confirm: 'OK',
itemUnit: 'Pozitsiyalar'
}
},
tableForm: {
search: 'Qidirish',
reset: 'Qayta tiklash',
submit: 'Yuborish',
collapsed: 'Yigish',
expand: 'Kengaytirish',
inputPlaceholder: 'Qiymatni kiriting',
selectPlaceholder: 'Qiymatni tanlang'
},
alert: {
clear: 'Tozalash',
selected: 'Tanlangan',
item: 'elementlar'
},
pagination: {
total: {
range: ' ',
total: 'dan',
item: 'elementlar'
}
},
tableToolBar: {
leftPin: 'Chapga mahkamlash',
rightPin: 'Ongga mahkamlash',
noPin: 'Mahkamlashni olib tashlash',
leftFixedTitle: 'Chapga mahkamlangan',
rightFixedTitle: 'Ongga mahkamlangan',
noFixedTitle: 'Mahkamlashsiz',
reset: 'Qayta tiklash',
columnDisplay: 'Ustunni korsatish',
columnSetting: 'Sozlamalar',
fullScreen: 'Toliq ekran',
exitFullScreen: 'Toliq ekrandan chiqish',
reload: 'Yangilash',
density: 'Olcham',
densityDefault: 'Standart',
densityLarger: 'Katta',
densityMiddle: 'Ortacha',
densitySmall: 'Kichik'
},
stepsForm: {
next: 'Keyingi',
prev: 'Oldingi',
submit: 'Tugatish'
},
loginForm: {
submitText: 'Kirish'
},
editableTable: {
action: {
save: 'Saqlash',
cancel: 'Bekor qilish',
delete: 'Ochirish',
add: 'maʼlumotlar qatorini qoshish'
}
},
switch: {
open: 'Ochish',
close: 'Yopish'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/vi_VN.js
/* harmony default export */ var vi_VN = ({
moneySymbol: '₫',
form: {
lightFilter: {
more: 'Nhiều hơn',
clear: 'Trong',
confirm: 'Xác nhận',
itemUnit: 'Mục'
}
},
tableForm: {
search: 'Tìm kiếm',
reset: 'Làm lại',
submit: 'Gửi đi',
collapsed: 'Mở rộng',
expand: 'Thu gọn',
inputPlaceholder: 'nhập dữ liệu',
selectPlaceholder: 'Vui lòng chọn'
},
alert: {
clear: 'Xóa',
selected: 'đã chọn',
item: 'mục'
},
pagination: {
total: {
range: ' ',
total: 'trên',
item: 'mặt hàng'
}
},
tableToolBar: {
leftPin: 'Ghim trái',
rightPin: 'Ghim phải',
noPin: 'Bỏ ghim',
leftFixedTitle: 'Cố định trái',
rightFixedTitle: 'Cố định phải',
noFixedTitle: 'Chưa cố định',
reset: 'Làm lại',
columnDisplay: 'Cột hiển thị',
columnSetting: 'Cấu hình',
fullScreen: 'Chế độ toàn màn hình',
exitFullScreen: 'Thoát chế độ toàn màn hình',
reload: 'Làm mới',
density: 'Mật độ hiển thị',
densityDefault: 'Mặc định',
densityLarger: 'Mặc định',
densityMiddle: 'Trung bình',
densitySmall: 'Chật'
},
stepsForm: {
next: 'Sau',
prev: 'Trước',
submit: 'Kết thúc'
},
loginForm: {
submitText: 'Đăng nhập'
},
editableTable: {
action: {
save: 'Cứu',
cancel: 'Hủy',
delete: 'Xóa',
add: 'thêm một hàng dữ liệu'
}
},
switch: {
open: 'mở',
close: 'đóng'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/zh_CN.js
/* harmony default export */ var zh_CN = ({
moneySymbol: '¥',
deleteThisLine: '删除此项',
copyThisLine: '复制此项',
form: {
lightFilter: {
more: '更多筛选',
clear: '清除',
confirm: '确认',
itemUnit: '项'
}
},
tableForm: {
search: '查询',
reset: '重置',
submit: '提交',
collapsed: '展开',
expand: '收起',
inputPlaceholder: '请输入',
selectPlaceholder: '请选择'
},
alert: {
clear: '取消选择',
selected: '已选择',
item: '项'
},
pagination: {
total: {
range: '第',
total: '条/总共',
item: '条'
}
},
tableToolBar: {
leftPin: '固定在列首',
rightPin: '固定在列尾',
noPin: '不固定',
leftFixedTitle: '固定在左侧',
rightFixedTitle: '固定在右侧',
noFixedTitle: '不固定',
reset: '重置',
columnDisplay: '列展示',
columnSetting: '列设置',
fullScreen: '全屏',
exitFullScreen: '退出全屏',
reload: '刷新',
density: '密度',
densityDefault: '正常',
densityLarger: '宽松',
densityMiddle: '中等',
densitySmall: '紧凑'
},
stepsForm: {
next: '下一步',
prev: '上一步',
submit: '提交'
},
loginForm: {
submitText: '登录'
},
editableTable: {
onlyOneLineEditor: '只能同时编辑一行',
action: {
save: '保存',
cancel: '取消',
delete: '删除',
add: '添加一行数据'
}
},
switch: {
open: '打开',
close: '关闭'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/locale/zh_TW.js
/* harmony default export */ var zh_TW = ({
moneySymbol: 'NT$',
deleteThisLine: '刪除此项',
copyThisLine: '複製此项',
form: {
lightFilter: {
more: '更多篩選',
clear: '清除',
confirm: '確認',
itemUnit: '項'
}
},
tableForm: {
search: '查詢',
reset: '重置',
submit: '提交',
collapsed: '展開',
expand: '收起',
inputPlaceholder: '請輸入',
selectPlaceholder: '請選擇'
},
alert: {
clear: '取消選擇',
selected: '已選擇',
item: '項'
},
pagination: {
total: {
range: '第',
total: '條/總共',
item: '條'
}
},
tableToolBar: {
leftPin: '固定到左邊',
rightPin: '固定到右邊',
noPin: '不固定',
leftFixedTitle: '固定在左側',
rightFixedTitle: '固定在右側',
noFixedTitle: '不固定',
reset: '重置',
columnDisplay: '列展示',
columnSetting: '列設置',
fullScreen: '全屏',
exitFullScreen: '退出全屏',
reload: '刷新',
density: '密度',
densityDefault: '正常',
densityLarger: '寬鬆',
densityMiddle: '中等',
densitySmall: '緊湊'
},
stepsForm: {
next: '下一步',
prev: '上一步',
submit: '完成'
},
loginForm: {
submitText: '登入'
},
editableTable: {
onlyOneLineEditor: '只能同時編輯一行',
action: {
save: '保存',
cancel: '取消',
delete: '刪除',
add: '新增一行資料'
}
},
switch: {
open: '打開',
close: '關閉'
}
});
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/intl.js
/**
* 创建一个国际化的操作函数
*
* @param locale
* @param localeMap
*/
var createIntl = function createIntl(locale, localeMap) {
return {
getMessage: function getMessage(id, defaultMessage) {
var msg = (0,es.get)(localeMap, id.replace(/\[(\d+)\]/g, '.$1').split('.')) || '';
if (msg) return msg;
var localKey = locale.replace('_', '-');
if (localKey === 'zh-CN') {
return defaultMessage;
}
// eslint-disable-next-line @typescript-eslint/no-use-before-define
var intl = intlMap['zh-CN'];
return intl ? intl.getMessage(id, defaultMessage) : defaultMessage;
},
locale: locale
};
};
var mnMNIntl = createIntl('mn_MN', mn_MN);
var arEGIntl = createIntl('ar_EG', ar_EG);
var zhCNIntl = createIntl('zh_CN', zh_CN);
var enUSIntl = createIntl('en_US', en_US);
var enGBIntl = createIntl('en_GB', en_GB);
var viVNIntl = createIntl('vi_VN', vi_VN);
var itITIntl = createIntl('it_IT', it_IT);
var jaJPIntl = createIntl('ja_JP', ja_JP);
var esESIntl = createIntl('es_ES', es_ES);
var caESIntl = createIntl('ca_ES', ca_ES);
var ruRUIntl = createIntl('ru_RU', ru_RU);
var srRSIntl = createIntl('sr_RS', sr_RS);
var msMYIntl = createIntl('ms_MY', ms_MY);
var zhTWIntl = createIntl('zh_TW', zh_TW);
var frFRIntl = createIntl('fr_FR', fr_FR);
var ptBRIntl = createIntl('pt_BR', pt_BR);
var koKRIntl = createIntl('ko_KR', ko_KR);
var idIDIntl = createIntl('id_ID', id_ID);
var deDEIntl = createIntl('de_DE', de_DE);
var faIRIntl = createIntl('fa_IR', fa_IR);
var trTRIntl = createIntl('tr_TR', tr_TR);
var plPLIntl = createIntl('pl_PL', pl_PL);
var hrHRIntl = createIntl('hr_', hr_HR);
var thTHIntl = createIntl('th_TH', th_TH);
var csCZIntl = createIntl('cs_cz', cs_CZ);
var skSKIntl = createIntl('sk_SK', sk_SK);
var heILIntl = createIntl('he_IL', he_IL);
var ukUAIntl = createIntl('uk_UA', uk_UA);
var uzUZIntl = createIntl('uz_UZ', uz_UZ);
var intlMap = {
'mn-MN': mnMNIntl,
'ar-EG': arEGIntl,
'zh-CN': zhCNIntl,
'en-US': enUSIntl,
'en-GB': enGBIntl,
'vi-VN': viVNIntl,
'it-IT': itITIntl,
'ja-JP': jaJPIntl,
'es-ES': esESIntl,
'ca-ES': caESIntl,
'ru-RU': ruRUIntl,
'sr-RS': srRSIntl,
'ms-MY': msMYIntl,
'zh-TW': zhTWIntl,
'fr-FR': frFRIntl,
'pt-BR': ptBRIntl,
'ko-KR': koKRIntl,
'id-ID': idIDIntl,
'de-DE': deDEIntl,
'fa-IR': faIRIntl,
'tr-TR': trTRIntl,
'pl-PL': plPLIntl,
'hr-HR': hrHRIntl,
'th-TH': thTHIntl,
'cs-CZ': csCZIntl,
'sk-SK': skSKIntl,
'he-IL': heILIntl,
'uk-UA': ukUAIntl,
'uz-UZ': uzUZIntl
};
var intlMapKeys = Object.keys(intlMap);
/**
* 根据 antd 的 key 来找到的 locale 插件的 key
*
* @param localeKey
*/
var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
var localeName = (localeKey || 'zh-CN').toLocaleLowerCase();
return intlMapKeys.find(function (intlKey) {
var LowerCaseKey = intlKey.toLocaleLowerCase();
return LowerCaseKey.includes(localeName);
});
};
/***/ }),
/***/ 75898:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/useStyle/index.js ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Nd: function() { return /* binding */ operationUnit; },
/* harmony export */ Ow: function() { return /* binding */ proTheme; },
/* harmony export */ Wf: function() { return /* binding */ resetComponent; },
/* harmony export */ Xj: function() { return /* binding */ useStyle; },
/* harmony export */ dQ: function() { return /* binding */ useToken; },
/* harmony export */ uK: function() { return /* binding */ setAlpha; }
/* harmony export */ });
/* unused harmony export lighten */
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 81162);
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 7102);
/* harmony import */ var _ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ctrl/tinycolor */ 64993);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ 12838);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ 92736);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../index */ 83410);
/* harmony import */ var _token__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./token */ 35681);
/**
* 把一个颜色设置一下透明度
* @example (#fff, 0.5) => rgba(255, 255, 255, 0.5)
* @param baseColor {string}
* @param alpha {0-1}
* @returns rgba {string}
*/
var setAlpha = function setAlpha(baseColor, alpha) {
return new _ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_2__/* .TinyColor */ .C(baseColor).setAlpha(alpha).toRgbString();
};
/**
* 把一个颜色修改一些明度
* @example (#000, 50) => #808080
* @param baseColor {string}
* @param brightness {0-100}
* @returns hexColor {string}
*/
var lighten = function lighten(baseColor, brightness) {
var instance = new TinyColor(baseColor);
return instance.lighten(brightness).toHexString();
};
var genTheme = function genTheme() {
if (typeof antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z === 'undefined' || !antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z) return _token__WEBPACK_IMPORTED_MODULE_4__;
return antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z;
};
var proTheme = genTheme();
var useToken = proTheme.useToken;
var resetComponent = function resetComponent(token) {
return {
boxSizing: 'border-box',
margin: 0,
padding: 0,
color: token.colorText,
fontSize: token.fontSize,
lineHeight: token.lineHeight,
listStyle: 'none'
};
};
var operationUnit = function operationUnit(token) {
return {
// FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
// And Typography use this to generate link style which should not do this.
color: token.colorLink,
outline: 'none',
cursor: 'pointer',
transition: "color ".concat(token.motionDurationSlow),
'&:focus, &:hover': {
color: token.colorLinkHover
},
'&:active': {
color: token.colorLinkActive
}
};
};
/**
* 封装了一下 antd 的 useStyle支持了一下antd@4
* @param componentName {string} 组件的名字
* @param styleFn {GenerateStyle} 生成样式的函数
* @returns UseStyleResult
*/
function useStyle(componentName, styleFn) {
var _token$proComponentsC;
var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_index__WEBPACK_IMPORTED_MODULE_5__/* .ProProvider */ .L_),
_useContext$token = _useContext.token,
token = _useContext$token === void 0 ? {} : _useContext$token;
var _useContext2 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_index__WEBPACK_IMPORTED_MODULE_5__/* .ProProvider */ .L_),
hashed = _useContext2.hashed;
var _useToken = useToken(),
antdToken = _useToken.token,
hashId = _useToken.hashId;
var _useContext3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_index__WEBPACK_IMPORTED_MODULE_5__/* .ProProvider */ .L_),
provideTheme = _useContext3.theme;
var _useContext4 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(antd__WEBPACK_IMPORTED_MODULE_6__/* ["default"].ConfigContext */ .ZP.ConfigContext),
getPrefixCls = _useContext4.getPrefixCls;
// 如果不在 ProProvider 里面,就用 antd 的
if (!token.layout) {
token = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({}, antdToken);
}
token.proComponentsCls = (_token$proComponentsC = token.proComponentsCls) !== null && _token$proComponentsC !== void 0 ? _token$proComponentsC : ".".concat(getPrefixCls('pro'));
token.antCls = ".".concat(getPrefixCls());
return {
wrapSSR: (0,_ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.useStyleRegister)({
theme: provideTheme,
token: token,
path: [componentName]
}, function () {
return styleFn(token);
}),
hashId: hashed ? hashId : ''
};
}
/***/ }),
/***/ 35681:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-provider@2.14.9@@ant-design/pro-provider/es/useStyle/token.js ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ defaultToken: function() { return /* binding */ defaultToken; },
/* harmony export */ emptyTheme: function() { return /* binding */ emptyTheme; },
/* harmony export */ hashCode: function() { return /* binding */ hashCode; },
/* harmony export */ token: function() { return /* binding */ token; },
/* harmony export */ useToken: function() { return /* binding */ useToken; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 81162);
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 7102);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd */ 12838);
var _theme$defaultAlgorit;
var defaultToken = {
blue: '#1677ff',
purple: '#722ED1',
cyan: '#13C2C2',
green: '#52C41A',
magenta: '#EB2F96',
pink: '#eb2f96',
red: '#F5222D',
orange: '#FA8C16',
yellow: '#FADB14',
volcano: '#FA541C',
geekblue: '#2F54EB',
gold: '#FAAD14',
lime: '#A0D911',
colorPrimary: '#1677ff',
colorSuccess: '#52c41a',
colorWarning: '#faad14',
colorError: '#ff7875',
colorInfo: '#1677ff',
colorTextBase: '#000',
colorBgBase: '#fff',
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
fontSize: 14,
lineWidth: 1,
lineType: 'solid',
motionUnit: 0.1,
motionBase: 0,
motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
motionEaseInQuint: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
borderRadius: 4,
sizeUnit: 4,
sizeStep: 4,
sizePopupArrow: 16,
controlHeight: 32,
zIndexBase: 0,
zIndexPopupBase: 1000,
opacityImage: 1,
wireframe: false,
'blue-1': '#e6f4ff',
'blue-2': '#bae0ff',
'blue-3': '#91caff',
'blue-4': '#69b1ff',
'blue-5': '#4096ff',
'blue-6': '#1677ff',
'blue-7': '#0958d9',
'blue-8': '#003eb3',
'blue-9': '#002c8c',
'blue-10': '#001d66',
'purple-1': '#f9f0ff',
'purple-2': '#efdbff',
'purple-3': '#d3adf7',
'purple-4': '#b37feb',
'purple-5': '#9254de',
'purple-6': '#722ed1',
'purple-7': '#531dab',
'purple-8': '#391085',
'purple-9': '#22075e',
'purple-10': '#120338',
'cyan-1': '#e6fffb',
'cyan-2': '#b5f5ec',
'cyan-3': '#87e8de',
'cyan-4': '#5cdbd3',
'cyan-5': '#36cfc9',
'cyan-6': '#13c2c2',
'cyan-7': '#08979c',
'cyan-8': '#006d75',
'cyan-9': '#00474f',
'cyan-10': '#002329',
'green-1': '#f6ffed',
'green-2': '#d9f7be',
'green-3': '#b7eb8f',
'green-4': '#95de64',
'green-5': '#73d13d',
'green-6': '#52c41a',
'green-7': '#389e0d',
'green-8': '#237804',
'green-9': '#135200',
'green-10': '#092b00',
'magenta-1': '#fff0f6',
'magenta-2': '#ffd6e7',
'magenta-3': '#ffadd2',
'magenta-4': '#ff85c0',
'magenta-5': '#f759ab',
'magenta-6': '#eb2f96',
'magenta-7': '#c41d7f',
'magenta-8': '#9e1068',
'magenta-9': '#780650',
'magenta-10': '#520339',
'pink-1': '#fff0f6',
'pink-2': '#ffd6e7',
'pink-3': '#ffadd2',
'pink-4': '#ff85c0',
'pink-5': '#f759ab',
'pink-6': '#eb2f96',
'pink-7': '#c41d7f',
'pink-8': '#9e1068',
'pink-9': '#780650',
'pink-10': '#520339',
'red-1': '#fff1f0',
'red-2': '#ffccc7',
'red-3': '#ffa39e',
'red-4': '#ff7875',
'red-5': '#ff4d4f',
'red-6': '#f5222d',
'red-7': '#cf1322',
'red-8': '#a8071a',
'red-9': '#820014',
'red-10': '#5c0011',
'orange-1': '#fff7e6',
'orange-2': '#ffe7ba',
'orange-3': '#ffd591',
'orange-4': '#ffc069',
'orange-5': '#ffa940',
'orange-6': '#fa8c16',
'orange-7': '#d46b08',
'orange-8': '#ad4e00',
'orange-9': '#873800',
'orange-10': '#612500',
'yellow-1': '#feffe6',
'yellow-2': '#ffffb8',
'yellow-3': '#fffb8f',
'yellow-4': '#fff566',
'yellow-5': '#ffec3d',
'yellow-6': '#fadb14',
'yellow-7': '#d4b106',
'yellow-8': '#ad8b00',
'yellow-9': '#876800',
'yellow-10': '#614700',
'volcano-1': '#fff2e8',
'volcano-2': '#ffd8bf',
'volcano-3': '#ffbb96',
'volcano-4': '#ff9c6e',
'volcano-5': '#ff7a45',
'volcano-6': '#fa541c',
'volcano-7': '#d4380d',
'volcano-8': '#ad2102',
'volcano-9': '#871400',
'volcano-10': '#610b00',
'geekblue-1': '#f0f5ff',
'geekblue-2': '#d6e4ff',
'geekblue-3': '#adc6ff',
'geekblue-4': '#85a5ff',
'geekblue-5': '#597ef7',
'geekblue-6': '#2f54eb',
'geekblue-7': '#1d39c4',
'geekblue-8': '#10239e',
'geekblue-9': '#061178',
'geekblue-10': '#030852',
'gold-1': '#fffbe6',
'gold-2': '#fff1b8',
'gold-3': '#ffe58f',
'gold-4': '#ffd666',
'gold-5': '#ffc53d',
'gold-6': '#faad14',
'gold-7': '#d48806',
'gold-8': '#ad6800',
'gold-9': '#874d00',
'gold-10': '#613400',
'lime-1': '#fcffe6',
'lime-2': '#f4ffb8',
'lime-3': '#eaff8f',
'lime-4': '#d3f261',
'lime-5': '#bae637',
'lime-6': '#a0d911',
'lime-7': '#7cb305',
'lime-8': '#5b8c00',
'lime-9': '#3f6600',
'lime-10': '#254000',
colorText: 'rgba(0, 0, 0, 0.88)',
colorTextSecondary: 'rgba(0, 0, 0, 0.65)',
colorTextTertiary: 'rgba(0, 0, 0, 0.45)',
colorTextQuaternary: 'rgba(0, 0, 0, 0.25)',
colorFill: 'rgba(0, 0, 0, 0.15)',
colorFillSecondary: 'rgba(0, 0, 0, 0.06)',
colorFillTertiary: 'rgba(0, 0, 0, 0.04)',
colorFillQuaternary: 'rgba(0, 0, 0, 0.02)',
colorBgLayout: 'hsl(220,23%,97%)',
colorBgContainer: '#ffffff',
colorBgElevated: '#ffffff',
colorBgSpotlight: 'rgba(0, 0, 0, 0.85)',
colorBorder: '#d9d9d9',
colorBorderSecondary: '#f0f0f0',
colorPrimaryBg: '#e6f4ff',
colorPrimaryBgHover: '#bae0ff',
colorPrimaryBorder: '#91caff',
colorPrimaryBorderHover: '#69b1ff',
colorPrimaryHover: '#4096ff',
colorPrimaryActive: '#0958d9',
colorPrimaryTextHover: '#4096ff',
colorPrimaryText: '#1677ff',
colorPrimaryTextActive: '#0958d9',
colorSuccessBg: '#f6ffed',
colorSuccessBgHover: '#d9f7be',
colorSuccessBorder: '#b7eb8f',
colorSuccessBorderHover: '#95de64',
colorSuccessHover: '#95de64',
colorSuccessActive: '#389e0d',
colorSuccessTextHover: '#73d13d',
colorSuccessText: '#52c41a',
colorSuccessTextActive: '#389e0d',
colorErrorBg: '#fff2f0',
colorErrorBgHover: '#fff1f0',
colorErrorBorder: '#ffccc7',
colorErrorBorderHover: '#ffa39e',
colorErrorHover: '#ffa39e',
colorErrorActive: '#d9363e',
colorErrorTextHover: '#ff7875',
colorErrorText: '#ff4d4f',
colorErrorTextActive: '#d9363e',
colorWarningBg: '#fffbe6',
colorWarningBgHover: '#fff1b8',
colorWarningBorder: '#ffe58f',
colorWarningBorderHover: '#ffd666',
colorWarningHover: '#ffd666',
colorWarningActive: '#d48806',
colorWarningTextHover: '#ffc53d',
colorWarningText: '#faad14',
colorWarningTextActive: '#d48806',
colorInfoBg: '#e6f4ff',
colorInfoBgHover: '#bae0ff',
colorInfoBorder: '#91caff',
colorInfoBorderHover: '#69b1ff',
colorInfoHover: '#69b1ff',
colorInfoActive: '#0958d9',
colorInfoTextHover: '#4096ff',
colorInfoText: '#1677ff',
colorInfoTextActive: '#0958d9',
colorBgMask: 'rgba(0, 0, 0, 0.45)',
colorWhite: '#fff',
sizeXXL: 48,
sizeXL: 32,
sizeLG: 24,
sizeMD: 20,
sizeMS: 16,
size: 16,
sizeSM: 12,
sizeXS: 8,
sizeXXS: 4,
controlHeightSM: 24,
controlHeightXS: 16,
controlHeightLG: 40,
motionDurationFast: '0.1s',
motionDurationMid: '0.2s',
motionDurationSlow: '0.3s',
fontSizes: [12, 14, 16, 20, 24, 30, 38, 46, 56, 68],
lineHeights: [1.6666666666666667, 1.5714285714285714, 1.5, 1.4, 1.3333333333333333, 1.2666666666666666, 1.2105263157894737, 1.173913043478261, 1.1428571428571428, 1.1176470588235294],
lineWidthBold: 2,
borderRadiusXS: 1,
borderRadiusSM: 4,
borderRadiusLG: 8,
borderRadiusOuter: 4,
colorLink: '#1677ff',
colorLinkHover: '#69b1ff',
colorLinkActive: '#0958d9',
colorFillContent: 'rgba(0, 0, 0, 0.06)',
colorFillContentHover: 'rgba(0, 0, 0, 0.15)',
colorFillAlter: 'rgba(0, 0, 0, 0.02)',
colorBgContainerDisabled: 'rgba(0, 0, 0, 0.04)',
colorBorderBg: '#ffffff',
colorSplit: 'rgba(5, 5, 5, 0.06)',
colorTextPlaceholder: 'rgba(0, 0, 0, 0.25)',
colorTextDisabled: 'rgba(0, 0, 0, 0.25)',
colorTextHeading: 'rgba(0, 0, 0, 0.88)',
colorTextLabel: 'rgba(0, 0, 0, 0.65)',
colorTextDescription: 'rgba(0, 0, 0, 0.45)',
colorTextLightSolid: '#fff',
colorHighlight: '#ff7875',
colorBgTextHover: 'rgba(0, 0, 0, 0.06)',
colorBgTextActive: 'rgba(0, 0, 0, 0.15)',
colorIcon: 'rgba(0, 0, 0, 0.45)',
colorIconHover: 'rgba(0, 0, 0, 0.88)',
colorErrorOutline: 'rgba(255, 38, 5, 0.06)',
colorWarningOutline: 'rgba(255, 215, 5, 0.1)',
fontSizeSM: 12,
fontSizeLG: 16,
fontSizeXL: 20,
fontSizeHeading1: 38,
fontSizeHeading2: 30,
fontSizeHeading3: 24,
fontSizeHeading4: 20,
fontSizeHeading5: 16,
fontSizeIcon: 12,
lineHeight: 1.5714285714285714,
lineHeightLG: 1.5,
lineHeightSM: 1.6666666666666667,
lineHeightHeading1: 1.2105263157894737,
lineHeightHeading2: 1.2666666666666666,
lineHeightHeading3: 1.3333333333333333,
lineHeightHeading4: 1.4,
lineHeightHeading5: 1.5,
controlOutlineWidth: 2,
controlInteractiveSize: 16,
controlItemBgHover: 'rgba(0, 0, 0, 0.04)',
controlItemBgActive: '#e6f4ff',
controlItemBgActiveHover: '#bae0ff',
controlItemBgActiveDisabled: 'rgba(0, 0, 0, 0.15)',
controlTmpOutline: 'rgba(0, 0, 0, 0.02)',
controlOutline: 'rgba(5, 145, 255, 0.1)',
fontWeightStrong: 600,
opacityLoading: 0.65,
linkDecoration: 'none',
linkHoverDecoration: 'none',
linkFocusDecoration: 'none',
controlPaddingHorizontal: 12,
controlPaddingHorizontalSM: 8,
paddingXXS: 4,
paddingXS: 8,
paddingSM: 12,
padding: 16,
paddingMD: 20,
paddingLG: 24,
paddingXL: 32,
paddingContentHorizontalLG: 24,
paddingContentVerticalLG: 16,
paddingContentHorizontal: 16,
paddingContentVertical: 12,
paddingContentHorizontalSM: 16,
paddingContentVerticalSM: 8,
marginXXS: 4,
marginXS: 8,
marginSM: 12,
margin: 16,
marginMD: 20,
marginLG: 24,
marginXL: 32,
marginXXL: 48,
boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)',
boxShadowSecondary: '0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)',
screenXS: 480,
screenXSMin: 480,
screenXSMax: 479,
screenSM: 576,
screenSMMin: 576,
screenSMMax: 575,
screenMD: 768,
screenMDMin: 768,
screenMDMax: 767,
screenLG: 992,
screenLGMin: 992,
screenLGMax: 991,
screenXL: 1200,
screenXLMin: 1200,
screenXLMax: 1199,
screenXXL: 1600,
screenXXLMin: 1600,
screenXXLMax: 1599,
boxShadowPopoverArrow: '3px 3px 7px rgba(0, 0, 0, 0.1)',
boxShadowCard: '0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)',
boxShadowDrawerRight: '-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)',
boxShadowDrawerLeft: '6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)',
boxShadowDrawerUp: '0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)',
boxShadowDrawerDown: '0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)',
boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',
boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',
boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',
boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)',
_tokenKey: '19w80ff',
_hashId: 'css-dev-only-do-not-override-i2zu9q'
};
var hashCode = function hashCode(str) {
var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
var h1 = 0xdeadbeef ^ seed,
h2 = 0x41c6ce57 ^ seed;
for (var i = 0, ch; i < str.length; i++) {
ch = str.charCodeAt(i);
h1 = Math.imul(h1 ^ ch, 2654435761);
h2 = Math.imul(h2 ^ ch, 1597334677);
}
h1 = Math.imul(h1 ^ h1 >>> 16, 2246822507) ^ Math.imul(h2 ^ h2 >>> 13, 3266489909);
h2 = Math.imul(h2 ^ h2 >>> 16, 2246822507) ^ Math.imul(h1 ^ h1 >>> 13, 3266489909);
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
};
// @ts-ignore
var emptyTheme = (0,_ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.createTheme)(function (token) {
return token;
});
var token = {
theme: emptyTheme,
token: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, defaultToken), antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z === null || antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z === void 0 || (_theme$defaultAlgorit = antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z.defaultAlgorithm) === null || _theme$defaultAlgorit === void 0 ? void 0 : _theme$defaultAlgorit.call(antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z === null || antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z === void 0 ? void 0 : antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z.defaultSeed)),
hashId: "pro-".concat(hashCode(JSON.stringify(defaultToken)))
};
var useToken = function useToken() {
return token;
};
/***/ }),
/***/ 31105:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/compareVersions/index.js ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ n: function() { return /* binding */ compareVersions; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 54099);
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ 80017);
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
/**
* @param {string} s
*/
var isWildcard = function isWildcard(s) {
return s === '*' || s === 'x' || s === 'X';
};
/**
* @param {string} v
*/
var tryParse = function tryParse(v) {
var n = parseInt(v, 10);
return isNaN(n) ? v : n;
};
/**
* @param {string|number} a
* @param {string|number} b
*/
var forceType = function forceType(a, b) {
return (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(a) !== (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(b) ? [String(a), String(b)] : [a, b];
};
/**
* @param {string} a
* @param {string} b
* @returns number
*/
var compareStrings = function compareStrings(a, b) {
if (isWildcard(a) || isWildcard(b)) return 0;
var _forceType = forceType(tryParse(a), tryParse(b)),
_forceType2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_forceType, 2),
ap = _forceType2[0],
bp = _forceType2[1];
if (ap > bp) return 1;
if (ap < bp) return -1;
return 0;
};
/**
* @param {string|RegExpMatchArray} a
* @param {string|RegExpMatchArray} b
* @returns number
*/
var compareSegments = function compareSegments(a, b) {
for (var i = 0; i < Math.max(a.length, b.length); i++) {
var r = compareStrings(a[i] || '0', b[i] || '0');
if (r !== 0) return r;
}
return 0;
};
/**
* @param {string} version
* @returns RegExpMatchArray
*/
var validateAndParse = function validateAndParse(version) {
var _match$shift;
var match = version.match(semver);
match === null || match === void 0 || (_match$shift = match.shift) === null || _match$shift === void 0 || _match$shift.call(match);
return match;
};
/**
* Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
* This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.
* @param v1 - First version to compare
* @param v2 - Second version to compare
* @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).
*/
var compareVersions = function compareVersions(v1, v2) {
// validate input and split into segments
var n1 = validateAndParse(v1);
var n2 = validateAndParse(v2);
// pop off the patch
var p1 = n1.pop();
var p2 = n2.pop();
// validate numbers
var r = compareSegments(n1, n2);
if (r !== 0) return r;
if (p1 || p2) {
return p1 ? -1 : 1;
}
return 0;
};
/***/ }),
/***/ 50770:
/*!***********************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/compareVersions/openVisibleCompatible.js ***!
\***********************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ X: function() { return /* binding */ openVisibleCompatible; }
/* harmony export */ });
/* unused harmony export getVersion */
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd */ 8680);
/* harmony import */ var _omitUndefined__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../omitUndefined */ 85211);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ 31105);
/* provided dependency */ var process = __webpack_require__(/*! ./node_modules/_process@0.11.10@process/browser.js */ 97671);
var getVersion = function getVersion() {
var _process;
if (typeof process === 'undefined') return antd__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z;
return ((_process = process) === null || process === void 0 || (process = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})) === null || process === void 0 ? void 0 : process.ANTD_VERSION) || antd__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z;
};
var openVisibleCompatible = function openVisibleCompatible(open, onOpenChange) {
var props = (0,_index__WEBPACK_IMPORTED_MODULE_1__/* .compareVersions */ .n)(getVersion(), '4.23.0') > -1 ? {
open: open,
onOpenChange: onOpenChange
} : {
visible: open,
onVisibleChange: onOpenChange
};
return (0,_omitUndefined__WEBPACK_IMPORTED_MODULE_2__/* .omitUndefined */ .Y)(props);
};
/***/ }),
/***/ 14451:
/*!*****************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/components/ProFormContext/index.js ***!
\*****************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ J: function() { return /* binding */ ProFormContext; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
var ProFormContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
/***/ }),
/***/ 94763:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/conversionMomentValue/index.js ***!
\*************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Cl: function() { return /* binding */ dateFormatterMap; },
/* harmony export */ lp: function() { return /* binding */ conversionMomentValue; }
/* harmony export */ });
/* unused harmony exports isPlainObject, convertMoment */
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ 80017);
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ 61186);
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var dayjs_plugin_quarterOfYear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dayjs/plugin/quarterOfYear */ 85913);
/* harmony import */ var dayjs_plugin_quarterOfYear__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_quarterOfYear__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rc_util_es_utils_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/utils/get */ 90996);
/* harmony import */ var _isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../isNil */ 3214);
dayjs__WEBPACK_IMPORTED_MODULE_0___default().extend((dayjs_plugin_quarterOfYear__WEBPACK_IMPORTED_MODULE_1___default()));
var dateFormatterMap = {
time: 'HH:mm:ss',
timeRange: 'HH:mm:ss',
date: 'YYYY-MM-DD',
dateWeek: 'YYYY-wo',
dateMonth: 'YYYY-MM',
dateQuarter: 'YYYY-[Q]Q',
dateYear: 'YYYY',
dateRange: 'YYYY-MM-DD',
dateTime: 'YYYY-MM-DD HH:mm:ss',
dateTimeRange: 'YYYY-MM-DD HH:mm:ss'
};
/**
* 判断是不是一个 object
* @param {any} o
* @returns boolean
*/
function isObject(o) {
return Object.prototype.toString.call(o) === '[object Object]';
}
/**
* 判断是否是一个的简单的 object
* @param {{constructor:any}} o
* @returns boolean
*/
function isPlainObject(o) {
if (isObject(o) === false) return false;
// If has modified constructor
var ctor = o.constructor;
if (ctor === undefined) return true;
// If has modified prototype
var prot = ctor.prototype;
if (isObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
return false;
}
// Most likely a plain Object
return true;
}
/**
* 一个比较hack的moment判断工具
* @param {any} value
* @returns boolean
*/
var isMoment = function isMoment(value) {
return !!(value !== null && value !== void 0 && value._isAMomentObject);
};
/**
* 根据不同的格式转化 dayjs
* @param {dayjs.Dayjs} value
* @param {string|((value:dayjs.Dayjs} dateFormatter
* @param {string} valueType
*/
var convertMoment = function convertMoment(value, dateFormatter, valueType) {
if (!dateFormatter) {
return value;
}
if (dayjs__WEBPACK_IMPORTED_MODULE_0___default().isDayjs(value) || isMoment(value)) {
if (dateFormatter === 'number') {
return value.valueOf();
}
if (dateFormatter === 'string') {
return value.format(dateFormatterMap[valueType] || 'YYYY-MM-DD HH:mm:ss');
}
if (typeof dateFormatter === 'string' && dateFormatter !== 'string') {
return value.format(dateFormatter);
}
if (typeof dateFormatter === 'function') {
return dateFormatter(value, valueType);
}
}
return value;
};
/**
* 这里主要是来转化一下数据 将 dayjs 转化为 string 将 all 默认删除
* @param {T} value
* @param {DateFormatter} dateFormatter
* @param {Record<string} valueTypeMap
* @param {ProFieldValueType;dateFormat:string;}|any>} |{valueType
* @param {boolean} omitNil?
* @param {NamePath} parentKey?
*/
var conversionMomentValue = function conversionMomentValue(value, dateFormatter, valueTypeMap, omitNil, parentKey) {
var tmpValue = {};
if (typeof window === 'undefined') return value;
// 如果 value 是 string | null | Blob类型 其中之一,直接返回
// 形如 {key: [File, File]} 的表单字段当进行第二次递归时会导致其直接越过 typeof value !== 'object' 这一判断 https://github.com/ant-design/pro-components/issues/2071
if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(value) !== 'object' || (0,_isNil__WEBPACK_IMPORTED_MODULE_3__/* .isNil */ .k)(value) || value instanceof Blob || Array.isArray(value)) {
return value;
}
Object.keys(value).forEach(function (valueKey) {
var namePath = parentKey ? [parentKey, valueKey].flat(1) : [valueKey];
var valueFormatMap = (0,rc_util_es_utils_get__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(valueTypeMap, namePath) || 'text';
var valueType = 'text';
var dateFormat;
if (typeof valueFormatMap === 'string') {
valueType = valueFormatMap;
} else if (valueFormatMap) {
valueType = valueFormatMap.valueType;
dateFormat = valueFormatMap.dateFormat;
}
var itemValue = value[valueKey];
if ((0,_isNil__WEBPACK_IMPORTED_MODULE_3__/* .isNil */ .k)(itemValue) && omitNil) {
return;
}
// 处理嵌套的情况
if (isPlainObject(itemValue) &&
// 不是数组
!Array.isArray(itemValue) &&
// 不是 dayjs
!dayjs__WEBPACK_IMPORTED_MODULE_0___default().isDayjs(itemValue) &&
// 不是 moment
!isMoment(itemValue)) {
tmpValue[valueKey] = conversionMomentValue(itemValue, dateFormatter, valueTypeMap, omitNil, namePath);
return;
}
// 处理 FormList 的 value
if (Array.isArray(itemValue)) {
tmpValue[valueKey] = itemValue.map(function (arrayValue, index) {
if (dayjs__WEBPACK_IMPORTED_MODULE_0___default().isDayjs(arrayValue) || isMoment(arrayValue)) {
return convertMoment(arrayValue, dateFormat || dateFormatter, valueType);
}
return conversionMomentValue(arrayValue, dateFormatter, valueTypeMap, omitNil, [valueKey, "".concat(index)].flat(1));
});
return;
}
tmpValue[valueKey] = convertMoment(itemValue, dateFormat || dateFormatter, valueType);
});
return tmpValue;
};
/***/ }),
/***/ 40274:
/*!************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/hooks/useRefFunction/index.js ***!
\************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ J: function() { return /* binding */ useRefFunction; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 61414);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
var useRefFunction = function useRefFunction(reFunction) {
var ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
ref.current = reFunction;
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
var _ref$current;
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
rest[_key] = arguments[_key];
}
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.call.apply(_ref$current, [ref].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(rest)));
}, []);
};
/***/ }),
/***/ 14952:
/*!********************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/isDeepEqualReact/index.js + 1 modules ***!
\********************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
A: function() { return /* binding */ isDeepEqualReact; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/unsupportedIterableToArray.js
var unsupportedIterableToArray = __webpack_require__(28854);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/createForOfIteratorHelper.js
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = (0,unsupportedIterableToArray/* default */.Z)(r)) || e && r && "number" == typeof r.length) {
t && (r = t);
var _n = 0,
F = function F() {};
return {
s: F,
n: function n() {
return _n >= r.length ? {
done: !0
} : {
done: !1,
value: r[_n++]
};
},
e: function e(r) {
throw r;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var o,
a = !0,
u = !1;
return {
s: function s() {
t = t.call(r);
},
n: function n() {
var r = t.next();
return a = r.done, r;
},
e: function e(r) {
u = !0, o = r;
},
f: function f() {
try {
a || null == t["return"] || t["return"]();
} finally {
if (u) throw o;
}
}
};
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(80017);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/isDeepEqualReact/index.js
/* eslint-disable no-restricted-syntax */
/* eslint-disable no-continue */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-self-compare */
/* eslint-disable eqeqeq */
/* eslint-disable no-plusplus */
// do not edit .js files directly - edit src/index.jst
function isDeepEqualReact(a, b, ignoreKeys, debug) {
if (a === b) return true;
if (a && b && (0,esm_typeof/* default */.Z)(a) === 'object' && (0,esm_typeof/* default */.Z)(b) === 'object') {
if (a.constructor !== b.constructor) return false;
var length;
var i;
var keys;
if (Array.isArray(a)) {
length = a.length;
if (length != b.length) return false;
for (i = length; i-- !== 0;) if (!isDeepEqualReact(a[i], b[i], ignoreKeys, debug)) return false;
return true;
}
if (a instanceof Map && b instanceof Map) {
if (a.size !== b.size) return false;
var _iterator = _createForOfIteratorHelper(a.entries()),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
i = _step.value;
if (!b.has(i[0])) return false;
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
var _iterator2 = _createForOfIteratorHelper(a.entries()),
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
i = _step2.value;
if (!isDeepEqualReact(i[1], b.get(i[0]), ignoreKeys, debug)) return false;
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
return true;
}
if (a instanceof Set && b instanceof Set) {
if (a.size !== b.size) return false;
var _iterator3 = _createForOfIteratorHelper(a.entries()),
_step3;
try {
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
i = _step3.value;
if (!b.has(i[0])) return false;
}
} catch (err) {
_iterator3.e(err);
} finally {
_iterator3.f();
}
return true;
}
if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
// @ts-ignore
length = a.length;
// @ts-ignore
if (length != b.length) return false;
// @ts-ignore
for (i = length; i-- !== 0;) if (a[i] !== b[i]) return false;
return true;
}
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
if (a.valueOf !== Object.prototype.valueOf && a.valueOf) return a.valueOf() === b.valueOf();
if (a.toString !== Object.prototype.toString && a.toString) return a.toString() === b.toString();
// eslint-disable-next-line prefer-const
keys = Object.keys(a);
length = keys.length;
if (length !== Object.keys(b).length) return false;
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
for (i = length; i-- !== 0;) {
var key = keys[i];
if (ignoreKeys !== null && ignoreKeys !== void 0 && ignoreKeys.includes(key)) continue;
if (key === '_owner' && a.$$typeof) {
// React-specific: avoid traversing React elements' _owner.
// _owner contains circular references
// and is not needed when comparing the actual elements (and not their owners)
continue;
}
if (!isDeepEqualReact(a[key], b[key], ignoreKeys, debug)) {
if (debug) {
console.log(key);
}
return false;
}
}
return true;
}
// true if both NaN, false otherwise
return a !== a && b !== b;
}
/***/ }),
/***/ 3214:
/*!*********************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/isNil/index.js ***!
\*********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ k: function() { return /* binding */ isNil; }
/* harmony export */ });
var isNil = function isNil(value) {
return value === null || value === undefined;
};
/***/ }),
/***/ 99969:
/*!*********************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/merge/index.js ***!
\*********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ T: function() { return /* binding */ merge; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 81162);
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ 80017);
/* eslint-disable prefer-rest-params */
/**
* 用于合并 n 个对象
* @param {any[]} ...rest
* @returns T
*/
var merge = function merge() {
var obj = {};
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
rest[_key] = arguments[_key];
}
var il = rest.length;
var key;
var i = 0;
for (; i < il; i += 1) {
// eslint-disable-next-line no-restricted-syntax
for (key in rest[i]) {
if (rest[i].hasOwnProperty(key)) {
if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj[key]) === 'object' && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(rest[i][key]) === 'object' && obj[key] !== undefined && obj[key] !== null && !Array.isArray(obj[key]) && !Array.isArray(rest[i][key])) {
obj[key] = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, obj[key]), rest[i][key]);
} else {
obj[key] = rest[i][key];
}
}
}
}
return obj;
};
/***/ }),
/***/ 55214:
/*!**********************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/nanoid/index.js ***!
\**********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ x: function() { return /* binding */ nanoid; }
/* harmony export */ });
/* eslint-disable prefer-const */
var index = 0;
var genNanoid = function genNanoid() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 21;
if (typeof window === 'undefined') return (index += 1).toFixed(0);
if (!window.crypto) return (index += 1).toFixed(0);
var e = '',
r = crypto.getRandomValues(new Uint8Array(t));
// eslint-disable-next-line no-param-reassign
for (; t--;) {
var n = 63 & r[t];
e += n < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n < 63 ? '_' : '-';
}
return e;
};
/**
* 生成uuid如果不支持 randomUUID就用 genNanoid
*
* @returns string
*/
var nanoid = function nanoid() {
if (typeof window === 'undefined') return genNanoid();
// @ts-ignore
if (window.crypto && window.crypto.randomUUID && typeof crypto.randomUUID == 'function') {
// @ts-ignore
return crypto.randomUUID();
}
return genNanoid();
};
/***/ }),
/***/ 85211:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/omitUndefined/index.js ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Y: function() { return /* binding */ omitUndefined; }
/* harmony export */ });
var omitUndefined = function omitUndefined(obj) {
var newObj = {};
Object.keys(obj || {}).forEach(function (key) {
if (obj[key] !== undefined) {
newObj[key] = obj[key];
}
});
if (Object.keys(newObj).length < 1) {
return undefined;
}
return newObj;
};
/***/ }),
/***/ 22102:
/*!***************************************************************************************************!*\
!*** ./node_modules/_@ant-design_pro-utils@2.15.17@@ant-design/pro-utils/es/runFunction/index.js ***!
\***************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ h: function() { return /* binding */ runFunction; }
/* harmony export */ });
/** 如果是个方法执行一下它 */
function runFunction(valueEnum) {
if (typeof valueEnum === 'function') {
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
rest[_key - 1] = arguments[_key];
}
return valueEnum.apply(void 0, rest);
}
return valueEnum;
}
/***/ }),
/***/ 12838:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/theme/index.js + 6 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ theme; }
});
// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.21.1@@ant-design/cssinjs/es/index.js + 39 modules
var es = __webpack_require__(7102);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/default/index.js + 5 modules
var themes_default = __webpack_require__(97224);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/seed.js
var seed = __webpack_require__(34117);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/alias.js + 1 modules
var alias = __webpack_require__(44023);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/getDesignToken.js
const getDesignToken = config => {
const theme = (config === null || config === void 0 ? void 0 : config.algorithm) ? (0,es.createTheme)(config.algorithm) : (0,es.createTheme)(themes_default/* default */.Z);
const mergedToken = Object.assign(Object.assign({}, seed/* default */.Z), config === null || config === void 0 ? void 0 : config.token);
return (0,es.getComputedToken)(mergedToken, {
override: config === null || config === void 0 ? void 0 : config.token
}, theme, alias/* default */.Z);
};
/* harmony default export */ var theme_getDesignToken = (getDesignToken);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js
var useToken = __webpack_require__(70305);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/context.js
var context = __webpack_require__(81616);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/shared/genControlHeight.js
var genControlHeight = __webpack_require__(34362);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/compact/genCompactSizeMapToken.js
function genSizeMapToken(token) {
const {
sizeUnit,
sizeStep
} = token;
const compactSizeStep = sizeStep - 2;
return {
sizeXXL: sizeUnit * (compactSizeStep + 10),
sizeXL: sizeUnit * (compactSizeStep + 6),
sizeLG: sizeUnit * (compactSizeStep + 2),
sizeMD: sizeUnit * (compactSizeStep + 2),
sizeMS: sizeUnit * (compactSizeStep + 1),
size: sizeUnit * compactSizeStep,
sizeSM: sizeUnit * compactSizeStep,
sizeXS: sizeUnit * (compactSizeStep - 1),
sizeXXS: sizeUnit * (compactSizeStep - 1)
};
}
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/shared/genFontMapToken.js + 1 modules
var genFontMapToken = __webpack_require__(82838);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/compact/index.js
const derivative = (token, mapToken) => {
const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : (0,themes_default/* default */.Z)(token);
const fontSize = mergedMapToken.fontSizeSM; // Smaller size font-size as base
const controlHeight = mergedMapToken.controlHeight - 4;
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, mergedMapToken), genSizeMapToken(mapToken !== null && mapToken !== void 0 ? mapToken : token)), (0,genFontMapToken/* default */.Z)(fontSize)), {
// controlHeight
controlHeight
}), (0,genControlHeight/* default */.Z)(Object.assign(Object.assign({}, mergedMapToken), {
controlHeight
})));
};
/* harmony default export */ var compact = (derivative);
// EXTERNAL MODULE: ./node_modules/_@ant-design_colors@7.1.0@@ant-design/colors/es/index.js + 2 modules
var colors_es = __webpack_require__(88453);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/shared/genColorMapToken.js
var genColorMapToken = __webpack_require__(15397);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js
var dist_module = __webpack_require__(64993);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/dark/colorAlgorithm.js
const getAlphaColor = (baseColor, alpha) => new dist_module/* TinyColor */.C(baseColor).setAlpha(alpha).toRgbString();
const getSolidColor = (baseColor, brightness) => {
const instance = new dist_module/* TinyColor */.C(baseColor);
return instance.lighten(brightness).toHexString();
};
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/dark/colors.js
const generateColorPalettes = baseColor => {
const colors = (0,colors_es.generate)(baseColor, {
theme: 'dark'
});
return {
1: colors[0],
2: colors[1],
3: colors[2],
4: colors[3],
5: colors[6],
6: colors[5],
7: colors[4],
8: colors[6],
9: colors[5],
10: colors[4]
// 8: colors[9],
// 9: colors[8],
// 10: colors[7],
};
};
const generateNeutralColorPalettes = (bgBaseColor, textBaseColor) => {
const colorBgBase = bgBaseColor || '#000';
const colorTextBase = textBaseColor || '#fff';
return {
colorBgBase,
colorTextBase,
colorText: getAlphaColor(colorTextBase, 0.85),
colorTextSecondary: getAlphaColor(colorTextBase, 0.65),
colorTextTertiary: getAlphaColor(colorTextBase, 0.45),
colorTextQuaternary: getAlphaColor(colorTextBase, 0.25),
colorFill: getAlphaColor(colorTextBase, 0.18),
colorFillSecondary: getAlphaColor(colorTextBase, 0.12),
colorFillTertiary: getAlphaColor(colorTextBase, 0.08),
colorFillQuaternary: getAlphaColor(colorTextBase, 0.04),
colorBgElevated: getSolidColor(colorBgBase, 12),
colorBgContainer: getSolidColor(colorBgBase, 8),
colorBgLayout: getSolidColor(colorBgBase, 0),
colorBgSpotlight: getSolidColor(colorBgBase, 26),
colorBorder: getSolidColor(colorBgBase, 26),
colorBorderSecondary: getSolidColor(colorBgBase, 19)
};
};
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/themes/dark/index.js
const dark_derivative = (token, mapToken) => {
const colorPalettes = Object.keys(seed/* defaultPresetColors */.M).map(colorKey => {
const colors = (0,colors_es.generate)(token[colorKey], {
theme: 'dark'
});
return new Array(10).fill(1).reduce((prev, _, i) => {
prev[`${colorKey}-${i + 1}`] = colors[i];
prev[`${colorKey}${i + 1}`] = colors[i];
return prev;
}, {});
}).reduce((prev, cur) => {
prev = Object.assign(Object.assign({}, prev), cur);
return prev;
}, {});
const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : (0,themes_default/* default */.Z)(token);
return Object.assign(Object.assign(Object.assign({}, mergedMapToken), colorPalettes), (0,genColorMapToken/* default */.Z)(token, {
generateColorPalettes: generateColorPalettes,
generateNeutralColorPalettes: generateNeutralColorPalettes
}));
};
/* harmony default export */ var dark = (dark_derivative);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/index.js
"use client";
/* eslint-disable import/prefer-default-export */
// ZombieJ: We export as object to user but array in internal.
// This is used to minimize the bundle size for antd package but safe to refactor as object also.
// Please do not export internal `useToken` directly to avoid something export unexpected.
/** Get current context Design Token. Will be different if you are using nest theme config. */
function theme_useToken() {
const [theme, token, hashId] = (0,useToken/* default */.Z)();
return {
theme,
token,
hashId
};
}
/* harmony default export */ var theme = ({
/** @private Test Usage. Do not use in production. */
defaultConfig: context/* defaultConfig */.u_,
/** Default seedToken */
defaultSeed: context/* defaultConfig */.u_.token,
useToken: theme_useToken,
defaultAlgorithm: themes_default/* default */.Z,
darkAlgorithm: dark,
compactAlgorithm: compact,
getDesignToken: theme_getDesignToken
});
/***/ }),
/***/ 85913:
/*!*******************************************************************!*\
!*** ./node_modules/_dayjs@1.11.13@dayjs/plugin/quarterOfYear.js ***!
\*******************************************************************/
/***/ (function(module) {
!function(t,n){ true?module.exports=n():0}(this,(function(){"use strict";var t="month",n="quarter";return function(e,i){var r=i.prototype;r.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var s=r.add;r.add=function(e,i){return e=Number(e),this.$utils().p(i)===n?this.add(3*e,t):s.bind(this)(e,i)};var u=r.startOf;r.startOf=function(e,i){var r=this.$utils(),s=!!r.u(i)||i;if(r.p(e)===n){var o=this.quarter()-1;return s?this.month(3*o).startOf(t).startOf("day"):this.month(3*o+2).endOf(t).endOf("day")}return u.bind(this)(e,i)}}}));
/***/ }),
/***/ 52535:
/*!*********************************************************!*\
!*** ./node_modules/_omit.js@2.0.2@omit.js/es/index.js ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
"use strict";
function omit(obj, fields) {
// eslint-disable-next-line prefer-object-spread
var shallowCopy = Object.assign({}, obj);
for (var i = 0; i < fields.length; i += 1) {
var key = fields[i];
delete shallowCopy[key];
}
return shallowCopy;
}
/* harmony default export */ __webpack_exports__.Z = (omit);
/***/ }),
/***/ 14124:
/*!*****************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_ListCache.js + 6 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _ListCache; }
});
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheClear.js
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
this.size = 0;
}
/* harmony default export */ var _listCacheClear = (listCacheClear);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/eq.js
var eq = __webpack_require__(91284);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_assocIndexOf.js
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if ((0,eq/* default */.Z)(array[length][0], key)) {
return length;
}
}
return -1;
}
/* harmony default export */ var _assocIndexOf = (assocIndexOf);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheDelete.js
/** Used for built-in method references. */
var arrayProto = Array.prototype;
/** Built-in value references. */
var splice = arrayProto.splice;
/**
* Removes `key` and its value from the list cache.
*
* @private
* @name delete
* @memberOf ListCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function listCacheDelete(key) {
var data = this.__data__,
index = _assocIndexOf(data, key);
if (index < 0) {
return false;
}
var lastIndex = data.length - 1;
if (index == lastIndex) {
data.pop();
} else {
splice.call(data, index, 1);
}
--this.size;
return true;
}
/* harmony default export */ var _listCacheDelete = (listCacheDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheGet.js
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = _assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
/* harmony default export */ var _listCacheGet = (listCacheGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheHas.js
/**
* Checks if a list cache value for `key` exists.
*
* @private
* @name has
* @memberOf ListCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function listCacheHas(key) {
return _assocIndexOf(this.__data__, key) > -1;
}
/* harmony default export */ var _listCacheHas = (listCacheHas);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheSet.js
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = _assocIndexOf(data, key);
if (index < 0) {
++this.size;
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
}
/* harmony default export */ var _listCacheSet = (listCacheSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_ListCache.js
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `ListCache`.
ListCache.prototype.clear = _listCacheClear;
ListCache.prototype['delete'] = _listCacheDelete;
ListCache.prototype.get = _listCacheGet;
ListCache.prototype.has = _listCacheHas;
ListCache.prototype.set = _listCacheSet;
/* harmony default export */ var _ListCache = (ListCache);
/***/ }),
/***/ 26450:
/*!***********************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_Map.js ***!
\***********************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getNative.js */ 99698);
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_root.js */ 79626);
/* Built-in method references that are verified to be native. */
var Map = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_root_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, 'Map');
/* harmony default export */ __webpack_exports__.Z = (Map);
/***/ }),
/***/ 81681:
/*!*****************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_MapCache.js + 14 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _MapCache; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getNative.js + 4 modules
var _getNative = __webpack_require__(99698);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nativeCreate.js
/* Built-in method references that are verified to be native. */
var nativeCreate = (0,_getNative/* default */.Z)(Object, 'create');
/* harmony default export */ var _nativeCreate = (nativeCreate);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashClear.js
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
this.size = 0;
}
/* harmony default export */ var _hashClear = (hashClear);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashDelete.js
/**
* Removes `key` and its value from the hash.
*
* @private
* @name delete
* @memberOf Hash
* @param {Object} hash The hash to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function hashDelete(key) {
var result = this.has(key) && delete this.__data__[key];
this.size -= result ? 1 : 0;
return result;
}
/* harmony default export */ var _hashDelete = (hashDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashGet.js
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var _hashGet_hasOwnProperty = objectProto.hasOwnProperty;
/**
* Gets the hash value for `key`.
*
* @private
* @name get
* @memberOf Hash
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function hashGet(key) {
var data = this.__data__;
if (_nativeCreate) {
var result = data[key];
return result === HASH_UNDEFINED ? undefined : result;
}
return _hashGet_hasOwnProperty.call(data, key) ? data[key] : undefined;
}
/* harmony default export */ var _hashGet = (hashGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashHas.js
/** Used for built-in method references. */
var _hashHas_objectProto = Object.prototype;
/** Used to check objects for own properties. */
var _hashHas_hasOwnProperty = _hashHas_objectProto.hasOwnProperty;
/**
* Checks if a hash value for `key` exists.
*
* @private
* @name has
* @memberOf Hash
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function hashHas(key) {
var data = this.__data__;
return _nativeCreate ? (data[key] !== undefined) : _hashHas_hasOwnProperty.call(data, key);
}
/* harmony default export */ var _hashHas = (hashHas);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashSet.js
/** Used to stand-in for `undefined` hash values. */
var _hashSet_HASH_UNDEFINED = '__lodash_hash_undefined__';
/**
* Sets the hash `key` to `value`.
*
* @private
* @name set
* @memberOf Hash
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the hash instance.
*/
function hashSet(key, value) {
var data = this.__data__;
this.size += this.has(key) ? 0 : 1;
data[key] = (_nativeCreate && value === undefined) ? _hashSet_HASH_UNDEFINED : value;
return this;
}
/* harmony default export */ var _hashSet = (hashSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Hash.js
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `Hash`.
Hash.prototype.clear = _hashClear;
Hash.prototype['delete'] = _hashDelete;
Hash.prototype.get = _hashGet;
Hash.prototype.has = _hashHas;
Hash.prototype.set = _hashSet;
/* harmony default export */ var _Hash = (Hash);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_ListCache.js + 6 modules
var _ListCache = __webpack_require__(14124);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Map.js
var _Map = __webpack_require__(26450);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheClear.js
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.size = 0;
this.__data__ = {
'hash': new _Hash,
'map': new (_Map/* default */.Z || _ListCache/* default */.Z),
'string': new _Hash
};
}
/* harmony default export */ var _mapCacheClear = (mapCacheClear);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isKeyable.js
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
? (value !== '__proto__')
: (value === null);
}
/* harmony default export */ var _isKeyable = (isKeyable);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getMapData.js
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return _isKeyable(key)
? data[typeof key == 'string' ? 'string' : 'hash']
: data.map;
}
/* harmony default export */ var _getMapData = (getMapData);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheDelete.js
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
var result = _getMapData(this, key)['delete'](key);
this.size -= result ? 1 : 0;
return result;
}
/* harmony default export */ var _mapCacheDelete = (mapCacheDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheGet.js
/**
* Gets the map value for `key`.
*
* @private
* @name get
* @memberOf MapCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function mapCacheGet(key) {
return _getMapData(this, key).get(key);
}
/* harmony default export */ var _mapCacheGet = (mapCacheGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheHas.js
/**
* Checks if a map value for `key` exists.
*
* @private
* @name has
* @memberOf MapCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function mapCacheHas(key) {
return _getMapData(this, key).has(key);
}
/* harmony default export */ var _mapCacheHas = (mapCacheHas);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheSet.js
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
var data = _getMapData(this, key),
size = data.size;
data.set(key, value);
this.size += data.size == size ? 0 : 1;
return this;
}
/* harmony default export */ var _mapCacheSet = (mapCacheSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_MapCache.js
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `MapCache`.
MapCache.prototype.clear = _mapCacheClear;
MapCache.prototype['delete'] = _mapCacheDelete;
MapCache.prototype.get = _mapCacheGet;
MapCache.prototype.has = _mapCacheHas;
MapCache.prototype.set = _mapCacheSet;
/* harmony default export */ var _MapCache = (MapCache);
/***/ }),
/***/ 21376:
/*!*************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_Stack.js + 5 modules ***!
\*************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _Stack; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_ListCache.js + 6 modules
var _ListCache = __webpack_require__(14124);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackClear.js
/**
* Removes all key-value entries from the stack.
*
* @private
* @name clear
* @memberOf Stack
*/
function stackClear() {
this.__data__ = new _ListCache/* default */.Z;
this.size = 0;
}
/* harmony default export */ var _stackClear = (stackClear);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackDelete.js
/**
* Removes `key` and its value from the stack.
*
* @private
* @name delete
* @memberOf Stack
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function stackDelete(key) {
var data = this.__data__,
result = data['delete'](key);
this.size = data.size;
return result;
}
/* harmony default export */ var _stackDelete = (stackDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackGet.js
/**
* Gets the stack value for `key`.
*
* @private
* @name get
* @memberOf Stack
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function stackGet(key) {
return this.__data__.get(key);
}
/* harmony default export */ var _stackGet = (stackGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackHas.js
/**
* Checks if a stack value for `key` exists.
*
* @private
* @name has
* @memberOf Stack
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function stackHas(key) {
return this.__data__.has(key);
}
/* harmony default export */ var _stackHas = (stackHas);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Map.js
var _Map = __webpack_require__(26450);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_MapCache.js + 14 modules
var _MapCache = __webpack_require__(81681);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackSet.js
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/**
* Sets the stack `key` to `value`.
*
* @private
* @name set
* @memberOf Stack
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the stack cache instance.
*/
function stackSet(key, value) {
var data = this.__data__;
if (data instanceof _ListCache/* default */.Z) {
var pairs = data.__data__;
if (!_Map/* default */.Z || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
pairs.push([key, value]);
this.size = ++data.size;
return this;
}
data = this.__data__ = new _MapCache/* default */.Z(pairs);
}
data.set(key, value);
this.size = data.size;
return this;
}
/* harmony default export */ var _stackSet = (stackSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Stack.js
/**
* Creates a stack cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Stack(entries) {
var data = this.__data__ = new _ListCache/* default */.Z(entries);
this.size = data.size;
}
// Add methods to `Stack`.
Stack.prototype.clear = _stackClear;
Stack.prototype['delete'] = _stackDelete;
Stack.prototype.get = _stackGet;
Stack.prototype.has = _stackHas;
Stack.prototype.set = _stackSet;
/* harmony default export */ var _Stack = (Stack);
/***/ }),
/***/ 39586:
/*!**************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_Symbol.js ***!
\**************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ 79626);
/** Built-in value references. */
var Symbol = _root_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Symbol;
/* harmony default export */ __webpack_exports__.Z = (Symbol);
/***/ }),
/***/ 99082:
/*!*********************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayLikeKeys.js + 1 modules ***!
\*********************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _arrayLikeKeys; }
});
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseTimes.js
/**
* The base implementation of `_.times` without support for iteratee shorthands
* or max array length checks.
*
* @private
* @param {number} n The number of times to invoke `iteratee`.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the array of results.
*/
function baseTimes(n, iteratee) {
var index = -1,
result = Array(n);
while (++index < n) {
result[index] = iteratee(index);
}
return result;
}
/* harmony default export */ var _baseTimes = (baseTimes);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules
var isArguments = __webpack_require__(18519);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
var isArray = __webpack_require__(3315);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
var isBuffer = __webpack_require__(43156);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isIndex.js
var _isIndex = __webpack_require__(1773);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules
var isTypedArray = __webpack_require__(58166);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayLikeKeys.js
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var _arrayLikeKeys_hasOwnProperty = objectProto.hasOwnProperty;
/**
* Creates an array of the enumerable property names of the array-like `value`.
*
* @private
* @param {*} value The value to query.
* @param {boolean} inherited Specify returning inherited property names.
* @returns {Array} Returns the array of property names.
*/
function arrayLikeKeys(value, inherited) {
var isArr = (0,isArray/* default */.Z)(value),
isArg = !isArr && (0,isArguments/* default */.Z)(value),
isBuff = !isArr && !isArg && (0,isBuffer/* default */.Z)(value),
isType = !isArr && !isArg && !isBuff && (0,isTypedArray/* default */.Z)(value),
skipIndexes = isArr || isArg || isBuff || isType,
result = skipIndexes ? _baseTimes(value.length, String) : [],
length = result.length;
for (var key in value) {
if ((inherited || _arrayLikeKeys_hasOwnProperty.call(value, key)) &&
!(skipIndexes && (
// Safari 9 has enumerable `arguments.length` in strict mode.
key == 'length' ||
// Node.js 0.10 has enumerable non-index properties on buffers.
(isBuff && (key == 'offset' || key == 'parent')) ||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
// Skip index properties.
(0,_isIndex/* default */.Z)(key, length)
))) {
result.push(key);
}
}
return result;
}
/* harmony default export */ var _arrayLikeKeys = (arrayLikeKeys);
/***/ }),
/***/ 60829:
/*!*******************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_assignValue.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _baseAssignValue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseAssignValue.js */ 32312);
/* harmony import */ var _eq_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./eq.js */ 91284);
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Assigns `value` to `key` of `object` if the existing value is not equivalent
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* for equality comparisons.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignValue(object, key, value) {
var objValue = object[key];
if (!(hasOwnProperty.call(object, key) && (0,_eq_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(objValue, value)) ||
(value === undefined && !(key in object))) {
(0,_baseAssignValue_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(object, key, value);
}
}
/* harmony default export */ __webpack_exports__.Z = (assignValue);
/***/ }),
/***/ 32312:
/*!***********************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_baseAssignValue.js ***!
\***********************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_defineProperty.js */ 87445);
/**
* The base implementation of `assignValue` and `assignMergeValue` without
* value checks.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function baseAssignValue(object, key, value) {
if (key == '__proto__' && _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z) {
(0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object, key, {
'configurable': true,
'enumerable': true,
'value': value,
'writable': true
});
} else {
object[key] = value;
}
}
/* harmony default export */ __webpack_exports__.Z = (baseAssignValue);
/***/ }),
/***/ 59657:
/*!******************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js + 2 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _baseGetTag; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Symbol.js
var _Symbol = __webpack_require__(39586);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getRawTag.js
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var nativeObjectToString = objectProto.toString;
/** Built-in value references. */
var symToStringTag = _Symbol/* default */.Z ? _Symbol/* default */.Z.toStringTag : undefined;
/**
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the raw `toStringTag`.
*/
function getRawTag(value) {
var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag),
tag = value[symToStringTag];
try {
value[symToStringTag] = undefined;
var unmasked = true;
} catch (e) {}
var result = nativeObjectToString.call(value);
if (unmasked) {
if (isOwn) {
value[symToStringTag] = tag;
} else {
delete value[symToStringTag];
}
}
return result;
}
/* harmony default export */ var _getRawTag = (getRawTag);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_objectToString.js
/** Used for built-in method references. */
var _objectToString_objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var _objectToString_nativeObjectToString = _objectToString_objectProto.toString;
/**
* Converts `value` to a string using `Object.prototype.toString`.
*
* @private
* @param {*} value The value to convert.
* @returns {string} Returns the converted string.
*/
function objectToString(value) {
return _objectToString_nativeObjectToString.call(value);
}
/* harmony default export */ var _objectToString = (objectToString);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js
/** `Object#toString` result references. */
var nullTag = '[object Null]',
undefinedTag = '[object Undefined]';
/** Built-in value references. */
var _baseGetTag_symToStringTag = _Symbol/* default */.Z ? _Symbol/* default */.Z.toStringTag : undefined;
/**
* The base implementation of `getTag` without fallbacks for buggy environments.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
function baseGetTag(value) {
if (value == null) {
return value === undefined ? undefinedTag : nullTag;
}
return (_baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value))
? _getRawTag(value)
: _objectToString(value);
}
/* harmony default export */ var _baseGetTag = (baseGetTag);
/***/ }),
/***/ 66729:
/*!*****************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_baseUnary.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* The base implementation of `_.unary` without support for storing metadata.
*
* @private
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new capped function.
*/
function baseUnary(func) {
return function(value) {
return func(value);
};
}
/* harmony default export */ __webpack_exports__.Z = (baseUnary);
/***/ }),
/***/ 14484:
/*!************************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneArrayBuffer.js + 1 modules ***!
\************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _cloneArrayBuffer; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js
var _root = __webpack_require__(79626);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Uint8Array.js
/** Built-in value references. */
var Uint8Array = _root/* default */.Z.Uint8Array;
/* harmony default export */ var _Uint8Array = (Uint8Array);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneArrayBuffer.js
/**
* Creates a clone of `arrayBuffer`.
*
* @private
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
new _Uint8Array(result).set(new _Uint8Array(arrayBuffer));
return result;
}
/* harmony default export */ var _cloneArrayBuffer = (cloneArrayBuffer);
/***/ }),
/***/ 45785:
/*!*******************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneBuffer.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ 79626);
/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Built-in value references. */
var Buffer = moduleExports ? _root_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Buffer : undefined,
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
/**
* Creates a clone of `buffer`.
*
* @private
* @param {Buffer} buffer The buffer to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Buffer} Returns the cloned buffer.
*/
function cloneBuffer(buffer, isDeep) {
if (isDeep) {
return buffer.slice();
}
var length = buffer.length,
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
buffer.copy(result);
return result;
}
/* harmony default export */ __webpack_exports__.Z = (cloneBuffer);
/***/ }),
/***/ 21246:
/*!***********************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneTypedArray.js ***!
\***********************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _cloneArrayBuffer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_cloneArrayBuffer.js */ 14484);
/**
* Creates a clone of `typedArray`.
*
* @private
* @param {Object} typedArray The typed array to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned typed array.
*/
function cloneTypedArray(typedArray, isDeep) {
var buffer = isDeep ? (0,_cloneArrayBuffer_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(typedArray.buffer) : typedArray.buffer;
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}
/* harmony default export */ __webpack_exports__.Z = (cloneTypedArray);
/***/ }),
/***/ 10214:
/*!*****************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_copyArray.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* Copies the values of `source` to `array`.
*
* @private
* @param {Array} source The array to copy values from.
* @param {Array} [array=[]] The array to copy values to.
* @returns {Array} Returns `array`.
*/
function copyArray(source, array) {
var index = -1,
length = source.length;
array || (array = Array(length));
while (++index < length) {
array[index] = source[index];
}
return array;
}
/* harmony default export */ __webpack_exports__.Z = (copyArray);
/***/ }),
/***/ 71554:
/*!******************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_copyObject.js ***!
\******************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _assignValue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_assignValue.js */ 60829);
/* harmony import */ var _baseAssignValue_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_baseAssignValue.js */ 32312);
/**
* Copies properties of `source` to `object`.
*
* @private
* @param {Object} source The object to copy properties from.
* @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @param {Function} [customizer] The function to customize copied values.
* @returns {Object} Returns `object`.
*/
function copyObject(source, props, object, customizer) {
var isNew = !object;
object || (object = {});
var index = -1,
length = props.length;
while (++index < length) {
var key = props[index];
var newValue = customizer
? customizer(object[key], source[key], key, object, source)
: undefined;
if (newValue === undefined) {
newValue = source[key];
}
if (isNew) {
(0,_baseAssignValue_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object, key, newValue);
} else {
(0,_assignValue_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(object, key, newValue);
}
}
return object;
}
/* harmony default export */ __webpack_exports__.Z = (copyObject);
/***/ }),
/***/ 87445:
/*!**********************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_defineProperty.js ***!
\**********************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_getNative.js */ 99698);
var defineProperty = (function() {
try {
var func = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Object, 'defineProperty');
func({}, '', {});
return func;
} catch (e) {}
}());
/* harmony default export */ __webpack_exports__.Z = (defineProperty);
/***/ }),
/***/ 34212:
/*!******************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_freeGlobal.js ***!
\******************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/* harmony default export */ __webpack_exports__.Z = (freeGlobal);
/***/ }),
/***/ 99698:
/*!*****************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_getNative.js + 4 modules ***!
\*****************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _getNative; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isFunction.js
var isFunction = __webpack_require__(60240);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js
var _root = __webpack_require__(79626);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_coreJsData.js
/** Used to detect overreaching core-js shims. */
var coreJsData = _root/* default */.Z['__core-js_shared__'];
/* harmony default export */ var _coreJsData = (coreJsData);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isMasked.js
/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
return uid ? ('Symbol(src)_1.' + uid) : '';
}());
/**
* Checks if `func` has its source masked.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
function isMasked(func) {
return !!maskSrcKey && (maskSrcKey in func);
}
/* harmony default export */ var _isMasked = (isMasked);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(9935);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_toSource.js
var _toSource = __webpack_require__(22279);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsNative.js
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used for built-in method references. */
var funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var _baseIsNative_hasOwnProperty = objectProto.hasOwnProperty;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
funcToString.call(_baseIsNative_hasOwnProperty).replace(reRegExpChar, '\\$&')
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!(0,isObject/* default */.Z)(value) || _isMasked(value)) {
return false;
}
var pattern = (0,isFunction/* default */.Z)(value) ? reIsNative : reIsHostCtor;
return pattern.test((0,_toSource/* default */.Z)(value));
}
/* harmony default export */ var _baseIsNative = (baseIsNative);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getValue.js
/**
* Gets the value at `key` of `object`.
*
* @private
* @param {Object} [object] The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function getValue(object, key) {
return object == null ? undefined : object[key];
}
/* harmony default export */ var _getValue = (getValue);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getNative.js
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = _getValue(object, key);
return _baseIsNative(value) ? value : undefined;
}
/* harmony default export */ var _getNative = (getNative);
/***/ }),
/***/ 38794:
/*!********************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_getPrototype.js ***!
\********************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _overArg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_overArg.js */ 14339);
/** Built-in value references. */
var getPrototype = (0,_overArg_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Object.getPrototypeOf, Object);
/* harmony default export */ __webpack_exports__.Z = (getPrototype);
/***/ }),
/***/ 78163:
/*!***********************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneObject.js + 1 modules ***!
\***********************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _initCloneObject; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(9935);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseCreate.js
/** Built-in value references. */
var objectCreate = Object.create;
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
*
* @private
* @param {Object} proto The object to inherit from.
* @returns {Object} Returns the new object.
*/
var baseCreate = (function() {
function object() {}
return function(proto) {
if (!(0,isObject/* default */.Z)(proto)) {
return {};
}
if (objectCreate) {
return objectCreate(proto);
}
object.prototype = proto;
var result = new object;
object.prototype = undefined;
return result;
};
}());
/* harmony default export */ var _baseCreate = (baseCreate);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getPrototype.js
var _getPrototype = __webpack_require__(38794);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js
var _isPrototype = __webpack_require__(33866);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneObject.js
/**
* Initializes an object clone.
*
* @private
* @param {Object} object The object to clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return (typeof object.constructor == 'function' && !(0,_isPrototype/* default */.Z)(object))
? _baseCreate((0,_getPrototype/* default */.Z)(object))
: {};
}
/* harmony default export */ var _initCloneObject = (initCloneObject);
/***/ }),
/***/ 1773:
/*!***************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_isIndex.js ***!
\***************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
var type = typeof value;
length = length == null ? MAX_SAFE_INTEGER : length;
return !!length &&
(type == 'number' ||
(type != 'symbol' && reIsUint.test(value))) &&
(value > -1 && value % 1 == 0 && value < length);
}
/* harmony default export */ __webpack_exports__.Z = (isIndex);
/***/ }),
/***/ 33866:
/*!*******************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Checks if `value` is likely a prototype object.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
return value === proto;
}
/* harmony default export */ __webpack_exports__.Z = (isPrototype);
/***/ }),
/***/ 16029:
/*!****************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_nodeUtil.js ***!
\****************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_freeGlobal.js */ 34212);
/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.process;
/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
try {
// Use `util.types` for Node.js 10+.
var types = freeModule && freeModule.require && freeModule.require('util').types;
if (types) {
return types;
}
// Legacy `process.binding('util')` for Node.js < 10.
return freeProcess && freeProcess.binding && freeProcess.binding('util');
} catch (e) {}
}());
/* harmony default export */ __webpack_exports__.Z = (nodeUtil);
/***/ }),
/***/ 14339:
/*!***************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_overArg.js ***!
\***************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* Creates a unary function that invokes `func` with its argument transformed.
*
* @private
* @param {Function} func The function to wrap.
* @param {Function} transform The argument transform.
* @returns {Function} Returns the new function.
*/
function overArg(func, transform) {
return function(arg) {
return func(transform(arg));
};
}
/* harmony default export */ __webpack_exports__.Z = (overArg);
/***/ }),
/***/ 48301:
/*!****************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_overRest.js + 1 modules ***!
\****************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _overRest; }
});
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_apply.js
/**
* A faster alternative to `Function#apply`, this function invokes `func`
* with the `this` binding of `thisArg` and the arguments of `args`.
*
* @private
* @param {Function} func The function to invoke.
* @param {*} thisArg The `this` binding of `func`.
* @param {Array} args The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
switch (args.length) {
case 0: return func.call(thisArg);
case 1: return func.call(thisArg, args[0]);
case 2: return func.call(thisArg, args[0], args[1]);
case 3: return func.call(thisArg, args[0], args[1], args[2]);
}
return func.apply(thisArg, args);
}
/* harmony default export */ var _apply = (apply);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_overRest.js
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;
/**
* A specialized version of `baseRest` which transforms the rest array.
*
* @private
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @param {Function} transform The rest array transform.
* @returns {Function} Returns the new function.
*/
function overRest(func, start, transform) {
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
return function() {
var args = arguments,
index = -1,
length = nativeMax(args.length - start, 0),
array = Array(length);
while (++index < length) {
array[index] = args[start + index];
}
index = -1;
var otherArgs = Array(start + 1);
while (++index < start) {
otherArgs[index] = args[index];
}
otherArgs[start] = transform(array);
return _apply(func, this, otherArgs);
};
}
/* harmony default export */ var _overRest = (overRest);
/***/ }),
/***/ 79626:
/*!************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js ***!
\************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_freeGlobal.js */ 34212);
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z || freeSelf || Function('return this')();
/* harmony default export */ __webpack_exports__.Z = (root);
/***/ }),
/***/ 79524:
/*!*******************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_setToString.js + 3 modules ***!
\*******************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _setToString; }
});
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/constant.js
/**
* Creates a function that returns `value`.
*
* @static
* @memberOf _
* @since 2.4.0
* @category Util
* @param {*} value The value to return from the new function.
* @returns {Function} Returns the new constant function.
* @example
*
* var objects = _.times(2, _.constant({ 'a': 1 }));
*
* console.log(objects);
* // => [{ 'a': 1 }, { 'a': 1 }]
*
* console.log(objects[0] === objects[1]);
* // => true
*/
function constant(value) {
return function() {
return value;
};
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_constant = (constant);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_defineProperty.js
var _defineProperty = __webpack_require__(87445);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/identity.js
var identity = __webpack_require__(64739);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseSetToString.js
/**
* The base implementation of `setToString` without support for hot loop shorting.
*
* @private
* @param {Function} func The function to modify.
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
var baseSetToString = !_defineProperty/* default */.Z ? identity/* default */.Z : function(func, string) {
return (0,_defineProperty/* default */.Z)(func, 'toString', {
'configurable': true,
'enumerable': false,
'value': _lodash_es_4_17_21_lodash_es_constant(string),
'writable': true
});
};
/* harmony default export */ var _baseSetToString = (baseSetToString);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_shortOut.js
/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
HOT_SPAN = 16;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;
/**
* Creates a function that'll short out and invoke `identity` instead
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
* milliseconds.
*
* @private
* @param {Function} func The function to restrict.
* @returns {Function} Returns the new shortable function.
*/
function shortOut(func) {
var count = 0,
lastCalled = 0;
return function() {
var stamp = nativeNow(),
remaining = HOT_SPAN - (stamp - lastCalled);
lastCalled = stamp;
if (remaining > 0) {
if (++count >= HOT_COUNT) {
return arguments[0];
}
} else {
count = 0;
}
return func.apply(undefined, arguments);
};
}
/* harmony default export */ var _shortOut = (shortOut);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setToString.js
/**
* Sets the `toString` method of `func` to return `string`.
*
* @private
* @param {Function} func The function to modify.
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
var setToString = _shortOut(_baseSetToString);
/* harmony default export */ var _setToString = (setToString);
/***/ }),
/***/ 22279:
/*!****************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/_toSource.js ***!
\****************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/** Used for built-in method references. */
var funcProto = Function.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to convert.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return (func + '');
} catch (e) {}
}
return '';
}
/* harmony default export */ __webpack_exports__.Z = (toSource);
/***/ }),
/***/ 91284:
/*!*********************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/eq.js ***!
\*********************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || (value !== value && other !== other);
}
/* harmony default export */ __webpack_exports__.Z = (eq);
/***/ }),
/***/ 64739:
/*!***************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/identity.js ***!
\***************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* This method returns the first argument it receives.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
* @returns {*} Returns `value`.
* @example
*
* var object = { 'a': 1 };
*
* console.log(_.identity(object) === object);
* // => true
*/
function identity(value) {
return value;
}
/* harmony default export */ __webpack_exports__.Z = (identity);
/***/ }),
/***/ 18519:
/*!******************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_isArguments; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js + 2 modules
var _baseGetTag = __webpack_require__(59657);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(21314);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsArguments.js
/** `Object#toString` result references. */
var argsTag = '[object Arguments]';
/**
* The base implementation of `_.isArguments`.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
*/
function baseIsArguments(value) {
return (0,isObjectLike/* default */.Z)(value) && (0,_baseGetTag/* default */.Z)(value) == argsTag;
}
/* harmony default export */ var _baseIsArguments = (baseIsArguments);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var isArguments_hasOwnProperty = objectProto.hasOwnProperty;
/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
/**
* Checks if `value` is likely an `arguments` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
* else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
* // => true
*
* _.isArguments([1, 2, 3]);
* // => false
*/
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
return (0,isObjectLike/* default */.Z)(value) && isArguments_hasOwnProperty.call(value, 'callee') &&
!propertyIsEnumerable.call(value, 'callee');
};
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isArguments = (isArguments);
/***/ }),
/***/ 3315:
/*!**************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js ***!
\**************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* Checks if `value` is classified as an `Array` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
* @example
*
* _.isArray([1, 2, 3]);
* // => true
*
* _.isArray(document.body.children);
* // => false
*
* _.isArray('abc');
* // => false
*
* _.isArray(_.noop);
* // => false
*/
var isArray = Array.isArray;
/* harmony default export */ __webpack_exports__.Z = (isArray);
/***/ }),
/***/ 56612:
/*!******************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js ***!
\******************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isFunction.js */ 60240);
/* harmony import */ var _isLength_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isLength.js */ 66523);
/**
* Checks if `value` is array-like. A value is considered array-like if it's
* not a function and has a `value.length` that's an integer greater than or
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
* @example
*
* _.isArrayLike([1, 2, 3]);
* // => true
*
* _.isArrayLike(document.body.children);
* // => true
*
* _.isArrayLike('abc');
* // => true
*
* _.isArrayLike(_.noop);
* // => false
*/
function isArrayLike(value) {
return value != null && (0,_isLength_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value.length) && !(0,_isFunction_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(value);
}
/* harmony default export */ __webpack_exports__.Z = (isArrayLike);
/***/ }),
/***/ 43156:
/*!***************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules ***!
\***************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_isBuffer; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js
var _root = __webpack_require__(79626);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/stubFalse.js
/**
* This method returns `false`.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `false`.
* @example
*
* _.times(2, _.stubFalse);
* // => [false, false]
*/
function stubFalse() {
return false;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_stubFalse = (stubFalse);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js
/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Built-in value references. */
var Buffer = moduleExports ? _root/* default */.Z.Buffer : undefined;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
/**
* Checks if `value` is a buffer.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
* @example
*
* _.isBuffer(new Buffer(2));
* // => true
*
* _.isBuffer(new Uint8Array(2));
* // => false
*/
var isBuffer = nativeIsBuffer || _lodash_es_4_17_21_lodash_es_stubFalse;
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isBuffer = (isBuffer);
/***/ }),
/***/ 60240:
/*!*****************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isFunction.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseGetTag.js */ 59657);
/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObject.js */ 9935);
/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
proxyTag = '[object Proxy]';
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
if (!(0,_isObject_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value)) {
return false;
}
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var tag = (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(value);
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
/* harmony default export */ __webpack_exports__.Z = (isFunction);
/***/ }),
/***/ 66523:
/*!***************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isLength.js ***!
\***************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This method is loosely based on
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
* @example
*
* _.isLength(3);
* // => true
*
* _.isLength(Number.MIN_VALUE);
* // => false
*
* _.isLength(Infinity);
* // => false
*
* _.isLength('3');
* // => false
*/
function isLength(value) {
return typeof value == 'number' &&
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/* harmony default export */ __webpack_exports__.Z = (isLength);
/***/ }),
/***/ 9935:
/*!***************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js ***!
\***************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return value != null && (type == 'object' || type == 'function');
}
/* harmony default export */ __webpack_exports__.Z = (isObject);
/***/ }),
/***/ 21314:
/*!*******************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {
"use strict";
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return value != null && typeof value == 'object';
}
/* harmony default export */ __webpack_exports__.Z = (isObjectLike);
/***/ }),
/***/ 77844:
/*!********************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isPlainObject.js ***!
\********************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_baseGetTag.js */ 59657);
/* harmony import */ var _getPrototype_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_getPrototype.js */ 38794);
/* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isObjectLike.js */ 21314);
/** `Object#toString` result references. */
var objectTag = '[object Object]';
/** Used for built-in method references. */
var funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);
/**
* Checks if `value` is a plain object, that is, an object created by the
* `Object` constructor or one with a `[[Prototype]]` of `null`.
*
* @static
* @memberOf _
* @since 0.8.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
* @example
*
* function Foo() {
* this.a = 1;
* }
*
* _.isPlainObject(new Foo);
* // => false
*
* _.isPlainObject([1, 2, 3]);
* // => false
*
* _.isPlainObject({ 'x': 0, 'y': 0 });
* // => true
*
* _.isPlainObject(Object.create(null));
* // => true
*/
function isPlainObject(value) {
if (!(0,_isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value) || (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(value) != objectTag) {
return false;
}
var proto = (0,_getPrototype_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(value);
if (proto === null) {
return true;
}
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
funcToString.call(Ctor) == objectCtorString;
}
/* harmony default export */ __webpack_exports__.Z = (isPlainObject);
/***/ }),
/***/ 58166:
/*!*******************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules ***!
\*******************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_isTypedArray; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js + 2 modules
var _baseGetTag = __webpack_require__(59657);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isLength.js
var isLength = __webpack_require__(66523);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(21314);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsTypedArray.js
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
funcTag = '[object Function]',
mapTag = '[object Map]',
numberTag = '[object Number]',
objectTag = '[object Object]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;
/**
* The base implementation of `_.isTypedArray` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
*/
function baseIsTypedArray(value) {
return (0,isObjectLike/* default */.Z)(value) &&
(0,isLength/* default */.Z)(value.length) && !!typedArrayTags[(0,_baseGetTag/* default */.Z)(value)];
}
/* harmony default export */ var _baseIsTypedArray = (baseIsTypedArray);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseUnary.js
var _baseUnary = __webpack_require__(66729);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nodeUtil.js
var _nodeUtil = __webpack_require__(16029);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js
/* Node.js helper references. */
var nodeIsTypedArray = _nodeUtil/* default */.Z && _nodeUtil/* default */.Z.isTypedArray;
/**
* Checks if `value` is classified as a typed array.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
* @example
*
* _.isTypedArray(new Uint8Array);
* // => true
*
* _.isTypedArray([]);
* // => false
*/
var isTypedArray = nodeIsTypedArray ? (0,_baseUnary/* default */.Z)(nodeIsTypedArray) : _baseIsTypedArray;
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isTypedArray = (isTypedArray);
/***/ }),
/***/ 84975:
/*!*************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/keysIn.js + 2 modules ***!
\*************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_keysIn; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayLikeKeys.js + 1 modules
var _arrayLikeKeys = __webpack_require__(99082);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(9935);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js
var _isPrototype = __webpack_require__(33866);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nativeKeysIn.js
/**
* This function is like
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
* except that it includes inherited enumerable properties.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function nativeKeysIn(object) {
var result = [];
if (object != null) {
for (var key in Object(object)) {
result.push(key);
}
}
return result;
}
/* harmony default export */ var _nativeKeysIn = (nativeKeysIn);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseKeysIn.js
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var _baseKeysIn_hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeysIn(object) {
if (!(0,isObject/* default */.Z)(object)) {
return _nativeKeysIn(object);
}
var isProto = (0,_isPrototype/* default */.Z)(object),
result = [];
for (var key in object) {
if (!(key == 'constructor' && (isProto || !_baseKeysIn_hasOwnProperty.call(object, key)))) {
result.push(key);
}
}
return result;
}
/* harmony default export */ var _baseKeysIn = (baseKeysIn);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js
var isArrayLike = __webpack_require__(56612);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keysIn.js
/**
* Creates an array of the own and inherited enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keysIn(new Foo);
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
*/
function keysIn(object) {
return (0,isArrayLike/* default */.Z)(object) ? (0,_arrayLikeKeys/* default */.Z)(object, true) : _baseKeysIn(object);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_keysIn = (keysIn);
/***/ }),
/***/ 24230:
/*!*************************************************************************!*\
!*** ./node_modules/_lodash-es@4.17.21@lodash-es/merge.js + 11 modules ***!
\*************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_merge; }
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Stack.js + 5 modules
var _Stack = __webpack_require__(21376);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseAssignValue.js
var _baseAssignValue = __webpack_require__(32312);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/eq.js
var eq = __webpack_require__(91284);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_assignMergeValue.js
/**
* This function is like `assignValue` except that it doesn't assign
* `undefined` values.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignMergeValue(object, key, value) {
if ((value !== undefined && !(0,eq/* default */.Z)(object[key], value)) ||
(value === undefined && !(key in object))) {
(0,_baseAssignValue/* default */.Z)(object, key, value);
}
}
/* harmony default export */ var _assignMergeValue = (assignMergeValue);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_createBaseFor.js
/**
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {Function} Returns the new base function.
*/
function createBaseFor(fromRight) {
return function(object, iteratee, keysFunc) {
var index = -1,
iterable = Object(object),
props = keysFunc(object),
length = props.length;
while (length--) {
var key = props[fromRight ? length : ++index];
if (iteratee(iterable[key], key, iterable) === false) {
break;
}
}
return object;
};
}
/* harmony default export */ var _createBaseFor = (createBaseFor);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseFor.js
/**
* The base implementation of `baseForOwn` which iterates over `object`
* properties returned by `keysFunc` and invokes `iteratee` for each property.
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {Function} keysFunc The function to get the keys of `object`.
* @returns {Object} Returns `object`.
*/
var baseFor = _createBaseFor();
/* harmony default export */ var _baseFor = (baseFor);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneBuffer.js
var _cloneBuffer = __webpack_require__(45785);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneTypedArray.js
var _cloneTypedArray = __webpack_require__(21246);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copyArray.js
var _copyArray = __webpack_require__(10214);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneObject.js + 1 modules
var _initCloneObject = __webpack_require__(78163);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules
var isArguments = __webpack_require__(18519);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
var isArray = __webpack_require__(3315);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js
var isArrayLike = __webpack_require__(56612);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(21314);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLikeObject.js
/**
* This method is like `_.isArrayLike` except that it also checks if `value`
* is an object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array-like object,
* else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
* // => true
*
* _.isArrayLikeObject(document.body.children);
* // => true
*
* _.isArrayLikeObject('abc');
* // => false
*
* _.isArrayLikeObject(_.noop);
* // => false
*/
function isArrayLikeObject(value) {
return (0,isObjectLike/* default */.Z)(value) && (0,isArrayLike/* default */.Z)(value);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isArrayLikeObject = (isArrayLikeObject);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
var isBuffer = __webpack_require__(43156);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isFunction.js
var isFunction = __webpack_require__(60240);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(9935);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isPlainObject.js
var isPlainObject = __webpack_require__(77844);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules
var isTypedArray = __webpack_require__(58166);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_safeGet.js
/**
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function safeGet(object, key) {
if (key === 'constructor' && typeof object[key] === 'function') {
return;
}
if (key == '__proto__') {
return;
}
return object[key];
}
/* harmony default export */ var _safeGet = (safeGet);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copyObject.js
var _copyObject = __webpack_require__(71554);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keysIn.js + 2 modules
var keysIn = __webpack_require__(84975);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toPlainObject.js
/**
* Converts `value` to a plain object flattening inherited enumerable string
* keyed properties of `value` to own properties of the plain object.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {Object} Returns the converted plain object.
* @example
*
* function Foo() {
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.assign({ 'a': 1 }, new Foo);
* // => { 'a': 1, 'b': 2 }
*
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
* // => { 'a': 1, 'b': 2, 'c': 3 }
*/
function toPlainObject(value) {
return (0,_copyObject/* default */.Z)(value, (0,keysIn/* default */.Z)(value));
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_toPlainObject = (toPlainObject);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMergeDeep.js
/**
* A specialized version of `baseMerge` for arrays and objects which performs
* deep merges and tracks traversed objects enabling objects with circular
* references to be merged.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {string} key The key of the value to merge.
* @param {number} srcIndex The index of `source`.
* @param {Function} mergeFunc The function to merge values.
* @param {Function} [customizer] The function to customize assigned values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
var objValue = _safeGet(object, key),
srcValue = _safeGet(source, key),
stacked = stack.get(srcValue);
if (stacked) {
_assignMergeValue(object, key, stacked);
return;
}
var newValue = customizer
? customizer(objValue, srcValue, (key + ''), object, source, stack)
: undefined;
var isCommon = newValue === undefined;
if (isCommon) {
var isArr = (0,isArray/* default */.Z)(srcValue),
isBuff = !isArr && (0,isBuffer/* default */.Z)(srcValue),
isTyped = !isArr && !isBuff && (0,isTypedArray/* default */.Z)(srcValue);
newValue = srcValue;
if (isArr || isBuff || isTyped) {
if ((0,isArray/* default */.Z)(objValue)) {
newValue = objValue;
}
else if (_lodash_es_4_17_21_lodash_es_isArrayLikeObject(objValue)) {
newValue = (0,_copyArray/* default */.Z)(objValue);
}
else if (isBuff) {
isCommon = false;
newValue = (0,_cloneBuffer/* default */.Z)(srcValue, true);
}
else if (isTyped) {
isCommon = false;
newValue = (0,_cloneTypedArray/* default */.Z)(srcValue, true);
}
else {
newValue = [];
}
}
else if ((0,isPlainObject/* default */.Z)(srcValue) || (0,isArguments/* default */.Z)(srcValue)) {
newValue = objValue;
if ((0,isArguments/* default */.Z)(objValue)) {
newValue = _lodash_es_4_17_21_lodash_es_toPlainObject(objValue);
}
else if (!(0,isObject/* default */.Z)(objValue) || (0,isFunction/* default */.Z)(objValue)) {
newValue = (0,_initCloneObject/* default */.Z)(srcValue);
}
}
else {
isCommon = false;
}
}
if (isCommon) {
// Recursively merge objects and arrays (susceptible to call stack limits).
stack.set(srcValue, newValue);
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
stack['delete'](srcValue);
}
_assignMergeValue(object, key, newValue);
}
/* harmony default export */ var _baseMergeDeep = (baseMergeDeep);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMerge.js
/**
* The base implementation of `_.merge` without support for multiple sources.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {number} srcIndex The index of `source`.
* @param {Function} [customizer] The function to customize merged values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMerge(object, source, srcIndex, customizer, stack) {
if (object === source) {
return;
}
_baseFor(source, function(srcValue, key) {
stack || (stack = new _Stack/* default */.Z);
if ((0,isObject/* default */.Z)(srcValue)) {
_baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
}
else {
var newValue = customizer
? customizer(_safeGet(object, key), srcValue, (key + ''), object, source, stack)
: undefined;
if (newValue === undefined) {
newValue = srcValue;
}
_assignMergeValue(object, key, newValue);
}
}, keysIn/* default */.Z);
}
/* harmony default export */ var _baseMerge = (baseMerge);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/identity.js
var identity = __webpack_require__(64739);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_overRest.js + 1 modules
var _overRest = __webpack_require__(48301);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setToString.js + 3 modules
var _setToString = __webpack_require__(79524);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseRest.js
/**
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
*
* @private
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @returns {Function} Returns the new function.
*/
function baseRest(func, start) {
return (0,_setToString/* default */.Z)((0,_overRest/* default */.Z)(func, start, identity/* default */.Z), func + '');
}
/* harmony default export */ var _baseRest = (baseRest);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isIndex.js
var _isIndex = __webpack_require__(1773);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isIterateeCall.js
/**
* Checks if the given arguments are from an iteratee call.
*
* @private
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
* else `false`.
*/
function isIterateeCall(value, index, object) {
if (!(0,isObject/* default */.Z)(object)) {
return false;
}
var type = typeof index;
if (type == 'number'
? ((0,isArrayLike/* default */.Z)(object) && (0,_isIndex/* default */.Z)(index, object.length))
: (type == 'string' && index in object)
) {
return (0,eq/* default */.Z)(object[index], value);
}
return false;
}
/* harmony default export */ var _isIterateeCall = (isIterateeCall);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_createAssigner.js
/**
* Creates a function like `_.assign`.
*
* @private
* @param {Function} assigner The function to assign values.
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return _baseRest(function(object, sources) {
var index = -1,
length = sources.length,
customizer = length > 1 ? sources[length - 1] : undefined,
guard = length > 2 ? sources[2] : undefined;
customizer = (assigner.length > 3 && typeof customizer == 'function')
? (length--, customizer)
: undefined;
if (guard && _isIterateeCall(sources[0], sources[1], guard)) {
customizer = length < 3 ? undefined : customizer;
length = 1;
}
object = Object(object);
while (++index < length) {
var source = sources[index];
if (source) {
assigner(object, source, index, customizer);
}
}
return object;
});
}
/* harmony default export */ var _createAssigner = (createAssigner);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/merge.js
/**
* This method is like `_.assign` except that it recursively merges own and
* inherited enumerable string keyed properties of source objects into the
* destination object. Source properties that resolve to `undefined` are
* skipped if a destination value exists. Array and plain object properties
* are merged recursively. Other objects and value types are overridden by
* assignment. Source objects are applied from left to right. Subsequent
* sources overwrite property assignments of previous sources.
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
* @since 0.5.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
* @returns {Object} Returns `object`.
* @example
*
* var object = {
* 'a': [{ 'b': 2 }, { 'd': 4 }]
* };
*
* var other = {
* 'a': [{ 'c': 3 }, { 'e': 5 }]
* };
*
* _.merge(object, other);
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
*/
var merge = _createAssigner(function(object, source, srcIndex) {
_baseMerge(object, source, srcIndex);
});
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_merge = (merge);
/***/ }),
/***/ 79074:
/*!*********************************************************************!*\
!*** ./node_modules/_swr@2.2.5@swr/dist/core/index.mjs + 1 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
J$: function() { return /* binding */ core_SWRConfig; },
ZP: function() { return /* binding */ useSWR; },
kY: function() { return /* reexport */ useSWRConfig; }
});
// UNUSED EXPORTS: mutate, preload, unstable_serialize
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_use-sync-external-store@1.2.2@use-sync-external-store/shim/index.js
var shim = __webpack_require__(4799);
;// CONCATENATED MODULE: ./node_modules/_swr@2.2.5@swr/dist/_internal/index.mjs
// Shared state between server components and client components
const noop = ()=>{};
// Using noop() as the undefined value as undefined can be replaced
// by something else. Prettier ignore and extra parentheses are necessary here
// to ensure that tsc doesn't remove the __NOINLINE__ comment.
// prettier-ignore
const UNDEFINED = /*#__NOINLINE__*/ noop();
const OBJECT = Object;
const isUndefined = (v)=>v === UNDEFINED;
const isFunction = (v)=>typeof v == 'function';
const mergeObjects = (a, b)=>({
...a,
...b
});
const isPromiseLike = (x)=>isFunction(x.then);
// use WeakMap to store the object->key mapping
// so the objects can be garbage collected.
// WeakMap uses a hashtable under the hood, so the lookup
// complexity is almost O(1).
const table = new WeakMap();
// counter of the key
let counter = 0;
// A stable hash implementation that supports:
// - Fast and ensures unique hash properties
// - Handles unserializable values
// - Handles object key ordering
// - Generates short results
//
// This is not a serialization function, and the result is not guaranteed to be
// parsable.
const stableHash = (arg)=>{
const type = typeof arg;
const constructor = arg && arg.constructor;
const isDate = constructor == Date;
let result;
let index;
if (OBJECT(arg) === arg && !isDate && constructor != RegExp) {
// Object/function, not null/date/regexp. Use WeakMap to store the id first.
// If it's already hashed, directly return the result.
result = table.get(arg);
if (result) return result;
// Store the hash first for circular reference detection before entering the
// recursive `stableHash` calls.
// For other objects like set and map, we use this id directly as the hash.
result = ++counter + '~';
table.set(arg, result);
if (constructor == Array) {
// Array.
result = '@';
for(index = 0; index < arg.length; index++){
result += stableHash(arg[index]) + ',';
}
table.set(arg, result);
}
if (constructor == OBJECT) {
// Object, sort keys.
result = '#';
const keys = OBJECT.keys(arg).sort();
while(!isUndefined(index = keys.pop())){
if (!isUndefined(arg[index])) {
result += index + ':' + stableHash(arg[index]) + ',';
}
}
table.set(arg, result);
}
} else {
result = isDate ? arg.toJSON() : type == 'symbol' ? arg.toString() : type == 'string' ? JSON.stringify(arg) : '' + arg;
}
return result;
};
// Global state used to deduplicate requests and store listeners
const SWRGlobalState = new WeakMap();
const EMPTY_CACHE = {};
const INITIAL_CACHE = {};
const STR_UNDEFINED = 'undefined';
// NOTE: Use the function to guarantee it's re-evaluated between jsdom and node runtime for tests.
const isWindowDefined = typeof window != STR_UNDEFINED;
const isDocumentDefined = typeof document != STR_UNDEFINED;
const hasRequestAnimationFrame = ()=>isWindowDefined && typeof window['requestAnimationFrame'] != STR_UNDEFINED;
const createCacheHelper = (cache, key)=>{
const state = SWRGlobalState.get(cache);
return [
// Getter
()=>!isUndefined(key) && cache.get(key) || EMPTY_CACHE,
// Setter
(info)=>{
if (!isUndefined(key)) {
const prev = cache.get(key);
// Before writing to the store, we keep the value in the initial cache
// if it's not there yet.
if (!(key in INITIAL_CACHE)) {
INITIAL_CACHE[key] = prev;
}
state[5](key, mergeObjects(prev, info), prev || EMPTY_CACHE);
}
},
// Subscriber
state[6],
// Get server cache snapshot
()=>{
if (!isUndefined(key)) {
// If the cache was updated on the client, we return the stored initial value.
if (key in INITIAL_CACHE) return INITIAL_CACHE[key];
}
// If we haven't done any client-side updates, we return the current value.
return !isUndefined(key) && cache.get(key) || EMPTY_CACHE;
}
];
} // export { UNDEFINED, OBJECT, isUndefined, isFunction, mergeObjects, isPromiseLike }
;
/**
* Due to the bug https://bugs.chromium.org/p/chromium/issues/detail?id=678075,
* it's not reliable to detect if the browser is currently online or offline
* based on `navigator.onLine`.
* As a workaround, we always assume it's online on the first load, and change
* the status upon `online` or `offline` events.
*/ let online = true;
const isOnline = ()=>online;
// For node and React Native, `add/removeEventListener` doesn't exist on window.
const [onWindowEvent, offWindowEvent] = isWindowDefined && window.addEventListener ? [
window.addEventListener.bind(window),
window.removeEventListener.bind(window)
] : [
noop,
noop
];
const isVisible = ()=>{
const visibilityState = isDocumentDefined && document.visibilityState;
return isUndefined(visibilityState) || visibilityState !== 'hidden';
};
const initFocus = (callback)=>{
// focus revalidate
if (isDocumentDefined) {
document.addEventListener('visibilitychange', callback);
}
onWindowEvent('focus', callback);
return ()=>{
if (isDocumentDefined) {
document.removeEventListener('visibilitychange', callback);
}
offWindowEvent('focus', callback);
};
};
const initReconnect = (callback)=>{
// revalidate on reconnected
const onOnline = ()=>{
online = true;
callback();
};
// nothing to revalidate, just update the status
const onOffline = ()=>{
online = false;
};
onWindowEvent('online', onOnline);
onWindowEvent('offline', onOffline);
return ()=>{
offWindowEvent('online', onOnline);
offWindowEvent('offline', onOffline);
};
};
const preset = {
isOnline,
isVisible
};
const defaultConfigOptions = {
initFocus,
initReconnect
};
const IS_REACT_LEGACY = !_react_17_0_2_react.useId;
const IS_SERVER = !isWindowDefined || 'Deno' in window;
// Polyfill requestAnimationFrame
const rAF = (f)=>hasRequestAnimationFrame() ? window['requestAnimationFrame'](f) : setTimeout(f, 1);
// React currently throws a warning when using useLayoutEffect on the server.
// To get around it, we can conditionally useEffect on the server (no-op) and
// useLayoutEffect in the browser.
const useIsomorphicLayoutEffect = IS_SERVER ? _react_17_0_2_react.useEffect : _react_17_0_2_react.useLayoutEffect;
// This assignment is to extend the Navigator type to use effectiveType.
const navigatorConnection = typeof navigator !== 'undefined' && navigator.connection;
// Adjust the config based on slow connection status (<= 70Kbps).
const slowConnection = !IS_SERVER && navigatorConnection && ([
'slow-2g',
'2g'
].includes(navigatorConnection.effectiveType) || navigatorConnection.saveData);
const _internal_serialize = (key)=>{
if (isFunction(key)) {
try {
key = key();
} catch (err) {
// dependencies not ready
key = '';
}
}
// Use the original key as the argument of fetcher. This can be a string or an
// array of values.
const args = key;
// If key is not falsy, or not an empty array, hash it.
key = typeof key == 'string' ? key : (Array.isArray(key) ? key.length : key) ? stableHash(key) : '';
return [
key,
args
];
};
// Global timestamp.
let __timestamp = 0;
const getTimestamp = ()=>++__timestamp;
const FOCUS_EVENT = 0;
const RECONNECT_EVENT = 1;
const MUTATE_EVENT = 2;
const ERROR_REVALIDATE_EVENT = 3;
var events = {
__proto__: null,
ERROR_REVALIDATE_EVENT: ERROR_REVALIDATE_EVENT,
FOCUS_EVENT: FOCUS_EVENT,
MUTATE_EVENT: MUTATE_EVENT,
RECONNECT_EVENT: RECONNECT_EVENT
};
async function internalMutate(...args) {
const [cache, _key, _data, _opts] = args;
// When passing as a boolean, it's explicitly used to disable/enable
// revalidation.
const options = mergeObjects({
populateCache: true,
throwOnError: true
}, typeof _opts === 'boolean' ? {
revalidate: _opts
} : _opts || {});
let populateCache = options.populateCache;
const rollbackOnErrorOption = options.rollbackOnError;
let optimisticData = options.optimisticData;
const rollbackOnError = (error)=>{
return typeof rollbackOnErrorOption === 'function' ? rollbackOnErrorOption(error) : rollbackOnErrorOption !== false;
};
const throwOnError = options.throwOnError;
// If the second argument is a key filter, return the mutation results for all
// filtered keys.
if (isFunction(_key)) {
const keyFilter = _key;
const matchedKeys = [];
const it = cache.keys();
for (const key of it){
if (// Skip the special useSWRInfinite and useSWRSubscription keys.
!/^\$(inf|sub)\$/.test(key) && keyFilter(cache.get(key)._k)) {
matchedKeys.push(key);
}
}
return Promise.all(matchedKeys.map(mutateByKey));
}
return mutateByKey(_key);
async function mutateByKey(_k) {
// Serialize key
const [key] = _internal_serialize(_k);
if (!key) return;
const [get, set] = createCacheHelper(cache, key);
const [EVENT_REVALIDATORS, MUTATION, FETCH, PRELOAD] = SWRGlobalState.get(cache);
const startRevalidate = ()=>{
const revalidators = EVENT_REVALIDATORS[key];
const revalidate = isFunction(options.revalidate) ? options.revalidate(get().data, _k) : options.revalidate !== false;
if (revalidate) {
// Invalidate the key by deleting the concurrent request markers so new
// requests will not be deduped.
delete FETCH[key];
delete PRELOAD[key];
if (revalidators && revalidators[0]) {
return revalidators[0](MUTATE_EVENT).then(()=>get().data);
}
}
return get().data;
};
// If there is no new data provided, revalidate the key with current state.
if (args.length < 3) {
// Revalidate and broadcast state.
return startRevalidate();
}
let data = _data;
let error;
// Update global timestamps.
const beforeMutationTs = getTimestamp();
MUTATION[key] = [
beforeMutationTs,
0
];
const hasOptimisticData = !isUndefined(optimisticData);
const state = get();
// `displayedData` is the current value on screen. It could be the optimistic value
// that is going to be overridden by a `committedData`, or get reverted back.
// `committedData` is the validated value that comes from a fetch or mutation.
const displayedData = state.data;
const currentData = state._c;
const committedData = isUndefined(currentData) ? displayedData : currentData;
// Do optimistic data update.
if (hasOptimisticData) {
optimisticData = isFunction(optimisticData) ? optimisticData(committedData, displayedData) : optimisticData;
// When we set optimistic data, backup the current committedData data in `_c`.
set({
data: optimisticData,
_c: committedData
});
}
if (isFunction(data)) {
// `data` is a function, call it passing current cache value.
try {
data = data(committedData);
} catch (err) {
// If it throws an error synchronously, we shouldn't update the cache.
error = err;
}
}
// `data` is a promise/thenable, resolve the final data first.
if (data && isPromiseLike(data)) {
// This means that the mutation is async, we need to check timestamps to
// avoid race conditions.
data = await data.catch((err)=>{
error = err;
});
// Check if other mutations have occurred since we've started this mutation.
// If there's a race we don't update cache or broadcast the change,
// just return the data.
if (beforeMutationTs !== MUTATION[key][0]) {
if (error) throw error;
return data;
} else if (error && hasOptimisticData && rollbackOnError(error)) {
// Rollback. Always populate the cache in this case but without
// transforming the data.
populateCache = true;
// Reset data to be the latest committed data, and clear the `_c` value.
set({
data: committedData,
_c: UNDEFINED
});
}
}
// If we should write back the cache after request.
if (populateCache) {
if (!error) {
// Transform the result into data.
if (isFunction(populateCache)) {
const populateCachedData = populateCache(data, committedData);
set({
data: populateCachedData,
error: UNDEFINED,
_c: UNDEFINED
});
} else {
// Only update cached data and reset the error if there's no error. Data can be `undefined` here.
set({
data,
error: UNDEFINED,
_c: UNDEFINED
});
}
}
}
// Reset the timestamp to mark the mutation has ended.
MUTATION[key][1] = getTimestamp();
// Update existing SWR Hooks' internal states:
Promise.resolve(startRevalidate()).then(()=>{
// The mutation and revalidation are ended, we can clear it since the data is
// not an optimistic value anymore.
set({
_c: UNDEFINED
});
});
// Throw error or return data
if (error) {
if (throwOnError) throw error;
return;
}
return data;
}
}
const revalidateAllKeys = (revalidators, type)=>{
for(const key in revalidators){
if (revalidators[key][0]) revalidators[key][0](type);
}
};
const initCache = (provider, options)=>{
// The global state for a specific provider will be used to deduplicate
// requests and store listeners. As well as a mutate function that is bound to
// the cache.
// The provider's global state might be already initialized. Let's try to get the
// global state associated with the provider first.
if (!SWRGlobalState.has(provider)) {
const opts = mergeObjects(defaultConfigOptions, options);
// If there's no global state bound to the provider, create a new one with the
// new mutate function.
const EVENT_REVALIDATORS = {};
const mutate = internalMutate.bind(UNDEFINED, provider);
let unmount = noop;
const subscriptions = {};
const subscribe = (key, callback)=>{
const subs = subscriptions[key] || [];
subscriptions[key] = subs;
subs.push(callback);
return ()=>subs.splice(subs.indexOf(callback), 1);
};
const setter = (key, value, prev)=>{
provider.set(key, value);
const subs = subscriptions[key];
if (subs) {
for (const fn of subs){
fn(value, prev);
}
}
};
const initProvider = ()=>{
if (!SWRGlobalState.has(provider)) {
// Update the state if it's new, or if the provider has been extended.
SWRGlobalState.set(provider, [
EVENT_REVALIDATORS,
{},
{},
{},
mutate,
setter,
subscribe
]);
if (!IS_SERVER) {
// When listening to the native events for auto revalidations,
// we intentionally put a delay (setTimeout) here to make sure they are
// fired after immediate JavaScript executions, which can be
// React's state updates.
// This avoids some unnecessary revalidations such as
// https://github.com/vercel/swr/issues/1680.
const releaseFocus = opts.initFocus(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, FOCUS_EVENT)));
const releaseReconnect = opts.initReconnect(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, RECONNECT_EVENT)));
unmount = ()=>{
releaseFocus && releaseFocus();
releaseReconnect && releaseReconnect();
// When un-mounting, we need to remove the cache provider from the state
// storage too because it's a side-effect. Otherwise, when re-mounting we
// will not re-register those event listeners.
SWRGlobalState.delete(provider);
};
}
}
};
initProvider();
// This is a new provider, we need to initialize it and setup DOM events
// listeners for `focus` and `reconnect` actions.
// We might want to inject an extra layer on top of `provider` in the future,
// such as key serialization, auto GC, etc.
// For now, it's just a `Map` interface without any modifications.
return [
provider,
mutate,
initProvider,
unmount
];
}
return [
provider,
SWRGlobalState.get(provider)[4]
];
};
// error retry
const onErrorRetry = (_, __, config, revalidate, opts)=>{
const maxRetryCount = config.errorRetryCount;
const currentRetryCount = opts.retryCount;
// Exponential backoff
const timeout = ~~((Math.random() + 0.5) * (1 << (currentRetryCount < 8 ? currentRetryCount : 8))) * config.errorRetryInterval;
if (!isUndefined(maxRetryCount) && currentRetryCount > maxRetryCount) {
return;
}
setTimeout(revalidate, timeout, opts);
};
const compare = (currentData, newData)=>stableHash(currentData) == stableHash(newData);
// Default cache provider
const [cache, mutate] = initCache(new Map());
// Default config
const defaultConfig = mergeObjects({
// events
onLoadingSlow: noop,
onSuccess: noop,
onError: noop,
onErrorRetry,
onDiscarded: noop,
// switches
revalidateOnFocus: true,
revalidateOnReconnect: true,
revalidateIfStale: true,
shouldRetryOnError: true,
// timeouts
errorRetryInterval: slowConnection ? 10000 : 5000,
focusThrottleInterval: 5 * 1000,
dedupingInterval: 2 * 1000,
loadingTimeout: slowConnection ? 5000 : 3000,
// providers
compare,
isPaused: ()=>false,
cache,
mutate,
fallback: {}
}, // use web preset by default
preset);
const mergeConfigs = (a, b)=>{
// Need to create a new object to avoid mutating the original here.
const v = mergeObjects(a, b);
// If two configs are provided, merge their `use` and `fallback` options.
if (b) {
const { use: u1, fallback: f1 } = a;
const { use: u2, fallback: f2 } = b;
if (u1 && u2) {
v.use = u1.concat(u2);
}
if (f1 && f2) {
v.fallback = mergeObjects(f1, f2);
}
}
return v;
};
const SWRConfigContext = (0,_react_17_0_2_react.createContext)({});
const SWRConfig = (props)=>{
const { value } = props;
const parentConfig = (0,_react_17_0_2_react.useContext)(SWRConfigContext);
const isFunctionalConfig = isFunction(value);
const config = (0,_react_17_0_2_react.useMemo)(()=>isFunctionalConfig ? value(parentConfig) : value, [
isFunctionalConfig,
parentConfig,
value
]);
// Extend parent context values and middleware.
const extendedConfig = (0,_react_17_0_2_react.useMemo)(()=>isFunctionalConfig ? config : mergeConfigs(parentConfig, config), [
isFunctionalConfig,
parentConfig,
config
]);
// Should not use the inherited provider.
const provider = config && config.provider;
// initialize the cache only on first access.
const cacheContextRef = (0,_react_17_0_2_react.useRef)(UNDEFINED);
if (provider && !cacheContextRef.current) {
cacheContextRef.current = initCache(provider(extendedConfig.cache || cache), config);
}
const cacheContext = cacheContextRef.current;
// Override the cache if a new provider is given.
if (cacheContext) {
extendedConfig.cache = cacheContext[0];
extendedConfig.mutate = cacheContext[1];
}
// Unsubscribe events.
useIsomorphicLayoutEffect(()=>{
if (cacheContext) {
cacheContext[2] && cacheContext[2]();
return cacheContext[3];
}
}, []);
return (0,_react_17_0_2_react.createElement)(SWRConfigContext.Provider, mergeObjects(props, {
value: extendedConfig
}));
};
const INFINITE_PREFIX = '$inf$';
// @ts-expect-error
const enableDevtools = isWindowDefined && window.__SWR_DEVTOOLS_USE__;
const use = enableDevtools ? window.__SWR_DEVTOOLS_USE__ : [];
const setupDevTools = ()=>{
if (enableDevtools) {
// @ts-expect-error
window.__SWR_DEVTOOLS_REACT__ = _react_17_0_2_react;
}
};
const normalize = (args)=>{
return isFunction(args[1]) ? [
args[0],
args[1],
args[2] || {}
] : [
args[0],
null,
(args[1] === null ? args[2] : args[1]) || {}
];
};
const useSWRConfig = ()=>{
return mergeObjects(defaultConfig, (0,_react_17_0_2_react.useContext)(SWRConfigContext));
};
const preload = (key_, fetcher)=>{
const [key, fnArg] = _internal_serialize(key_);
const [, , , PRELOAD] = SWRGlobalState.get(cache);
// Prevent preload to be called multiple times before used.
if (PRELOAD[key]) return PRELOAD[key];
const req = fetcher(fnArg);
PRELOAD[key] = req;
return req;
};
const middleware = (useSWRNext)=>(key_, fetcher_, config)=>{
// fetcher might be a sync function, so this should not be an async function
const fetcher = fetcher_ && ((...args)=>{
const [key] = _internal_serialize(key_);
const [, , , PRELOAD] = SWRGlobalState.get(cache);
if (key.startsWith(INFINITE_PREFIX)) {
// we want the infinite fetcher to be called.
// handling of the PRELOAD cache happens there.
return fetcher_(...args);
}
const req = PRELOAD[key];
if (isUndefined(req)) return fetcher_(...args);
delete PRELOAD[key];
return req;
});
return useSWRNext(key_, fetcher, config);
};
const BUILT_IN_MIDDLEWARE = use.concat(middleware);
// It's tricky to pass generic types as parameters, so we just directly override
// the types here.
const withArgs = (hook)=>{
return function useSWRArgs(...args) {
// Get the default and inherited configuration.
const fallbackConfig = useSWRConfig();
// Normalize arguments.
const [key, fn, _config] = normalize(args);
// Merge configurations.
const config = mergeConfigs(fallbackConfig, _config);
// Apply middleware
let next = hook;
const { use } = config;
const middleware = (use || []).concat(BUILT_IN_MIDDLEWARE);
for(let i = middleware.length; i--;){
next = middleware[i](next);
}
return next(key, fn || config.fetcher || null, config);
};
};
// Add a callback function to a list of keyed callback functions and return
// the unsubscribe function.
const subscribeCallback = (key, callbacks, callback)=>{
const keyedRevalidators = callbacks[key] || (callbacks[key] = []);
keyedRevalidators.push(callback);
return ()=>{
const index = keyedRevalidators.indexOf(callback);
if (index >= 0) {
// O(1): faster than splice
keyedRevalidators[index] = keyedRevalidators[keyedRevalidators.length - 1];
keyedRevalidators.pop();
}
};
};
// Create a custom hook with a middleware
const withMiddleware = (useSWR, middleware)=>{
return (...args)=>{
const [key, fn, config] = normalize(args);
const uses = (config.use || []).concat(middleware);
return useSWR(key, fn, {
...config,
use: uses
});
};
};
setupDevTools();
;// CONCATENATED MODULE: ./node_modules/_swr@2.2.5@swr/dist/core/index.mjs
const unstable_serialize = (key)=>serialize(key)[0];
/// <reference types="react/experimental" />
const core_use = _react_17_0_2_react.use || ((promise)=>{
if (promise.status === 'pending') {
throw promise;
} else if (promise.status === 'fulfilled') {
return promise.value;
} else if (promise.status === 'rejected') {
throw promise.reason;
} else {
promise.status = 'pending';
promise.then((v)=>{
promise.status = 'fulfilled';
promise.value = v;
}, (e)=>{
promise.status = 'rejected';
promise.reason = e;
});
throw promise;
}
});
const WITH_DEDUPE = {
dedupe: true
};
const useSWRHandler = (_key, fetcher, config)=>{
const { cache, compare, suspense, fallbackData, revalidateOnMount, revalidateIfStale, refreshInterval, refreshWhenHidden, refreshWhenOffline, keepPreviousData } = config;
const [EVENT_REVALIDATORS, MUTATION, FETCH, PRELOAD] = SWRGlobalState.get(cache);
// `key` is the identifier of the SWR internal state,
// `fnArg` is the argument/arguments parsed from the key, which will be passed
// to the fetcher.
// All of them are derived from `_key`.
const [key, fnArg] = _internal_serialize(_key);
// If it's the initial render of this hook.
const initialMountedRef = (0,_react_17_0_2_react.useRef)(false);
// If the hook is unmounted already. This will be used to prevent some effects
// to be called after unmounting.
const unmountedRef = (0,_react_17_0_2_react.useRef)(false);
// Refs to keep the key and config.
const keyRef = (0,_react_17_0_2_react.useRef)(key);
const fetcherRef = (0,_react_17_0_2_react.useRef)(fetcher);
const configRef = (0,_react_17_0_2_react.useRef)(config);
const getConfig = ()=>configRef.current;
const isActive = ()=>getConfig().isVisible() && getConfig().isOnline();
const [getCache, setCache, subscribeCache, getInitialCache] = createCacheHelper(cache, key);
const stateDependencies = (0,_react_17_0_2_react.useRef)({}).current;
const fallback = isUndefined(fallbackData) ? config.fallback[key] : fallbackData;
const isEqual = (prev, current)=>{
for(const _ in stateDependencies){
const t = _;
if (t === 'data') {
if (!compare(prev[t], current[t])) {
if (!isUndefined(prev[t])) {
return false;
}
if (!compare(returnedData, current[t])) {
return false;
}
}
} else {
if (current[t] !== prev[t]) {
return false;
}
}
}
return true;
};
const getSnapshot = (0,_react_17_0_2_react.useMemo)(()=>{
const shouldStartRequest = (()=>{
if (!key) return false;
if (!fetcher) return false;
// If `revalidateOnMount` is set, we take the value directly.
if (!isUndefined(revalidateOnMount)) return revalidateOnMount;
// If it's paused, we skip revalidation.
if (getConfig().isPaused()) return false;
if (suspense) return false;
if (!isUndefined(revalidateIfStale)) return revalidateIfStale;
return true;
})();
// Get the cache and merge it with expected states.
const getSelectedCache = (state)=>{
// We only select the needed fields from the state.
const snapshot = mergeObjects(state);
delete snapshot._k;
if (!shouldStartRequest) {
return snapshot;
}
return {
isValidating: true,
isLoading: true,
...snapshot
};
};
const cachedData = getCache();
const initialData = getInitialCache();
const clientSnapshot = getSelectedCache(cachedData);
const serverSnapshot = cachedData === initialData ? clientSnapshot : getSelectedCache(initialData);
// To make sure that we are returning the same object reference to avoid
// unnecessary re-renders, we keep the previous snapshot and use deep
// comparison to check if we need to return a new one.
let memorizedSnapshot = clientSnapshot;
return [
()=>{
const newSnapshot = getSelectedCache(getCache());
const compareResult = isEqual(newSnapshot, memorizedSnapshot);
if (compareResult) {
// Mentally, we should always return the `memorizedSnapshot` here
// as there's no change between the new and old snapshots.
// However, since the `isEqual` function only compares selected fields,
// the values of the unselected fields might be changed. That's
// simply because we didn't track them.
// To support the case in https://github.com/vercel/swr/pull/2576,
// we need to update these fields in the `memorizedSnapshot` too
// with direct mutations to ensure the snapshot is always up-to-date
// even for the unselected fields, but only trigger re-renders when
// the selected fields are changed.
memorizedSnapshot.data = newSnapshot.data;
memorizedSnapshot.isLoading = newSnapshot.isLoading;
memorizedSnapshot.isValidating = newSnapshot.isValidating;
memorizedSnapshot.error = newSnapshot.error;
return memorizedSnapshot;
} else {
memorizedSnapshot = newSnapshot;
return newSnapshot;
}
},
()=>serverSnapshot
];
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
cache,
key
]);
// Get the current state that SWR should return.
const cached = (0,shim.useSyncExternalStore)((0,_react_17_0_2_react.useCallback)((callback)=>subscribeCache(key, (current, prev)=>{
if (!isEqual(prev, current)) callback();
}), // eslint-disable-next-line react-hooks/exhaustive-deps
[
cache,
key
]), getSnapshot[0], getSnapshot[1]);
const isInitialMount = !initialMountedRef.current;
const hasRevalidator = EVENT_REVALIDATORS[key] && EVENT_REVALIDATORS[key].length > 0;
const cachedData = cached.data;
const data = isUndefined(cachedData) ? fallback : cachedData;
const error = cached.error;
// Use a ref to store previously returned data. Use the initial data as its initial value.
const laggyDataRef = (0,_react_17_0_2_react.useRef)(data);
const returnedData = keepPreviousData ? isUndefined(cachedData) ? laggyDataRef.current : cachedData : data;
// - Suspense mode and there's stale data for the initial render.
// - Not suspense mode and there is no fallback data and `revalidateIfStale` is enabled.
// - `revalidateIfStale` is enabled but `data` is not defined.
const shouldDoInitialRevalidation = (()=>{
// if a key already has revalidators and also has error, we should not trigger revalidation
if (hasRevalidator && !isUndefined(error)) return false;
// If `revalidateOnMount` is set, we take the value directly.
if (isInitialMount && !isUndefined(revalidateOnMount)) return revalidateOnMount;
// If it's paused, we skip revalidation.
if (getConfig().isPaused()) return false;
// Under suspense mode, it will always fetch on render if there is no
// stale data so no need to revalidate immediately mount it again.
// If data exists, only revalidate if `revalidateIfStale` is true.
if (suspense) return isUndefined(data) ? false : revalidateIfStale;
// If there is no stale data, we need to revalidate when mount;
// If `revalidateIfStale` is set to true, we will always revalidate.
return isUndefined(data) || revalidateIfStale;
})();
// Resolve the default validating state:
// If it's able to validate, and it should revalidate when mount, this will be true.
const defaultValidatingState = !!(key && fetcher && isInitialMount && shouldDoInitialRevalidation);
const isValidating = isUndefined(cached.isValidating) ? defaultValidatingState : cached.isValidating;
const isLoading = isUndefined(cached.isLoading) ? defaultValidatingState : cached.isLoading;
// The revalidation function is a carefully crafted wrapper of the original
// `fetcher`, to correctly handle the many edge cases.
const revalidate = (0,_react_17_0_2_react.useCallback)(async (revalidateOpts)=>{
const currentFetcher = fetcherRef.current;
if (!key || !currentFetcher || unmountedRef.current || getConfig().isPaused()) {
return false;
}
let newData;
let startAt;
let loading = true;
const opts = revalidateOpts || {};
// If there is no ongoing concurrent request, or `dedupe` is not set, a
// new request should be initiated.
const shouldStartNewRequest = !FETCH[key] || !opts.dedupe;
/*
For React 17
Do unmount check for calls:
If key has changed during the revalidation, or the component has been
unmounted, old dispatch and old event callbacks should not take any
effect
For React 18
only check if key has changed
https://github.com/reactwg/react-18/discussions/82
*/ const callbackSafeguard = ()=>{
if (IS_REACT_LEGACY) {
return !unmountedRef.current && key === keyRef.current && initialMountedRef.current;
}
return key === keyRef.current;
};
// The final state object when the request finishes.
const finalState = {
isValidating: false,
isLoading: false
};
const finishRequestAndUpdateState = ()=>{
setCache(finalState);
};
const cleanupState = ()=>{
// Check if it's still the same request before deleting it.
const requestInfo = FETCH[key];
if (requestInfo && requestInfo[1] === startAt) {
delete FETCH[key];
}
};
// Start fetching. Change the `isValidating` state, update the cache.
const initialState = {
isValidating: true
};
// It is in the `isLoading` state, if and only if there is no cached data.
// This bypasses fallback data and laggy data.
if (isUndefined(getCache().data)) {
initialState.isLoading = true;
}
try {
if (shouldStartNewRequest) {
setCache(initialState);
// If no cache is being rendered currently (it shows a blank page),
// we trigger the loading slow event.
if (config.loadingTimeout && isUndefined(getCache().data)) {
setTimeout(()=>{
if (loading && callbackSafeguard()) {
getConfig().onLoadingSlow(key, config);
}
}, config.loadingTimeout);
}
// Start the request and save the timestamp.
// Key must be truthy if entering here.
FETCH[key] = [
currentFetcher(fnArg),
getTimestamp()
];
}
[newData, startAt] = FETCH[key];
newData = await newData;
if (shouldStartNewRequest) {
// If the request isn't interrupted, clean it up after the
// deduplication interval.
setTimeout(cleanupState, config.dedupingInterval);
}
// If there're other ongoing request(s), started after the current one,
// we need to ignore the current one to avoid possible race conditions:
// req1------------------>res1 (current one)
// req2---------------->res2
// the request that fired later will always be kept.
// The timestamp maybe be `undefined` or a number
if (!FETCH[key] || FETCH[key][1] !== startAt) {
if (shouldStartNewRequest) {
if (callbackSafeguard()) {
getConfig().onDiscarded(key);
}
}
return false;
}
// Clear error.
finalState.error = UNDEFINED;
// If there're other mutations(s), that overlapped with the current revalidation:
// case 1:
// req------------------>res
// mutate------>end
// case 2:
// req------------>res
// mutate------>end
// case 3:
// req------------------>res
// mutate-------...---------->
// we have to ignore the revalidation result (res) because it's no longer fresh.
// meanwhile, a new revalidation should be triggered when the mutation ends.
const mutationInfo = MUTATION[key];
if (!isUndefined(mutationInfo) && // case 1
(startAt <= mutationInfo[0] || // case 2
startAt <= mutationInfo[1] || // case 3
mutationInfo[1] === 0)) {
finishRequestAndUpdateState();
if (shouldStartNewRequest) {
if (callbackSafeguard()) {
getConfig().onDiscarded(key);
}
}
return false;
}
// Deep compare with the latest state to avoid extra re-renders.
// For local state, compare and assign.
const cacheData = getCache().data;
// Since the compare fn could be custom fn
// cacheData might be different from newData even when compare fn returns True
finalState.data = compare(cacheData, newData) ? cacheData : newData;
// Trigger the successful callback if it's the original request.
if (shouldStartNewRequest) {
if (callbackSafeguard()) {
getConfig().onSuccess(newData, key, config);
}
}
} catch (err) {
cleanupState();
const currentConfig = getConfig();
const { shouldRetryOnError } = currentConfig;
// Not paused, we continue handling the error. Otherwise, discard it.
if (!currentConfig.isPaused()) {
// Get a new error, don't use deep comparison for errors.
finalState.error = err;
// Error event and retry logic. Only for the actual request, not
// deduped ones.
if (shouldStartNewRequest && callbackSafeguard()) {
currentConfig.onError(err, key, currentConfig);
if (shouldRetryOnError === true || isFunction(shouldRetryOnError) && shouldRetryOnError(err)) {
if (!getConfig().revalidateOnFocus || !getConfig().revalidateOnReconnect || isActive()) {
// If it's inactive, stop. It will auto-revalidate when
// refocusing or reconnecting.
// When retrying, deduplication is always enabled.
currentConfig.onErrorRetry(err, key, currentConfig, (_opts)=>{
const revalidators = EVENT_REVALIDATORS[key];
if (revalidators && revalidators[0]) {
revalidators[0](events.ERROR_REVALIDATE_EVENT, _opts);
}
}, {
retryCount: (opts.retryCount || 0) + 1,
dedupe: true
});
}
}
}
}
}
// Mark loading as stopped.
loading = false;
// Update the current hook's state.
finishRequestAndUpdateState();
return true;
}, // `setState` is immutable, and `eventsCallback`, `fnArg`, and
// `keyValidating` are depending on `key`, so we can exclude them from
// the deps array.
//
// FIXME:
// `fn` and `config` might be changed during the lifecycle,
// but they might be changed every render like this.
// `useSWR('key', () => fetch('/api/'), { suspense: true })`
// So we omit the values from the deps array
// even though it might cause unexpected behaviors.
// eslint-disable-next-line react-hooks/exhaustive-deps
[
key,
cache
]);
// Similar to the global mutate but bound to the current cache and key.
// `cache` isn't allowed to change during the lifecycle.
const boundMutate = (0,_react_17_0_2_react.useCallback)(// Use callback to make sure `keyRef.current` returns latest result every time
(...args)=>{
return internalMutate(cache, keyRef.current, ...args);
}, // eslint-disable-next-line react-hooks/exhaustive-deps
[]);
// The logic for updating refs.
useIsomorphicLayoutEffect(()=>{
fetcherRef.current = fetcher;
configRef.current = config;
// Handle laggy data updates. If there's cached data of the current key,
// it'll be the correct reference.
if (!isUndefined(cachedData)) {
laggyDataRef.current = cachedData;
}
});
// After mounted or key changed.
useIsomorphicLayoutEffect(()=>{
if (!key) return;
const softRevalidate = revalidate.bind(UNDEFINED, WITH_DEDUPE);
// Expose revalidators to global event listeners. So we can trigger
// revalidation from the outside.
let nextFocusRevalidatedAt = 0;
const onRevalidate = (type, opts = {})=>{
if (type == events.FOCUS_EVENT) {
const now = Date.now();
if (getConfig().revalidateOnFocus && now > nextFocusRevalidatedAt && isActive()) {
nextFocusRevalidatedAt = now + getConfig().focusThrottleInterval;
softRevalidate();
}
} else if (type == events.RECONNECT_EVENT) {
if (getConfig().revalidateOnReconnect && isActive()) {
softRevalidate();
}
} else if (type == events.MUTATE_EVENT) {
return revalidate();
} else if (type == events.ERROR_REVALIDATE_EVENT) {
return revalidate(opts);
}
return;
};
const unsubEvents = subscribeCallback(key, EVENT_REVALIDATORS, onRevalidate);
// Mark the component as mounted and update corresponding refs.
unmountedRef.current = false;
keyRef.current = key;
initialMountedRef.current = true;
// Keep the original key in the cache.
setCache({
_k: fnArg
});
// Trigger a revalidation
if (shouldDoInitialRevalidation) {
if (isUndefined(data) || IS_SERVER) {
// Revalidate immediately.
softRevalidate();
} else {
// Delay the revalidate if we have data to return so we won't block
// rendering.
rAF(softRevalidate);
}
}
return ()=>{
// Mark it as unmounted.
unmountedRef.current = true;
unsubEvents();
};
}, [
key
]);
// Polling
useIsomorphicLayoutEffect(()=>{
let timer;
function next() {
// Use the passed interval
// ...or invoke the function with the updated data to get the interval
const interval = isFunction(refreshInterval) ? refreshInterval(getCache().data) : refreshInterval;
// We only start the next interval if `refreshInterval` is not 0, and:
// - `force` is true, which is the start of polling
// - or `timer` is not 0, which means the effect wasn't canceled
if (interval && timer !== -1) {
timer = setTimeout(execute, interval);
}
}
function execute() {
// Check if it's OK to execute:
// Only revalidate when the page is visible, online, and not errored.
if (!getCache().error && (refreshWhenHidden || getConfig().isVisible()) && (refreshWhenOffline || getConfig().isOnline())) {
revalidate(WITH_DEDUPE).then(next);
} else {
// Schedule the next interval to check again.
next();
}
}
next();
return ()=>{
if (timer) {
clearTimeout(timer);
timer = -1;
}
};
}, [
refreshInterval,
refreshWhenHidden,
refreshWhenOffline,
key
]);
// Display debug info in React DevTools.
(0,_react_17_0_2_react.useDebugValue)(returnedData);
// In Suspense mode, we can't return the empty `data` state.
// If there is an `error`, the `error` needs to be thrown to the error boundary.
// If there is no `error`, the `revalidation` promise needs to be thrown to
// the suspense boundary.
if (suspense && isUndefined(data) && key) {
// SWR should throw when trying to use Suspense on the server with React 18,
// without providing any initial data. See:
// https://github.com/vercel/swr/issues/1832
if (!IS_REACT_LEGACY && IS_SERVER) {
throw new Error('Fallback data is required when using suspense in SSR.');
}
// Always update fetcher and config refs even with the Suspense mode.
fetcherRef.current = fetcher;
configRef.current = config;
unmountedRef.current = false;
const req = PRELOAD[key];
if (!isUndefined(req)) {
const promise = boundMutate(req);
core_use(promise);
}
if (isUndefined(error)) {
const promise = revalidate(WITH_DEDUPE);
if (!isUndefined(returnedData)) {
promise.status = 'fulfilled';
promise.value = true;
}
core_use(promise);
} else {
throw error;
}
}
return {
mutate: boundMutate,
get data () {
stateDependencies.data = true;
return returnedData;
},
get error () {
stateDependencies.error = true;
return error;
},
get isValidating () {
stateDependencies.isValidating = true;
return isValidating;
},
get isLoading () {
stateDependencies.isLoading = true;
return isLoading;
}
};
};
const core_SWRConfig = OBJECT.defineProperty(SWRConfig, 'defaultValue', {
value: defaultConfig
});
/**
* A hook to fetch data.
*
* @link https://swr.vercel.app
* @example
* ```jsx
* import useSWR from 'swr'
* function Profile() {
* const { data, error, isLoading } = useSWR('/api/user', fetcher)
* if (error) return <div>failed to load</div>
* if (isLoading) return <div>loading...</div>
* return <div>hello {data.name}!</div>
* }
* ```
*/ const useSWR = withArgs(useSWRHandler);
/***/ })
}]);