seeder-st2110-components 1.7.5 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -5,15 +5,15 @@ import { useWebSocket, useInterval } from 'ahooks';
5
5
  import { LoadingOutlined, ExclamationCircleFilled, PlusOutlined } from '@ant-design/icons';
6
6
  import axios from 'axios';
7
7
 
8
- function _defineProperty(e, r, t) {
9
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
8
+ function _defineProperty$1(e, r, t) {
9
+ return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
10
10
  value: t,
11
11
  enumerable: !0,
12
12
  configurable: !0,
13
13
  writable: !0
14
14
  }) : e[r] = t, e;
15
15
  }
16
- function ownKeys(e, r) {
16
+ function ownKeys$1(e, r) {
17
17
  var t = Object.keys(e);
18
18
  if (Object.getOwnPropertySymbols) {
19
19
  var o = Object.getOwnPropertySymbols(e);
@@ -23,29 +23,29 @@ function ownKeys(e, r) {
23
23
  }
24
24
  return t;
25
25
  }
26
- function _objectSpread2(e) {
26
+ function _objectSpread2$1(e) {
27
27
  for (var r = 1; r < arguments.length; r++) {
28
28
  var t = null != arguments[r] ? arguments[r] : {};
29
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
30
- _defineProperty(e, r, t[r]);
31
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
29
+ r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
30
+ _defineProperty$1(e, r, t[r]);
31
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
32
32
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
33
33
  });
34
34
  }
35
35
  return e;
36
36
  }
37
- function _objectWithoutProperties(e, t) {
37
+ function _objectWithoutProperties$1(e, t) {
38
38
  if (null == e) return {};
39
39
  var o,
40
40
  r,
41
- i = _objectWithoutPropertiesLoose(e, t);
41
+ i = _objectWithoutPropertiesLoose$1(e, t);
42
42
  if (Object.getOwnPropertySymbols) {
43
43
  var n = Object.getOwnPropertySymbols(e);
44
44
  for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
45
45
  }
46
46
  return i;
47
47
  }
48
- function _objectWithoutPropertiesLoose(r, e) {
48
+ function _objectWithoutPropertiesLoose$1(r, e) {
49
49
  if (null == r) return {};
50
50
  var t = {};
51
51
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
@@ -54,7 +54,7 @@ function _objectWithoutPropertiesLoose(r, e) {
54
54
  }
55
55
  return t;
56
56
  }
57
- function _toPrimitive(t, r) {
57
+ function _toPrimitive$1(t, r) {
58
58
  if ("object" != typeof t || !t) return t;
59
59
  var e = t[Symbol.toPrimitive];
60
60
  if (void 0 !== e) {
@@ -64,8 +64,8 @@ function _toPrimitive(t, r) {
64
64
  }
65
65
  return ("string" === r ? String : Number)(t);
66
66
  }
67
- function _toPropertyKey(t) {
68
- var i = _toPrimitive(t, "string");
67
+ function _toPropertyKey$1(t) {
68
+ var i = _toPrimitive$1(t, "string");
69
69
  return "symbol" == typeof i ? i : i + "";
70
70
  }
71
71
 
@@ -112,7 +112,7 @@ const useHardwareWebSocket = socketUrl => {
112
112
  const handleMessage = useCallback(message => {
113
113
  try {
114
114
  if (message) {
115
- setSystemStatus(prev => _objectSpread2(_objectSpread2({}, prev), message));
115
+ setSystemStatus(prev => _objectSpread2$1(_objectSpread2$1({}, prev), message));
116
116
  }
117
117
  } catch (error) {
118
118
  console.error('Message processing error:', error);
@@ -207,7 +207,7 @@ const getItems = details => {
207
207
  items.push(createMetricItem('CPU Temperature', 'seeder-icon-CPUwendu', details.cpu_temp, '℃'));
208
208
  }
209
209
  if (details.mem_usage !== null && details.mem_usage !== undefined) {
210
- items.push(_objectSpread2(_objectSpread2({}, createMetricItem('Memory Usage', 'seeder-icon-shiyongshuai', details.mem_usage, '%')), {}, {
210
+ items.push(_objectSpread2$1(_objectSpread2$1({}, createMetricItem('Memory Usage', 'seeder-icon-shiyongshuai', details.mem_usage, '%')), {}, {
211
211
  memTotal: details.mem_total
212
212
  }));
213
213
  }
@@ -251,15 +251,15 @@ const useHardwareUsage = socketUrl => {
251
251
  };
252
252
  var useHardwareUsage$1 = useHardwareUsage;
253
253
 
254
- const _excluded$2 = ["width", "okText", "cancelText", "styles"];
255
- const StyledModal = props => {
254
+ const _excluded$3 = ["width", "okText", "cancelText", "styles"];
255
+ const StyledModal$2 = props => {
256
256
  const {
257
257
  width = "520px",
258
258
  okText = "Apply",
259
259
  cancelText = "Close",
260
260
  styles: propStyles = {}
261
261
  } = props,
262
- restProps = _objectWithoutProperties(props, _excluded$2);
262
+ restProps = _objectWithoutProperties$1(props, _excluded$3);
263
263
 
264
264
  // 基础样式配置
265
265
  const baseStyles = {
@@ -287,15 +287,15 @@ const StyledModal = props => {
287
287
  };
288
288
 
289
289
  // 合并样式
290
- const styles = _objectSpread2(_objectSpread2({}, baseStyles), propStyles);
291
- return /*#__PURE__*/jsx(Modal, _objectSpread2({
290
+ const styles = _objectSpread2$1(_objectSpread2$1({}, baseStyles), propStyles);
291
+ return /*#__PURE__*/jsx(Modal, _objectSpread2$1({
292
292
  width: width,
293
293
  okText: okText,
294
294
  cancelText: cancelText,
295
295
  styles: styles
296
296
  }, restProps));
297
297
  };
298
- var StyledModal$1 = StyledModal;
298
+ var StyledModal$3 = StyledModal$2;
299
299
 
300
300
  const AuthorizationModal = _ref => {
301
301
  let {
@@ -335,7 +335,7 @@ const AuthorizationModal = _ref => {
335
335
  showIcon: true
336
336
  });
337
337
  const defaultOkText = isActivated ? "Reactivate" : "Activate Now";
338
- return /*#__PURE__*/jsx(StyledModal$1, {
338
+ return /*#__PURE__*/jsx(StyledModal$3, {
339
339
  title: title,
340
340
  width: width,
341
341
  open: true,
@@ -481,17 +481,22 @@ const useUpgrade = _ref => {
481
481
  onMenuClick,
482
482
  downloadFiles,
483
483
  upgradeExecute,
484
+ // 上传接口:(formData, config) => Promise<response>
484
485
  upgradeStatus,
486
+ // 状态轮询接口:(config) => Promise<response>
485
487
  acceptFileTypes = "application/octet-stream",
486
488
  uploadCompleteDelay = 3000,
487
489
  statusPollingInterval = 1000
488
490
  } = _ref;
489
491
  const [isSpinning, setIsSpinning] = useState(false);
490
- const [interval, setInterval] = useState(undefined); // 间隔时间,当设置值为 undefined 时会停止计时器
491
- const inputRef = useRef(null);
492
- const [currentStatus, setCurrentStatus] = useState('idle'); // 'idle' | 'uploading' | 'upgrading'
493
- const isUploadCompleteRef = useRef(false); // 安装包上传是否完成
492
+ const [pollingInterval, setPollingInterval] = useState(undefined); // 间隔时间,当设置值为 undefined 时会停止计时器
493
+ const [currentStatus, setCurrentStatus] = useState('idle'); // 'idle' | 'uploading' | 'Upload complete, starting upgrade...' | 'upgrading'
494
494
  const [uploadProgress, setUploadProgress] = useState(0);
495
+ const inputRef = useRef(null);
496
+ // 控制并发上传
497
+ const isUploadingRef = useRef(false);
498
+ // 标记组件是否已卸载
499
+ const isMountedRef = useRef(true);
495
500
 
496
501
  // 分别创建独立的取消令牌
497
502
  const uploadCancelToken = useRef(axios.CancelToken.source());
@@ -617,62 +622,80 @@ const useUpgrade = _ref => {
617
622
  }
618
623
  };
619
624
  const onUpload = () => {
620
- if (inputRef !== null && inputRef !== void 0 && inputRef.current) {
625
+ if (inputRef !== null && inputRef !== void 0 && inputRef.current && !isUploadingRef.current) {
621
626
  inputRef.current.click();
622
627
  }
623
628
  };
624
629
  const updatePackage = async event => {
625
- if (!upgradeExecute) {
626
- console.error('upgradeExecute function is required for upload operation');
627
- message.error('Upload functionality not configured');
630
+ var _event$target$files;
631
+ if (isUploadingRef.current) return; // 防止重复上传
632
+
633
+ const file = (_event$target$files = event.target.files) === null || _event$target$files === void 0 ? void 0 : _event$target$files[0];
634
+ if (!file || !upgradeExecute) {
635
+ if (inputRef.current) inputRef.current.value = "";
628
636
  return;
629
637
  }
630
- try {
631
- var _event$target$files;
632
- const file = (_event$target$files = event.target.files) === null || _event$target$files === void 0 ? void 0 : _event$target$files[0];
633
- if (!file) return;
634
- showLoader();
635
- setCurrentStatus('Uploading...');
636
- setUploadProgress(0); // 重置进度
638
+ isUploadingRef.current = true;
639
+ showLoader();
640
+ setCurrentStatus('Uploading...');
641
+ setUploadProgress(0);
637
642
 
643
+ // 重置取消令牌
644
+ uploadCancelToken.current.cancel();
645
+ uploadCancelToken.current = axios.CancelToken.source();
646
+ try {
638
647
  const formData = new FormData();
639
648
  formData.append('file', file);
640
- isUploadCompleteRef.current = false;
641
649
 
642
- // 上传文件(不等待响应)
643
- upgradeExecute(formData, {
650
+ // 清除文件选择
651
+ if (inputRef.current) inputRef.current.value = "";
652
+
653
+ // 上传后立即检查业务状态码
654
+ const response = await upgradeExecute(formData, {
644
655
  onUploadProgress: progressEvent => {
656
+ if (!isMountedRef.current) return;
645
657
  const percentCompleted = Math.round(progressEvent.loaded * 100 / progressEvent.total);
646
658
  setUploadProgress(percentCompleted); // 更新进度状态
647
-
648
- if (percentCompleted === 100) {
649
- isUploadCompleteRef.current = true;
650
- // 等待3秒 开始状态轮询
651
- setTimeout(() => {
652
- setInterval(statusPollingInterval);
653
- setCurrentStatus('Upgrading...');
654
- }, uploadCompleteDelay);
655
- }
656
659
  },
657
660
  cancelToken: uploadCancelToken.current.token
658
661
  });
659
662
 
660
- // 清除文件选择
661
- if (inputRef.current) inputRef.current.value = "";
663
+ // 检查业务 code
664
+ if ((response === null || response === void 0 ? void 0 : response.code) !== 200) {
665
+ // 即使上传成功,但如果服务器返回非200,说明有问题
666
+ if (isMountedRef.current) {
667
+ const errorMsg = (response === null || response === void 0 ? void 0 : response.message) || 'Upload failed due to invalid file format';
668
+ message.error(errorMsg);
669
+ cancelRequest();
670
+ }
671
+ return;
672
+ }
673
+
674
+ // 上传成功,进入等待升级阶段
675
+ if (!isMountedRef.current) return;
676
+ setCurrentStatus('Upload complete, starting upgrade...');
677
+
678
+ // 延迟后启动轮询
679
+ setTimeout(() => {
680
+ if (!isMountedRef.current) return;
681
+ setPollingInterval(statusPollingInterval);
682
+ setCurrentStatus('Upgrading...');
683
+ }, uploadCompleteDelay);
662
684
  } catch (error) {
685
+ if (!isMountedRef.current) return;
663
686
  if (!axios.isCancel(error)) {
664
687
  console.error("Upload error:", error);
665
688
  message.error('Upload failed');
666
689
  }
667
690
  cancelRequest();
691
+ } finally {
692
+ if (isMountedRef.current) {
693
+ isUploadingRef.current = false;
694
+ }
668
695
  }
669
696
  };
670
697
  const fetchUpgradeStatus = async () => {
671
- if (!upgradeStatus) {
672
- console.error('upgradeStatus function is required for status checking');
673
- cancelRequest();
674
- return;
675
- }
698
+ if (!upgradeStatus || !isMountedRef.current) return;
676
699
  try {
677
700
  const response = await upgradeStatus({
678
701
  cancelToken: statusCancelToken.current.token
@@ -688,30 +711,36 @@ const useUpgrade = _ref => {
688
711
  case 200:
689
712
  // 升级成功
690
713
  message.success(statusMessage, 2.5, () => {
691
- cancelRequest();
714
+ if (isMountedRef.current) {
715
+ cancelRequest();
716
+ }
692
717
  window.location.reload();
693
718
  });
694
719
  break;
695
720
  case 201:
696
- // 升级中
697
- // code为201时,每隔一秒请求一次。直到请求到其他的code,直接弹出message提示。
721
+ // 升级中 — 继续轮询
698
722
  break;
699
723
  case 202: // 升级失败
700
724
  case 203:
701
725
  // 升级异常
702
- message.error(statusMessage);
703
- cancelRequest();
726
+ if (isMountedRef.current) {
727
+ message.error(statusMessage);
728
+ cancelRequest();
729
+ }
704
730
  break;
705
731
  default:
732
+ // 其他 code 如 500、400 等
733
+ if (isMountedRef.current) {
734
+ message.error(statusMessage || 'Upgrade process failed');
735
+ cancelRequest();
736
+ }
706
737
  break;
707
738
  }
708
739
  }
709
740
  } catch (error) {
710
- if (axios.isCancel(error)) {
711
- console.log('Status polling canceled');
712
- } else {
741
+ if (!isMountedRef.current) return;
742
+ if (!axios.isCancel(error)) {
713
743
  console.error('Status check failed:', error);
714
- // 网络错误时自动重试
715
744
  }
716
745
  }
717
746
  };
@@ -723,17 +752,20 @@ const useUpgrade = _ref => {
723
752
  statusCancelToken.current = axios.CancelToken.source();
724
753
 
725
754
  // 重置所有状态
726
- setInterval(undefined);
755
+ setPollingInterval(undefined);
727
756
  setCurrentStatus('idle');
757
+ setUploadProgress(0);
758
+ isUploadingRef.current = false;
728
759
  hideLoader();
729
760
  };
730
761
 
731
762
  // 轮询状态
732
- useInterval(fetchUpgradeStatus, interval);
763
+ useInterval(fetchUpgradeStatus, pollingInterval);
733
764
 
734
765
  // 组件卸载时清理
735
766
  useEffect(() => {
736
767
  return () => {
768
+ isMountedRef.current = false;
737
769
  uploadCancelToken.current.cancel();
738
770
  statusCancelToken.current.cancel();
739
771
  };
@@ -916,7 +948,7 @@ const NetworkFieldGroup = _ref => {
916
948
  enabled: true
917
949
  }
918
950
  };
919
- const mergedFieldConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, defaultFieldConfig), fieldConfig), {}, {
951
+ const mergedFieldConfig = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, defaultFieldConfig), fieldConfig), {}, {
920
952
  netmask: {
921
953
  label: "Netmask",
922
954
  enabled: (_fieldConfig$netmask$ = (_fieldConfig$netmask = fieldConfig.netmask) === null || _fieldConfig$netmask === void 0 ? void 0 : _fieldConfig$netmask.enabled) !== null && _fieldConfig$netmask$ !== void 0 ? _fieldConfig$netmask$ : defaultFieldConfig.netmask.enabled // 合并 enabled
@@ -992,18 +1024,18 @@ const NetworkSettingsModal = _ref2 => {
992
1024
  hasInitialized: false
993
1025
  });
994
1026
  const preparedFieldConfig = useMemo(() => {
995
- const config = _objectSpread2({}, fieldConfig);
1027
+ const config = _objectSpread2$1({}, fieldConfig);
996
1028
 
997
1029
  // 确保LAN和QSFP的配置存在
998
1030
  config.LAN = config.LAN || {};
999
1031
  config.QSFP = config.QSFP || {};
1000
1032
  if (sections.includes('LAN')) {
1001
- config.LAN.netmask = _objectSpread2(_objectSpread2({}, config.LAN.netmask || {}), {}, {
1033
+ config.LAN.netmask = _objectSpread2$1(_objectSpread2$1({}, config.LAN.netmask || {}), {}, {
1002
1034
  enabled: showNetmask.LAN
1003
1035
  });
1004
1036
  }
1005
1037
  if (sections.includes('QSFP')) {
1006
- config.QSFP.netmask = _objectSpread2(_objectSpread2({}, config.QSFP.netmask || {}), {}, {
1038
+ config.QSFP.netmask = _objectSpread2$1(_objectSpread2$1({}, config.QSFP.netmask || {}), {}, {
1007
1039
  enabled: showNetmask.QSFP
1008
1040
  });
1009
1041
  }
@@ -1073,7 +1105,7 @@ const NetworkSettingsModal = _ref2 => {
1073
1105
  const initialValues = useMemo(() => {
1074
1106
  const values = {};
1075
1107
  if (sections.includes('LAN') && lanConfigs.length > 0) {
1076
- values.LAN = lanConfigs.map(config => _objectSpread2({
1108
+ values.LAN = lanConfigs.map(config => _objectSpread2$1({
1077
1109
  connection_id: config.connection_id,
1078
1110
  display_name: config.display_name,
1079
1111
  ip_address: config.ip_address
@@ -1082,7 +1114,7 @@ const NetworkSettingsModal = _ref2 => {
1082
1114
  } : {}));
1083
1115
  }
1084
1116
  if (sections.includes('QSFP') && st2110Interfaces.length > 0) {
1085
- values.QSFP = st2110Interfaces.map(iface => _objectSpread2(_objectSpread2({}, iface.id !== undefined && {
1117
+ values.QSFP = st2110Interfaces.map(iface => _objectSpread2$1(_objectSpread2$1({}, iface.id !== undefined && {
1086
1118
  id: iface.id
1087
1119
  }), {}, {
1088
1120
  display_name: iface.display_name,
@@ -1151,7 +1183,7 @@ const NetworkSettingsModal = _ref2 => {
1151
1183
  if (sections.includes('LAN') && values.LAN) {
1152
1184
  const lanData = values.LAN.map((item, index) => {
1153
1185
  var _lanConfigs$index;
1154
- return _objectSpread2({
1186
+ return _objectSpread2$1({
1155
1187
  connection_id: (_lanConfigs$index = lanConfigs[index]) === null || _lanConfigs$index === void 0 ? void 0 : _lanConfigs$index.connection_id,
1156
1188
  ip_address: item.ip_address
1157
1189
  }, showNetmask.LAN ? {
@@ -1165,7 +1197,7 @@ const NetworkSettingsModal = _ref2 => {
1165
1197
  if (sections.includes('QSFP') && values.QSFP) {
1166
1198
  const interfacesData = values.QSFP.map((item, index) => {
1167
1199
  var _st2110Interfaces$ind, _st2110Interfaces$ind2, _st2110Interfaces$ind3;
1168
- return _objectSpread2(_objectSpread2(_objectSpread2({}, (st2110Interfaces === null || st2110Interfaces === void 0 || (_st2110Interfaces$ind = st2110Interfaces[index]) === null || _st2110Interfaces$ind === void 0 ? void 0 : _st2110Interfaces$ind.id) !== undefined && {
1200
+ return _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, (st2110Interfaces === null || st2110Interfaces === void 0 || (_st2110Interfaces$ind = st2110Interfaces[index]) === null || _st2110Interfaces$ind === void 0 ? void 0 : _st2110Interfaces$ind.id) !== undefined && {
1169
1201
  id: st2110Interfaces === null || st2110Interfaces === void 0 || (_st2110Interfaces$ind2 = st2110Interfaces[index]) === null || _st2110Interfaces$ind2 === void 0 ? void 0 : _st2110Interfaces$ind2.id
1170
1202
  }), (st2110Interfaces === null || st2110Interfaces === void 0 || (_st2110Interfaces$ind3 = st2110Interfaces[index]) === null || _st2110Interfaces$ind3 === void 0 ? void 0 : _st2110Interfaces$ind3.ip) !== undefined ? {
1171
1203
  ip: item.ip_address
@@ -1197,7 +1229,7 @@ const NetworkSettingsModal = _ref2 => {
1197
1229
  }, [form, sections, lanConfigs, st2110Interfaces, updateLanConfig, updateSysConfig, handleSuccess]);
1198
1230
 
1199
1231
  // 合并默认模态框属性和传入的属性
1200
- const mergedModalProps = _objectSpread2({
1232
+ const mergedModalProps = _objectSpread2$1({
1201
1233
  title: "Network Settings",
1202
1234
  width: 650,
1203
1235
  open,
@@ -1212,7 +1244,7 @@ const NetworkSettingsModal = _ref2 => {
1212
1244
  }, modalProps);
1213
1245
 
1214
1246
  // 合并默认表单属性和传入的属性
1215
- const mergedFormProps = _objectSpread2({
1247
+ const mergedFormProps = _objectSpread2$1({
1216
1248
  form: form,
1217
1249
  labelCol: {
1218
1250
  span: 6
@@ -1222,8 +1254,8 @@ const NetworkSettingsModal = _ref2 => {
1222
1254
  },
1223
1255
  autoComplete: "off"
1224
1256
  }, formProps);
1225
- return /*#__PURE__*/jsxs(StyledModal$1, _objectSpread2(_objectSpread2({}, mergedModalProps), {}, {
1226
- children: [/*#__PURE__*/jsxs(Form, _objectSpread2(_objectSpread2({}, mergedFormProps), {}, {
1257
+ return /*#__PURE__*/jsxs(StyledModal$3, _objectSpread2$1(_objectSpread2$1({}, mergedModalProps), {}, {
1258
+ children: [/*#__PURE__*/jsxs(Form, _objectSpread2$1(_objectSpread2$1({}, mergedFormProps), {}, {
1227
1259
  children: [sections.includes('LAN') && lanConfigs.length > 0 && /*#__PURE__*/jsxs(Fragment, {
1228
1260
  children: [/*#__PURE__*/jsx(NetworkFieldGroup, {
1229
1261
  prefix: "LAN",
@@ -1345,7 +1377,7 @@ function convertPtpStatusToArray(ptpStatus, fieldConfigs, fieldOrder) {
1345
1377
  formType: 'text'
1346
1378
  };
1347
1379
  const value = ptpStatus[key];
1348
- return _objectSpread2(_objectSpread2({
1380
+ return _objectSpread2$1(_objectSpread2$1({
1349
1381
  key,
1350
1382
  value
1351
1383
  }, config), {}, {
@@ -1457,7 +1489,7 @@ const PtpModal = _ref => {
1457
1489
  if (!open || !ptpStatus) return null;
1458
1490
 
1459
1491
  // 合并默认模态框属性和传入的属性
1460
- const mergedModalProps = _objectSpread2({
1492
+ const mergedModalProps = _objectSpread2$1({
1461
1493
  title: "PTP",
1462
1494
  width: 650,
1463
1495
  open,
@@ -1469,7 +1501,7 @@ const PtpModal = _ref => {
1469
1501
  }, modalProps);
1470
1502
 
1471
1503
  // 合并默认表单属性和传入的属性
1472
- const mergedFormProps = _objectSpread2({
1504
+ const mergedFormProps = _objectSpread2$1({
1473
1505
  form: form,
1474
1506
  name: "ptpForm",
1475
1507
  labelCol: {
@@ -1480,8 +1512,8 @@ const PtpModal = _ref => {
1480
1512
  },
1481
1513
  autoComplete: "off"
1482
1514
  }, formProps);
1483
- return /*#__PURE__*/jsx(StyledModal$1, _objectSpread2(_objectSpread2({}, mergedModalProps), {}, {
1484
- children: /*#__PURE__*/jsx(Form, _objectSpread2(_objectSpread2({}, mergedFormProps), {}, {
1515
+ return /*#__PURE__*/jsx(StyledModal$3, _objectSpread2$1(_objectSpread2$1({}, mergedModalProps), {}, {
1516
+ children: /*#__PURE__*/jsx(Form, _objectSpread2$1(_objectSpread2$1({}, mergedFormProps), {}, {
1485
1517
  children: ptpStatusArray.map(item => /*#__PURE__*/jsx(Form.Item, {
1486
1518
  label: item.label,
1487
1519
  name: item.key,
@@ -1676,7 +1708,7 @@ const RightDetailForm = /*#__PURE__*/memo(_ref3 => {
1676
1708
  return fields.category_list.options.map(category => {
1677
1709
  const isInitiallySelected = initialSelected.includes(category.name);
1678
1710
  const shouldDisable = isSavedPreset ? !isInitiallySelected : false;
1679
- return _objectSpread2(_objectSpread2({}, category), {}, {
1711
+ return _objectSpread2$1(_objectSpread2$1({}, category), {}, {
1680
1712
  disabled: shouldDisable,
1681
1713
  initiallySelected: isInitiallySelected
1682
1714
  });
@@ -1826,7 +1858,7 @@ const RightDetailForm = /*#__PURE__*/memo(_ref3 => {
1826
1858
  }) :
1827
1859
  /*#__PURE__*/
1828
1860
  // 非编辑模式下的按钮
1829
- jsx(SubmitButton, _objectSpread2(_objectSpread2({
1861
+ jsx(SubmitButton, _objectSpread2$1(_objectSpread2$1({
1830
1862
  action: handleLoad
1831
1863
  }, hasCategoryList && {
1832
1864
  disabled: !currentSelected.length
@@ -2040,7 +2072,7 @@ const Preset = _ref => {
2040
2072
  });
2041
2073
  (async () => {
2042
2074
  try {
2043
- await loadPreset(_objectSpread2({
2075
+ await loadPreset(_objectSpread2$1({
2044
2076
  id: loadData.id
2045
2077
  }, loadData.category_list && {
2046
2078
  category_list: loadData.category_list
@@ -2164,7 +2196,7 @@ const Preset = _ref => {
2164
2196
  useEffect(() => {
2165
2197
  fetchPresetList();
2166
2198
  }, [fetchPresetList]);
2167
- return /*#__PURE__*/jsx(StyledModal$1, {
2199
+ return /*#__PURE__*/jsx(StyledModal$3, {
2168
2200
  title: texts.title,
2169
2201
  width: width,
2170
2202
  open: open,
@@ -2247,7 +2279,7 @@ const UpgradeManager = _ref => {
2247
2279
  statusPollingInterval = 1000,
2248
2280
  children
2249
2281
  } = _ref,
2250
- dropdownProps = _objectWithoutProperties(_ref, _excluded$1);
2282
+ dropdownProps = _objectWithoutProperties$1(_ref, _excluded$1);
2251
2283
  const [upgradeElement] = useUpgrade$1({
2252
2284
  menuItems,
2253
2285
  onMenuClick,
@@ -2263,7 +2295,7 @@ const UpgradeManager = _ref => {
2263
2295
  const dropdownElement = upgradeElement.props.children[0];
2264
2296
  const otherElements = upgradeElement.props.children.slice(1);
2265
2297
  return /*#__PURE__*/jsxs(Fragment, {
2266
- children: [/*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2(_objectSpread2({}, dropdownProps), dropdownElement.props), {}, {
2298
+ children: [/*#__PURE__*/jsx(Dropdown, _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, dropdownProps), dropdownElement.props), {}, {
2267
2299
  children: children
2268
2300
  })), otherElements]
2269
2301
  });
@@ -2278,15 +2310,15 @@ UpgradeManager.defaultProps = {
2278
2310
  };
2279
2311
  var UpgradeManager$1 = UpgradeManager;
2280
2312
 
2281
- function getDefaultExportFromCjs$4 (x) {
2313
+ function getDefaultExportFromCjs$5 (x) {
2282
2314
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
2283
2315
  }
2284
2316
 
2285
- var propTypes$4 = {exports: {}};
2317
+ var propTypes$5 = {exports: {}};
2286
2318
 
2287
- var reactIs$4 = {exports: {}};
2319
+ var reactIs$5 = {exports: {}};
2288
2320
 
2289
- var reactIs_production_min$4 = {};
2321
+ var reactIs_production_min$5 = {};
2290
2322
 
2291
2323
  /** @license React v16.13.1
2292
2324
  * react-is.production.min.js
@@ -2297,21 +2329,21 @@ var reactIs_production_min$4 = {};
2297
2329
  * LICENSE file in the root directory of this source tree.
2298
2330
  */
2299
2331
 
2300
- var hasRequiredReactIs_production_min$4;
2332
+ var hasRequiredReactIs_production_min$5;
2301
2333
 
2302
- function requireReactIs_production_min$4 () {
2303
- if (hasRequiredReactIs_production_min$4) return reactIs_production_min$4;
2304
- hasRequiredReactIs_production_min$4 = 1;
2334
+ function requireReactIs_production_min$5 () {
2335
+ if (hasRequiredReactIs_production_min$5) return reactIs_production_min$5;
2336
+ hasRequiredReactIs_production_min$5 = 1;
2305
2337
  var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
2306
2338
  Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
2307
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$4.AsyncMode=l;reactIs_production_min$4.ConcurrentMode=m;reactIs_production_min$4.ContextConsumer=k;reactIs_production_min$4.ContextProvider=h;reactIs_production_min$4.Element=c;reactIs_production_min$4.ForwardRef=n;reactIs_production_min$4.Fragment=e;reactIs_production_min$4.Lazy=t;reactIs_production_min$4.Memo=r;reactIs_production_min$4.Portal=d;
2308
- reactIs_production_min$4.Profiler=g;reactIs_production_min$4.StrictMode=f;reactIs_production_min$4.Suspense=p;reactIs_production_min$4.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$4.isConcurrentMode=A;reactIs_production_min$4.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$4.isContextProvider=function(a){return z(a)===h};reactIs_production_min$4.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$4.isForwardRef=function(a){return z(a)===n};reactIs_production_min$4.isFragment=function(a){return z(a)===e};reactIs_production_min$4.isLazy=function(a){return z(a)===t};
2309
- reactIs_production_min$4.isMemo=function(a){return z(a)===r};reactIs_production_min$4.isPortal=function(a){return z(a)===d};reactIs_production_min$4.isProfiler=function(a){return z(a)===g};reactIs_production_min$4.isStrictMode=function(a){return z(a)===f};reactIs_production_min$4.isSuspense=function(a){return z(a)===p};
2310
- reactIs_production_min$4.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$4.typeOf=z;
2311
- return reactIs_production_min$4;
2339
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$5.AsyncMode=l;reactIs_production_min$5.ConcurrentMode=m;reactIs_production_min$5.ContextConsumer=k;reactIs_production_min$5.ContextProvider=h;reactIs_production_min$5.Element=c;reactIs_production_min$5.ForwardRef=n;reactIs_production_min$5.Fragment=e;reactIs_production_min$5.Lazy=t;reactIs_production_min$5.Memo=r;reactIs_production_min$5.Portal=d;
2340
+ reactIs_production_min$5.Profiler=g;reactIs_production_min$5.StrictMode=f;reactIs_production_min$5.Suspense=p;reactIs_production_min$5.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$5.isConcurrentMode=A;reactIs_production_min$5.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$5.isContextProvider=function(a){return z(a)===h};reactIs_production_min$5.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$5.isForwardRef=function(a){return z(a)===n};reactIs_production_min$5.isFragment=function(a){return z(a)===e};reactIs_production_min$5.isLazy=function(a){return z(a)===t};
2341
+ reactIs_production_min$5.isMemo=function(a){return z(a)===r};reactIs_production_min$5.isPortal=function(a){return z(a)===d};reactIs_production_min$5.isProfiler=function(a){return z(a)===g};reactIs_production_min$5.isStrictMode=function(a){return z(a)===f};reactIs_production_min$5.isSuspense=function(a){return z(a)===p};
2342
+ reactIs_production_min$5.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$5.typeOf=z;
2343
+ return reactIs_production_min$5;
2312
2344
  }
2313
2345
 
2314
- var reactIs_development$4 = {};
2346
+ var reactIs_development$5 = {};
2315
2347
 
2316
2348
  /** @license React v16.13.1
2317
2349
  * react-is.development.js
@@ -2322,11 +2354,11 @@ var reactIs_development$4 = {};
2322
2354
  * LICENSE file in the root directory of this source tree.
2323
2355
  */
2324
2356
 
2325
- var hasRequiredReactIs_development$4;
2357
+ var hasRequiredReactIs_development$5;
2326
2358
 
2327
- function requireReactIs_development$4 () {
2328
- if (hasRequiredReactIs_development$4) return reactIs_development$4;
2329
- hasRequiredReactIs_development$4 = 1;
2359
+ function requireReactIs_development$5 () {
2360
+ if (hasRequiredReactIs_development$5) return reactIs_development$5;
2361
+ hasRequiredReactIs_development$5 = 1;
2330
2362
 
2331
2363
 
2332
2364
 
@@ -2467,51 +2499,51 @@ function requireReactIs_development$4 () {
2467
2499
  return typeOf(object) === REACT_SUSPENSE_TYPE;
2468
2500
  }
2469
2501
 
2470
- reactIs_development$4.AsyncMode = AsyncMode;
2471
- reactIs_development$4.ConcurrentMode = ConcurrentMode;
2472
- reactIs_development$4.ContextConsumer = ContextConsumer;
2473
- reactIs_development$4.ContextProvider = ContextProvider;
2474
- reactIs_development$4.Element = Element;
2475
- reactIs_development$4.ForwardRef = ForwardRef;
2476
- reactIs_development$4.Fragment = Fragment;
2477
- reactIs_development$4.Lazy = Lazy;
2478
- reactIs_development$4.Memo = Memo;
2479
- reactIs_development$4.Portal = Portal;
2480
- reactIs_development$4.Profiler = Profiler;
2481
- reactIs_development$4.StrictMode = StrictMode;
2482
- reactIs_development$4.Suspense = Suspense;
2483
- reactIs_development$4.isAsyncMode = isAsyncMode;
2484
- reactIs_development$4.isConcurrentMode = isConcurrentMode;
2485
- reactIs_development$4.isContextConsumer = isContextConsumer;
2486
- reactIs_development$4.isContextProvider = isContextProvider;
2487
- reactIs_development$4.isElement = isElement;
2488
- reactIs_development$4.isForwardRef = isForwardRef;
2489
- reactIs_development$4.isFragment = isFragment;
2490
- reactIs_development$4.isLazy = isLazy;
2491
- reactIs_development$4.isMemo = isMemo;
2492
- reactIs_development$4.isPortal = isPortal;
2493
- reactIs_development$4.isProfiler = isProfiler;
2494
- reactIs_development$4.isStrictMode = isStrictMode;
2495
- reactIs_development$4.isSuspense = isSuspense;
2496
- reactIs_development$4.isValidElementType = isValidElementType;
2497
- reactIs_development$4.typeOf = typeOf;
2502
+ reactIs_development$5.AsyncMode = AsyncMode;
2503
+ reactIs_development$5.ConcurrentMode = ConcurrentMode;
2504
+ reactIs_development$5.ContextConsumer = ContextConsumer;
2505
+ reactIs_development$5.ContextProvider = ContextProvider;
2506
+ reactIs_development$5.Element = Element;
2507
+ reactIs_development$5.ForwardRef = ForwardRef;
2508
+ reactIs_development$5.Fragment = Fragment;
2509
+ reactIs_development$5.Lazy = Lazy;
2510
+ reactIs_development$5.Memo = Memo;
2511
+ reactIs_development$5.Portal = Portal;
2512
+ reactIs_development$5.Profiler = Profiler;
2513
+ reactIs_development$5.StrictMode = StrictMode;
2514
+ reactIs_development$5.Suspense = Suspense;
2515
+ reactIs_development$5.isAsyncMode = isAsyncMode;
2516
+ reactIs_development$5.isConcurrentMode = isConcurrentMode;
2517
+ reactIs_development$5.isContextConsumer = isContextConsumer;
2518
+ reactIs_development$5.isContextProvider = isContextProvider;
2519
+ reactIs_development$5.isElement = isElement;
2520
+ reactIs_development$5.isForwardRef = isForwardRef;
2521
+ reactIs_development$5.isFragment = isFragment;
2522
+ reactIs_development$5.isLazy = isLazy;
2523
+ reactIs_development$5.isMemo = isMemo;
2524
+ reactIs_development$5.isPortal = isPortal;
2525
+ reactIs_development$5.isProfiler = isProfiler;
2526
+ reactIs_development$5.isStrictMode = isStrictMode;
2527
+ reactIs_development$5.isSuspense = isSuspense;
2528
+ reactIs_development$5.isValidElementType = isValidElementType;
2529
+ reactIs_development$5.typeOf = typeOf;
2498
2530
  })();
2499
2531
  }
2500
- return reactIs_development$4;
2532
+ return reactIs_development$5;
2501
2533
  }
2502
2534
 
2503
- var hasRequiredReactIs$4;
2535
+ var hasRequiredReactIs$5;
2504
2536
 
2505
- function requireReactIs$4 () {
2506
- if (hasRequiredReactIs$4) return reactIs$4.exports;
2507
- hasRequiredReactIs$4 = 1;
2537
+ function requireReactIs$5 () {
2538
+ if (hasRequiredReactIs$5) return reactIs$5.exports;
2539
+ hasRequiredReactIs$5 = 1;
2508
2540
 
2509
2541
  if (process.env.NODE_ENV === 'production') {
2510
- reactIs$4.exports = requireReactIs_production_min$4();
2542
+ reactIs$5.exports = requireReactIs_production_min$5();
2511
2543
  } else {
2512
- reactIs$4.exports = requireReactIs_development$4();
2544
+ reactIs$5.exports = requireReactIs_development$5();
2513
2545
  }
2514
- return reactIs$4.exports;
2546
+ return reactIs$5.exports;
2515
2547
  }
2516
2548
 
2517
2549
  /*
@@ -2520,12 +2552,12 @@ object-assign
2520
2552
  @license MIT
2521
2553
  */
2522
2554
 
2523
- var objectAssign$4;
2524
- var hasRequiredObjectAssign$4;
2555
+ var objectAssign$5;
2556
+ var hasRequiredObjectAssign$5;
2525
2557
 
2526
- function requireObjectAssign$4 () {
2527
- if (hasRequiredObjectAssign$4) return objectAssign$4;
2528
- hasRequiredObjectAssign$4 = 1;
2558
+ function requireObjectAssign$5 () {
2559
+ if (hasRequiredObjectAssign$5) return objectAssign$5;
2560
+ hasRequiredObjectAssign$5 = 1;
2529
2561
  /* eslint-disable no-unused-vars */
2530
2562
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2531
2563
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -2583,7 +2615,7 @@ function requireObjectAssign$4 () {
2583
2615
  }
2584
2616
  }
2585
2617
 
2586
- objectAssign$4 = shouldUseNative() ? Object.assign : function (target, source) {
2618
+ objectAssign$5 = shouldUseNative() ? Object.assign : function (target, source) {
2587
2619
  var from;
2588
2620
  var to = toObject(target);
2589
2621
  var symbols;
@@ -2609,7 +2641,7 @@ function requireObjectAssign$4 () {
2609
2641
 
2610
2642
  return to;
2611
2643
  };
2612
- return objectAssign$4;
2644
+ return objectAssign$5;
2613
2645
  }
2614
2646
 
2615
2647
  /**
@@ -2619,27 +2651,27 @@ function requireObjectAssign$4 () {
2619
2651
  * LICENSE file in the root directory of this source tree.
2620
2652
  */
2621
2653
 
2622
- var ReactPropTypesSecret_1$4;
2623
- var hasRequiredReactPropTypesSecret$4;
2654
+ var ReactPropTypesSecret_1$5;
2655
+ var hasRequiredReactPropTypesSecret$5;
2624
2656
 
2625
- function requireReactPropTypesSecret$4 () {
2626
- if (hasRequiredReactPropTypesSecret$4) return ReactPropTypesSecret_1$4;
2627
- hasRequiredReactPropTypesSecret$4 = 1;
2657
+ function requireReactPropTypesSecret$5 () {
2658
+ if (hasRequiredReactPropTypesSecret$5) return ReactPropTypesSecret_1$5;
2659
+ hasRequiredReactPropTypesSecret$5 = 1;
2628
2660
 
2629
2661
  var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2630
2662
 
2631
- ReactPropTypesSecret_1$4 = ReactPropTypesSecret;
2632
- return ReactPropTypesSecret_1$4;
2663
+ ReactPropTypesSecret_1$5 = ReactPropTypesSecret;
2664
+ return ReactPropTypesSecret_1$5;
2633
2665
  }
2634
2666
 
2635
- var has$4;
2636
- var hasRequiredHas$4;
2667
+ var has$5;
2668
+ var hasRequiredHas$5;
2637
2669
 
2638
- function requireHas$4 () {
2639
- if (hasRequiredHas$4) return has$4;
2640
- hasRequiredHas$4 = 1;
2641
- has$4 = Function.call.bind(Object.prototype.hasOwnProperty);
2642
- return has$4;
2670
+ function requireHas$5 () {
2671
+ if (hasRequiredHas$5) return has$5;
2672
+ hasRequiredHas$5 = 1;
2673
+ has$5 = Function.call.bind(Object.prototype.hasOwnProperty);
2674
+ return has$5;
2643
2675
  }
2644
2676
 
2645
2677
  /**
@@ -2649,19 +2681,19 @@ function requireHas$4 () {
2649
2681
  * LICENSE file in the root directory of this source tree.
2650
2682
  */
2651
2683
 
2652
- var checkPropTypes_1$4;
2653
- var hasRequiredCheckPropTypes$4;
2684
+ var checkPropTypes_1$5;
2685
+ var hasRequiredCheckPropTypes$5;
2654
2686
 
2655
- function requireCheckPropTypes$4 () {
2656
- if (hasRequiredCheckPropTypes$4) return checkPropTypes_1$4;
2657
- hasRequiredCheckPropTypes$4 = 1;
2687
+ function requireCheckPropTypes$5 () {
2688
+ if (hasRequiredCheckPropTypes$5) return checkPropTypes_1$5;
2689
+ hasRequiredCheckPropTypes$5 = 1;
2658
2690
 
2659
2691
  var printWarning = function() {};
2660
2692
 
2661
2693
  if (process.env.NODE_ENV !== 'production') {
2662
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$4();
2694
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$5();
2663
2695
  var loggedTypeFailures = {};
2664
- var has = /*@__PURE__*/ requireHas$4();
2696
+ var has = /*@__PURE__*/ requireHas$5();
2665
2697
 
2666
2698
  printWarning = function(text) {
2667
2699
  var message = 'Warning: ' + text;
@@ -2749,8 +2781,8 @@ function requireCheckPropTypes$4 () {
2749
2781
  }
2750
2782
  };
2751
2783
 
2752
- checkPropTypes_1$4 = checkPropTypes;
2753
- return checkPropTypes_1$4;
2784
+ checkPropTypes_1$5 = checkPropTypes;
2785
+ return checkPropTypes_1$5;
2754
2786
  }
2755
2787
 
2756
2788
  /**
@@ -2760,19 +2792,19 @@ function requireCheckPropTypes$4 () {
2760
2792
  * LICENSE file in the root directory of this source tree.
2761
2793
  */
2762
2794
 
2763
- var factoryWithTypeCheckers$4;
2764
- var hasRequiredFactoryWithTypeCheckers$4;
2795
+ var factoryWithTypeCheckers$5;
2796
+ var hasRequiredFactoryWithTypeCheckers$5;
2765
2797
 
2766
- function requireFactoryWithTypeCheckers$4 () {
2767
- if (hasRequiredFactoryWithTypeCheckers$4) return factoryWithTypeCheckers$4;
2768
- hasRequiredFactoryWithTypeCheckers$4 = 1;
2798
+ function requireFactoryWithTypeCheckers$5 () {
2799
+ if (hasRequiredFactoryWithTypeCheckers$5) return factoryWithTypeCheckers$5;
2800
+ hasRequiredFactoryWithTypeCheckers$5 = 1;
2769
2801
 
2770
- var ReactIs = requireReactIs$4();
2771
- var assign = requireObjectAssign$4();
2802
+ var ReactIs = requireReactIs$5();
2803
+ var assign = requireObjectAssign$5();
2772
2804
 
2773
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$4();
2774
- var has = /*@__PURE__*/ requireHas$4();
2775
- var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes$4();
2805
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$5();
2806
+ var has = /*@__PURE__*/ requireHas$5();
2807
+ var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes$5();
2776
2808
 
2777
2809
  var printWarning = function() {};
2778
2810
 
@@ -2795,7 +2827,7 @@ function requireFactoryWithTypeCheckers$4 () {
2795
2827
  return null;
2796
2828
  }
2797
2829
 
2798
- factoryWithTypeCheckers$4 = function(isValidElement, throwOnDirectAccess) {
2830
+ factoryWithTypeCheckers$5 = function(isValidElement, throwOnDirectAccess) {
2799
2831
  /* global Symbol */
2800
2832
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
2801
2833
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
@@ -3368,7 +3400,7 @@ function requireFactoryWithTypeCheckers$4 () {
3368
3400
 
3369
3401
  return ReactPropTypes;
3370
3402
  };
3371
- return factoryWithTypeCheckers$4;
3403
+ return factoryWithTypeCheckers$5;
3372
3404
  }
3373
3405
 
3374
3406
  /**
@@ -3378,20 +3410,20 @@ function requireFactoryWithTypeCheckers$4 () {
3378
3410
  * LICENSE file in the root directory of this source tree.
3379
3411
  */
3380
3412
 
3381
- var factoryWithThrowingShims$4;
3382
- var hasRequiredFactoryWithThrowingShims$4;
3413
+ var factoryWithThrowingShims$5;
3414
+ var hasRequiredFactoryWithThrowingShims$5;
3383
3415
 
3384
- function requireFactoryWithThrowingShims$4 () {
3385
- if (hasRequiredFactoryWithThrowingShims$4) return factoryWithThrowingShims$4;
3386
- hasRequiredFactoryWithThrowingShims$4 = 1;
3416
+ function requireFactoryWithThrowingShims$5 () {
3417
+ if (hasRequiredFactoryWithThrowingShims$5) return factoryWithThrowingShims$5;
3418
+ hasRequiredFactoryWithThrowingShims$5 = 1;
3387
3419
 
3388
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$4();
3420
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$5();
3389
3421
 
3390
3422
  function emptyFunction() {}
3391
3423
  function emptyFunctionWithReset() {}
3392
3424
  emptyFunctionWithReset.resetWarningCache = emptyFunction;
3393
3425
 
3394
- factoryWithThrowingShims$4 = function() {
3426
+ factoryWithThrowingShims$5 = function() {
3395
3427
  function shim(props, propName, componentName, location, propFullName, secret) {
3396
3428
  if (secret === ReactPropTypesSecret) {
3397
3429
  // It is still safe when called from React.
@@ -3439,7 +3471,7 @@ function requireFactoryWithThrowingShims$4 () {
3439
3471
 
3440
3472
  return ReactPropTypes;
3441
3473
  };
3442
- return factoryWithThrowingShims$4;
3474
+ return factoryWithThrowingShims$5;
3443
3475
  }
3444
3476
 
3445
3477
  /**
@@ -3449,28 +3481,28 @@ function requireFactoryWithThrowingShims$4 () {
3449
3481
  * LICENSE file in the root directory of this source tree.
3450
3482
  */
3451
3483
 
3452
- var hasRequiredPropTypes$4;
3484
+ var hasRequiredPropTypes$5;
3453
3485
 
3454
- function requirePropTypes$4 () {
3455
- if (hasRequiredPropTypes$4) return propTypes$4.exports;
3456
- hasRequiredPropTypes$4 = 1;
3486
+ function requirePropTypes$5 () {
3487
+ if (hasRequiredPropTypes$5) return propTypes$5.exports;
3488
+ hasRequiredPropTypes$5 = 1;
3457
3489
  if (process.env.NODE_ENV !== 'production') {
3458
- var ReactIs = requireReactIs$4();
3490
+ var ReactIs = requireReactIs$5();
3459
3491
 
3460
3492
  // By explicitly using `prop-types` you are opting into new development behavior.
3461
3493
  // http://fb.me/prop-types-in-prod
3462
3494
  var throwOnDirectAccess = true;
3463
- propTypes$4.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers$4()(ReactIs.isElement, throwOnDirectAccess);
3495
+ propTypes$5.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers$5()(ReactIs.isElement, throwOnDirectAccess);
3464
3496
  } else {
3465
3497
  // By explicitly using `prop-types` you are opting into new production behavior.
3466
3498
  // http://fb.me/prop-types-in-prod
3467
- propTypes$4.exports = /*@__PURE__*/ requireFactoryWithThrowingShims$4()();
3499
+ propTypes$5.exports = /*@__PURE__*/ requireFactoryWithThrowingShims$5()();
3468
3500
  }
3469
- return propTypes$4.exports;
3501
+ return propTypes$5.exports;
3470
3502
  }
3471
3503
 
3472
- var propTypesExports$4 = /*@__PURE__*/ requirePropTypes$4();
3473
- var PropTypes$4 = /*@__PURE__*/getDefaultExportFromCjs$4(propTypesExports$4);
3504
+ var propTypesExports$5 = /*@__PURE__*/ requirePropTypes$5();
3505
+ var PropTypes$5 = /*@__PURE__*/getDefaultExportFromCjs$5(propTypesExports$5);
3474
3506
 
3475
3507
  const SystemOperations = _ref => {
3476
3508
  let {
@@ -3552,15 +3584,15 @@ const SystemOperations = _ref => {
3552
3584
  });
3553
3585
  };
3554
3586
  SystemOperations.propTypes = {
3555
- onPowerOff: PropTypes$4.func,
3556
- onRestart: PropTypes$4.func,
3557
- powerOffLabel: PropTypes$4.string,
3558
- restartLabel: PropTypes$4.string,
3559
- iconClassName: PropTypes$4.string,
3560
- confirmTitle: PropTypes$4.string,
3561
- cancelText: PropTypes$4.string,
3562
- okText: PropTypes$4.string,
3563
- run: PropTypes$4.func
3587
+ onPowerOff: PropTypes$5.func,
3588
+ onRestart: PropTypes$5.func,
3589
+ powerOffLabel: PropTypes$5.string,
3590
+ restartLabel: PropTypes$5.string,
3591
+ iconClassName: PropTypes$5.string,
3592
+ confirmTitle: PropTypes$5.string,
3593
+ cancelText: PropTypes$5.string,
3594
+ okText: PropTypes$5.string,
3595
+ run: PropTypes$5.func
3564
3596
  };
3565
3597
  var SystemOperations$1 = SystemOperations;
3566
3598
 
@@ -3603,10 +3635,10 @@ const useSpaLogo = function () {
3603
3635
  }, "logo")];
3604
3636
  };
3605
3637
  useSpaLogo.propTypes = {
3606
- logoUrl: PropTypes$4.string,
3607
- logoWidth: PropTypes$4.number,
3608
- logoAlt: PropTypes$4.string,
3609
- onClick: PropTypes$4.func
3638
+ logoUrl: PropTypes$5.string,
3639
+ logoWidth: PropTypes$5.number,
3640
+ logoAlt: PropTypes$5.string,
3641
+ onClick: PropTypes$5.func
3610
3642
  };
3611
3643
  var useSpaLogo$1 = useSpaLogo;
3612
3644
 
@@ -3708,23 +3740,23 @@ const CommonHeader = _ref => {
3708
3740
 
3709
3741
  // PropTypes 类型检查
3710
3742
  CommonHeader.propTypes = {
3711
- menuElement: PropTypes$4.node,
3712
- productInfo: PropTypes$4.shape({
3713
- productName: PropTypes$4.string,
3714
- version: PropTypes$4.string
3743
+ menuElement: PropTypes$5.node,
3744
+ productInfo: PropTypes$5.shape({
3745
+ productName: PropTypes$5.string,
3746
+ version: PropTypes$5.string
3715
3747
  }),
3716
- showLogo: PropTypes$4.bool,
3717
- showProductInfo: PropTypes$4.bool,
3718
- showHardwareUsage: PropTypes$4.bool,
3719
- showSystemOperations: PropTypes$4.bool,
3720
- onPowerOff: PropTypes$4.func,
3721
- onRestart: PropTypes$4.func,
3722
- onRun: PropTypes$4.func,
3723
- hardwareMonitorUrl: PropTypes$4.string,
3724
- getSocketUrl: PropTypes$4.func,
3725
- logoProps: PropTypes$4.object,
3726
- className: PropTypes$4.string,
3727
- style: PropTypes$4.object
3748
+ showLogo: PropTypes$5.bool,
3749
+ showProductInfo: PropTypes$5.bool,
3750
+ showHardwareUsage: PropTypes$5.bool,
3751
+ showSystemOperations: PropTypes$5.bool,
3752
+ onPowerOff: PropTypes$5.func,
3753
+ onRestart: PropTypes$5.func,
3754
+ onRun: PropTypes$5.func,
3755
+ hardwareMonitorUrl: PropTypes$5.string,
3756
+ getSocketUrl: PropTypes$5.func,
3757
+ logoProps: PropTypes$5.object,
3758
+ className: PropTypes$5.string,
3759
+ style: PropTypes$5.object
3728
3760
  };
3729
3761
  var CommonHeader$1 = CommonHeader;
3730
3762
 
@@ -3754,10 +3786,10 @@ const LSMLabelField = props => {
3754
3786
  };
3755
3787
  loadLsmData();
3756
3788
  }, [fetchLsmData]);
3757
- return /*#__PURE__*/jsx(Form.Item, _objectSpread2(_objectSpread2({
3789
+ return /*#__PURE__*/jsx(Form.Item, _objectSpread2$1(_objectSpread2$1({
3758
3790
  label: label
3759
3791
  }, formItemProps), {}, {
3760
- children: /*#__PURE__*/jsx(Select, _objectSpread2(_objectSpread2(_objectSpread2({}, field), selectProps), {}, {
3792
+ children: /*#__PURE__*/jsx(Select, _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, field), selectProps), {}, {
3761
3793
  options: lsmList,
3762
3794
  fieldNames: fieldNames,
3763
3795
  allowClear: true,
@@ -3773,15 +3805,15 @@ const LSMLabelField = props => {
3773
3805
  };
3774
3806
  var LSMLabelField$1 = /*#__PURE__*/memo(LSMLabelField);
3775
3807
 
3776
- function _defineProperty$1(e, r, t) {
3777
- return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
3808
+ function _defineProperty(e, r, t) {
3809
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
3778
3810
  value: t,
3779
3811
  enumerable: !0,
3780
3812
  configurable: !0,
3781
3813
  writable: !0
3782
3814
  }) : e[r] = t, e;
3783
3815
  }
3784
- function ownKeys$1(e, r) {
3816
+ function ownKeys(e, r) {
3785
3817
  var t = Object.keys(e);
3786
3818
  if (Object.getOwnPropertySymbols) {
3787
3819
  var o = Object.getOwnPropertySymbols(e);
@@ -3791,29 +3823,29 @@ function ownKeys$1(e, r) {
3791
3823
  }
3792
3824
  return t;
3793
3825
  }
3794
- function _objectSpread2$1(e) {
3826
+ function _objectSpread2(e) {
3795
3827
  for (var r = 1; r < arguments.length; r++) {
3796
3828
  var t = null != arguments[r] ? arguments[r] : {};
3797
- r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
3798
- _defineProperty$1(e, r, t[r]);
3799
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
3829
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
3830
+ _defineProperty(e, r, t[r]);
3831
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
3800
3832
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
3801
3833
  });
3802
3834
  }
3803
3835
  return e;
3804
3836
  }
3805
- function _objectWithoutProperties$1(e, t) {
3837
+ function _objectWithoutProperties(e, t) {
3806
3838
  if (null == e) return {};
3807
3839
  var o,
3808
3840
  r,
3809
- i = _objectWithoutPropertiesLoose$1(e, t);
3841
+ i = _objectWithoutPropertiesLoose(e, t);
3810
3842
  if (Object.getOwnPropertySymbols) {
3811
3843
  var n = Object.getOwnPropertySymbols(e);
3812
3844
  for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3813
3845
  }
3814
3846
  return i;
3815
3847
  }
3816
- function _objectWithoutPropertiesLoose$1(r, e) {
3848
+ function _objectWithoutPropertiesLoose(r, e) {
3817
3849
  if (null == r) return {};
3818
3850
  var t = {};
3819
3851
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
@@ -3822,7 +3854,7 @@ function _objectWithoutPropertiesLoose$1(r, e) {
3822
3854
  }
3823
3855
  return t;
3824
3856
  }
3825
- function _toPrimitive$1(t, r) {
3857
+ function _toPrimitive(t, r) {
3826
3858
  if ("object" != typeof t || !t) return t;
3827
3859
  var e = t[Symbol.toPrimitive];
3828
3860
  if (void 0 !== e) {
@@ -3832,19 +3864,19 @@ function _toPrimitive$1(t, r) {
3832
3864
  }
3833
3865
  return ("string" === r ? String : Number)(t);
3834
3866
  }
3835
- function _toPropertyKey$1(t) {
3836
- var i = _toPrimitive$1(t, "string");
3867
+ function _toPropertyKey(t) {
3868
+ var i = _toPrimitive(t, "string");
3837
3869
  return "symbol" == typeof i ? i : i + "";
3838
3870
  }
3839
- const _excluded$3 = ["width", "okText", "cancelText", "styles"];
3840
- const StyledModal$2 = props => {
3871
+ const _excluded$2 = ["width", "okText", "cancelText", "styles"];
3872
+ const StyledModal = props => {
3841
3873
  const {
3842
3874
  width = "520px",
3843
3875
  okText = "Apply",
3844
3876
  cancelText = "Close",
3845
3877
  styles: propStyles = {}
3846
3878
  } = props,
3847
- restProps = _objectWithoutProperties$1(props, _excluded$3);
3879
+ restProps = _objectWithoutProperties(props, _excluded$2);
3848
3880
 
3849
3881
  // 基础样式配置
3850
3882
  const baseStyles = {
@@ -3872,15 +3904,1213 @@ const StyledModal$2 = props => {
3872
3904
  };
3873
3905
 
3874
3906
  // 合并样式
3875
- const styles = _objectSpread2$1(_objectSpread2$1({}, baseStyles), propStyles);
3876
- return /*#__PURE__*/jsx(Modal, _objectSpread2$1({
3907
+ const styles = _objectSpread2(_objectSpread2({}, baseStyles), propStyles);
3908
+ return /*#__PURE__*/jsx(Modal, _objectSpread2({
3877
3909
  width: width,
3878
3910
  okText: okText,
3879
3911
  cancelText: cancelText,
3880
3912
  styles: styles
3881
3913
  }, restProps));
3882
3914
  };
3883
- var StyledModal$3 = StyledModal$2;
3915
+ var StyledModal$1 = StyledModal;
3916
+ function getDefaultExportFromCjs$4(x) {
3917
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3918
+ }
3919
+ var propTypes$4 = {
3920
+ exports: {}
3921
+ };
3922
+ var reactIs$4 = {
3923
+ exports: {}
3924
+ };
3925
+ var reactIs_production_min$4 = {};
3926
+
3927
+ /** @license React v16.13.1
3928
+ * react-is.production.min.js
3929
+ *
3930
+ * Copyright (c) Facebook, Inc. and its affiliates.
3931
+ *
3932
+ * This source code is licensed under the MIT license found in the
3933
+ * LICENSE file in the root directory of this source tree.
3934
+ */
3935
+
3936
+ var hasRequiredReactIs_production_min$4;
3937
+ function requireReactIs_production_min$4() {
3938
+ if (hasRequiredReactIs_production_min$4) return reactIs_production_min$4;
3939
+ hasRequiredReactIs_production_min$4 = 1;
3940
+ var b = "function" === typeof Symbol && Symbol.for,
3941
+ c = b ? Symbol.for("react.element") : 60103,
3942
+ d = b ? Symbol.for("react.portal") : 60106,
3943
+ e = b ? Symbol.for("react.fragment") : 60107,
3944
+ f = b ? Symbol.for("react.strict_mode") : 60108,
3945
+ g = b ? Symbol.for("react.profiler") : 60114,
3946
+ h = b ? Symbol.for("react.provider") : 60109,
3947
+ k = b ? Symbol.for("react.context") : 60110,
3948
+ l = b ? Symbol.for("react.async_mode") : 60111,
3949
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
3950
+ n = b ? Symbol.for("react.forward_ref") : 60112,
3951
+ p = b ? Symbol.for("react.suspense") : 60113,
3952
+ q = b ? Symbol.for("react.suspense_list") : 60120,
3953
+ r = b ? Symbol.for("react.memo") : 60115,
3954
+ t = b ? Symbol.for("react.lazy") : 60116,
3955
+ v = b ? Symbol.for("react.block") : 60121,
3956
+ w = b ? Symbol.for("react.fundamental") : 60117,
3957
+ x = b ? Symbol.for("react.responder") : 60118,
3958
+ y = b ? Symbol.for("react.scope") : 60119;
3959
+ function z(a) {
3960
+ if ("object" === typeof a && null !== a) {
3961
+ var u = a.$$typeof;
3962
+ switch (u) {
3963
+ case c:
3964
+ switch (a = a.type, a) {
3965
+ case l:
3966
+ case m:
3967
+ case e:
3968
+ case g:
3969
+ case f:
3970
+ case p:
3971
+ return a;
3972
+ default:
3973
+ switch (a = a && a.$$typeof, a) {
3974
+ case k:
3975
+ case n:
3976
+ case t:
3977
+ case r:
3978
+ case h:
3979
+ return a;
3980
+ default:
3981
+ return u;
3982
+ }
3983
+ }
3984
+ case d:
3985
+ return u;
3986
+ }
3987
+ }
3988
+ }
3989
+ function A(a) {
3990
+ return z(a) === m;
3991
+ }
3992
+ reactIs_production_min$4.AsyncMode = l;
3993
+ reactIs_production_min$4.ConcurrentMode = m;
3994
+ reactIs_production_min$4.ContextConsumer = k;
3995
+ reactIs_production_min$4.ContextProvider = h;
3996
+ reactIs_production_min$4.Element = c;
3997
+ reactIs_production_min$4.ForwardRef = n;
3998
+ reactIs_production_min$4.Fragment = e;
3999
+ reactIs_production_min$4.Lazy = t;
4000
+ reactIs_production_min$4.Memo = r;
4001
+ reactIs_production_min$4.Portal = d;
4002
+ reactIs_production_min$4.Profiler = g;
4003
+ reactIs_production_min$4.StrictMode = f;
4004
+ reactIs_production_min$4.Suspense = p;
4005
+ reactIs_production_min$4.isAsyncMode = function (a) {
4006
+ return A(a) || z(a) === l;
4007
+ };
4008
+ reactIs_production_min$4.isConcurrentMode = A;
4009
+ reactIs_production_min$4.isContextConsumer = function (a) {
4010
+ return z(a) === k;
4011
+ };
4012
+ reactIs_production_min$4.isContextProvider = function (a) {
4013
+ return z(a) === h;
4014
+ };
4015
+ reactIs_production_min$4.isElement = function (a) {
4016
+ return "object" === typeof a && null !== a && a.$$typeof === c;
4017
+ };
4018
+ reactIs_production_min$4.isForwardRef = function (a) {
4019
+ return z(a) === n;
4020
+ };
4021
+ reactIs_production_min$4.isFragment = function (a) {
4022
+ return z(a) === e;
4023
+ };
4024
+ reactIs_production_min$4.isLazy = function (a) {
4025
+ return z(a) === t;
4026
+ };
4027
+ reactIs_production_min$4.isMemo = function (a) {
4028
+ return z(a) === r;
4029
+ };
4030
+ reactIs_production_min$4.isPortal = function (a) {
4031
+ return z(a) === d;
4032
+ };
4033
+ reactIs_production_min$4.isProfiler = function (a) {
4034
+ return z(a) === g;
4035
+ };
4036
+ reactIs_production_min$4.isStrictMode = function (a) {
4037
+ return z(a) === f;
4038
+ };
4039
+ reactIs_production_min$4.isSuspense = function (a) {
4040
+ return z(a) === p;
4041
+ };
4042
+ reactIs_production_min$4.isValidElementType = function (a) {
4043
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
4044
+ };
4045
+ reactIs_production_min$4.typeOf = z;
4046
+ return reactIs_production_min$4;
4047
+ }
4048
+ var reactIs_development$4 = {};
4049
+
4050
+ /** @license React v16.13.1
4051
+ * react-is.development.js
4052
+ *
4053
+ * Copyright (c) Facebook, Inc. and its affiliates.
4054
+ *
4055
+ * This source code is licensed under the MIT license found in the
4056
+ * LICENSE file in the root directory of this source tree.
4057
+ */
4058
+
4059
+ var hasRequiredReactIs_development$4;
4060
+ function requireReactIs_development$4() {
4061
+ if (hasRequiredReactIs_development$4) return reactIs_development$4;
4062
+ hasRequiredReactIs_development$4 = 1;
4063
+ if (process.env.NODE_ENV !== "production") {
4064
+ (function () {
4065
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
4066
+ // nor polyfill, then a plain number is used for performance.
4067
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
4068
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
4069
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
4070
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
4071
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
4072
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
4073
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
4074
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
4075
+ // (unstable) APIs that have been removed. Can we remove the symbols?
4076
+
4077
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
4078
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
4079
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
4080
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
4081
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
4082
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
4083
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
4084
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
4085
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
4086
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
4087
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
4088
+ function isValidElementType(type) {
4089
+ return typeof type === 'string' || typeof type === 'function' ||
4090
+ // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4091
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
4092
+ }
4093
+ function typeOf(object) {
4094
+ if (typeof object === 'object' && object !== null) {
4095
+ var $$typeof = object.$$typeof;
4096
+ switch ($$typeof) {
4097
+ case REACT_ELEMENT_TYPE:
4098
+ var type = object.type;
4099
+ switch (type) {
4100
+ case REACT_ASYNC_MODE_TYPE:
4101
+ case REACT_CONCURRENT_MODE_TYPE:
4102
+ case REACT_FRAGMENT_TYPE:
4103
+ case REACT_PROFILER_TYPE:
4104
+ case REACT_STRICT_MODE_TYPE:
4105
+ case REACT_SUSPENSE_TYPE:
4106
+ return type;
4107
+ default:
4108
+ var $$typeofType = type && type.$$typeof;
4109
+ switch ($$typeofType) {
4110
+ case REACT_CONTEXT_TYPE:
4111
+ case REACT_FORWARD_REF_TYPE:
4112
+ case REACT_LAZY_TYPE:
4113
+ case REACT_MEMO_TYPE:
4114
+ case REACT_PROVIDER_TYPE:
4115
+ return $$typeofType;
4116
+ default:
4117
+ return $$typeof;
4118
+ }
4119
+ }
4120
+ case REACT_PORTAL_TYPE:
4121
+ return $$typeof;
4122
+ }
4123
+ }
4124
+ return undefined;
4125
+ } // AsyncMode is deprecated along with isAsyncMode
4126
+
4127
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
4128
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
4129
+ var ContextConsumer = REACT_CONTEXT_TYPE;
4130
+ var ContextProvider = REACT_PROVIDER_TYPE;
4131
+ var Element = REACT_ELEMENT_TYPE;
4132
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
4133
+ var Fragment = REACT_FRAGMENT_TYPE;
4134
+ var Lazy = REACT_LAZY_TYPE;
4135
+ var Memo = REACT_MEMO_TYPE;
4136
+ var Portal = REACT_PORTAL_TYPE;
4137
+ var Profiler = REACT_PROFILER_TYPE;
4138
+ var StrictMode = REACT_STRICT_MODE_TYPE;
4139
+ var Suspense = REACT_SUSPENSE_TYPE;
4140
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
4141
+
4142
+ function isAsyncMode(object) {
4143
+ {
4144
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
4145
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
4146
+
4147
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
4148
+ }
4149
+ }
4150
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
4151
+ }
4152
+ function isConcurrentMode(object) {
4153
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
4154
+ }
4155
+ function isContextConsumer(object) {
4156
+ return typeOf(object) === REACT_CONTEXT_TYPE;
4157
+ }
4158
+ function isContextProvider(object) {
4159
+ return typeOf(object) === REACT_PROVIDER_TYPE;
4160
+ }
4161
+ function isElement(object) {
4162
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4163
+ }
4164
+ function isForwardRef(object) {
4165
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
4166
+ }
4167
+ function isFragment(object) {
4168
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
4169
+ }
4170
+ function isLazy(object) {
4171
+ return typeOf(object) === REACT_LAZY_TYPE;
4172
+ }
4173
+ function isMemo(object) {
4174
+ return typeOf(object) === REACT_MEMO_TYPE;
4175
+ }
4176
+ function isPortal(object) {
4177
+ return typeOf(object) === REACT_PORTAL_TYPE;
4178
+ }
4179
+ function isProfiler(object) {
4180
+ return typeOf(object) === REACT_PROFILER_TYPE;
4181
+ }
4182
+ function isStrictMode(object) {
4183
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
4184
+ }
4185
+ function isSuspense(object) {
4186
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
4187
+ }
4188
+ reactIs_development$4.AsyncMode = AsyncMode;
4189
+ reactIs_development$4.ConcurrentMode = ConcurrentMode;
4190
+ reactIs_development$4.ContextConsumer = ContextConsumer;
4191
+ reactIs_development$4.ContextProvider = ContextProvider;
4192
+ reactIs_development$4.Element = Element;
4193
+ reactIs_development$4.ForwardRef = ForwardRef;
4194
+ reactIs_development$4.Fragment = Fragment;
4195
+ reactIs_development$4.Lazy = Lazy;
4196
+ reactIs_development$4.Memo = Memo;
4197
+ reactIs_development$4.Portal = Portal;
4198
+ reactIs_development$4.Profiler = Profiler;
4199
+ reactIs_development$4.StrictMode = StrictMode;
4200
+ reactIs_development$4.Suspense = Suspense;
4201
+ reactIs_development$4.isAsyncMode = isAsyncMode;
4202
+ reactIs_development$4.isConcurrentMode = isConcurrentMode;
4203
+ reactIs_development$4.isContextConsumer = isContextConsumer;
4204
+ reactIs_development$4.isContextProvider = isContextProvider;
4205
+ reactIs_development$4.isElement = isElement;
4206
+ reactIs_development$4.isForwardRef = isForwardRef;
4207
+ reactIs_development$4.isFragment = isFragment;
4208
+ reactIs_development$4.isLazy = isLazy;
4209
+ reactIs_development$4.isMemo = isMemo;
4210
+ reactIs_development$4.isPortal = isPortal;
4211
+ reactIs_development$4.isProfiler = isProfiler;
4212
+ reactIs_development$4.isStrictMode = isStrictMode;
4213
+ reactIs_development$4.isSuspense = isSuspense;
4214
+ reactIs_development$4.isValidElementType = isValidElementType;
4215
+ reactIs_development$4.typeOf = typeOf;
4216
+ })();
4217
+ }
4218
+ return reactIs_development$4;
4219
+ }
4220
+ var hasRequiredReactIs$4;
4221
+ function requireReactIs$4() {
4222
+ if (hasRequiredReactIs$4) return reactIs$4.exports;
4223
+ hasRequiredReactIs$4 = 1;
4224
+ if (process.env.NODE_ENV === 'production') {
4225
+ reactIs$4.exports = requireReactIs_production_min$4();
4226
+ } else {
4227
+ reactIs$4.exports = requireReactIs_development$4();
4228
+ }
4229
+ return reactIs$4.exports;
4230
+ }
4231
+
4232
+ /*
4233
+ object-assign
4234
+ (c) Sindre Sorhus
4235
+ @license MIT
4236
+ */
4237
+
4238
+ var objectAssign$4;
4239
+ var hasRequiredObjectAssign$4;
4240
+ function requireObjectAssign$4() {
4241
+ if (hasRequiredObjectAssign$4) return objectAssign$4;
4242
+ hasRequiredObjectAssign$4 = 1;
4243
+ /* eslint-disable no-unused-vars */
4244
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
4245
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
4246
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
4247
+ function toObject(val) {
4248
+ if (val === null || val === undefined) {
4249
+ throw new TypeError('Object.assign cannot be called with null or undefined');
4250
+ }
4251
+ return Object(val);
4252
+ }
4253
+ function shouldUseNative() {
4254
+ try {
4255
+ if (!Object.assign) {
4256
+ return false;
4257
+ }
4258
+
4259
+ // Detect buggy property enumeration order in older V8 versions.
4260
+
4261
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
4262
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
4263
+ test1[5] = 'de';
4264
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
4265
+ return false;
4266
+ }
4267
+
4268
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4269
+ var test2 = {};
4270
+ for (var i = 0; i < 10; i++) {
4271
+ test2['_' + String.fromCharCode(i)] = i;
4272
+ }
4273
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
4274
+ return test2[n];
4275
+ });
4276
+ if (order2.join('') !== '0123456789') {
4277
+ return false;
4278
+ }
4279
+
4280
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4281
+ var test3 = {};
4282
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
4283
+ test3[letter] = letter;
4284
+ });
4285
+ if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
4286
+ return false;
4287
+ }
4288
+ return true;
4289
+ } catch (err) {
4290
+ // We don't expect any of the above to throw, but better to be safe.
4291
+ return false;
4292
+ }
4293
+ }
4294
+ objectAssign$4 = shouldUseNative() ? Object.assign : function (target, source) {
4295
+ var from;
4296
+ var to = toObject(target);
4297
+ var symbols;
4298
+ for (var s = 1; s < arguments.length; s++) {
4299
+ from = Object(arguments[s]);
4300
+ for (var key in from) {
4301
+ if (hasOwnProperty.call(from, key)) {
4302
+ to[key] = from[key];
4303
+ }
4304
+ }
4305
+ if (getOwnPropertySymbols) {
4306
+ symbols = getOwnPropertySymbols(from);
4307
+ for (var i = 0; i < symbols.length; i++) {
4308
+ if (propIsEnumerable.call(from, symbols[i])) {
4309
+ to[symbols[i]] = from[symbols[i]];
4310
+ }
4311
+ }
4312
+ }
4313
+ }
4314
+ return to;
4315
+ };
4316
+ return objectAssign$4;
4317
+ }
4318
+
4319
+ /**
4320
+ * Copyright (c) 2013-present, Facebook, Inc.
4321
+ *
4322
+ * This source code is licensed under the MIT license found in the
4323
+ * LICENSE file in the root directory of this source tree.
4324
+ */
4325
+
4326
+ var ReactPropTypesSecret_1$4;
4327
+ var hasRequiredReactPropTypesSecret$4;
4328
+ function requireReactPropTypesSecret$4() {
4329
+ if (hasRequiredReactPropTypesSecret$4) return ReactPropTypesSecret_1$4;
4330
+ hasRequiredReactPropTypesSecret$4 = 1;
4331
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
4332
+ ReactPropTypesSecret_1$4 = ReactPropTypesSecret;
4333
+ return ReactPropTypesSecret_1$4;
4334
+ }
4335
+ var has$4;
4336
+ var hasRequiredHas$4;
4337
+ function requireHas$4() {
4338
+ if (hasRequiredHas$4) return has$4;
4339
+ hasRequiredHas$4 = 1;
4340
+ has$4 = Function.call.bind(Object.prototype.hasOwnProperty);
4341
+ return has$4;
4342
+ }
4343
+
4344
+ /**
4345
+ * Copyright (c) 2013-present, Facebook, Inc.
4346
+ *
4347
+ * This source code is licensed under the MIT license found in the
4348
+ * LICENSE file in the root directory of this source tree.
4349
+ */
4350
+
4351
+ var checkPropTypes_1$4;
4352
+ var hasRequiredCheckPropTypes$4;
4353
+ function requireCheckPropTypes$4() {
4354
+ if (hasRequiredCheckPropTypes$4) return checkPropTypes_1$4;
4355
+ hasRequiredCheckPropTypes$4 = 1;
4356
+ var printWarning = function () {};
4357
+ if (process.env.NODE_ENV !== 'production') {
4358
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$4();
4359
+ var loggedTypeFailures = {};
4360
+ var has = /*@__PURE__*/requireHas$4();
4361
+ printWarning = function (text) {
4362
+ var message = 'Warning: ' + text;
4363
+ if (typeof console !== 'undefined') {
4364
+ console.error(message);
4365
+ }
4366
+ try {
4367
+ // --- Welcome to debugging React ---
4368
+ // This error was thrown as a convenience so that you can use this stack
4369
+ // to find the callsite that caused this warning to fire.
4370
+ throw new Error(message);
4371
+ } catch (x) {/**/}
4372
+ };
4373
+ }
4374
+
4375
+ /**
4376
+ * Assert that the values match with the type specs.
4377
+ * Error messages are memorized and will only be shown once.
4378
+ *
4379
+ * @param {object} typeSpecs Map of name to a ReactPropType
4380
+ * @param {object} values Runtime values that need to be type-checked
4381
+ * @param {string} location e.g. "prop", "context", "child context"
4382
+ * @param {string} componentName Name of the component for error messages.
4383
+ * @param {?Function} getStack Returns the component stack.
4384
+ * @private
4385
+ */
4386
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
4387
+ if (process.env.NODE_ENV !== 'production') {
4388
+ for (var typeSpecName in typeSpecs) {
4389
+ if (has(typeSpecs, typeSpecName)) {
4390
+ var error;
4391
+ // Prop type validation may throw. In case they do, we don't want to
4392
+ // fail the render phase where it didn't fail before. So we log it.
4393
+ // After these have been cleaned up, we'll let them throw.
4394
+ try {
4395
+ // This is intentionally an invariant that gets caught. It's the same
4396
+ // behavior as without this statement except with a better message.
4397
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
4398
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
4399
+ err.name = 'Invariant Violation';
4400
+ throw err;
4401
+ }
4402
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
4403
+ } catch (ex) {
4404
+ error = ex;
4405
+ }
4406
+ if (error && !(error instanceof Error)) {
4407
+ printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
4408
+ }
4409
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
4410
+ // Only monitor this failure once because there tends to be a lot of the
4411
+ // same error.
4412
+ loggedTypeFailures[error.message] = true;
4413
+ var stack = getStack ? getStack() : '';
4414
+ printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
4415
+ }
4416
+ }
4417
+ }
4418
+ }
4419
+ }
4420
+
4421
+ /**
4422
+ * Resets warning cache when testing.
4423
+ *
4424
+ * @private
4425
+ */
4426
+ checkPropTypes.resetWarningCache = function () {
4427
+ if (process.env.NODE_ENV !== 'production') {
4428
+ loggedTypeFailures = {};
4429
+ }
4430
+ };
4431
+ checkPropTypes_1$4 = checkPropTypes;
4432
+ return checkPropTypes_1$4;
4433
+ }
4434
+
4435
+ /**
4436
+ * Copyright (c) 2013-present, Facebook, Inc.
4437
+ *
4438
+ * This source code is licensed under the MIT license found in the
4439
+ * LICENSE file in the root directory of this source tree.
4440
+ */
4441
+
4442
+ var factoryWithTypeCheckers$4;
4443
+ var hasRequiredFactoryWithTypeCheckers$4;
4444
+ function requireFactoryWithTypeCheckers$4() {
4445
+ if (hasRequiredFactoryWithTypeCheckers$4) return factoryWithTypeCheckers$4;
4446
+ hasRequiredFactoryWithTypeCheckers$4 = 1;
4447
+ var ReactIs = requireReactIs$4();
4448
+ var assign = requireObjectAssign$4();
4449
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$4();
4450
+ var has = /*@__PURE__*/requireHas$4();
4451
+ var checkPropTypes = /*@__PURE__*/requireCheckPropTypes$4();
4452
+ var printWarning = function () {};
4453
+ if (process.env.NODE_ENV !== 'production') {
4454
+ printWarning = function (text) {
4455
+ var message = 'Warning: ' + text;
4456
+ if (typeof console !== 'undefined') {
4457
+ console.error(message);
4458
+ }
4459
+ try {
4460
+ // --- Welcome to debugging React ---
4461
+ // This error was thrown as a convenience so that you can use this stack
4462
+ // to find the callsite that caused this warning to fire.
4463
+ throw new Error(message);
4464
+ } catch (x) {}
4465
+ };
4466
+ }
4467
+ function emptyFunctionThatReturnsNull() {
4468
+ return null;
4469
+ }
4470
+ factoryWithTypeCheckers$4 = function (isValidElement, throwOnDirectAccess) {
4471
+ /* global Symbol */
4472
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
4473
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
4474
+
4475
+ /**
4476
+ * Returns the iterator method function contained on the iterable object.
4477
+ *
4478
+ * Be sure to invoke the function with the iterable as context:
4479
+ *
4480
+ * var iteratorFn = getIteratorFn(myIterable);
4481
+ * if (iteratorFn) {
4482
+ * var iterator = iteratorFn.call(myIterable);
4483
+ * ...
4484
+ * }
4485
+ *
4486
+ * @param {?object} maybeIterable
4487
+ * @return {?function}
4488
+ */
4489
+ function getIteratorFn(maybeIterable) {
4490
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
4491
+ if (typeof iteratorFn === 'function') {
4492
+ return iteratorFn;
4493
+ }
4494
+ }
4495
+
4496
+ /**
4497
+ * Collection of methods that allow declaration and validation of props that are
4498
+ * supplied to React components. Example usage:
4499
+ *
4500
+ * var Props = require('ReactPropTypes');
4501
+ * var MyArticle = React.createClass({
4502
+ * propTypes: {
4503
+ * // An optional string prop named "description".
4504
+ * description: Props.string,
4505
+ *
4506
+ * // A required enum prop named "category".
4507
+ * category: Props.oneOf(['News','Photos']).isRequired,
4508
+ *
4509
+ * // A prop named "dialog" that requires an instance of Dialog.
4510
+ * dialog: Props.instanceOf(Dialog).isRequired
4511
+ * },
4512
+ * render: function() { ... }
4513
+ * });
4514
+ *
4515
+ * A more formal specification of how these methods are used:
4516
+ *
4517
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
4518
+ * decl := ReactPropTypes.{type}(.isRequired)?
4519
+ *
4520
+ * Each and every declaration produces a function with the same signature. This
4521
+ * allows the creation of custom validation functions. For example:
4522
+ *
4523
+ * var MyLink = React.createClass({
4524
+ * propTypes: {
4525
+ * // An optional string or URI prop named "href".
4526
+ * href: function(props, propName, componentName) {
4527
+ * var propValue = props[propName];
4528
+ * if (propValue != null && typeof propValue !== 'string' &&
4529
+ * !(propValue instanceof URI)) {
4530
+ * return new Error(
4531
+ * 'Expected a string or an URI for ' + propName + ' in ' +
4532
+ * componentName
4533
+ * );
4534
+ * }
4535
+ * }
4536
+ * },
4537
+ * render: function() {...}
4538
+ * });
4539
+ *
4540
+ * @internal
4541
+ */
4542
+
4543
+ var ANONYMOUS = '<<anonymous>>';
4544
+
4545
+ // Important!
4546
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
4547
+ var ReactPropTypes = {
4548
+ array: createPrimitiveTypeChecker('array'),
4549
+ bigint: createPrimitiveTypeChecker('bigint'),
4550
+ bool: createPrimitiveTypeChecker('boolean'),
4551
+ func: createPrimitiveTypeChecker('function'),
4552
+ number: createPrimitiveTypeChecker('number'),
4553
+ object: createPrimitiveTypeChecker('object'),
4554
+ string: createPrimitiveTypeChecker('string'),
4555
+ symbol: createPrimitiveTypeChecker('symbol'),
4556
+ any: createAnyTypeChecker(),
4557
+ arrayOf: createArrayOfTypeChecker,
4558
+ element: createElementTypeChecker(),
4559
+ elementType: createElementTypeTypeChecker(),
4560
+ instanceOf: createInstanceTypeChecker,
4561
+ node: createNodeChecker(),
4562
+ objectOf: createObjectOfTypeChecker,
4563
+ oneOf: createEnumTypeChecker,
4564
+ oneOfType: createUnionTypeChecker,
4565
+ shape: createShapeTypeChecker,
4566
+ exact: createStrictShapeTypeChecker
4567
+ };
4568
+
4569
+ /**
4570
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
4571
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
4572
+ */
4573
+ /*eslint-disable no-self-compare*/
4574
+ function is(x, y) {
4575
+ // SameValue algorithm
4576
+ if (x === y) {
4577
+ // Steps 1-5, 7-10
4578
+ // Steps 6.b-6.e: +0 != -0
4579
+ return x !== 0 || 1 / x === 1 / y;
4580
+ } else {
4581
+ // Step 6.a: NaN == NaN
4582
+ return x !== x && y !== y;
4583
+ }
4584
+ }
4585
+ /*eslint-enable no-self-compare*/
4586
+
4587
+ /**
4588
+ * We use an Error-like object for backward compatibility as people may call
4589
+ * PropTypes directly and inspect their output. However, we don't use real
4590
+ * Errors anymore. We don't inspect their stack anyway, and creating them
4591
+ * is prohibitively expensive if they are created too often, such as what
4592
+ * happens in oneOfType() for any type before the one that matched.
4593
+ */
4594
+ function PropTypeError(message, data) {
4595
+ this.message = message;
4596
+ this.data = data && typeof data === 'object' ? data : {};
4597
+ this.stack = '';
4598
+ }
4599
+ // Make `instanceof Error` still work for returned errors.
4600
+ PropTypeError.prototype = Error.prototype;
4601
+ function createChainableTypeChecker(validate) {
4602
+ if (process.env.NODE_ENV !== 'production') {
4603
+ var manualPropTypeCallCache = {};
4604
+ var manualPropTypeWarningCount = 0;
4605
+ }
4606
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
4607
+ componentName = componentName || ANONYMOUS;
4608
+ propFullName = propFullName || propName;
4609
+ if (secret !== ReactPropTypesSecret) {
4610
+ if (throwOnDirectAccess) {
4611
+ // New behavior only for users of `prop-types` package
4612
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
4613
+ err.name = 'Invariant Violation';
4614
+ throw err;
4615
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
4616
+ // Old behavior for people using React.PropTypes
4617
+ var cacheKey = componentName + ':' + propName;
4618
+ if (!manualPropTypeCallCache[cacheKey] &&
4619
+ // Avoid spamming the console because they are often not actionable except for lib authors
4620
+ manualPropTypeWarningCount < 3) {
4621
+ printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
4622
+ manualPropTypeCallCache[cacheKey] = true;
4623
+ manualPropTypeWarningCount++;
4624
+ }
4625
+ }
4626
+ }
4627
+ if (props[propName] == null) {
4628
+ if (isRequired) {
4629
+ if (props[propName] === null) {
4630
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
4631
+ }
4632
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
4633
+ }
4634
+ return null;
4635
+ } else {
4636
+ return validate(props, propName, componentName, location, propFullName);
4637
+ }
4638
+ }
4639
+ var chainedCheckType = checkType.bind(null, false);
4640
+ chainedCheckType.isRequired = checkType.bind(null, true);
4641
+ return chainedCheckType;
4642
+ }
4643
+ function createPrimitiveTypeChecker(expectedType) {
4644
+ function validate(props, propName, componentName, location, propFullName, secret) {
4645
+ var propValue = props[propName];
4646
+ var propType = getPropType(propValue);
4647
+ if (propType !== expectedType) {
4648
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
4649
+ // check, but we can offer a more precise error message here rather than
4650
+ // 'of type `object`'.
4651
+ var preciseType = getPreciseType(propValue);
4652
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
4653
+ expectedType: expectedType
4654
+ });
4655
+ }
4656
+ return null;
4657
+ }
4658
+ return createChainableTypeChecker(validate);
4659
+ }
4660
+ function createAnyTypeChecker() {
4661
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
4662
+ }
4663
+ function createArrayOfTypeChecker(typeChecker) {
4664
+ function validate(props, propName, componentName, location, propFullName) {
4665
+ if (typeof typeChecker !== 'function') {
4666
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
4667
+ }
4668
+ var propValue = props[propName];
4669
+ if (!Array.isArray(propValue)) {
4670
+ var propType = getPropType(propValue);
4671
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
4672
+ }
4673
+ for (var i = 0; i < propValue.length; i++) {
4674
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
4675
+ if (error instanceof Error) {
4676
+ return error;
4677
+ }
4678
+ }
4679
+ return null;
4680
+ }
4681
+ return createChainableTypeChecker(validate);
4682
+ }
4683
+ function createElementTypeChecker() {
4684
+ function validate(props, propName, componentName, location, propFullName) {
4685
+ var propValue = props[propName];
4686
+ if (!isValidElement(propValue)) {
4687
+ var propType = getPropType(propValue);
4688
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
4689
+ }
4690
+ return null;
4691
+ }
4692
+ return createChainableTypeChecker(validate);
4693
+ }
4694
+ function createElementTypeTypeChecker() {
4695
+ function validate(props, propName, componentName, location, propFullName) {
4696
+ var propValue = props[propName];
4697
+ if (!ReactIs.isValidElementType(propValue)) {
4698
+ var propType = getPropType(propValue);
4699
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
4700
+ }
4701
+ return null;
4702
+ }
4703
+ return createChainableTypeChecker(validate);
4704
+ }
4705
+ function createInstanceTypeChecker(expectedClass) {
4706
+ function validate(props, propName, componentName, location, propFullName) {
4707
+ if (!(props[propName] instanceof expectedClass)) {
4708
+ var expectedClassName = expectedClass.name || ANONYMOUS;
4709
+ var actualClassName = getClassName(props[propName]);
4710
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
4711
+ }
4712
+ return null;
4713
+ }
4714
+ return createChainableTypeChecker(validate);
4715
+ }
4716
+ function createEnumTypeChecker(expectedValues) {
4717
+ if (!Array.isArray(expectedValues)) {
4718
+ if (process.env.NODE_ENV !== 'production') {
4719
+ if (arguments.length > 1) {
4720
+ printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
4721
+ } else {
4722
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
4723
+ }
4724
+ }
4725
+ return emptyFunctionThatReturnsNull;
4726
+ }
4727
+ function validate(props, propName, componentName, location, propFullName) {
4728
+ var propValue = props[propName];
4729
+ for (var i = 0; i < expectedValues.length; i++) {
4730
+ if (is(propValue, expectedValues[i])) {
4731
+ return null;
4732
+ }
4733
+ }
4734
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
4735
+ var type = getPreciseType(value);
4736
+ if (type === 'symbol') {
4737
+ return String(value);
4738
+ }
4739
+ return value;
4740
+ });
4741
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
4742
+ }
4743
+ return createChainableTypeChecker(validate);
4744
+ }
4745
+ function createObjectOfTypeChecker(typeChecker) {
4746
+ function validate(props, propName, componentName, location, propFullName) {
4747
+ if (typeof typeChecker !== 'function') {
4748
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
4749
+ }
4750
+ var propValue = props[propName];
4751
+ var propType = getPropType(propValue);
4752
+ if (propType !== 'object') {
4753
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
4754
+ }
4755
+ for (var key in propValue) {
4756
+ if (has(propValue, key)) {
4757
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4758
+ if (error instanceof Error) {
4759
+ return error;
4760
+ }
4761
+ }
4762
+ }
4763
+ return null;
4764
+ }
4765
+ return createChainableTypeChecker(validate);
4766
+ }
4767
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
4768
+ if (!Array.isArray(arrayOfTypeCheckers)) {
4769
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
4770
+ return emptyFunctionThatReturnsNull;
4771
+ }
4772
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4773
+ var checker = arrayOfTypeCheckers[i];
4774
+ if (typeof checker !== 'function') {
4775
+ printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
4776
+ return emptyFunctionThatReturnsNull;
4777
+ }
4778
+ }
4779
+ function validate(props, propName, componentName, location, propFullName) {
4780
+ var expectedTypes = [];
4781
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4782
+ var checker = arrayOfTypeCheckers[i];
4783
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
4784
+ if (checkerResult == null) {
4785
+ return null;
4786
+ }
4787
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
4788
+ expectedTypes.push(checkerResult.data.expectedType);
4789
+ }
4790
+ }
4791
+ var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
4792
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
4793
+ }
4794
+ return createChainableTypeChecker(validate);
4795
+ }
4796
+ function createNodeChecker() {
4797
+ function validate(props, propName, componentName, location, propFullName) {
4798
+ if (!isNode(props[propName])) {
4799
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
4800
+ }
4801
+ return null;
4802
+ }
4803
+ return createChainableTypeChecker(validate);
4804
+ }
4805
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
4806
+ return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
4807
+ }
4808
+ function createShapeTypeChecker(shapeTypes) {
4809
+ function validate(props, propName, componentName, location, propFullName) {
4810
+ var propValue = props[propName];
4811
+ var propType = getPropType(propValue);
4812
+ if (propType !== 'object') {
4813
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4814
+ }
4815
+ for (var key in shapeTypes) {
4816
+ var checker = shapeTypes[key];
4817
+ if (typeof checker !== 'function') {
4818
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4819
+ }
4820
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4821
+ if (error) {
4822
+ return error;
4823
+ }
4824
+ }
4825
+ return null;
4826
+ }
4827
+ return createChainableTypeChecker(validate);
4828
+ }
4829
+ function createStrictShapeTypeChecker(shapeTypes) {
4830
+ function validate(props, propName, componentName, location, propFullName) {
4831
+ var propValue = props[propName];
4832
+ var propType = getPropType(propValue);
4833
+ if (propType !== 'object') {
4834
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4835
+ }
4836
+ // We need to check all keys in case some are required but missing from props.
4837
+ var allKeys = assign({}, props[propName], shapeTypes);
4838
+ for (var key in allKeys) {
4839
+ var checker = shapeTypes[key];
4840
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
4841
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4842
+ }
4843
+ if (!checker) {
4844
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
4845
+ }
4846
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4847
+ if (error) {
4848
+ return error;
4849
+ }
4850
+ }
4851
+ return null;
4852
+ }
4853
+ return createChainableTypeChecker(validate);
4854
+ }
4855
+ function isNode(propValue) {
4856
+ switch (typeof propValue) {
4857
+ case 'number':
4858
+ case 'string':
4859
+ case 'undefined':
4860
+ return true;
4861
+ case 'boolean':
4862
+ return !propValue;
4863
+ case 'object':
4864
+ if (Array.isArray(propValue)) {
4865
+ return propValue.every(isNode);
4866
+ }
4867
+ if (propValue === null || isValidElement(propValue)) {
4868
+ return true;
4869
+ }
4870
+ var iteratorFn = getIteratorFn(propValue);
4871
+ if (iteratorFn) {
4872
+ var iterator = iteratorFn.call(propValue);
4873
+ var step;
4874
+ if (iteratorFn !== propValue.entries) {
4875
+ while (!(step = iterator.next()).done) {
4876
+ if (!isNode(step.value)) {
4877
+ return false;
4878
+ }
4879
+ }
4880
+ } else {
4881
+ // Iterator will provide entry [k,v] tuples rather than values.
4882
+ while (!(step = iterator.next()).done) {
4883
+ var entry = step.value;
4884
+ if (entry) {
4885
+ if (!isNode(entry[1])) {
4886
+ return false;
4887
+ }
4888
+ }
4889
+ }
4890
+ }
4891
+ } else {
4892
+ return false;
4893
+ }
4894
+ return true;
4895
+ default:
4896
+ return false;
4897
+ }
4898
+ }
4899
+ function isSymbol(propType, propValue) {
4900
+ // Native Symbol.
4901
+ if (propType === 'symbol') {
4902
+ return true;
4903
+ }
4904
+
4905
+ // falsy value can't be a Symbol
4906
+ if (!propValue) {
4907
+ return false;
4908
+ }
4909
+
4910
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
4911
+ if (propValue['@@toStringTag'] === 'Symbol') {
4912
+ return true;
4913
+ }
4914
+
4915
+ // Fallback for non-spec compliant Symbols which are polyfilled.
4916
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
4917
+ return true;
4918
+ }
4919
+ return false;
4920
+ }
4921
+
4922
+ // Equivalent of `typeof` but with special handling for array and regexp.
4923
+ function getPropType(propValue) {
4924
+ var propType = typeof propValue;
4925
+ if (Array.isArray(propValue)) {
4926
+ return 'array';
4927
+ }
4928
+ if (propValue instanceof RegExp) {
4929
+ // Old webkits (at least until Android 4.0) return 'function' rather than
4930
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
4931
+ // passes PropTypes.object.
4932
+ return 'object';
4933
+ }
4934
+ if (isSymbol(propType, propValue)) {
4935
+ return 'symbol';
4936
+ }
4937
+ return propType;
4938
+ }
4939
+
4940
+ // This handles more types than `getPropType`. Only used for error messages.
4941
+ // See `createPrimitiveTypeChecker`.
4942
+ function getPreciseType(propValue) {
4943
+ if (typeof propValue === 'undefined' || propValue === null) {
4944
+ return '' + propValue;
4945
+ }
4946
+ var propType = getPropType(propValue);
4947
+ if (propType === 'object') {
4948
+ if (propValue instanceof Date) {
4949
+ return 'date';
4950
+ } else if (propValue instanceof RegExp) {
4951
+ return 'regexp';
4952
+ }
4953
+ }
4954
+ return propType;
4955
+ }
4956
+
4957
+ // Returns a string that is postfixed to a warning about an invalid type.
4958
+ // For example, "undefined" or "of type array"
4959
+ function getPostfixForTypeWarning(value) {
4960
+ var type = getPreciseType(value);
4961
+ switch (type) {
4962
+ case 'array':
4963
+ case 'object':
4964
+ return 'an ' + type;
4965
+ case 'boolean':
4966
+ case 'date':
4967
+ case 'regexp':
4968
+ return 'a ' + type;
4969
+ default:
4970
+ return type;
4971
+ }
4972
+ }
4973
+
4974
+ // Returns class name of the object, if any.
4975
+ function getClassName(propValue) {
4976
+ if (!propValue.constructor || !propValue.constructor.name) {
4977
+ return ANONYMOUS;
4978
+ }
4979
+ return propValue.constructor.name;
4980
+ }
4981
+ ReactPropTypes.checkPropTypes = checkPropTypes;
4982
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
4983
+ ReactPropTypes.PropTypes = ReactPropTypes;
4984
+ return ReactPropTypes;
4985
+ };
4986
+ return factoryWithTypeCheckers$4;
4987
+ }
4988
+
4989
+ /**
4990
+ * Copyright (c) 2013-present, Facebook, Inc.
4991
+ *
4992
+ * This source code is licensed under the MIT license found in the
4993
+ * LICENSE file in the root directory of this source tree.
4994
+ */
4995
+
4996
+ var factoryWithThrowingShims$4;
4997
+ var hasRequiredFactoryWithThrowingShims$4;
4998
+ function requireFactoryWithThrowingShims$4() {
4999
+ if (hasRequiredFactoryWithThrowingShims$4) return factoryWithThrowingShims$4;
5000
+ hasRequiredFactoryWithThrowingShims$4 = 1;
5001
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$4();
5002
+ function emptyFunction() {}
5003
+ function emptyFunctionWithReset() {}
5004
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
5005
+ factoryWithThrowingShims$4 = function () {
5006
+ function shim(props, propName, componentName, location, propFullName, secret) {
5007
+ if (secret === ReactPropTypesSecret) {
5008
+ // It is still safe when called from React.
5009
+ return;
5010
+ }
5011
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
5012
+ err.name = 'Invariant Violation';
5013
+ throw err;
5014
+ }
5015
+ shim.isRequired = shim;
5016
+ function getShim() {
5017
+ return shim;
5018
+ } // Important!
5019
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
5020
+ var ReactPropTypes = {
5021
+ array: shim,
5022
+ bigint: shim,
5023
+ bool: shim,
5024
+ func: shim,
5025
+ number: shim,
5026
+ object: shim,
5027
+ string: shim,
5028
+ symbol: shim,
5029
+ any: shim,
5030
+ arrayOf: getShim,
5031
+ element: shim,
5032
+ elementType: shim,
5033
+ instanceOf: getShim,
5034
+ node: shim,
5035
+ objectOf: getShim,
5036
+ oneOf: getShim,
5037
+ oneOfType: getShim,
5038
+ shape: getShim,
5039
+ exact: getShim,
5040
+ checkPropTypes: emptyFunctionWithReset,
5041
+ resetWarningCache: emptyFunction
5042
+ };
5043
+ ReactPropTypes.PropTypes = ReactPropTypes;
5044
+ return ReactPropTypes;
5045
+ };
5046
+ return factoryWithThrowingShims$4;
5047
+ }
5048
+
5049
+ /**
5050
+ * Copyright (c) 2013-present, Facebook, Inc.
5051
+ *
5052
+ * This source code is licensed under the MIT license found in the
5053
+ * LICENSE file in the root directory of this source tree.
5054
+ */
5055
+
5056
+ var hasRequiredPropTypes$4;
5057
+ function requirePropTypes$4() {
5058
+ if (hasRequiredPropTypes$4) return propTypes$4.exports;
5059
+ hasRequiredPropTypes$4 = 1;
5060
+ if (process.env.NODE_ENV !== 'production') {
5061
+ var ReactIs = requireReactIs$4();
5062
+
5063
+ // By explicitly using `prop-types` you are opting into new development behavior.
5064
+ // http://fb.me/prop-types-in-prod
5065
+ var throwOnDirectAccess = true;
5066
+ propTypes$4.exports = /*@__PURE__*/requireFactoryWithTypeCheckers$4()(ReactIs.isElement, throwOnDirectAccess);
5067
+ } else {
5068
+ // By explicitly using `prop-types` you are opting into new production behavior.
5069
+ // http://fb.me/prop-types-in-prod
5070
+ propTypes$4.exports = /*@__PURE__*/requireFactoryWithThrowingShims$4()();
5071
+ }
5072
+ return propTypes$4.exports;
5073
+ }
5074
+ var propTypesExports$4 = /*@__PURE__*/requirePropTypes$4();
5075
+ var PropTypes$4 = /*@__PURE__*/getDefaultExportFromCjs$4(propTypesExports$4);
5076
+ ({
5077
+ onPowerOff: PropTypes$4.func,
5078
+ onRestart: PropTypes$4.func,
5079
+ powerOffLabel: PropTypes$4.string,
5080
+ restartLabel: PropTypes$4.string,
5081
+ iconClassName: PropTypes$4.string,
5082
+ confirmTitle: PropTypes$4.string,
5083
+ cancelText: PropTypes$4.string,
5084
+ okText: PropTypes$4.string,
5085
+ run: PropTypes$4.func
5086
+ });
5087
+ ({
5088
+ logoUrl: PropTypes$4.string,
5089
+ logoWidth: PropTypes$4.number,
5090
+ logoAlt: PropTypes$4.string,
5091
+ onClick: PropTypes$4.func
5092
+ });
5093
+
5094
+ // PropTypes 类型检查
5095
+ ({
5096
+ menuElement: PropTypes$4.node,
5097
+ productInfo: PropTypes$4.shape({
5098
+ productName: PropTypes$4.string,
5099
+ version: PropTypes$4.string
5100
+ }),
5101
+ showLogo: PropTypes$4.bool,
5102
+ showProductInfo: PropTypes$4.bool,
5103
+ showHardwareUsage: PropTypes$4.bool,
5104
+ showSystemOperations: PropTypes$4.bool,
5105
+ onPowerOff: PropTypes$4.func,
5106
+ onRestart: PropTypes$4.func,
5107
+ onRun: PropTypes$4.func,
5108
+ hardwareMonitorUrl: PropTypes$4.string,
5109
+ getSocketUrl: PropTypes$4.func,
5110
+ logoProps: PropTypes$4.object,
5111
+ className: PropTypes$4.string,
5112
+ style: PropTypes$4.object
5113
+ });
3884
5114
  function getDefaultExportFromCjs$3(x) {
3885
5115
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3886
5116
  }
@@ -8728,7 +9958,7 @@ const NmosModal = _ref => {
8728
9958
  const values = await form.getFieldsValue();
8729
9959
  setLoading(true);
8730
9960
  try {
8731
- const response = await updateNmosSettings(_objectSpread2(_objectSpread2({}, nmosSettings), values));
9961
+ const response = await updateNmosSettings(_objectSpread2$1(_objectSpread2$1({}, nmosSettings), values));
8732
9962
  if (response) {
8733
9963
  message.success('Success');
8734
9964
  setTimeout(() => {
@@ -8741,7 +9971,7 @@ const NmosModal = _ref => {
8741
9971
  setLoading(false);
8742
9972
  }
8743
9973
  };
8744
- return /*#__PURE__*/jsx(StyledModal$3, _objectSpread2(_objectSpread2({
9974
+ return /*#__PURE__*/jsx(StyledModal$1, _objectSpread2$1(_objectSpread2$1({
8745
9975
  title: "NMOS",
8746
9976
  width: 650,
8747
9977
  open: open,
@@ -8750,7 +9980,7 @@ const NmosModal = _ref => {
8750
9980
  confirmLoading: loading,
8751
9981
  destroyOnClose: true // 关闭时销毁组件,确保下次打开重新初始化
8752
9982
  }, modalProps), {}, {
8753
- children: /*#__PURE__*/jsxs(Form, _objectSpread2(_objectSpread2({
9983
+ children: /*#__PURE__*/jsxs(Form, _objectSpread2$1(_objectSpread2$1({
8754
9984
  form: form,
8755
9985
  name: "nmosForm",
8756
9986
  labelCol: {
@@ -8786,7 +10016,7 @@ const NmosModal = _ref => {
8786
10016
  }), /*#__PURE__*/jsx(Form.Item, {
8787
10017
  label: "Registry Port",
8788
10018
  name: "registration_port",
8789
- children: /*#__PURE__*/jsx(InputNumber, _objectSpread2(_objectSpread2({}, numberProps), {}, {
10019
+ children: /*#__PURE__*/jsx(InputNumber, _objectSpread2$1(_objectSpread2$1({}, numberProps), {}, {
8790
10020
  min: 0,
8791
10021
  max: 65535,
8792
10022
  style: {
@@ -8815,7 +10045,7 @@ const NmosModal = _ref => {
8815
10045
  }), /*#__PURE__*/jsx(Form.Item, {
8816
10046
  label: "Logging Level",
8817
10047
  name: "logging_level",
8818
- children: /*#__PURE__*/jsx(InputNumber, _objectSpread2(_objectSpread2({}, numberProps), {}, {
10048
+ children: /*#__PURE__*/jsx(InputNumber, _objectSpread2$1(_objectSpread2$1({}, numberProps), {}, {
8819
10049
  min: -40,
8820
10050
  max: 40,
8821
10051
  style: {
@@ -8923,7 +10153,7 @@ function DraggableNumberInput(_ref2) {
8923
10153
  // 新增 disabled 属性
8924
10154
  style
8925
10155
  } = _ref2,
8926
- restProps = _objectWithoutProperties(_ref2, _excluded);
10156
+ restProps = _objectWithoutProperties$1(_ref2, _excluded);
8927
10157
  const inputRef = useRef(null);
8928
10158
  const [isMouseDown, setIsMouseDown] = useState(false);
8929
10159
  const [isDragging, setIsDragging] = useState(false);
@@ -9032,7 +10262,7 @@ function DraggableNumberInput(_ref2) {
9032
10262
  applyMovement(totalMovement.current, e);
9033
10263
  }, [isMouseDown, disabled]);
9034
10264
  const getModifiers = useCallback(e => {
9035
- const mods = _objectSpread2(_objectSpread2({}, defaultModifiers), modifierKeys);
10265
+ const mods = _objectSpread2$1(_objectSpread2$1({}, defaultModifiers), modifierKeys);
9036
10266
  for (const key in mods) {
9037
10267
  if (key !== "default" && e[key]) {
9038
10268
  currentMultiplier.current = mods[key].multiplier;
@@ -9148,7 +10378,7 @@ function DraggableNumberInput(_ref2) {
9148
10378
  background: 'rgba(255, 255, 255, 0.08)',
9149
10379
  color: 'rgba(255, 255, 255, 0.25)'
9150
10380
  } : {};
9151
- return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("input", _objectSpread2({
10381
+ return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("input", _objectSpread2$1({
9152
10382
  ref: inputRef,
9153
10383
  type: "text",
9154
10384
  inputMode: "numeric",
@@ -9162,7 +10392,7 @@ function DraggableNumberInput(_ref2) {
9162
10392
  disabled: disabled,
9163
10393
  // 添加 disabled 属性
9164
10394
  className: "draggable-number-input ".concat(className, " ").concat(isDragging ? "dragging" : "", " ").concat(disabled ? "disabled" : ""),
9165
- style: _objectSpread2(_objectSpread2(_objectSpread2({}, {
10395
+ style: _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, {
9166
10396
  cursor: disabled ? 'not-allowed' : 'ew-resize',
9167
10397
  userSelect: disabled ? 'none' : 'auto',
9168
10398
  caretColor: isDragging ? "transparent" : "initial"
@@ -9172,5 +10402,5 @@ function DraggableNumberInput(_ref2) {
9172
10402
  }));
9173
10403
  }
9174
10404
 
9175
- export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PresetModal, PtpModal$1 as PtpModal, StyledModal$1 as StyledModal, SystemOperations$1 as SystemOperations, UpgradeManager$1 as UpgradeManager, useAuth, useHardwareUsage$1 as useHardwareUsage, usePageReload$1 as usePageReload, useSystemOperations$1 as useSystemOperations, useUpgrade$1 as useUpgrade };
10405
+ export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PresetModal, PtpModal$1 as PtpModal, StyledModal$3 as StyledModal, SystemOperations$1 as SystemOperations, UpgradeManager$1 as UpgradeManager, useAuth, useHardwareUsage$1 as useHardwareUsage, usePageReload$1 as usePageReload, useSystemOperations$1 as useSystemOperations, useUpgrade$1 as useUpgrade };
9176
10406
  //# sourceMappingURL=index.esm.js.map