@easyv/biz-components 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/lib/components/ai-components/ai-message-render/ai-message-render.es.js +1 -0
  2. package/dist/lib/components/ai-components/ai-message-render/ai-message-render.es.js.map +1 -1
  3. package/dist/lib/components/ai-components/mobile-voice-input/icon-button.es.js +3 -2
  4. package/dist/lib/components/ai-components/mobile-voice-input/icon-button.es.js.map +1 -1
  5. package/dist/lib/components/ai-components/mobile-voice-input/mobile-voice-input.es.js +11 -8
  6. package/dist/lib/components/ai-components/mobile-voice-input/mobile-voice-input.es.js.map +1 -1
  7. package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid/test/easyv-react-grid.cy.d.ts +1 -0
  8. package/dist/lib/easyv-biz-components/src/components/voice-animation/test/voice-animation.cy.d.ts +1 -0
  9. package/dist/lib/easyv-biz-components/src/index.d.ts +4 -0
  10. package/dist/lib/easyv-biz-components/src/utils/show-modal/test/show-modal.cy.d.ts +1 -0
  11. package/dist/lib/hooks/use-tencent-sentence-recognition/use-tencent-sentence-recognition.es.js +3 -2
  12. package/dist/lib/hooks/use-tencent-sentence-recognition/use-tencent-sentence-recognition.es.js.map +1 -1
  13. package/dist/lib/index.d.ts +1 -4
  14. package/dist/lib/packages/easyv-arco/dist/lib/chunks/button-Dip6wfc7.es.es.js +29 -0
  15. package/dist/lib/packages/easyv-arco/dist/lib/chunks/button-Dip6wfc7.es.es.js.map +1 -0
  16. package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-EAFzPBke.es.es.js +720 -0
  17. package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-EAFzPBke.es.es.js.map +1 -0
  18. package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-zvVd1BJp.es.es.js +3508 -0
  19. package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-zvVd1BJp.es.es.js.map +1 -0
  20. package/dist/lib/packages/easyv-arco/dist/lib/chunks/input-Dhdn9e9Z.es.es.js +1276 -0
  21. package/dist/lib/packages/easyv-arco/dist/lib/chunks/input-Dhdn9e9Z.es.es.js.map +1 -0
  22. package/dist/lib/packages/easyv-arco/dist/lib/chunks/keycode-DOHuQiUY.es.es.js +77 -0
  23. package/dist/lib/packages/easyv-arco/dist/lib/chunks/keycode-DOHuQiUY.es.es.js.map +1 -0
  24. package/dist/lib/packages/easyv-arco/dist/lib/index.es.es.js +2 -0
  25. package/dist/lib/packages/easyv-arco/dist/lib/index.es.es.js.map +1 -0
  26. package/dist/lib/stats.html +1 -1
  27. package/dist/lib/utils/show-modal/show-modal.es.js +5 -5
  28. package/dist/lib/utils/show-modal/show-modal.es.js.map +1 -1
  29. package/dist/tailwindcss.pkg.css +0 -4
  30. package/package.json +3 -2
  31. package/dist/lib/components/ai-components/ai-message-render/test/ai-message-render.cy.d.ts +0 -1
  32. package/dist/lib/components/ai-components/ai-message-render/test/ai-message-table.cy.d.ts +0 -1
  33. package/dist/lib/utils/show-modal/test/show-modal.cy.d.ts +0 -1
  34. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/ai-message-render.d.ts +0 -0
  35. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/constants.d.ts +0 -0
  36. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/image-preview.d.ts +0 -0
  37. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/index.d.ts +0 -0
  38. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/render-utils.d.ts +0 -0
  39. /package/dist/lib/{components/easyv-monaco-editor/test/easyv-monaco-editor.cy.d.ts → easyv-biz-components/src/components/ai-components/ai-message-render/test/ai-message-render.cy.d.ts} +0 -0
  40. /package/dist/lib/{components/easyv-reactgrid/test/easyv-react-grid.cy.d.ts → easyv-biz-components/src/components/ai-components/ai-message-render/test/ai-message-table.cy.d.ts} +0 -0
  41. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/types.d.ts +0 -0
  42. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/utils.d.ts +0 -0
  43. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/mobile-voice-input/icon-button.d.ts +0 -0
  44. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/mobile-voice-input/index.d.ts +0 -0
  45. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/mobile-voice-input/mobile-voice-input.d.ts +0 -0
  46. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/ai-model-select-panel.d.ts +0 -0
  47. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/iconBtn.d.ts +0 -0
  48. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/index.d.ts +0 -0
  49. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/test/ai-model-select-panel.cy.d.ts +0 -0
  50. /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/types.d.ts +0 -0
  51. /package/dist/lib/{components → easyv-biz-components/src/components}/circle-loading/circle-loading.d.ts +0 -0
  52. /package/dist/lib/{components → easyv-biz-components/src/components}/circle-loading/index.d.ts +0 -0
  53. /package/dist/lib/{components → easyv-biz-components/src/components}/circle-loading/test/circle-loading.cy.d.ts +0 -0
  54. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/code-mirror-editor.d.ts +0 -0
  55. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/constants.d.ts +0 -0
  56. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/format-utils.d.ts +0 -0
  57. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/index.d.ts +0 -0
  58. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/test/CodeEditor.cy.d.ts +0 -0
  59. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/theme.d.ts +0 -0
  60. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/types.d.ts +0 -0
  61. /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/utils.d.ts +0 -0
  62. /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-monaco-editor/easyv-monaco-editor.d.ts +0 -0
  63. /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-monaco-editor/index.d.ts +0 -0
  64. /package/dist/lib/{components/voice-animation/test/voice-animation.cy.d.ts → easyv-biz-components/src/components/easyv-monaco-editor/test/easyv-monaco-editor.cy.d.ts} +0 -0
  65. /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-monaco-editor/types.d.ts +0 -0
  66. /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/constants.d.ts +0 -0
  67. /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/easyv-react-grid.d.ts +0 -0
  68. /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/index.d.ts +0 -0
  69. /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/utils.d.ts +0 -0
  70. /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/constants.d.ts +0 -0
  71. /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/echarts-render.d.ts +0 -0
  72. /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/index.d.ts +0 -0
  73. /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/test/echarts.cy.d.ts +0 -0
  74. /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/types.d.ts +0 -0
  75. /package/dist/lib/{components → easyv-biz-components/src/components}/error-boundary/error-boundary.d.ts +0 -0
  76. /package/dist/lib/{components → easyv-biz-components/src/components}/error-boundary/index.d.ts +0 -0
  77. /package/dist/lib/{components → easyv-biz-components/src/components}/index.d.ts +0 -0
  78. /package/dist/lib/{components → easyv-biz-components/src/components}/scroll-controller/index.d.ts +0 -0
  79. /package/dist/lib/{components → easyv-biz-components/src/components}/scroll-controller/scroll-controller.d.ts +0 -0
  80. /package/dist/lib/{components → easyv-biz-components/src/components}/shadow-dom/index.d.ts +0 -0
  81. /package/dist/lib/{components → easyv-biz-components/src/components}/shadow-dom/shadow-dom.d.ts +0 -0
  82. /package/dist/lib/{components → easyv-biz-components/src/components}/voice-animation/index.d.ts +0 -0
  83. /package/dist/lib/{components → easyv-biz-components/src/components}/voice-animation/voice-animation.d.ts +0 -0
  84. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/index.d.ts +0 -0
  85. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/constants.d.ts +0 -0
  86. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/index.d.ts +0 -0
  87. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/types.d.ts +0 -0
  88. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/use-ai-agent-message.d.ts +0 -0
  89. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/utils.d.ts +0 -0
  90. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-div-auto-scroll.d.ts +0 -0
  91. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-document-unmount/index.d.ts +0 -0
  92. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-document-unmount/use-document-unmount.d.ts +0 -0
  93. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-initialized.d.ts +0 -0
  94. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/constant.d.ts +0 -0
  95. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/index.d.ts +0 -0
  96. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/types.d.ts +0 -0
  97. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/use-socket-events.d.ts +0 -0
  98. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-tencent-sentence-recognition/index.d.ts +0 -0
  99. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-tencent-sentence-recognition/use-tencent-sentence-recognition.d.ts +0 -0
  100. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-watch-value/playground.cy.d.ts +0 -0
  101. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-watch-value/use-watch-value.cy.d.ts +0 -0
  102. /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-watch-value/use-watch-value.d.ts +0 -0
  103. /package/dist/lib/{types → easyv-biz-components/src/types}/ai-agent.d.ts +0 -0
  104. /package/dist/lib/{types → easyv-biz-components/src/types}/common.d.ts +0 -0
  105. /package/dist/lib/{types → easyv-biz-components/src/types}/index.d.ts +0 -0
  106. /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/ai-agent-message-manager.d.ts +0 -0
  107. /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/constants.d.ts +0 -0
  108. /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/index.d.ts +0 -0
  109. /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/types.d.ts +0 -0
  110. /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/utils.d.ts +0 -0
  111. /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/common.d.ts +0 -0
  112. /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/index.d.ts +0 -0
  113. /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/url.d.ts +0 -0
  114. /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/voice-helper-utils.d.ts +0 -0
  115. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/common.d.ts +0 -0
  116. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/component-dimension.d.ts +0 -0
  117. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/constants.d.ts +0 -0
  118. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/easyv-gui-helper.d.ts +0 -0
  119. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/index.d.ts +0 -0
  120. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/get-config-value.cy.d.ts +0 -0
  121. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/get-new-config-from-value.cy.d.ts +0 -0
  122. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/test-data.d.ts +0 -0
  123. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/update-gui-config-list.cy.d.ts +0 -0
  124. /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/types.d.ts +0 -0
  125. /package/dist/lib/{utils → easyv-biz-components/src/utils}/fetch-knowledge/fetch-knowledge.d.ts +0 -0
  126. /package/dist/lib/{utils → easyv-biz-components/src/utils}/fetch-knowledge/index.d.ts +0 -0
  127. /package/dist/lib/{utils → easyv-biz-components/src/utils}/fun-ASR/fun-ASR-manager.d.ts +0 -0
  128. /package/dist/lib/{utils → easyv-biz-components/src/utils}/fun-ASR/index.d.ts +0 -0
  129. /package/dist/lib/{utils → easyv-biz-components/src/utils}/index.d.ts +0 -0
  130. /package/dist/lib/{utils → easyv-biz-components/src/utils}/show-modal/index.d.ts +0 -0
  131. /package/dist/lib/{utils → easyv-biz-components/src/utils}/show-modal/show-modal.d.ts +0 -0
  132. /package/dist/lib/{utils → easyv-biz-components/src/utils}/voice-record-manager/index.d.ts +0 -0
  133. /package/dist/lib/{utils → easyv-biz-components/src/utils}/voice-record-manager/voice-record-manager.d.ts +0 -0
  134. /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/audio-manager/audio-manager.d.ts +0 -0
  135. /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/audio-manager/test/audio-manager.cy.d.ts +0 -0
  136. /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/audio-manager/types.d.ts +0 -0
  137. /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/index.d.ts +0 -0
  138. /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/test/voskBrowserManager.cy.d.ts +0 -0
  139. /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/vosk-browser-manager.d.ts +0 -0
  140. /package/dist/lib/{utils → easyv-biz-components/src/utils}/wait-something/index.d.ts +0 -0
  141. /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/XF-stream-voice-manager.d.ts +0 -0
  142. /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/index.d.ts +0 -0
  143. /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/recorder-manager/RecorderManager-draft.d.ts +0 -0
  144. /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/recorder-manager/index.d.ts +0 -0
  145. /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/test/RecorderManager.cy.d.ts +0 -0
  146. /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/test/XunFeiVoiceManager.cy.d.ts +0 -0
  147. /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/types.d.ts +0 -0
@@ -0,0 +1,3508 @@
1
+ import React__default, { useRef, useMemo, cloneElement, isValidElement, createContext, createRef, Component, Children, useEffect, useContext, memo, forwardRef, useState, useImperativeHandle } from "react";
2
+ import re__default, { createPortal } from "react-dom";
3
+ var Or = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
4
+ function Xr(e) {
5
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
+ }
7
+ function fe() {
8
+ return fe = Object.assign ? Object.assign.bind() : function(e) {
9
+ for (var n = 1; n < arguments.length; n++) {
10
+ var r = arguments[n];
11
+ for (var t in r) ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
12
+ }
13
+ return e;
14
+ }, fe.apply(null, arguments);
15
+ }
16
+ function Re(e) {
17
+ "@babel/helpers - typeof";
18
+ return Re = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
19
+ return typeof n;
20
+ } : function(n) {
21
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
22
+ }, Re(e);
23
+ }
24
+ function Kr(e, n) {
25
+ if (Re(e) != "object" || !e) return e;
26
+ var r = e[Symbol.toPrimitive];
27
+ if (r !== void 0) {
28
+ var t = r.call(e, n);
29
+ if (Re(t) != "object") return t;
30
+ throw new TypeError("@@toPrimitive must return a primitive value.");
31
+ }
32
+ return (n === "string" ? String : Number)(e);
33
+ }
34
+ function Qr(e) {
35
+ var n = Kr(e, "string");
36
+ return Re(n) == "symbol" ? n : n + "";
37
+ }
38
+ function Ee(e, n, r) {
39
+ return (n = Qr(n)) in e ? Object.defineProperty(e, n, {
40
+ value: r,
41
+ enumerable: true,
42
+ configurable: true,
43
+ writable: true
44
+ }) : e[n] = r, e;
45
+ }
46
+ var ie = createContext({
47
+ prefixCls: "arco"
48
+ });
49
+ function It(e, n) {
50
+ var r = Object.keys(e);
51
+ if (Object.getOwnPropertySymbols) {
52
+ var t = Object.getOwnPropertySymbols(e);
53
+ n && (t = t.filter(function(o) {
54
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
55
+ })), r.push.apply(r, t);
56
+ }
57
+ return r;
58
+ }
59
+ function At(e) {
60
+ for (var n = 1; n < arguments.length; n++) {
61
+ var r = arguments[n] != null ? arguments[n] : {};
62
+ n % 2 ? It(Object(r), true).forEach(function(t) {
63
+ Ee(e, t, r[t]);
64
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : It(Object(r)).forEach(function(t) {
65
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
66
+ });
67
+ }
68
+ return e;
69
+ }
70
+ function en(e, n) {
71
+ var r = useContext(ie), t = r.prefixCls, o = t === void 0 ? "arco" : t, a = e.spin, i = e.className, s = At(At({
72
+ "aria-hidden": true,
73
+ focusable: false,
74
+ ref: n
75
+ }, e), {}, {
76
+ className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-check-circle-fill")
77
+ });
78
+ return a && (s.className = "".concat(s.className, " ").concat(o, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ React__default.createElement("svg", fe({
79
+ fill: "none",
80
+ stroke: "currentColor",
81
+ strokeWidth: "4",
82
+ viewBox: "0 0 48 48"
83
+ }, s), /* @__PURE__ */ React__default.createElement("path", {
84
+ fill: "currentColor",
85
+ fillRule: "evenodd",
86
+ stroke: "none",
87
+ d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",
88
+ clipRule: "evenodd"
89
+ }));
90
+ }
91
+ var Ct = /* @__PURE__ */ React__default.forwardRef(en);
92
+ Ct.defaultProps = {
93
+ isIcon: true
94
+ };
95
+ Ct.displayName = "IconCheckCircleFill";
96
+ function Lt(e, n) {
97
+ var r = Object.keys(e);
98
+ if (Object.getOwnPropertySymbols) {
99
+ var t = Object.getOwnPropertySymbols(e);
100
+ n && (t = t.filter(function(o) {
101
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
102
+ })), r.push.apply(r, t);
103
+ }
104
+ return r;
105
+ }
106
+ function kt(e) {
107
+ for (var n = 1; n < arguments.length; n++) {
108
+ var r = arguments[n] != null ? arguments[n] : {};
109
+ n % 2 ? Lt(Object(r), true).forEach(function(t) {
110
+ Ee(e, t, r[t]);
111
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Lt(Object(r)).forEach(function(t) {
112
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
113
+ });
114
+ }
115
+ return e;
116
+ }
117
+ function tn(e, n) {
118
+ var r = useContext(ie), t = r.prefixCls, o = t === void 0 ? "arco" : t, a = e.spin, i = e.className, s = kt(kt({
119
+ "aria-hidden": true,
120
+ focusable: false,
121
+ ref: n
122
+ }, e), {}, {
123
+ className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-close-circle-fill")
124
+ });
125
+ return a && (s.className = "".concat(s.className, " ").concat(o, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ React__default.createElement("svg", fe({
126
+ fill: "none",
127
+ stroke: "currentColor",
128
+ strokeWidth: "4",
129
+ viewBox: "0 0 48 48"
130
+ }, s), /* @__PURE__ */ React__default.createElement("path", {
131
+ fill: "currentColor",
132
+ fillRule: "evenodd",
133
+ stroke: "none",
134
+ d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",
135
+ clipRule: "evenodd"
136
+ }));
137
+ }
138
+ var Ot = /* @__PURE__ */ React__default.forwardRef(tn);
139
+ Ot.defaultProps = {
140
+ isIcon: true
141
+ };
142
+ Ot.displayName = "IconCloseCircleFill";
143
+ function Yt(e, n) {
144
+ var r = Object.keys(e);
145
+ if (Object.getOwnPropertySymbols) {
146
+ var t = Object.getOwnPropertySymbols(e);
147
+ n && (t = t.filter(function(o) {
148
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
149
+ })), r.push.apply(r, t);
150
+ }
151
+ return r;
152
+ }
153
+ function Ft(e) {
154
+ for (var n = 1; n < arguments.length; n++) {
155
+ var r = arguments[n] != null ? arguments[n] : {};
156
+ n % 2 ? Yt(Object(r), true).forEach(function(t) {
157
+ Ee(e, t, r[t]);
158
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Yt(Object(r)).forEach(function(t) {
159
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
160
+ });
161
+ }
162
+ return e;
163
+ }
164
+ function rn(e, n) {
165
+ var r = useContext(ie), t = r.prefixCls, o = t === void 0 ? "arco" : t, a = e.spin, i = e.className, s = Ft(Ft({
166
+ "aria-hidden": true,
167
+ focusable: false,
168
+ ref: n
169
+ }, e), {}, {
170
+ className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-info-circle-fill")
171
+ });
172
+ return a && (s.className = "".concat(s.className, " ").concat(o, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ React__default.createElement("svg", fe({
173
+ fill: "none",
174
+ stroke: "currentColor",
175
+ strokeWidth: "4",
176
+ viewBox: "0 0 48 48"
177
+ }, s), /* @__PURE__ */ React__default.createElement("path", {
178
+ fill: "currentColor",
179
+ fillRule: "evenodd",
180
+ stroke: "none",
181
+ d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",
182
+ clipRule: "evenodd"
183
+ }));
184
+ }
185
+ var xt = /* @__PURE__ */ React__default.forwardRef(rn);
186
+ xt.defaultProps = {
187
+ isIcon: true
188
+ };
189
+ xt.displayName = "IconInfoCircleFill";
190
+ function Wt(e, n) {
191
+ var r = Object.keys(e);
192
+ if (Object.getOwnPropertySymbols) {
193
+ var t = Object.getOwnPropertySymbols(e);
194
+ n && (t = t.filter(function(o) {
195
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
196
+ })), r.push.apply(r, t);
197
+ }
198
+ return r;
199
+ }
200
+ function qt(e) {
201
+ for (var n = 1; n < arguments.length; n++) {
202
+ var r = arguments[n] != null ? arguments[n] : {};
203
+ n % 2 ? Wt(Object(r), true).forEach(function(t) {
204
+ Ee(e, t, r[t]);
205
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wt(Object(r)).forEach(function(t) {
206
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
207
+ });
208
+ }
209
+ return e;
210
+ }
211
+ function nn(e, n) {
212
+ var r = useContext(ie), t = r.prefixCls, o = t === void 0 ? "arco" : t, a = e.spin, i = e.className, s = qt(qt({
213
+ "aria-hidden": true,
214
+ focusable: false,
215
+ ref: n
216
+ }, e), {}, {
217
+ className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-exclamation-circle-fill")
218
+ });
219
+ return a && (s.className = "".concat(s.className, " ").concat(o, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ React__default.createElement("svg", fe({
220
+ fill: "none",
221
+ stroke: "currentColor",
222
+ strokeWidth: "4",
223
+ viewBox: "0 0 48 48"
224
+ }, s), /* @__PURE__ */ React__default.createElement("path", {
225
+ fill: "currentColor",
226
+ fillRule: "evenodd",
227
+ stroke: "none",
228
+ d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",
229
+ clipRule: "evenodd"
230
+ }));
231
+ }
232
+ var St = /* @__PURE__ */ React__default.forwardRef(nn);
233
+ St.defaultProps = {
234
+ isIcon: true
235
+ };
236
+ St.displayName = "IconExclamationCircleFill";
237
+ function Ht(e, n) {
238
+ var r = Object.keys(e);
239
+ if (Object.getOwnPropertySymbols) {
240
+ var t = Object.getOwnPropertySymbols(e);
241
+ n && (t = t.filter(function(o) {
242
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
243
+ })), r.push.apply(r, t);
244
+ }
245
+ return r;
246
+ }
247
+ function zt(e) {
248
+ for (var n = 1; n < arguments.length; n++) {
249
+ var r = arguments[n] != null ? arguments[n] : {};
250
+ n % 2 ? Ht(Object(r), true).forEach(function(t) {
251
+ Ee(e, t, r[t]);
252
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ht(Object(r)).forEach(function(t) {
253
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
254
+ });
255
+ }
256
+ return e;
257
+ }
258
+ function on(e, n) {
259
+ var r = useContext(ie), t = r.prefixCls, o = t === void 0 ? "arco" : t, a = e.spin, i = e.className, s = zt(zt({
260
+ "aria-hidden": true,
261
+ focusable: false,
262
+ ref: n
263
+ }, e), {}, {
264
+ className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-close")
265
+ });
266
+ return a && (s.className = "".concat(s.className, " ").concat(o, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ React__default.createElement("svg", fe({
267
+ fill: "none",
268
+ stroke: "currentColor",
269
+ strokeWidth: "4",
270
+ viewBox: "0 0 48 48"
271
+ }, s), /* @__PURE__ */ React__default.createElement("path", {
272
+ d: "M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"
273
+ }));
274
+ }
275
+ var We = /* @__PURE__ */ React__default.forwardRef(on);
276
+ We.defaultProps = {
277
+ isIcon: true
278
+ };
279
+ We.displayName = "IconClose";
280
+ var ct = { exports: {} }, z = {};
281
+ /**
282
+ * @license React
283
+ * react-is.production.min.js
284
+ *
285
+ * Copyright (c) Facebook, Inc. and its affiliates.
286
+ *
287
+ * This source code is licensed under the MIT license found in the
288
+ * LICENSE file in the root directory of this source tree.
289
+ */
290
+ var Ut;
291
+ function an() {
292
+ if (Ut) return z;
293
+ Ut = 1;
294
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), M;
295
+ M = Symbol.for("react.module.reference");
296
+ function O(v) {
297
+ if (typeof v == "object" && v !== null) {
298
+ var R = v.$$typeof;
299
+ switch (R) {
300
+ case e:
301
+ switch (v = v.type, v) {
302
+ case r:
303
+ case o:
304
+ case t:
305
+ case u:
306
+ case l:
307
+ return v;
308
+ default:
309
+ switch (v = v && v.$$typeof, v) {
310
+ case s:
311
+ case i:
312
+ case c:
313
+ case p:
314
+ case d:
315
+ case a:
316
+ return v;
317
+ default:
318
+ return R;
319
+ }
320
+ }
321
+ case n:
322
+ return R;
323
+ }
324
+ }
325
+ }
326
+ return z.ContextConsumer = i, z.ContextProvider = a, z.Element = e, z.ForwardRef = c, z.Fragment = r, z.Lazy = p, z.Memo = d, z.Portal = n, z.Profiler = o, z.StrictMode = t, z.Suspense = u, z.SuspenseList = l, z.isAsyncMode = function() {
327
+ return false;
328
+ }, z.isConcurrentMode = function() {
329
+ return false;
330
+ }, z.isContextConsumer = function(v) {
331
+ return O(v) === i;
332
+ }, z.isContextProvider = function(v) {
333
+ return O(v) === a;
334
+ }, z.isElement = function(v) {
335
+ return typeof v == "object" && v !== null && v.$$typeof === e;
336
+ }, z.isForwardRef = function(v) {
337
+ return O(v) === c;
338
+ }, z.isFragment = function(v) {
339
+ return O(v) === r;
340
+ }, z.isLazy = function(v) {
341
+ return O(v) === p;
342
+ }, z.isMemo = function(v) {
343
+ return O(v) === d;
344
+ }, z.isPortal = function(v) {
345
+ return O(v) === n;
346
+ }, z.isProfiler = function(v) {
347
+ return O(v) === o;
348
+ }, z.isStrictMode = function(v) {
349
+ return O(v) === t;
350
+ }, z.isSuspense = function(v) {
351
+ return O(v) === u;
352
+ }, z.isSuspenseList = function(v) {
353
+ return O(v) === l;
354
+ }, z.isValidElementType = function(v) {
355
+ return typeof v == "string" || typeof v == "function" || v === r || v === o || v === t || v === u || v === l || v === b || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === d || v.$$typeof === a || v.$$typeof === i || v.$$typeof === c || v.$$typeof === M || v.getModuleId !== void 0);
356
+ }, z.typeOf = O, z;
357
+ }
358
+ var U = {};
359
+ /**
360
+ * @license React
361
+ * react-is.development.js
362
+ *
363
+ * Copyright (c) Facebook, Inc. and its affiliates.
364
+ *
365
+ * This source code is licensed under the MIT license found in the
366
+ * LICENSE file in the root directory of this source tree.
367
+ */
368
+ var Vt;
369
+ function sn() {
370
+ return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
371
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), M = false, O = false, v = false, R = false, H = false, D;
372
+ D = Symbol.for("react.module.reference");
373
+ function q(P) {
374
+ return !!(typeof P == "string" || typeof P == "function" || P === r || P === o || H || P === t || P === u || P === l || R || P === b || M || O || v || typeof P == "object" && P !== null && (P.$$typeof === p || P.$$typeof === d || P.$$typeof === a || P.$$typeof === i || P.$$typeof === c || // This needs to include all possible module reference object
375
+ // types supported by any Flight configuration anywhere since
376
+ // we don't know which Flight build this will end up being used
377
+ // with.
378
+ P.$$typeof === D || P.getModuleId !== void 0));
379
+ }
380
+ function m(P) {
381
+ if (typeof P == "object" && P !== null) {
382
+ var Ce = P.$$typeof;
383
+ switch (Ce) {
384
+ case e:
385
+ var Ae = P.type;
386
+ switch (Ae) {
387
+ case r:
388
+ case o:
389
+ case t:
390
+ case u:
391
+ case l:
392
+ return Ae;
393
+ default:
394
+ var Dt = Ae && Ae.$$typeof;
395
+ switch (Dt) {
396
+ case s:
397
+ case i:
398
+ case c:
399
+ case p:
400
+ case d:
401
+ case a:
402
+ return Dt;
403
+ default:
404
+ return Ce;
405
+ }
406
+ }
407
+ case n:
408
+ return Ce;
409
+ }
410
+ }
411
+ }
412
+ var B = i, ne = a, ue = e, oe = c, J = r, W = p, ae = d, le = n, $ = o, C = t, g = u, x = l, _ = false, I = false;
413
+ function f(P) {
414
+ return _ || (_ = true, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), false;
415
+ }
416
+ function y(P) {
417
+ return I || (I = true, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), false;
418
+ }
419
+ function S(P) {
420
+ return m(P) === i;
421
+ }
422
+ function T(P) {
423
+ return m(P) === a;
424
+ }
425
+ function w(P) {
426
+ return typeof P == "object" && P !== null && P.$$typeof === e;
427
+ }
428
+ function A(P) {
429
+ return m(P) === c;
430
+ }
431
+ function L(P) {
432
+ return m(P) === r;
433
+ }
434
+ function k(P) {
435
+ return m(P) === p;
436
+ }
437
+ function Y(P) {
438
+ return m(P) === d;
439
+ }
440
+ function F(P) {
441
+ return m(P) === n;
442
+ }
443
+ function j(P) {
444
+ return m(P) === o;
445
+ }
446
+ function Z(P) {
447
+ return m(P) === t;
448
+ }
449
+ function E(P) {
450
+ return m(P) === u;
451
+ }
452
+ function X(P) {
453
+ return m(P) === l;
454
+ }
455
+ U.ContextConsumer = B, U.ContextProvider = ne, U.Element = ue, U.ForwardRef = oe, U.Fragment = J, U.Lazy = W, U.Memo = ae, U.Portal = le, U.Profiler = $, U.StrictMode = C, U.Suspense = g, U.SuspenseList = x, U.isAsyncMode = f, U.isConcurrentMode = y, U.isContextConsumer = S, U.isContextProvider = T, U.isElement = w, U.isForwardRef = A, U.isFragment = L, U.isLazy = k, U.isMemo = Y, U.isPortal = F, U.isProfiler = j, U.isStrictMode = Z, U.isSuspense = E, U.isSuspenseList = X, U.isValidElementType = q, U.typeOf = m;
456
+ }()), U;
457
+ }
458
+ process.env.NODE_ENV === "production" ? ct.exports = an() : ct.exports = sn();
459
+ var cn = ct.exports, Je, Xe, Ge = Object.prototype.toString;
460
+ function un(e) {
461
+ return Ge.call(e) === "[object Array]";
462
+ }
463
+ function wt(e) {
464
+ return Ge.call(e) === "[object Object]";
465
+ }
466
+ function xr(e) {
467
+ return Ge.call(e) === "[object String]";
468
+ }
469
+ function Se(e) {
470
+ return Ge.call(e) === "[object Number]" && e === e;
471
+ }
472
+ function be(e) {
473
+ return e === void 0;
474
+ }
475
+ function Sr(e) {
476
+ return typeof e == "function";
477
+ }
478
+ var wr = function(e) {
479
+ return e && isValidElement(e) && typeof e.type == "function";
480
+ }, fn = function(e) {
481
+ var n;
482
+ return wr(e) && !!(!((n = e.type.prototype) === null || n === void 0) && n.isReactComponent);
483
+ }, ln = function(e) {
484
+ return isValidElement(e) && typeof e.type == "string";
485
+ }, Tr = Number((Je = re__default.version) === null || Je === void 0 ? void 0 : Je.split(".")[0]) > 17, dn = Number((Xe = re__default.version) === null || Xe === void 0 ? void 0 : Xe.split(".")[0]) > 18, pn = function(e) {
486
+ if (!dn)
487
+ return cn.isForwardRef(e);
488
+ var n = Symbol.for("react.element"), r = Symbol.for("react.transitional.element"), t = Symbol.for("react.forward_ref");
489
+ if (typeof e == "object" && e !== null) {
490
+ var o = e.$$typeof;
491
+ if (o === n || o === r) {
492
+ var a = e.type, i = a && a.$$typeof;
493
+ return i === t;
494
+ }
495
+ }
496
+ return false;
497
+ }, vn = function(e) {
498
+ return ln(e) || pn(e) ? true : wr(e) ? fn(e) : false;
499
+ };
500
+ function Pr(e, n) {
501
+ for (var r = [], t = 2; t < arguments.length; t++)
502
+ r[t - 2] = arguments[t];
503
+ if (process.env.NODE_ENV !== "production" && console && e)
504
+ return console.error("[@arco-design/web-react]: " + n, r ? { detail: r } : void 0);
505
+ }
506
+ var mn = function(e, n) {
507
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
508
+ if (!r) return e;
509
+ var t = r.call(e), o, a = [], i;
510
+ try {
511
+ for (; (n === void 0 || n-- > 0) && !(o = t.next()).done; ) a.push(o.value);
512
+ } catch (s) {
513
+ i = { error: s };
514
+ } finally {
515
+ try {
516
+ o && !o.done && (r = t.return) && r.call(t);
517
+ } finally {
518
+ if (i) throw i.error;
519
+ }
520
+ }
521
+ return a;
522
+ }, yn = function(e, n, r) {
523
+ if (arguments.length === 2) for (var t = 0, o = n.length, a; t < o; t++)
524
+ (a || !(t in n)) && (a || (a = Array.prototype.slice.call(n, 0, t)), a[t] = n[t]);
525
+ return e.concat(a || Array.prototype.slice.call(n));
526
+ };
527
+ function De() {
528
+ for (var e = [], n = 0; n < arguments.length; n++)
529
+ e[n] = arguments[n];
530
+ for (var r = e.length, t = [], o = function(i) {
531
+ var s = e[i];
532
+ if (!s)
533
+ return "continue";
534
+ xr(s) ? t.push(s) : un(s) ? t = t.concat(s) : wt(s) ? Object.keys(s).forEach(function(c) {
535
+ s[c] && t.push(c);
536
+ }) : Pr(true, "arguments must be one of string/array/object.");
537
+ }, a = 0; a < r; a++)
538
+ o(a);
539
+ return yn([], mn(new Set(t)), false).join(" ");
540
+ }
541
+ function hn(e) {
542
+ var n = [], r = e.substr(1);
543
+ return e.length === 3 && (r = e.replace(/(.)/g, "$1$1")), r.replace(/../g, function(t) {
544
+ n.push(parseInt(t, 16));
545
+ }), {
546
+ r: n[0],
547
+ g: n[1],
548
+ b: n[2],
549
+ rgb: "rgb(" + n.join(",") + ")"
550
+ };
551
+ }
552
+ function gn(e) {
553
+ var n = hn(e);
554
+ return { r: n.r, g: n.g, b: n.b };
555
+ }
556
+ function bn(e) {
557
+ var n = gn(e), r = En(n.r, n.g, n.b);
558
+ return { h: r.h, s: r.s, l: r.l };
559
+ }
560
+ function En(e, n, r) {
561
+ var t = e / 255, o = n / 255, a = r / 255, i = Math.max(t, o, a), s = Math.min(t, o, a), c = (i + s) / 2, u, l;
562
+ if (i === s)
563
+ u = 0, l = 0;
564
+ else {
565
+ var d = i - s;
566
+ switch (l = c > 0.5 ? d / (2 - i - s) : d / (i + s), i) {
567
+ case t:
568
+ u = (o - a) / d + (o < a ? 6 : 0);
569
+ break;
570
+ case o:
571
+ u = (a - t) / d + 2;
572
+ break;
573
+ case a:
574
+ u = (t - o) / d + 4;
575
+ break;
576
+ }
577
+ u /= 6;
578
+ }
579
+ return {
580
+ h: u,
581
+ s: l,
582
+ l: c,
583
+ hsl: "hsl(" + u * 360 + ", " + l * 100 + "%, " + c * 100 + "%)"
584
+ };
585
+ }
586
+ function Ke(e, n) {
587
+ var r = bn(e), t = +r.h, o = +r.s, a = +r.l * 100 + +n, i = _n([t * 360, o * 100, a]);
588
+ return i.join(",");
589
+ }
590
+ function _n(e) {
591
+ var n = e[0] / 360, r = e[1] / 100, t = e[2] / 100, o, a, i;
592
+ if (r === 0)
593
+ return i = t * 255, [i, i, i];
594
+ t < 0.5 ? o = t * (1 + r) : o = t + r - t * r;
595
+ for (var s = 2 * t - o, c = [0, 0, 0], u = 0; u < 3; u++)
596
+ a = n + 1 / 3 * -(u - 1), a < 0 && a++, a > 1 && a--, 6 * a < 1 ? i = s + (o - s) * 6 * a : 2 * a < 1 ? i = o : 3 * a < 2 ? i = s + (o - s) * (2 / 3 - a) * 6 : i = s, c[u] = i * 255;
597
+ return c;
598
+ }
599
+ function Me() {
600
+ return Me = Object.assign ? Object.assign.bind() : function(e) {
601
+ for (var n = 1; n < arguments.length; n++) {
602
+ var r = arguments[n];
603
+ for (var t in r) ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
604
+ }
605
+ return e;
606
+ }, Me.apply(null, arguments);
607
+ }
608
+ function Tt(e, n) {
609
+ if (e == null) return {};
610
+ var r = {};
611
+ for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
612
+ if (n.indexOf(t) !== -1) continue;
613
+ r[t] = e[t];
614
+ }
615
+ return r;
616
+ }
617
+ function ut(e, n) {
618
+ return ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, t) {
619
+ return r.__proto__ = t, r;
620
+ }, ut(e, n);
621
+ }
622
+ function Pt(e, n) {
623
+ e.prototype = Object.create(n.prototype), e.prototype.constructor = e, ut(e, n);
624
+ }
625
+ var ft = { exports: {} }, Le = { exports: {} }, V = {};
626
+ /** @license React v16.13.1
627
+ * react-is.production.min.js
628
+ *
629
+ * Copyright (c) Facebook, Inc. and its affiliates.
630
+ *
631
+ * This source code is licensed under the MIT license found in the
632
+ * LICENSE file in the root directory of this source tree.
633
+ */
634
+ var Gt;
635
+ function Cn() {
636
+ if (Gt) return V;
637
+ Gt = 1;
638
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
639
+ function D(m) {
640
+ if (typeof m == "object" && m !== null) {
641
+ var B = m.$$typeof;
642
+ switch (B) {
643
+ case n:
644
+ switch (m = m.type, m) {
645
+ case c:
646
+ case u:
647
+ case t:
648
+ case a:
649
+ case o:
650
+ case d:
651
+ return m;
652
+ default:
653
+ switch (m = m && m.$$typeof, m) {
654
+ case s:
655
+ case l:
656
+ case M:
657
+ case b:
658
+ case i:
659
+ return m;
660
+ default:
661
+ return B;
662
+ }
663
+ }
664
+ case r:
665
+ return B;
666
+ }
667
+ }
668
+ }
669
+ function q(m) {
670
+ return D(m) === u;
671
+ }
672
+ return V.AsyncMode = c, V.ConcurrentMode = u, V.ContextConsumer = s, V.ContextProvider = i, V.Element = n, V.ForwardRef = l, V.Fragment = t, V.Lazy = M, V.Memo = b, V.Portal = r, V.Profiler = a, V.StrictMode = o, V.Suspense = d, V.isAsyncMode = function(m) {
673
+ return q(m) || D(m) === c;
674
+ }, V.isConcurrentMode = q, V.isContextConsumer = function(m) {
675
+ return D(m) === s;
676
+ }, V.isContextProvider = function(m) {
677
+ return D(m) === i;
678
+ }, V.isElement = function(m) {
679
+ return typeof m == "object" && m !== null && m.$$typeof === n;
680
+ }, V.isForwardRef = function(m) {
681
+ return D(m) === l;
682
+ }, V.isFragment = function(m) {
683
+ return D(m) === t;
684
+ }, V.isLazy = function(m) {
685
+ return D(m) === M;
686
+ }, V.isMemo = function(m) {
687
+ return D(m) === b;
688
+ }, V.isPortal = function(m) {
689
+ return D(m) === r;
690
+ }, V.isProfiler = function(m) {
691
+ return D(m) === a;
692
+ }, V.isStrictMode = function(m) {
693
+ return D(m) === o;
694
+ }, V.isSuspense = function(m) {
695
+ return D(m) === d;
696
+ }, V.isValidElementType = function(m) {
697
+ return typeof m == "string" || typeof m == "function" || m === t || m === u || m === a || m === o || m === d || m === p || typeof m == "object" && m !== null && (m.$$typeof === M || m.$$typeof === b || m.$$typeof === i || m.$$typeof === s || m.$$typeof === l || m.$$typeof === v || m.$$typeof === R || m.$$typeof === H || m.$$typeof === O);
698
+ }, V.typeOf = D, V;
699
+ }
700
+ var G = {};
701
+ /** @license React v16.13.1
702
+ * react-is.development.js
703
+ *
704
+ * Copyright (c) Facebook, Inc. and its affiliates.
705
+ *
706
+ * This source code is licensed under the MIT license found in the
707
+ * LICENSE file in the root directory of this source tree.
708
+ */
709
+ var Bt;
710
+ function On() {
711
+ return Bt || (Bt = 1, process.env.NODE_ENV !== "production" && function() {
712
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
713
+ function D(E) {
714
+ return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
715
+ E === t || E === u || E === a || E === o || E === d || E === p || typeof E == "object" && E !== null && (E.$$typeof === M || E.$$typeof === b || E.$$typeof === i || E.$$typeof === s || E.$$typeof === l || E.$$typeof === v || E.$$typeof === R || E.$$typeof === H || E.$$typeof === O);
716
+ }
717
+ function q(E) {
718
+ if (typeof E == "object" && E !== null) {
719
+ var X = E.$$typeof;
720
+ switch (X) {
721
+ case n:
722
+ var P = E.type;
723
+ switch (P) {
724
+ case c:
725
+ case u:
726
+ case t:
727
+ case a:
728
+ case o:
729
+ case d:
730
+ return P;
731
+ default:
732
+ var Ce = P && P.$$typeof;
733
+ switch (Ce) {
734
+ case s:
735
+ case l:
736
+ case M:
737
+ case b:
738
+ case i:
739
+ return Ce;
740
+ default:
741
+ return X;
742
+ }
743
+ }
744
+ case r:
745
+ return X;
746
+ }
747
+ }
748
+ }
749
+ var m = c, B = u, ne = s, ue = i, oe = n, J = l, W = t, ae = M, le = b, $ = r, C = a, g = o, x = d, _ = false;
750
+ function I(E) {
751
+ return _ || (_ = true, 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.")), f(E) || q(E) === c;
752
+ }
753
+ function f(E) {
754
+ return q(E) === u;
755
+ }
756
+ function y(E) {
757
+ return q(E) === s;
758
+ }
759
+ function S(E) {
760
+ return q(E) === i;
761
+ }
762
+ function T(E) {
763
+ return typeof E == "object" && E !== null && E.$$typeof === n;
764
+ }
765
+ function w(E) {
766
+ return q(E) === l;
767
+ }
768
+ function A(E) {
769
+ return q(E) === t;
770
+ }
771
+ function L(E) {
772
+ return q(E) === M;
773
+ }
774
+ function k(E) {
775
+ return q(E) === b;
776
+ }
777
+ function Y(E) {
778
+ return q(E) === r;
779
+ }
780
+ function F(E) {
781
+ return q(E) === a;
782
+ }
783
+ function j(E) {
784
+ return q(E) === o;
785
+ }
786
+ function Z(E) {
787
+ return q(E) === d;
788
+ }
789
+ G.AsyncMode = m, G.ConcurrentMode = B, G.ContextConsumer = ne, G.ContextProvider = ue, G.Element = oe, G.ForwardRef = J, G.Fragment = W, G.Lazy = ae, G.Memo = le, G.Portal = $, G.Profiler = C, G.StrictMode = g, G.Suspense = x, G.isAsyncMode = I, G.isConcurrentMode = f, G.isContextConsumer = y, G.isContextProvider = S, G.isElement = T, G.isForwardRef = w, G.isFragment = A, G.isLazy = L, G.isMemo = k, G.isPortal = Y, G.isProfiler = F, G.isStrictMode = j, G.isSuspense = Z, G.isValidElementType = D, G.typeOf = q;
790
+ }()), G;
791
+ }
792
+ var Zt;
793
+ function $r() {
794
+ return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? Le.exports = Cn() : Le.exports = On()), Le.exports;
795
+ }
796
+ /*
797
+ object-assign
798
+ (c) Sindre Sorhus
799
+ @license MIT
800
+ */
801
+ var Qe, Jt;
802
+ function xn() {
803
+ if (Jt) return Qe;
804
+ Jt = 1;
805
+ var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
806
+ function t(a) {
807
+ if (a == null)
808
+ throw new TypeError("Object.assign cannot be called with null or undefined");
809
+ return Object(a);
810
+ }
811
+ function o() {
812
+ try {
813
+ if (!Object.assign)
814
+ return false;
815
+ var a = new String("abc");
816
+ if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
817
+ return false;
818
+ for (var i = {}, s = 0; s < 10; s++)
819
+ i["_" + String.fromCharCode(s)] = s;
820
+ var c = Object.getOwnPropertyNames(i).map(function(l) {
821
+ return i[l];
822
+ });
823
+ if (c.join("") !== "0123456789")
824
+ return false;
825
+ var u = {};
826
+ return "abcdefghijklmnopqrst".split("").forEach(function(l) {
827
+ u[l] = l;
828
+ }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
829
+ } catch (l) {
830
+ return false;
831
+ }
832
+ }
833
+ return Qe = o() ? Object.assign : function(a, i) {
834
+ for (var s, c = t(a), u, l = 1; l < arguments.length; l++) {
835
+ s = Object(arguments[l]);
836
+ for (var d in s)
837
+ n.call(s, d) && (c[d] = s[d]);
838
+ if (e) {
839
+ u = e(s);
840
+ for (var p = 0; p < u.length; p++)
841
+ r.call(s, u[p]) && (c[u[p]] = s[u[p]]);
842
+ }
843
+ }
844
+ return c;
845
+ }, Qe;
846
+ }
847
+ var et, Xt;
848
+ function $t() {
849
+ if (Xt) return et;
850
+ Xt = 1;
851
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
852
+ return et = e, et;
853
+ }
854
+ var tt, Kt;
855
+ function Rr() {
856
+ return Kt || (Kt = 1, tt = Function.call.bind(Object.prototype.hasOwnProperty)), tt;
857
+ }
858
+ var rt, Qt;
859
+ function Sn() {
860
+ if (Qt) return rt;
861
+ Qt = 1;
862
+ var e = function() {
863
+ };
864
+ if (process.env.NODE_ENV !== "production") {
865
+ var n = $t(), r = {}, t = Rr();
866
+ e = function(a) {
867
+ var i = "Warning: " + a;
868
+ typeof console != "undefined" && console.error(i);
869
+ try {
870
+ throw new Error(i);
871
+ } catch (s) {
872
+ }
873
+ };
874
+ }
875
+ function o(a, i, s, c, u) {
876
+ if (process.env.NODE_ENV !== "production") {
877
+ for (var l in a)
878
+ if (t(a, l)) {
879
+ var d;
880
+ try {
881
+ if (typeof a[l] != "function") {
882
+ var p = Error(
883
+ (c || "React class") + ": " + s + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
884
+ );
885
+ throw p.name = "Invariant Violation", p;
886
+ }
887
+ d = a[l](i, l, c, s, null, n);
888
+ } catch (M) {
889
+ d = M;
890
+ }
891
+ if (d && !(d instanceof Error) && e(
892
+ (c || "React class") + ": type specification of " + s + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
893
+ ), d instanceof Error && !(d.message in r)) {
894
+ r[d.message] = true;
895
+ var b = u ? u() : "";
896
+ e(
897
+ "Failed " + s + " type: " + d.message + (b != null ? b : "")
898
+ );
899
+ }
900
+ }
901
+ }
902
+ }
903
+ return o.resetWarningCache = function() {
904
+ process.env.NODE_ENV !== "production" && (r = {});
905
+ }, rt = o, rt;
906
+ }
907
+ var nt, er;
908
+ function wn() {
909
+ if (er) return nt;
910
+ er = 1;
911
+ var e = $r(), n = xn(), r = $t(), t = Rr(), o = Sn(), a = function() {
912
+ };
913
+ process.env.NODE_ENV !== "production" && (a = function(s) {
914
+ var c = "Warning: " + s;
915
+ typeof console != "undefined" && console.error(c);
916
+ try {
917
+ throw new Error(c);
918
+ } catch (u) {
919
+ }
920
+ });
921
+ function i() {
922
+ return null;
923
+ }
924
+ return nt = function(s, c) {
925
+ var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
926
+ function d(f) {
927
+ var y = f && (u && f[u] || f[l]);
928
+ if (typeof y == "function")
929
+ return y;
930
+ }
931
+ var p = "<<anonymous>>", b = {
932
+ array: R("array"),
933
+ bigint: R("bigint"),
934
+ bool: R("boolean"),
935
+ func: R("function"),
936
+ number: R("number"),
937
+ object: R("object"),
938
+ string: R("string"),
939
+ symbol: R("symbol"),
940
+ any: H(),
941
+ arrayOf: D,
942
+ element: q(),
943
+ elementType: m(),
944
+ instanceOf: B,
945
+ node: J(),
946
+ objectOf: ue,
947
+ oneOf: ne,
948
+ oneOfType: oe,
949
+ shape: ae,
950
+ exact: le
951
+ };
952
+ function M(f, y) {
953
+ return f === y ? f !== 0 || 1 / f === 1 / y : f !== f && y !== y;
954
+ }
955
+ function O(f, y) {
956
+ this.message = f, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
957
+ }
958
+ O.prototype = Error.prototype;
959
+ function v(f) {
960
+ if (process.env.NODE_ENV !== "production")
961
+ var y = {}, S = 0;
962
+ function T(A, L, k, Y, F, j, Z) {
963
+ if (Y = Y || p, j = j || k, Z !== r) {
964
+ if (c) {
965
+ var E = new Error(
966
+ "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"
967
+ );
968
+ throw E.name = "Invariant Violation", E;
969
+ } else if (process.env.NODE_ENV !== "production" && typeof console != "undefined") {
970
+ var X = Y + ":" + k;
971
+ !y[X] && // Avoid spamming the console because they are often not actionable except for lib authors
972
+ S < 3 && (a(
973
+ "You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" + Y + "`. 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."
974
+ ), y[X] = true, S++);
975
+ }
976
+ }
977
+ return L[k] == null ? A ? L[k] === null ? new O("The " + F + " `" + j + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new O("The " + F + " `" + j + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : f(L, k, Y, F, j);
978
+ }
979
+ var w = T.bind(null, false);
980
+ return w.isRequired = T.bind(null, true), w;
981
+ }
982
+ function R(f) {
983
+ function y(S, T, w, A, L, k) {
984
+ var Y = S[T], F = g(Y);
985
+ if (F !== f) {
986
+ var j = x(Y);
987
+ return new O(
988
+ "Invalid " + A + " `" + L + "` of type " + ("`" + j + "` supplied to `" + w + "`, expected ") + ("`" + f + "`."),
989
+ { expectedType: f }
990
+ );
991
+ }
992
+ return null;
993
+ }
994
+ return v(y);
995
+ }
996
+ function H() {
997
+ return v(i);
998
+ }
999
+ function D(f) {
1000
+ function y(S, T, w, A, L) {
1001
+ if (typeof f != "function")
1002
+ return new O("Property `" + L + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
1003
+ var k = S[T];
1004
+ if (!Array.isArray(k)) {
1005
+ var Y = g(k);
1006
+ return new O("Invalid " + A + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + w + "`, expected an array."));
1007
+ }
1008
+ for (var F = 0; F < k.length; F++) {
1009
+ var j = f(k, F, w, A, L + "[" + F + "]", r);
1010
+ if (j instanceof Error)
1011
+ return j;
1012
+ }
1013
+ return null;
1014
+ }
1015
+ return v(y);
1016
+ }
1017
+ function q() {
1018
+ function f(y, S, T, w, A) {
1019
+ var L = y[S];
1020
+ if (!s(L)) {
1021
+ var k = g(L);
1022
+ return new O("Invalid " + w + " `" + A + "` of type " + ("`" + k + "` supplied to `" + T + "`, expected a single ReactElement."));
1023
+ }
1024
+ return null;
1025
+ }
1026
+ return v(f);
1027
+ }
1028
+ function m() {
1029
+ function f(y, S, T, w, A) {
1030
+ var L = y[S];
1031
+ if (!e.isValidElementType(L)) {
1032
+ var k = g(L);
1033
+ return new O("Invalid " + w + " `" + A + "` of type " + ("`" + k + "` supplied to `" + T + "`, expected a single ReactElement type."));
1034
+ }
1035
+ return null;
1036
+ }
1037
+ return v(f);
1038
+ }
1039
+ function B(f) {
1040
+ function y(S, T, w, A, L) {
1041
+ if (!(S[T] instanceof f)) {
1042
+ var k = f.name || p, Y = I(S[T]);
1043
+ return new O("Invalid " + A + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + w + "`, expected ") + ("instance of `" + k + "`."));
1044
+ }
1045
+ return null;
1046
+ }
1047
+ return v(y);
1048
+ }
1049
+ function ne(f) {
1050
+ if (!Array.isArray(f))
1051
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1052
+ "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])."
1053
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1054
+ function y(S, T, w, A, L) {
1055
+ for (var k = S[T], Y = 0; Y < f.length; Y++)
1056
+ if (M(k, f[Y]))
1057
+ return null;
1058
+ var F = JSON.stringify(f, function(Z, E) {
1059
+ var X = x(E);
1060
+ return X === "symbol" ? String(E) : E;
1061
+ });
1062
+ return new O("Invalid " + A + " `" + L + "` of value `" + String(k) + "` " + ("supplied to `" + w + "`, expected one of " + F + "."));
1063
+ }
1064
+ return v(y);
1065
+ }
1066
+ function ue(f) {
1067
+ function y(S, T, w, A, L) {
1068
+ if (typeof f != "function")
1069
+ return new O("Property `" + L + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
1070
+ var k = S[T], Y = g(k);
1071
+ if (Y !== "object")
1072
+ return new O("Invalid " + A + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + w + "`, expected an object."));
1073
+ for (var F in k)
1074
+ if (t(k, F)) {
1075
+ var j = f(k, F, w, A, L + "." + F, r);
1076
+ if (j instanceof Error)
1077
+ return j;
1078
+ }
1079
+ return null;
1080
+ }
1081
+ return v(y);
1082
+ }
1083
+ function oe(f) {
1084
+ if (!Array.isArray(f))
1085
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1086
+ for (var y = 0; y < f.length; y++) {
1087
+ var S = f[y];
1088
+ if (typeof S != "function")
1089
+ return a(
1090
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + _(S) + " at index " + y + "."
1091
+ ), i;
1092
+ }
1093
+ function T(w, A, L, k, Y) {
1094
+ for (var F = [], j = 0; j < f.length; j++) {
1095
+ var Z = f[j], E = Z(w, A, L, k, Y, r);
1096
+ if (E == null)
1097
+ return null;
1098
+ E.data && t(E.data, "expectedType") && F.push(E.data.expectedType);
1099
+ }
1100
+ var X = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
1101
+ return new O("Invalid " + k + " `" + Y + "` supplied to " + ("`" + L + "`" + X + "."));
1102
+ }
1103
+ return v(T);
1104
+ }
1105
+ function J() {
1106
+ function f(y, S, T, w, A) {
1107
+ return $(y[S]) ? null : new O("Invalid " + w + " `" + A + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
1108
+ }
1109
+ return v(f);
1110
+ }
1111
+ function W(f, y, S, T, w) {
1112
+ return new O(
1113
+ (f || "React class") + ": " + y + " type `" + S + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
1114
+ );
1115
+ }
1116
+ function ae(f) {
1117
+ function y(S, T, w, A, L) {
1118
+ var k = S[T], Y = g(k);
1119
+ if (Y !== "object")
1120
+ return new O("Invalid " + A + " `" + L + "` of type `" + Y + "` " + ("supplied to `" + w + "`, expected `object`."));
1121
+ for (var F in f) {
1122
+ var j = f[F];
1123
+ if (typeof j != "function")
1124
+ return W(w, A, L, F, x(j));
1125
+ var Z = j(k, F, w, A, L + "." + F, r);
1126
+ if (Z)
1127
+ return Z;
1128
+ }
1129
+ return null;
1130
+ }
1131
+ return v(y);
1132
+ }
1133
+ function le(f) {
1134
+ function y(S, T, w, A, L) {
1135
+ var k = S[T], Y = g(k);
1136
+ if (Y !== "object")
1137
+ return new O("Invalid " + A + " `" + L + "` of type `" + Y + "` " + ("supplied to `" + w + "`, expected `object`."));
1138
+ var F = n({}, S[T], f);
1139
+ for (var j in F) {
1140
+ var Z = f[j];
1141
+ if (t(f, j) && typeof Z != "function")
1142
+ return W(w, A, L, j, x(Z));
1143
+ if (!Z)
1144
+ return new O(
1145
+ "Invalid " + A + " `" + L + "` key `" + j + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(S[T], null, " ") + `
1146
+ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
1147
+ );
1148
+ var E = Z(k, j, w, A, L + "." + j, r);
1149
+ if (E)
1150
+ return E;
1151
+ }
1152
+ return null;
1153
+ }
1154
+ return v(y);
1155
+ }
1156
+ function $(f) {
1157
+ switch (typeof f) {
1158
+ case "number":
1159
+ case "string":
1160
+ case "undefined":
1161
+ return true;
1162
+ case "boolean":
1163
+ return !f;
1164
+ case "object":
1165
+ if (Array.isArray(f))
1166
+ return f.every($);
1167
+ if (f === null || s(f))
1168
+ return true;
1169
+ var y = d(f);
1170
+ if (y) {
1171
+ var S = y.call(f), T;
1172
+ if (y !== f.entries) {
1173
+ for (; !(T = S.next()).done; )
1174
+ if (!$(T.value))
1175
+ return false;
1176
+ } else
1177
+ for (; !(T = S.next()).done; ) {
1178
+ var w = T.value;
1179
+ if (w && !$(w[1]))
1180
+ return false;
1181
+ }
1182
+ } else
1183
+ return false;
1184
+ return true;
1185
+ default:
1186
+ return false;
1187
+ }
1188
+ }
1189
+ function C(f, y) {
1190
+ return f === "symbol" ? true : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : false;
1191
+ }
1192
+ function g(f) {
1193
+ var y = typeof f;
1194
+ return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : C(y, f) ? "symbol" : y;
1195
+ }
1196
+ function x(f) {
1197
+ if (typeof f == "undefined" || f === null)
1198
+ return "" + f;
1199
+ var y = g(f);
1200
+ if (y === "object") {
1201
+ if (f instanceof Date)
1202
+ return "date";
1203
+ if (f instanceof RegExp)
1204
+ return "regexp";
1205
+ }
1206
+ return y;
1207
+ }
1208
+ function _(f) {
1209
+ var y = x(f);
1210
+ switch (y) {
1211
+ case "array":
1212
+ case "object":
1213
+ return "an " + y;
1214
+ case "boolean":
1215
+ case "date":
1216
+ case "regexp":
1217
+ return "a " + y;
1218
+ default:
1219
+ return y;
1220
+ }
1221
+ }
1222
+ function I(f) {
1223
+ return !f.constructor || !f.constructor.name ? p : f.constructor.name;
1224
+ }
1225
+ return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
1226
+ }, nt;
1227
+ }
1228
+ var ot, tr;
1229
+ function Tn() {
1230
+ if (tr) return ot;
1231
+ tr = 1;
1232
+ var e = $t();
1233
+ function n() {
1234
+ }
1235
+ function r() {
1236
+ }
1237
+ return r.resetWarningCache = n, ot = function() {
1238
+ function t(i, s, c, u, l, d) {
1239
+ if (d !== e) {
1240
+ var p = new Error(
1241
+ "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"
1242
+ );
1243
+ throw p.name = "Invariant Violation", p;
1244
+ }
1245
+ }
1246
+ t.isRequired = t;
1247
+ function o() {
1248
+ return t;
1249
+ }
1250
+ var a = {
1251
+ array: t,
1252
+ bigint: t,
1253
+ bool: t,
1254
+ func: t,
1255
+ number: t,
1256
+ object: t,
1257
+ string: t,
1258
+ symbol: t,
1259
+ any: t,
1260
+ arrayOf: o,
1261
+ element: t,
1262
+ elementType: t,
1263
+ instanceOf: o,
1264
+ node: t,
1265
+ objectOf: o,
1266
+ oneOf: o,
1267
+ oneOfType: o,
1268
+ shape: o,
1269
+ exact: o,
1270
+ checkPropTypes: r,
1271
+ resetWarningCache: n
1272
+ };
1273
+ return a.PropTypes = a, a;
1274
+ }, ot;
1275
+ }
1276
+ if (process.env.NODE_ENV !== "production") {
1277
+ var Pn = $r(), $n = true;
1278
+ ft.exports = wn()(Pn.isElement, $n);
1279
+ } else
1280
+ ft.exports = Tn()();
1281
+ var Rn = ft.exports;
1282
+ const N = /* @__PURE__ */ Xr(Rn);
1283
+ function Mn(e, n) {
1284
+ return e.classList ? !!n && e.classList.contains(n) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + n + " ") !== -1;
1285
+ }
1286
+ function Nn(e, n) {
1287
+ e.classList ? e.classList.add(n) : Mn(e, n) || (typeof e.className == "string" ? e.className = e.className + " " + n : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + n));
1288
+ }
1289
+ function rr(e, n) {
1290
+ return e.replace(new RegExp("(^|\\s)" + n + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
1291
+ }
1292
+ function jn(e, n) {
1293
+ e.classList ? e.classList.remove(n) : typeof e.className == "string" ? e.className = rr(e.className, n) : e.setAttribute("class", rr(e.className && e.className.baseVal || "", n));
1294
+ }
1295
+ const nr = {
1296
+ disabled: false
1297
+ };
1298
+ var Dn = process.env.NODE_ENV !== "production" ? N.oneOfType([N.number, N.shape({
1299
+ enter: N.number,
1300
+ exit: N.number,
1301
+ appear: N.number
1302
+ }).isRequired]) : null, In = process.env.NODE_ENV !== "production" ? N.oneOfType([N.string, N.shape({
1303
+ enter: N.string,
1304
+ exit: N.string,
1305
+ active: N.string
1306
+ }), N.shape({
1307
+ enter: N.string,
1308
+ enterDone: N.string,
1309
+ enterActive: N.string,
1310
+ exit: N.string,
1311
+ exitDone: N.string,
1312
+ exitActive: N.string
1313
+ })]) : null;
1314
+ const qe = React__default.createContext(null);
1315
+ var Mr = function(n) {
1316
+ return n.scrollTop;
1317
+ }, Te = "unmounted", pe = "exited", ve = "entering", xe = "entered", lt = "exiting", ce = /* @__PURE__ */ function(e) {
1318
+ Pt(n, e);
1319
+ function n(t, o) {
1320
+ var a;
1321
+ a = e.call(this, t, o) || this;
1322
+ var i = o, s = i && !i.isMounting ? t.enter : t.appear, c;
1323
+ return a.appearStatus = null, t.in ? s ? (c = pe, a.appearStatus = ve) : c = xe : t.unmountOnExit || t.mountOnEnter ? c = Te : c = pe, a.state = {
1324
+ status: c
1325
+ }, a.nextCallback = null, a;
1326
+ }
1327
+ n.getDerivedStateFromProps = function(o, a) {
1328
+ var i = o.in;
1329
+ return i && a.status === Te ? {
1330
+ status: pe
1331
+ } : null;
1332
+ };
1333
+ var r = n.prototype;
1334
+ return r.componentDidMount = function() {
1335
+ this.updateStatus(true, this.appearStatus);
1336
+ }, r.componentDidUpdate = function(o) {
1337
+ var a = null;
1338
+ if (o !== this.props) {
1339
+ var i = this.state.status;
1340
+ this.props.in ? i !== ve && i !== xe && (a = ve) : (i === ve || i === xe) && (a = lt);
1341
+ }
1342
+ this.updateStatus(false, a);
1343
+ }, r.componentWillUnmount = function() {
1344
+ this.cancelNextCallback();
1345
+ }, r.getTimeouts = function() {
1346
+ var o = this.props.timeout, a, i, s;
1347
+ return a = i = s = o, o != null && typeof o != "number" && (a = o.exit, i = o.enter, s = o.appear !== void 0 ? o.appear : i), {
1348
+ exit: a,
1349
+ enter: i,
1350
+ appear: s
1351
+ };
1352
+ }, r.updateStatus = function(o, a) {
1353
+ if (o === void 0 && (o = false), a !== null)
1354
+ if (this.cancelNextCallback(), a === ve) {
1355
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
1356
+ var i = this.props.nodeRef ? this.props.nodeRef.current : re__default.findDOMNode(this);
1357
+ i && Mr(i);
1358
+ }
1359
+ this.performEnter(o);
1360
+ } else
1361
+ this.performExit();
1362
+ else this.props.unmountOnExit && this.state.status === pe && this.setState({
1363
+ status: Te
1364
+ });
1365
+ }, r.performEnter = function(o) {
1366
+ var a = this, i = this.props.enter, s = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [s] : [re__default.findDOMNode(this), s], u = c[0], l = c[1], d = this.getTimeouts(), p = s ? d.appear : d.enter;
1367
+ if (!o && !i || nr.disabled) {
1368
+ this.safeSetState({
1369
+ status: xe
1370
+ }, function() {
1371
+ a.props.onEntered(u);
1372
+ });
1373
+ return;
1374
+ }
1375
+ this.props.onEnter(u, l), this.safeSetState({
1376
+ status: ve
1377
+ }, function() {
1378
+ a.props.onEntering(u, l), a.onTransitionEnd(p, function() {
1379
+ a.safeSetState({
1380
+ status: xe
1381
+ }, function() {
1382
+ a.props.onEntered(u, l);
1383
+ });
1384
+ });
1385
+ });
1386
+ }, r.performExit = function() {
1387
+ var o = this, a = this.props.exit, i = this.getTimeouts(), s = this.props.nodeRef ? void 0 : re__default.findDOMNode(this);
1388
+ if (!a || nr.disabled) {
1389
+ this.safeSetState({
1390
+ status: pe
1391
+ }, function() {
1392
+ o.props.onExited(s);
1393
+ });
1394
+ return;
1395
+ }
1396
+ this.props.onExit(s), this.safeSetState({
1397
+ status: lt
1398
+ }, function() {
1399
+ o.props.onExiting(s), o.onTransitionEnd(i.exit, function() {
1400
+ o.safeSetState({
1401
+ status: pe
1402
+ }, function() {
1403
+ o.props.onExited(s);
1404
+ });
1405
+ });
1406
+ });
1407
+ }, r.cancelNextCallback = function() {
1408
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
1409
+ }, r.safeSetState = function(o, a) {
1410
+ a = this.setNextCallback(a), this.setState(o, a);
1411
+ }, r.setNextCallback = function(o) {
1412
+ var a = this, i = true;
1413
+ return this.nextCallback = function(s) {
1414
+ i && (i = false, a.nextCallback = null, o(s));
1415
+ }, this.nextCallback.cancel = function() {
1416
+ i = false;
1417
+ }, this.nextCallback;
1418
+ }, r.onTransitionEnd = function(o, a) {
1419
+ this.setNextCallback(a);
1420
+ var i = this.props.nodeRef ? this.props.nodeRef.current : re__default.findDOMNode(this), s = o == null && !this.props.addEndListener;
1421
+ if (!i || s) {
1422
+ setTimeout(this.nextCallback, 0);
1423
+ return;
1424
+ }
1425
+ if (this.props.addEndListener) {
1426
+ var c = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], u = c[0], l = c[1];
1427
+ this.props.addEndListener(u, l);
1428
+ }
1429
+ o != null && setTimeout(this.nextCallback, o);
1430
+ }, r.render = function() {
1431
+ var o = this.state.status;
1432
+ if (o === Te)
1433
+ return null;
1434
+ var a = this.props, i = a.children;
1435
+ a.in, a.mountOnEnter, a.unmountOnExit, a.appear, a.enter, a.exit, a.timeout, a.addEndListener, a.onEnter, a.onEntering, a.onEntered, a.onExit, a.onExiting, a.onExited, a.nodeRef;
1436
+ var s = Tt(a, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1437
+ return (
1438
+ // allows for nested Transitions
1439
+ /* @__PURE__ */ React__default.createElement(qe.Provider, {
1440
+ value: null
1441
+ }, typeof i == "function" ? i(o, s) : React__default.cloneElement(React__default.Children.only(i), s))
1442
+ );
1443
+ }, n;
1444
+ }(React__default.Component);
1445
+ ce.contextType = qe;
1446
+ ce.propTypes = process.env.NODE_ENV !== "production" ? {
1447
+ /**
1448
+ * A React reference to DOM element that need to transition:
1449
+ * https://stackoverflow.com/a/51127130/4671932
1450
+ *
1451
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
1452
+ * (e.g. `onEnter`) because user already has direct access to the node.
1453
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
1454
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
1455
+ * (see
1456
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
1457
+ */
1458
+ nodeRef: N.shape({
1459
+ current: typeof Element == "undefined" ? N.any : function(e, n, r, t, o, a) {
1460
+ var i = e[n];
1461
+ return N.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(e, n, r, t, o, a);
1462
+ }
1463
+ }),
1464
+ /**
1465
+ * A `function` child can be used instead of a React element. This function is
1466
+ * called with the current transition status (`'entering'`, `'entered'`,
1467
+ * `'exiting'`, `'exited'`), which can be used to apply context
1468
+ * specific props to a component.
1469
+ *
1470
+ * ```jsx
1471
+ * <Transition in={this.state.in} timeout={150}>
1472
+ * {state => (
1473
+ * <MyComponent className={`fade fade-${state}`} />
1474
+ * )}
1475
+ * </Transition>
1476
+ * ```
1477
+ */
1478
+ children: N.oneOfType([N.func.isRequired, N.element.isRequired]).isRequired,
1479
+ /**
1480
+ * Show the component; triggers the enter or exit states
1481
+ */
1482
+ in: N.bool,
1483
+ /**
1484
+ * By default the child component is mounted immediately along with
1485
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
1486
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
1487
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
1488
+ */
1489
+ mountOnEnter: N.bool,
1490
+ /**
1491
+ * By default the child component stays mounted after it reaches the `'exited'` state.
1492
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
1493
+ */
1494
+ unmountOnExit: N.bool,
1495
+ /**
1496
+ * By default the child component does not perform the enter transition when
1497
+ * it first mounts, regardless of the value of `in`. If you want this
1498
+ * behavior, set both `appear` and `in` to `true`.
1499
+ *
1500
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
1501
+ * > only adds an additional enter transition. However, in the
1502
+ * > `<CSSTransition>` component that first enter transition does result in
1503
+ * > additional `.appear-*` classes, that way you can choose to style it
1504
+ * > differently.
1505
+ */
1506
+ appear: N.bool,
1507
+ /**
1508
+ * Enable or disable enter transitions.
1509
+ */
1510
+ enter: N.bool,
1511
+ /**
1512
+ * Enable or disable exit transitions.
1513
+ */
1514
+ exit: N.bool,
1515
+ /**
1516
+ * The duration of the transition, in milliseconds.
1517
+ * Required unless `addEndListener` is provided.
1518
+ *
1519
+ * You may specify a single timeout for all transitions:
1520
+ *
1521
+ * ```jsx
1522
+ * timeout={500}
1523
+ * ```
1524
+ *
1525
+ * or individually:
1526
+ *
1527
+ * ```jsx
1528
+ * timeout={{
1529
+ * appear: 500,
1530
+ * enter: 300,
1531
+ * exit: 500,
1532
+ * }}
1533
+ * ```
1534
+ *
1535
+ * - `appear` defaults to the value of `enter`
1536
+ * - `enter` defaults to `0`
1537
+ * - `exit` defaults to `0`
1538
+ *
1539
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
1540
+ */
1541
+ timeout: function(n) {
1542
+ var r = Dn;
1543
+ n.addEndListener || (r = r.isRequired);
1544
+ for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
1545
+ o[a - 1] = arguments[a];
1546
+ return r.apply(void 0, [n].concat(o));
1547
+ },
1548
+ /**
1549
+ * Add a custom transition end trigger. Called with the transitioning
1550
+ * DOM node and a `done` callback. Allows for more fine grained transition end
1551
+ * logic. Timeouts are still used as a fallback if provided.
1552
+ *
1553
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1554
+ *
1555
+ * ```jsx
1556
+ * addEndListener={(node, done) => {
1557
+ * // use the css transitionend event to mark the finish of a transition
1558
+ * node.addEventListener('transitionend', done, false);
1559
+ * }}
1560
+ * ```
1561
+ */
1562
+ addEndListener: N.func,
1563
+ /**
1564
+ * Callback fired before the "entering" status is applied. An extra parameter
1565
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1566
+ *
1567
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1568
+ *
1569
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
1570
+ */
1571
+ onEnter: N.func,
1572
+ /**
1573
+ * Callback fired after the "entering" status is applied. An extra parameter
1574
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1575
+ *
1576
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1577
+ *
1578
+ * @type Function(node: HtmlElement, isAppearing: bool)
1579
+ */
1580
+ onEntering: N.func,
1581
+ /**
1582
+ * Callback fired after the "entered" status is applied. An extra parameter
1583
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1584
+ *
1585
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1586
+ *
1587
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
1588
+ */
1589
+ onEntered: N.func,
1590
+ /**
1591
+ * Callback fired before the "exiting" status is applied.
1592
+ *
1593
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1594
+ *
1595
+ * @type Function(node: HtmlElement) -> void
1596
+ */
1597
+ onExit: N.func,
1598
+ /**
1599
+ * Callback fired after the "exiting" status is applied.
1600
+ *
1601
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1602
+ *
1603
+ * @type Function(node: HtmlElement) -> void
1604
+ */
1605
+ onExiting: N.func,
1606
+ /**
1607
+ * Callback fired after the "exited" status is applied.
1608
+ *
1609
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1610
+ *
1611
+ * @type Function(node: HtmlElement) -> void
1612
+ */
1613
+ onExited: N.func
1614
+ } : {};
1615
+ function Oe() {
1616
+ }
1617
+ ce.defaultProps = {
1618
+ in: false,
1619
+ mountOnEnter: false,
1620
+ unmountOnExit: false,
1621
+ appear: false,
1622
+ enter: true,
1623
+ exit: true,
1624
+ onEnter: Oe,
1625
+ onEntering: Oe,
1626
+ onEntered: Oe,
1627
+ onExit: Oe,
1628
+ onExiting: Oe,
1629
+ onExited: Oe
1630
+ };
1631
+ ce.UNMOUNTED = Te;
1632
+ ce.EXITED = pe;
1633
+ ce.ENTERING = ve;
1634
+ ce.ENTERED = xe;
1635
+ ce.EXITING = lt;
1636
+ var An = function(n, r) {
1637
+ return n && r && r.split(" ").forEach(function(t) {
1638
+ return Nn(n, t);
1639
+ });
1640
+ }, at = function(n, r) {
1641
+ return n && r && r.split(" ").forEach(function(t) {
1642
+ return jn(n, t);
1643
+ });
1644
+ }, Rt = /* @__PURE__ */ function(e) {
1645
+ Pt(n, e);
1646
+ function n() {
1647
+ for (var t, o = arguments.length, a = new Array(o), i = 0; i < o; i++)
1648
+ a[i] = arguments[i];
1649
+ return t = e.call.apply(e, [this].concat(a)) || this, t.appliedClasses = {
1650
+ appear: {},
1651
+ enter: {},
1652
+ exit: {}
1653
+ }, t.onEnter = function(s, c) {
1654
+ var u = t.resolveArguments(s, c), l = u[0], d = u[1];
1655
+ t.removeClasses(l, "exit"), t.addClass(l, d ? "appear" : "enter", "base"), t.props.onEnter && t.props.onEnter(s, c);
1656
+ }, t.onEntering = function(s, c) {
1657
+ var u = t.resolveArguments(s, c), l = u[0], d = u[1], p = d ? "appear" : "enter";
1658
+ t.addClass(l, p, "active"), t.props.onEntering && t.props.onEntering(s, c);
1659
+ }, t.onEntered = function(s, c) {
1660
+ var u = t.resolveArguments(s, c), l = u[0], d = u[1], p = d ? "appear" : "enter";
1661
+ t.removeClasses(l, p), t.addClass(l, p, "done"), t.props.onEntered && t.props.onEntered(s, c);
1662
+ }, t.onExit = function(s) {
1663
+ var c = t.resolveArguments(s), u = c[0];
1664
+ t.removeClasses(u, "appear"), t.removeClasses(u, "enter"), t.addClass(u, "exit", "base"), t.props.onExit && t.props.onExit(s);
1665
+ }, t.onExiting = function(s) {
1666
+ var c = t.resolveArguments(s), u = c[0];
1667
+ t.addClass(u, "exit", "active"), t.props.onExiting && t.props.onExiting(s);
1668
+ }, t.onExited = function(s) {
1669
+ var c = t.resolveArguments(s), u = c[0];
1670
+ t.removeClasses(u, "exit"), t.addClass(u, "exit", "done"), t.props.onExited && t.props.onExited(s);
1671
+ }, t.resolveArguments = function(s, c) {
1672
+ return t.props.nodeRef ? [t.props.nodeRef.current, s] : [s, c];
1673
+ }, t.getClassNames = function(s) {
1674
+ var c = t.props.classNames, u = typeof c == "string", l = u && c ? c + "-" : "", d = u ? "" + l + s : c[s], p = u ? d + "-active" : c[s + "Active"], b = u ? d + "-done" : c[s + "Done"];
1675
+ return {
1676
+ baseClassName: d,
1677
+ activeClassName: p,
1678
+ doneClassName: b
1679
+ };
1680
+ }, t;
1681
+ }
1682
+ var r = n.prototype;
1683
+ return r.addClass = function(o, a, i) {
1684
+ var s = this.getClassNames(a)[i + "ClassName"], c = this.getClassNames("enter"), u = c.doneClassName;
1685
+ a === "appear" && i === "done" && u && (s += " " + u), i === "active" && o && Mr(o), s && (this.appliedClasses[a][i] = s, An(o, s));
1686
+ }, r.removeClasses = function(o, a) {
1687
+ var i = this.appliedClasses[a], s = i.base, c = i.active, u = i.done;
1688
+ this.appliedClasses[a] = {}, s && at(o, s), c && at(o, c), u && at(o, u);
1689
+ }, r.render = function() {
1690
+ var o = this.props;
1691
+ o.classNames;
1692
+ var a = Tt(o, ["classNames"]);
1693
+ return /* @__PURE__ */ React__default.createElement(ce, Me({}, a, {
1694
+ onEnter: this.onEnter,
1695
+ onEntered: this.onEntered,
1696
+ onEntering: this.onEntering,
1697
+ onExit: this.onExit,
1698
+ onExiting: this.onExiting,
1699
+ onExited: this.onExited
1700
+ }));
1701
+ }, n;
1702
+ }(React__default.Component);
1703
+ Rt.defaultProps = {
1704
+ classNames: ""
1705
+ };
1706
+ Rt.propTypes = process.env.NODE_ENV !== "production" ? Me({}, ce.propTypes, {
1707
+ /**
1708
+ * The animation classNames applied to the component as it appears, enters,
1709
+ * exits or has finished the transition. A single name can be provided, which
1710
+ * will be suffixed for each stage, e.g. `classNames="fade"` applies:
1711
+ *
1712
+ * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
1713
+ * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
1714
+ * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
1715
+ *
1716
+ * A few details to note about how these classes are applied:
1717
+ *
1718
+ * 1. They are _joined_ with the ones that are already defined on the child
1719
+ * component, so if you want to add some base styles, you can use
1720
+ * `className` without worrying that it will be overridden.
1721
+ *
1722
+ * 2. If the transition component mounts with `in={false}`, no classes are
1723
+ * applied yet. You might be expecting `*-exit-done`, but if you think
1724
+ * about it, a component cannot finish exiting if it hasn't entered yet.
1725
+ *
1726
+ * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
1727
+ * allows you to define different behavior for when appearing is done and
1728
+ * when regular entering is done, using selectors like
1729
+ * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
1730
+ * an epic entrance animation when element first appears in the DOM using
1731
+ * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
1732
+ * simply use `fade-enter-done` for defining both cases.
1733
+ *
1734
+ * Each individual classNames can also be specified independently like:
1735
+ *
1736
+ * ```js
1737
+ * classNames={{
1738
+ * appear: 'my-appear',
1739
+ * appearActive: 'my-active-appear',
1740
+ * appearDone: 'my-done-appear',
1741
+ * enter: 'my-enter',
1742
+ * enterActive: 'my-active-enter',
1743
+ * enterDone: 'my-done-enter',
1744
+ * exit: 'my-exit',
1745
+ * exitActive: 'my-active-exit',
1746
+ * exitDone: 'my-done-exit',
1747
+ * }}
1748
+ * ```
1749
+ *
1750
+ * If you want to set these classes using CSS Modules:
1751
+ *
1752
+ * ```js
1753
+ * import styles from './styles.css';
1754
+ * ```
1755
+ *
1756
+ * you might want to use camelCase in your CSS file, that way could simply
1757
+ * spread them instead of listing them one by one:
1758
+ *
1759
+ * ```js
1760
+ * classNames={{ ...styles }}
1761
+ * ```
1762
+ *
1763
+ * @type {string | {
1764
+ * appear?: string,
1765
+ * appearActive?: string,
1766
+ * appearDone?: string,
1767
+ * enter?: string,
1768
+ * enterActive?: string,
1769
+ * enterDone?: string,
1770
+ * exit?: string,
1771
+ * exitActive?: string,
1772
+ * exitDone?: string,
1773
+ * }}
1774
+ */
1775
+ classNames: In,
1776
+ /**
1777
+ * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
1778
+ * applied.
1779
+ *
1780
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1781
+ *
1782
+ * @type Function(node: HtmlElement, isAppearing: bool)
1783
+ */
1784
+ onEnter: N.func,
1785
+ /**
1786
+ * A `<Transition>` callback fired immediately after the 'enter-active' or
1787
+ * 'appear-active' class is applied.
1788
+ *
1789
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1790
+ *
1791
+ * @type Function(node: HtmlElement, isAppearing: bool)
1792
+ */
1793
+ onEntering: N.func,
1794
+ /**
1795
+ * A `<Transition>` callback fired immediately after the 'enter' or
1796
+ * 'appear' classes are **removed** and the `done` class is added to the DOM node.
1797
+ *
1798
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1799
+ *
1800
+ * @type Function(node: HtmlElement, isAppearing: bool)
1801
+ */
1802
+ onEntered: N.func,
1803
+ /**
1804
+ * A `<Transition>` callback fired immediately after the 'exit' class is
1805
+ * applied.
1806
+ *
1807
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1808
+ *
1809
+ * @type Function(node: HtmlElement)
1810
+ */
1811
+ onExit: N.func,
1812
+ /**
1813
+ * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
1814
+ *
1815
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1816
+ *
1817
+ * @type Function(node: HtmlElement)
1818
+ */
1819
+ onExiting: N.func,
1820
+ /**
1821
+ * A `<Transition>` callback fired immediately after the 'exit' classes
1822
+ * are **removed** and the `exit-done` class is added to the DOM node.
1823
+ *
1824
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1825
+ *
1826
+ * @type Function(node: HtmlElement)
1827
+ */
1828
+ onExited: N.func
1829
+ }) : {};
1830
+ function Ln(e) {
1831
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1832
+ return e;
1833
+ }
1834
+ function Mt(e, n) {
1835
+ var r = function(a) {
1836
+ return n && isValidElement(a) ? n(a) : a;
1837
+ }, t = /* @__PURE__ */ Object.create(null);
1838
+ return e && Children.map(e, function(o) {
1839
+ return o;
1840
+ }).forEach(function(o) {
1841
+ t[o.key] = r(o);
1842
+ }), t;
1843
+ }
1844
+ function kn(e, n) {
1845
+ e = e || {}, n = n || {};
1846
+ function r(l) {
1847
+ return l in n ? n[l] : e[l];
1848
+ }
1849
+ var t = /* @__PURE__ */ Object.create(null), o = [];
1850
+ for (var a in e)
1851
+ a in n ? o.length && (t[a] = o, o = []) : o.push(a);
1852
+ var i, s = {};
1853
+ for (var c in n) {
1854
+ if (t[c])
1855
+ for (i = 0; i < t[c].length; i++) {
1856
+ var u = t[c][i];
1857
+ s[t[c][i]] = r(u);
1858
+ }
1859
+ s[c] = r(c);
1860
+ }
1861
+ for (i = 0; i < o.length; i++)
1862
+ s[o[i]] = r(o[i]);
1863
+ return s;
1864
+ }
1865
+ function he(e, n, r) {
1866
+ return r[n] != null ? r[n] : e.props[n];
1867
+ }
1868
+ function Yn(e, n) {
1869
+ return Mt(e.children, function(r) {
1870
+ return cloneElement(r, {
1871
+ onExited: n.bind(null, r),
1872
+ in: true,
1873
+ appear: he(r, "appear", e),
1874
+ enter: he(r, "enter", e),
1875
+ exit: he(r, "exit", e)
1876
+ });
1877
+ });
1878
+ }
1879
+ function Fn(e, n, r) {
1880
+ var t = Mt(e.children), o = kn(n, t);
1881
+ return Object.keys(o).forEach(function(a) {
1882
+ var i = o[a];
1883
+ if (isValidElement(i)) {
1884
+ var s = a in n, c = a in t, u = n[a], l = isValidElement(u) && !u.props.in;
1885
+ c && (!s || l) ? o[a] = cloneElement(i, {
1886
+ onExited: r.bind(null, i),
1887
+ in: true,
1888
+ exit: he(i, "exit", e),
1889
+ enter: he(i, "enter", e)
1890
+ }) : !c && s && !l ? o[a] = cloneElement(i, {
1891
+ in: false
1892
+ }) : c && s && isValidElement(u) && (o[a] = cloneElement(i, {
1893
+ onExited: r.bind(null, i),
1894
+ in: u.props.in,
1895
+ exit: he(i, "exit", e),
1896
+ enter: he(i, "enter", e)
1897
+ }));
1898
+ }
1899
+ }), o;
1900
+ }
1901
+ var Wn = Object.values || function(e) {
1902
+ return Object.keys(e).map(function(n) {
1903
+ return e[n];
1904
+ });
1905
+ }, qn = {
1906
+ component: "div",
1907
+ childFactory: function(n) {
1908
+ return n;
1909
+ }
1910
+ }, Be = /* @__PURE__ */ function(e) {
1911
+ Pt(n, e);
1912
+ function n(t, o) {
1913
+ var a;
1914
+ a = e.call(this, t, o) || this;
1915
+ var i = a.handleExited.bind(Ln(a));
1916
+ return a.state = {
1917
+ contextValue: {
1918
+ isMounting: true
1919
+ },
1920
+ handleExited: i,
1921
+ firstRender: true
1922
+ }, a;
1923
+ }
1924
+ var r = n.prototype;
1925
+ return r.componentDidMount = function() {
1926
+ this.mounted = true, this.setState({
1927
+ contextValue: {
1928
+ isMounting: false
1929
+ }
1930
+ });
1931
+ }, r.componentWillUnmount = function() {
1932
+ this.mounted = false;
1933
+ }, n.getDerivedStateFromProps = function(o, a) {
1934
+ var i = a.children, s = a.handleExited, c = a.firstRender;
1935
+ return {
1936
+ children: c ? Yn(o, s) : Fn(o, i, s),
1937
+ firstRender: false
1938
+ };
1939
+ }, r.handleExited = function(o, a) {
1940
+ var i = Mt(this.props.children);
1941
+ o.key in i || (o.props.onExited && o.props.onExited(a), this.mounted && this.setState(function(s) {
1942
+ var c = Me({}, s.children);
1943
+ return delete c[o.key], {
1944
+ children: c
1945
+ };
1946
+ }));
1947
+ }, r.render = function() {
1948
+ var o = this.props, a = o.component, i = o.childFactory, s = Tt(o, ["component", "childFactory"]), c = this.state.contextValue, u = Wn(this.state.children).map(i);
1949
+ return delete s.appear, delete s.enter, delete s.exit, a === null ? /* @__PURE__ */ React__default.createElement(qe.Provider, {
1950
+ value: c
1951
+ }, u) : /* @__PURE__ */ React__default.createElement(qe.Provider, {
1952
+ value: c
1953
+ }, /* @__PURE__ */ React__default.createElement(a, s, u));
1954
+ }, n;
1955
+ }(React__default.Component);
1956
+ Be.propTypes = process.env.NODE_ENV !== "production" ? {
1957
+ /**
1958
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
1959
+ * behavior by providing a `component` prop.
1960
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
1961
+ * you can pass in `component={null}`. This is useful if the wrapping div
1962
+ * borks your css styles.
1963
+ */
1964
+ component: N.any,
1965
+ /**
1966
+ * A set of `<Transition>` components, that are toggled `in` and out as they
1967
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
1968
+ * remember to spread them through if you are wrapping the `<Transition>` as
1969
+ * with our `<Fade>` example.
1970
+ *
1971
+ * While this component is meant for multiple `Transition` or `CSSTransition`
1972
+ * children, sometimes you may want to have a single transition child with
1973
+ * content that you want to be transitioned out and in when you change it
1974
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
1975
+ * the transition child as you change its content, this will cause
1976
+ * `TransitionGroup` to transition the child out and back in.
1977
+ */
1978
+ children: N.node,
1979
+ /**
1980
+ * A convenience prop that enables or disables appear animations
1981
+ * for all children. Note that specifying this will override any defaults set
1982
+ * on individual children Transitions.
1983
+ */
1984
+ appear: N.bool,
1985
+ /**
1986
+ * A convenience prop that enables or disables enter animations
1987
+ * for all children. Note that specifying this will override any defaults set
1988
+ * on individual children Transitions.
1989
+ */
1990
+ enter: N.bool,
1991
+ /**
1992
+ * A convenience prop that enables or disables exit animations
1993
+ * for all children. Note that specifying this will override any defaults set
1994
+ * on individual children Transitions.
1995
+ */
1996
+ exit: N.bool,
1997
+ /**
1998
+ * You may need to apply reactive updates to a child as it is exiting.
1999
+ * This is generally done by using `cloneElement` however in the case of an exiting
2000
+ * child the element has already been removed and not accessible to the consumer.
2001
+ *
2002
+ * If you do need to update a child as it leaves you can provide a `childFactory`
2003
+ * to wrap every child, even the ones that are leaving.
2004
+ *
2005
+ * @type Function(child: ReactElement) -> ReactElement
2006
+ */
2007
+ childFactory: N.func
2008
+ } : {};
2009
+ Be.defaultProps = qn;
2010
+ var or = "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", we = re__default, ar = function(e) {
2011
+ wt(we[or]) && (we[or].usingClientEntryPoint = e);
2012
+ }, dt;
2013
+ try {
2014
+ dt = we.createRoot;
2015
+ } catch (e) {
2016
+ }
2017
+ var pt, Hn = function() {
2018
+ Tr && dt ? pt = function(e, n) {
2019
+ ar(true);
2020
+ var r = dt(n);
2021
+ return ar(false), r.render(e), r._unmount = function() {
2022
+ setTimeout(function() {
2023
+ var t;
2024
+ (t = r == null ? void 0 : r.unmount) === null || t === void 0 || t.call(r);
2025
+ });
2026
+ }, r;
2027
+ } : pt = function(e, n) {
2028
+ return we.render(e, n), {
2029
+ render: function(r) {
2030
+ we.render(r, n);
2031
+ },
2032
+ _unmount: function() {
2033
+ we.unmountComponentAtNode(n);
2034
+ }
2035
+ };
2036
+ };
2037
+ }, de;
2038
+ function zn(e) {
2039
+ var n = e.constructor;
2040
+ if (typeof n != "function")
2041
+ return false;
2042
+ !de && typeof WeakSet == "function" && (de = /* @__PURE__ */ new WeakSet());
2043
+ var r = !!(de != null && de.has(n));
2044
+ return de == null || de.add(n), r;
2045
+ }
2046
+ var Un = function(e, n) {
2047
+ return e && e instanceof Element ? e : e && e.current && e.current instanceof Element ? e.current : e && Sr(e.getRootDOMNode) ? e.getRootDOMNode() : e instanceof Component && re__default.findDOMNode ? re__default.findDOMNode(e) : n && (Pr(Tr && !zn(n), "Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic", { element: e, instance: n }), re__default.findDOMNode) ? re__default.findDOMNode(n) : null;
2048
+ }, Vn = function(e, n) {
2049
+ e && e.ref && (Sr(e.ref) && (e == null || e.ref(n)), "current" in e.ref && (e.ref.current = n));
2050
+ };
2051
+ Hn();
2052
+ var Nr = function(e, n) {
2053
+ return pt(e, n);
2054
+ }, vt = function() {
2055
+ return vt = Object.assign || function(e) {
2056
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2057
+ n = arguments[r];
2058
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2059
+ }
2060
+ return e;
2061
+ }, vt.apply(this, arguments);
2062
+ }, Gn = function(e, n) {
2063
+ var r = {};
2064
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
2065
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2066
+ for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
2067
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
2068
+ return r;
2069
+ }, Bn = function(e, n) {
2070
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
2071
+ if (!r) return e;
2072
+ var t = r.call(e), o, a = [], i;
2073
+ try {
2074
+ for (; (n === void 0 || n-- > 0) && !(o = t.next()).done; ) a.push(o.value);
2075
+ } catch (s) {
2076
+ i = { error: s };
2077
+ } finally {
2078
+ try {
2079
+ o && !o.done && (r = t.return) && r.call(t);
2080
+ } finally {
2081
+ if (i) throw i.error;
2082
+ }
2083
+ }
2084
+ return a;
2085
+ }, Zn = function(e, n, r) {
2086
+ if (arguments.length === 2) for (var t = 0, o = n.length, a; t < o; t++)
2087
+ (a || !(t in n)) && (a || (a = Array.prototype.slice.call(n, 0, t)), a[t] = n[t]);
2088
+ return e.concat(a || Array.prototype.slice.call(n));
2089
+ };
2090
+ function jr(e) {
2091
+ var n = e.children, r = Gn(e, ["children"]), t = useRef(), o = useRef(), a = useMemo(function() {
2092
+ return e.nodeRef === void 0 && vn(n) && isValidElement(n) ? (o.current = true, cloneElement(n, {
2093
+ ref: function(i) {
2094
+ t.current = Un(i), Vn(n, i);
2095
+ }
2096
+ })) : (o.current = false, n);
2097
+ }, [n, e.nodeRef]);
2098
+ return o.current && ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"].forEach(function(i) {
2099
+ e[i] && (r[i] = function(s) {
2100
+ for (var c = [], u = 1; u < arguments.length; u++)
2101
+ c[u - 1] = arguments[u];
2102
+ e[i].apply(e, Zn([t.current], Bn(c), false));
2103
+ });
2104
+ }), React__default.createElement(Rt, vt({}, r, { nodeRef: o.current ? t : void 0 }), a);
2105
+ }
2106
+ var Jn = /* @__PURE__ */ function() {
2107
+ var e = function(n, r) {
2108
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
2109
+ t.__proto__ = o;
2110
+ } || function(t, o) {
2111
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (t[a] = o[a]);
2112
+ }, e(n, r);
2113
+ };
2114
+ return function(n, r) {
2115
+ if (typeof r != "function" && r !== null)
2116
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
2117
+ e(n, r);
2118
+ function t() {
2119
+ this.constructor = n;
2120
+ }
2121
+ n.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
2122
+ };
2123
+ }(), He = function() {
2124
+ return He = Object.assign || function(e) {
2125
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2126
+ n = arguments[r];
2127
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2128
+ }
2129
+ return e;
2130
+ }, He.apply(this, arguments);
2131
+ };
2132
+ function Xn(e) {
2133
+ return e != null && e.id ? e == null ? void 0 : e.id : "arco_notice_id_" + Math.random().toFixed(10).slice(2);
2134
+ }
2135
+ var Dr = (
2136
+ /** @class */
2137
+ function(e) {
2138
+ Jn(n, e);
2139
+ function n(r) {
2140
+ var t = e.call(this, r) || this;
2141
+ return t.add = function(o) {
2142
+ var a = Xn(o), i = t.state.notices;
2143
+ return o.id && ~i.findIndex(function(s) {
2144
+ return s.id === o.id;
2145
+ }) ? t.update(o) : t.setState(function(s) {
2146
+ return {
2147
+ notices: s.notices.concat(He(He({}, o), { id: a })),
2148
+ position: o.position
2149
+ };
2150
+ }), a;
2151
+ }, t.update = function(o) {
2152
+ var a = t.state.notices.map(function(i) {
2153
+ return o.id === i.id ? o : i;
2154
+ });
2155
+ t.setState({
2156
+ notices: a
2157
+ }, function() {
2158
+ var i = a.map(function(s) {
2159
+ return o.id === s.id && delete s.update, s;
2160
+ });
2161
+ t.setState({ notices: i });
2162
+ });
2163
+ }, t.clear = function() {
2164
+ t.setState({
2165
+ notices: []
2166
+ });
2167
+ }, t.state = {
2168
+ notices: [],
2169
+ position: "topRight"
2170
+ }, t.remove = t.remove.bind(t), t;
2171
+ }
2172
+ return n.prototype.remove = function(r) {
2173
+ this.setState(function(t) {
2174
+ var o = t.notices.filter(function(a) {
2175
+ return a.id !== r;
2176
+ });
2177
+ return {
2178
+ notices: o
2179
+ };
2180
+ });
2181
+ }, n;
2182
+ }(Component)
2183
+ );
2184
+ function ir(e, n) {
2185
+ var r = Object.keys(e);
2186
+ if (Object.getOwnPropertySymbols) {
2187
+ var t = Object.getOwnPropertySymbols(e);
2188
+ n && (t = t.filter(function(o) {
2189
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
2190
+ })), r.push.apply(r, t);
2191
+ }
2192
+ return r;
2193
+ }
2194
+ function sr(e) {
2195
+ for (var n = 1; n < arguments.length; n++) {
2196
+ var r = arguments[n] != null ? arguments[n] : {};
2197
+ n % 2 ? ir(Object(r), true).forEach(function(t) {
2198
+ Ee(e, t, r[t]);
2199
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ir(Object(r)).forEach(function(t) {
2200
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
2201
+ });
2202
+ }
2203
+ return e;
2204
+ }
2205
+ function Kn(e, n) {
2206
+ var r = useContext(ie), t = r.prefixCls, o = t === void 0 ? "arco" : t, a = e.spin, i = e.className, s = sr(sr({
2207
+ "aria-hidden": true,
2208
+ focusable: false,
2209
+ ref: n
2210
+ }, e), {}, {
2211
+ className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-loading")
2212
+ });
2213
+ return a && (s.className = "".concat(s.className, " ").concat(o, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ React__default.createElement("svg", fe({
2214
+ fill: "none",
2215
+ stroke: "currentColor",
2216
+ strokeWidth: "4",
2217
+ viewBox: "0 0 48 48"
2218
+ }, s), /* @__PURE__ */ React__default.createElement("path", {
2219
+ d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"
2220
+ }));
2221
+ }
2222
+ var Nt = /* @__PURE__ */ React__default.forwardRef(Kn);
2223
+ Nt.defaultProps = {
2224
+ isIcon: true
2225
+ };
2226
+ Nt.displayName = "IconLoading";
2227
+ var mt = function() {
2228
+ return mt = Object.assign || function(e) {
2229
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2230
+ n = arguments[r];
2231
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2232
+ }
2233
+ return e;
2234
+ }, mt.apply(this, arguments);
2235
+ }, Qn = function(e, n) {
2236
+ var r = {};
2237
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
2238
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2239
+ for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
2240
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
2241
+ return r;
2242
+ };
2243
+ function cr(e) {
2244
+ var n, r = e.children, t = e.className, o = e.disabled, a = e.prefix, i = e.size, s = i === void 0 ? "default" : i, c = Qn(e, ["children", "className", "disabled", "prefix", "size"]), u = useContext(_e).getPrefixCls, l = u("icon-hover");
2245
+ return React__default.createElement("span", mt({ className: De(l, (n = {}, n[a + "-icon-hover"] = a, n[l + "-size-" + s] = s && s !== "default", n[l + "-disabled"] = o, n), t), onClick: e.onClick }, c), r);
2246
+ }
2247
+ var eo = { exports: {} }, Ir = { exports: {} };
2248
+ (function(e, n) {
2249
+ (function(r, t) {
2250
+ e.exports = t();
2251
+ })(Or, function() {
2252
+ var r = 1e3, t = 6e4, o = 36e5, a = "millisecond", i = "second", s = "minute", c = "hour", u = "day", l = "week", d = "month", p = "quarter", b = "year", M = "date", O = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, H = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
2253
+ var C = ["th", "st", "nd", "rd"], g = $ % 100;
2254
+ return "[" + $ + (C[(g - 20) % 10] || C[g] || C[0]) + "]";
2255
+ } }, D = function($, C, g) {
2256
+ var x = String($);
2257
+ return !x || x.length >= C ? $ : "" + Array(C + 1 - x.length).join(g) + $;
2258
+ }, q = { s: D, z: function($) {
2259
+ var C = -$.utcOffset(), g = Math.abs(C), x = Math.floor(g / 60), _ = g % 60;
2260
+ return (C <= 0 ? "+" : "-") + D(x, 2, "0") + ":" + D(_, 2, "0");
2261
+ }, m: function $(C, g) {
2262
+ if (C.date() < g.date()) return -$(g, C);
2263
+ var x = 12 * (g.year() - C.year()) + (g.month() - C.month()), _ = C.clone().add(x, d), I = g - _ < 0, f = C.clone().add(x + (I ? -1 : 1), d);
2264
+ return +(-(x + (g - _) / (I ? _ - f : f - _)) || 0);
2265
+ }, a: function($) {
2266
+ return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
2267
+ }, p: function($) {
2268
+ return { M: d, y: b, w: l, d: u, D: M, h: c, m: s, s: i, ms: a, Q: p }[$] || String($ || "").toLowerCase().replace(/s$/, "");
2269
+ }, u: function($) {
2270
+ return $ === void 0;
2271
+ } }, m = "en", B = {};
2272
+ B[m] = H;
2273
+ var ne = "$isDayjsObject", ue = function($) {
2274
+ return $ instanceof ae || !(!$ || !$[ne]);
2275
+ }, oe = function $(C, g, x) {
2276
+ var _;
2277
+ if (!C) return m;
2278
+ if (typeof C == "string") {
2279
+ var I = C.toLowerCase();
2280
+ B[I] && (_ = I), g && (B[I] = g, _ = I);
2281
+ var f = C.split("-");
2282
+ if (!_ && f.length > 1) return $(f[0]);
2283
+ } else {
2284
+ var y = C.name;
2285
+ B[y] = C, _ = y;
2286
+ }
2287
+ return !x && _ && (m = _), _ || !x && m;
2288
+ }, J = function($, C) {
2289
+ if (ue($)) return $.clone();
2290
+ var g = typeof C == "object" ? C : {};
2291
+ return g.date = $, g.args = arguments, new ae(g);
2292
+ }, W = q;
2293
+ W.l = oe, W.i = ue, W.w = function($, C) {
2294
+ return J($, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
2295
+ };
2296
+ var ae = function() {
2297
+ function $(g) {
2298
+ this.$L = oe(g.locale, null, true), this.parse(g), this.$x = this.$x || g.x || {}, this[ne] = true;
2299
+ }
2300
+ var C = $.prototype;
2301
+ return C.parse = function(g) {
2302
+ this.$d = function(x) {
2303
+ var _ = x.date, I = x.utc;
2304
+ if (_ === null) return /* @__PURE__ */ new Date(NaN);
2305
+ if (W.u(_)) return /* @__PURE__ */ new Date();
2306
+ if (_ instanceof Date) return new Date(_);
2307
+ if (typeof _ == "string" && !/Z$/i.test(_)) {
2308
+ var f = _.match(v);
2309
+ if (f) {
2310
+ var y = f[2] - 1 || 0, S = (f[7] || "0").substring(0, 3);
2311
+ return I ? new Date(Date.UTC(f[1], y, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, S)) : new Date(f[1], y, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, S);
2312
+ }
2313
+ }
2314
+ return new Date(_);
2315
+ }(g), this.init();
2316
+ }, C.init = function() {
2317
+ var g = this.$d;
2318
+ this.$y = g.getFullYear(), this.$M = g.getMonth(), this.$D = g.getDate(), this.$W = g.getDay(), this.$H = g.getHours(), this.$m = g.getMinutes(), this.$s = g.getSeconds(), this.$ms = g.getMilliseconds();
2319
+ }, C.$utils = function() {
2320
+ return W;
2321
+ }, C.isValid = function() {
2322
+ return this.$d.toString() !== O;
2323
+ }, C.isSame = function(g, x) {
2324
+ var _ = J(g);
2325
+ return this.startOf(x) <= _ && _ <= this.endOf(x);
2326
+ }, C.isAfter = function(g, x) {
2327
+ return J(g) < this.startOf(x);
2328
+ }, C.isBefore = function(g, x) {
2329
+ return this.endOf(x) < J(g);
2330
+ }, C.$g = function(g, x, _) {
2331
+ return W.u(g) ? this[x] : this.set(_, g);
2332
+ }, C.unix = function() {
2333
+ return Math.floor(this.valueOf() / 1e3);
2334
+ }, C.valueOf = function() {
2335
+ return this.$d.getTime();
2336
+ }, C.startOf = function(g, x) {
2337
+ var _ = this, I = !!W.u(x) || x, f = W.p(g), y = function(F, j) {
2338
+ var Z = W.w(_.$u ? Date.UTC(_.$y, j, F) : new Date(_.$y, j, F), _);
2339
+ return I ? Z : Z.endOf(u);
2340
+ }, S = function(F, j) {
2341
+ return W.w(_.toDate()[F].apply(_.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), _);
2342
+ }, T = this.$W, w = this.$M, A = this.$D, L = "set" + (this.$u ? "UTC" : "");
2343
+ switch (f) {
2344
+ case b:
2345
+ return I ? y(1, 0) : y(31, 11);
2346
+ case d:
2347
+ return I ? y(1, w) : y(0, w + 1);
2348
+ case l:
2349
+ var k = this.$locale().weekStart || 0, Y = (T < k ? T + 7 : T) - k;
2350
+ return y(I ? A - Y : A + (6 - Y), w);
2351
+ case u:
2352
+ case M:
2353
+ return S(L + "Hours", 0);
2354
+ case c:
2355
+ return S(L + "Minutes", 1);
2356
+ case s:
2357
+ return S(L + "Seconds", 2);
2358
+ case i:
2359
+ return S(L + "Milliseconds", 3);
2360
+ default:
2361
+ return this.clone();
2362
+ }
2363
+ }, C.endOf = function(g) {
2364
+ return this.startOf(g, false);
2365
+ }, C.$set = function(g, x) {
2366
+ var _, I = W.p(g), f = "set" + (this.$u ? "UTC" : ""), y = (_ = {}, _[u] = f + "Date", _[M] = f + "Date", _[d] = f + "Month", _[b] = f + "FullYear", _[c] = f + "Hours", _[s] = f + "Minutes", _[i] = f + "Seconds", _[a] = f + "Milliseconds", _)[I], S = I === u ? this.$D + (x - this.$W) : x;
2367
+ if (I === d || I === b) {
2368
+ var T = this.clone().set(M, 1);
2369
+ T.$d[y](S), T.init(), this.$d = T.set(M, Math.min(this.$D, T.daysInMonth())).$d;
2370
+ } else y && this.$d[y](S);
2371
+ return this.init(), this;
2372
+ }, C.set = function(g, x) {
2373
+ return this.clone().$set(g, x);
2374
+ }, C.get = function(g) {
2375
+ return this[W.p(g)]();
2376
+ }, C.add = function(g, x) {
2377
+ var _, I = this;
2378
+ g = Number(g);
2379
+ var f = W.p(x), y = function(w) {
2380
+ var A = J(I);
2381
+ return W.w(A.date(A.date() + Math.round(w * g)), I);
2382
+ };
2383
+ if (f === d) return this.set(d, this.$M + g);
2384
+ if (f === b) return this.set(b, this.$y + g);
2385
+ if (f === u) return y(1);
2386
+ if (f === l) return y(7);
2387
+ var S = (_ = {}, _[s] = t, _[c] = o, _[i] = r, _)[f] || 1, T = this.$d.getTime() + g * S;
2388
+ return W.w(T, this);
2389
+ }, C.subtract = function(g, x) {
2390
+ return this.add(-1 * g, x);
2391
+ }, C.format = function(g) {
2392
+ var x = this, _ = this.$locale();
2393
+ if (!this.isValid()) return _.invalidDate || O;
2394
+ var I = g || "YYYY-MM-DDTHH:mm:ssZ", f = W.z(this), y = this.$H, S = this.$m, T = this.$M, w = _.weekdays, A = _.months, L = _.meridiem, k = function(j, Z, E, X) {
2395
+ return j && (j[Z] || j(x, I)) || E[Z].slice(0, X);
2396
+ }, Y = function(j) {
2397
+ return W.s(y % 12 || 12, j, "0");
2398
+ }, F = L || function(j, Z, E) {
2399
+ var X = j < 12 ? "AM" : "PM";
2400
+ return E ? X.toLowerCase() : X;
2401
+ };
2402
+ return I.replace(R, function(j, Z) {
2403
+ return Z || function(E) {
2404
+ switch (E) {
2405
+ case "YY":
2406
+ return String(x.$y).slice(-2);
2407
+ case "YYYY":
2408
+ return W.s(x.$y, 4, "0");
2409
+ case "M":
2410
+ return T + 1;
2411
+ case "MM":
2412
+ return W.s(T + 1, 2, "0");
2413
+ case "MMM":
2414
+ return k(_.monthsShort, T, A, 3);
2415
+ case "MMMM":
2416
+ return k(A, T);
2417
+ case "D":
2418
+ return x.$D;
2419
+ case "DD":
2420
+ return W.s(x.$D, 2, "0");
2421
+ case "d":
2422
+ return String(x.$W);
2423
+ case "dd":
2424
+ return k(_.weekdaysMin, x.$W, w, 2);
2425
+ case "ddd":
2426
+ return k(_.weekdaysShort, x.$W, w, 3);
2427
+ case "dddd":
2428
+ return w[x.$W];
2429
+ case "H":
2430
+ return String(y);
2431
+ case "HH":
2432
+ return W.s(y, 2, "0");
2433
+ case "h":
2434
+ return Y(1);
2435
+ case "hh":
2436
+ return Y(2);
2437
+ case "a":
2438
+ return F(y, S, true);
2439
+ case "A":
2440
+ return F(y, S, false);
2441
+ case "m":
2442
+ return String(S);
2443
+ case "mm":
2444
+ return W.s(S, 2, "0");
2445
+ case "s":
2446
+ return String(x.$s);
2447
+ case "ss":
2448
+ return W.s(x.$s, 2, "0");
2449
+ case "SSS":
2450
+ return W.s(x.$ms, 3, "0");
2451
+ case "Z":
2452
+ return f;
2453
+ }
2454
+ return null;
2455
+ }(j) || f.replace(":", "");
2456
+ });
2457
+ }, C.utcOffset = function() {
2458
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
2459
+ }, C.diff = function(g, x, _) {
2460
+ var I, f = this, y = W.p(x), S = J(g), T = (S.utcOffset() - this.utcOffset()) * t, w = this - S, A = function() {
2461
+ return W.m(f, S);
2462
+ };
2463
+ switch (y) {
2464
+ case b:
2465
+ I = A() / 12;
2466
+ break;
2467
+ case d:
2468
+ I = A();
2469
+ break;
2470
+ case p:
2471
+ I = A() / 3;
2472
+ break;
2473
+ case l:
2474
+ I = (w - T) / 6048e5;
2475
+ break;
2476
+ case u:
2477
+ I = (w - T) / 864e5;
2478
+ break;
2479
+ case c:
2480
+ I = w / o;
2481
+ break;
2482
+ case s:
2483
+ I = w / t;
2484
+ break;
2485
+ case i:
2486
+ I = w / r;
2487
+ break;
2488
+ default:
2489
+ I = w;
2490
+ }
2491
+ return _ ? I : W.a(I);
2492
+ }, C.daysInMonth = function() {
2493
+ return this.endOf(d).$D;
2494
+ }, C.$locale = function() {
2495
+ return B[this.$L];
2496
+ }, C.locale = function(g, x) {
2497
+ if (!g) return this.$L;
2498
+ var _ = this.clone(), I = oe(g, x, true);
2499
+ return I && (_.$L = I), _;
2500
+ }, C.clone = function() {
2501
+ return W.w(this.$d, this);
2502
+ }, C.toDate = function() {
2503
+ return new Date(this.valueOf());
2504
+ }, C.toJSON = function() {
2505
+ return this.isValid() ? this.toISOString() : null;
2506
+ }, C.toISOString = function() {
2507
+ return this.$d.toISOString();
2508
+ }, C.toString = function() {
2509
+ return this.$d.toUTCString();
2510
+ }, $;
2511
+ }(), le = ae.prototype;
2512
+ return J.prototype = le, [["$ms", a], ["$s", i], ["$m", s], ["$H", c], ["$W", u], ["$M", d], ["$y", b], ["$D", M]].forEach(function($) {
2513
+ le[$[1]] = function(C) {
2514
+ return this.$g(C, $[0], $[1]);
2515
+ };
2516
+ }), J.extend = function($, C) {
2517
+ return $.$i || ($(C, ae, J), $.$i = true), J;
2518
+ }, J.locale = oe, J.isDayjs = ue, J.unix = function($) {
2519
+ return J(1e3 * $);
2520
+ }, J.en = B[m], J.Ls = B, J.p = {}, J;
2521
+ });
2522
+ })(Ir);
2523
+ var to = Ir.exports;
2524
+ (function(e, n) {
2525
+ (function(r, t) {
2526
+ e.exports = t(to);
2527
+ })(Or, function(r) {
2528
+ function t(i) {
2529
+ return i && typeof i == "object" && "default" in i ? i : { default: i };
2530
+ }
2531
+ var o = t(r), a = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(i, s) {
2532
+ return s === "W" ? i + "周" : i + "日";
2533
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(i, s) {
2534
+ var c = 100 * i + s;
2535
+ return c < 600 ? "凌晨" : c < 900 ? "早上" : c < 1100 ? "上午" : c < 1300 ? "中午" : c < 1800 ? "下午" : "晚上";
2536
+ } };
2537
+ return o.default.locale(a, null, true), a;
2538
+ });
2539
+ })(eo);
2540
+ var ur = {
2541
+ // 仅用于日历组件
2542
+ formatYear: "YYYY 年",
2543
+ // 仅用于日历组件
2544
+ formatMonth: "YYYY 年 MM 月",
2545
+ // 月份在前
2546
+ monthBeforeYear: false,
2547
+ // DatePicker 相关组件面板头部的格式
2548
+ monthFormat: "M月",
2549
+ // DatePicker 相关组件面板头部的格式
2550
+ yearFormat: "YYYY年",
2551
+ today: "今天",
2552
+ view: {
2553
+ month: "月",
2554
+ year: "年",
2555
+ week: "周",
2556
+ day: "日"
2557
+ },
2558
+ month: {
2559
+ long: {
2560
+ January: "一月",
2561
+ February: "二月",
2562
+ March: "三月",
2563
+ April: "四月",
2564
+ May: "五月",
2565
+ June: "六月",
2566
+ July: "七月",
2567
+ August: "八月",
2568
+ September: "九月",
2569
+ October: "十月",
2570
+ November: "十一月",
2571
+ December: "十二月"
2572
+ },
2573
+ short: {
2574
+ January: "一月",
2575
+ February: "二月",
2576
+ March: "三月",
2577
+ April: "四月",
2578
+ May: "五月",
2579
+ June: "六月",
2580
+ July: "七月",
2581
+ August: "八月",
2582
+ September: "九月",
2583
+ October: "十月",
2584
+ November: "十一月",
2585
+ December: "十二月"
2586
+ }
2587
+ },
2588
+ week: {
2589
+ long: {
2590
+ self: "周",
2591
+ monday: "周一",
2592
+ tuesday: "周二",
2593
+ wednesday: "周三",
2594
+ thursday: "周四",
2595
+ friday: "周五",
2596
+ saturday: "周六",
2597
+ sunday: "周日"
2598
+ },
2599
+ short: {
2600
+ self: "周",
2601
+ monday: "一",
2602
+ tuesday: "二",
2603
+ wednesday: "三",
2604
+ thursday: "四",
2605
+ friday: "五",
2606
+ saturday: "六",
2607
+ sunday: "日"
2608
+ }
2609
+ }
2610
+ };
2611
+ const ro = {
2612
+ locale: "zh-CN",
2613
+ dayjsLocale: "zh-cn",
2614
+ Calendar: ur,
2615
+ DatePicker: {
2616
+ Calendar: ur,
2617
+ placeholder: {
2618
+ date: "请选择日期",
2619
+ week: "请选择周",
2620
+ month: "请选择月份",
2621
+ year: "请选择年份",
2622
+ quarter: "请选择季度"
2623
+ },
2624
+ placeholders: {
2625
+ date: ["开始日期", "结束日期"],
2626
+ week: ["开始周", "结束周"],
2627
+ month: ["开始月份", "结束月份"],
2628
+ year: ["开始年份", "结束年份"],
2629
+ quarter: ["开始季度", "结束季度"]
2630
+ },
2631
+ selectTime: "选择时间",
2632
+ selectDate: "选择日期",
2633
+ today: "今天",
2634
+ now: "此刻",
2635
+ ok: "确定"
2636
+ },
2637
+ Drawer: {
2638
+ okText: "确定",
2639
+ cancelText: "取消"
2640
+ },
2641
+ Empty: {
2642
+ noData: "暂无数据"
2643
+ },
2644
+ Modal: {
2645
+ okText: "确定",
2646
+ cancelText: "取消"
2647
+ },
2648
+ Pagination: {
2649
+ goto: "前往",
2650
+ page: "页",
2651
+ countPerPage: "条/页",
2652
+ total: "共 {0} 条",
2653
+ prev: "上一页",
2654
+ next: "下一页",
2655
+ currentPage: "第 {0} 页",
2656
+ prevSomePages: "向前 {0} 页",
2657
+ nextSomePages: "向后 {0} 页",
2658
+ pageSize: "页码"
2659
+ },
2660
+ Popconfirm: {
2661
+ okText: "确定",
2662
+ cancelText: "取消"
2663
+ },
2664
+ Table: {
2665
+ okText: "确定",
2666
+ resetText: "重置",
2667
+ sortAscend: "点击升序",
2668
+ sortDescend: "点击降序",
2669
+ cancelSort: "取消排序"
2670
+ },
2671
+ TimePicker: {
2672
+ ok: "确定",
2673
+ placeholder: "请选择时间",
2674
+ placeholders: ["开始时间", "结束时间"],
2675
+ now: "此刻"
2676
+ },
2677
+ Progress: {
2678
+ success: "完成",
2679
+ error: "失败"
2680
+ },
2681
+ Upload: {
2682
+ start: "开始",
2683
+ cancel: "取消",
2684
+ delete: "删除",
2685
+ reupload: "点击重试",
2686
+ upload: "点击上传",
2687
+ preview: "预览",
2688
+ drag: "点击或拖拽文件到此处上传",
2689
+ dragHover: "释放文件并开始上传",
2690
+ error: "上传失败"
2691
+ },
2692
+ Typography: {
2693
+ copy: "复制",
2694
+ copied: "已复制",
2695
+ edit: "编辑",
2696
+ fold: "折叠",
2697
+ unfold: "展开"
2698
+ },
2699
+ Transfer: {
2700
+ resetText: "重置"
2701
+ },
2702
+ ImagePreview: {
2703
+ fullScreen: "全屏",
2704
+ rotateRight: "向右旋转",
2705
+ rotateLeft: "向左旋转",
2706
+ zoomIn: "放大",
2707
+ zoomOut: "缩小",
2708
+ originalSize: "原始尺寸"
2709
+ },
2710
+ Form: {
2711
+ validateMessages: {
2712
+ required: "#{field} 是必填项",
2713
+ type: {
2714
+ string: "#{field} 不是合法的文本类型",
2715
+ number: "#{field} 不是合法的数字类型",
2716
+ boolean: "#{field} 不是合法的布尔类型",
2717
+ array: "#{field} 不是合法的数组类型",
2718
+ object: "#{field} 不是合法的对象类型",
2719
+ url: "#{field} 不是合法的 url 地址",
2720
+ email: "#{field} 不是合法的邮箱地址",
2721
+ ip: "#{field} 不是合法的 IP 地址"
2722
+ },
2723
+ number: {
2724
+ min: "`#{value}` 小于最小值 `#{min}`",
2725
+ max: "`#{value}` 大于最大值 `#{max}`",
2726
+ equal: "`#{value}` 不等于 `#{equal}`",
2727
+ range: "`#{value}` 不在 `#{min} ~ #{max}` 范围内",
2728
+ positive: "`#{value}` 不是正数",
2729
+ negative: "`#{value}` 不是负数"
2730
+ },
2731
+ array: {
2732
+ length: "`#{field}` 个数不等于 #{length}",
2733
+ minLength: "`#{field}` 个数最少为 #{minLength}",
2734
+ maxLength: "`#{field}` 个数最多为 #{maxLength}",
2735
+ includes: "#{field} 不包含 #{includes}",
2736
+ deepEqual: "#{field} 不等于 #{deepEqual}",
2737
+ empty: "`#{field}` 不是空数组"
2738
+ },
2739
+ string: {
2740
+ minLength: "字符数最少为 #{minLength}",
2741
+ maxLength: "字符数最多为 #{maxLength}",
2742
+ length: "字符数必须是 #{length}",
2743
+ match: "`#{value}` 不符合模式 #{pattern}",
2744
+ uppercase: "`#{value}` 必须全大写",
2745
+ lowercase: "`#{value}` 必须全小写"
2746
+ },
2747
+ object: {
2748
+ deepEqual: "`#{field}` 不等于期望值",
2749
+ hasKeys: "`#{field}` 不包含必须字段",
2750
+ empty: "`#{field}` 不是对象"
2751
+ },
2752
+ boolean: {
2753
+ true: "期望是 `true`",
2754
+ false: "期望是 `false`"
2755
+ }
2756
+ }
2757
+ },
2758
+ ColorPicker: {
2759
+ history: "最近使用颜色",
2760
+ preset: "系统预设颜色",
2761
+ empty: "暂无",
2762
+ singleColor: "单色",
2763
+ gradientColor: "渐变色"
2764
+ }
2765
+ };
2766
+ function fr(e, n) {
2767
+ var r = Object.keys(e);
2768
+ if (Object.getOwnPropertySymbols) {
2769
+ var t = Object.getOwnPropertySymbols(e);
2770
+ n && (t = t.filter(function(o) {
2771
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
2772
+ })), r.push.apply(r, t);
2773
+ }
2774
+ return r;
2775
+ }
2776
+ function lr(e) {
2777
+ for (var n = 1; n < arguments.length; n++) {
2778
+ var r = arguments[n] != null ? arguments[n] : {};
2779
+ n % 2 ? fr(Object(r), true).forEach(function(t) {
2780
+ Ee(e, t, r[t]);
2781
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fr(Object(r)).forEach(function(t) {
2782
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
2783
+ });
2784
+ }
2785
+ return e;
2786
+ }
2787
+ function no(e, n) {
2788
+ var r = useContext(ie), t = r.prefixCls, o = t === void 0 ? "arco" : t, a = e.spin, i = e.className, s = lr(lr({
2789
+ "aria-hidden": true,
2790
+ focusable: false,
2791
+ ref: n
2792
+ }, e), {}, {
2793
+ className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-empty")
2794
+ });
2795
+ return a && (s.className = "".concat(s.className, " ").concat(o, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ React__default.createElement("svg", fe({
2796
+ fill: "none",
2797
+ stroke: "currentColor",
2798
+ strokeWidth: "4",
2799
+ viewBox: "0 0 48 48"
2800
+ }, s), /* @__PURE__ */ React__default.createElement("path", {
2801
+ d: "M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"
2802
+ }));
2803
+ }
2804
+ var jt = /* @__PURE__ */ React__default.forwardRef(no);
2805
+ jt.defaultProps = {
2806
+ isIcon: true
2807
+ };
2808
+ jt.displayName = "IconEmpty";
2809
+ var yt = function() {
2810
+ return yt = Object.assign || function(e) {
2811
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2812
+ n = arguments[r];
2813
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2814
+ }
2815
+ return e;
2816
+ }, yt.apply(this, arguments);
2817
+ };
2818
+ function Ar(e, n) {
2819
+ var r = yt({}, e);
2820
+ return n.forEach(function(t) {
2821
+ t in r && delete r[t];
2822
+ }), r;
2823
+ }
2824
+ var ze = function() {
2825
+ return ze = Object.assign || function(e) {
2826
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2827
+ n = arguments[r];
2828
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2829
+ }
2830
+ return e;
2831
+ }, ze.apply(this, arguments);
2832
+ };
2833
+ function Lr(e, n, r) {
2834
+ var t = e._ignorePropsFromGlobal, o = useMemo(function() {
2835
+ return ze(ze({}, n), t ? {} : r);
2836
+ }, [n, r, t]), a = useMemo(function() {
2837
+ var i = Ar(e, ["_ignorePropsFromGlobal"]);
2838
+ for (var s in o)
2839
+ i[s] === void 0 && (i[s] = o[s]);
2840
+ return i;
2841
+ }, [e, o]);
2842
+ return a;
2843
+ }
2844
+ var ht = function() {
2845
+ return ht = Object.assign || function(e) {
2846
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2847
+ n = arguments[r];
2848
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2849
+ }
2850
+ return e;
2851
+ }, ht.apply(this, arguments);
2852
+ }, oo = function(e, n) {
2853
+ var r = {};
2854
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
2855
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2856
+ for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
2857
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
2858
+ return r;
2859
+ };
2860
+ function ao(e, n) {
2861
+ var r = useContext(_e), t = r.getPrefixCls, o = r.locale, a = r.componentConfig, i = Lr(e, {}, a == null ? void 0 : a.Empty), s = i.style, c = i.className, u = i.description, l = i.icon, d = i.imgSrc, p = oo(i, ["style", "className", "description", "icon", "imgSrc"]), b = t("empty"), M = De(b, c), O = o.Empty.noData, v = typeof u == "string" ? u : "empty";
2862
+ return React__default.createElement(
2863
+ "div",
2864
+ ht({ ref: n, className: M, style: s }, p),
2865
+ React__default.createElement(
2866
+ "div",
2867
+ { className: b + "-wrapper" },
2868
+ React__default.createElement("div", { className: b + "-image" }, d ? React__default.createElement("img", { alt: v, src: d }) : l || React__default.createElement(jt, null)),
2869
+ React__default.createElement("div", { className: b + "-description" }, u || O)
2870
+ )
2871
+ );
2872
+ }
2873
+ var kr = forwardRef(ao);
2874
+ kr.displayName = "Empty";
2875
+ const io = memo(kr);
2876
+ var gt = function() {
2877
+ return gt = Object.assign || function(e) {
2878
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2879
+ n = arguments[r];
2880
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2881
+ }
2882
+ return e;
2883
+ }, gt.apply(this, arguments);
2884
+ };
2885
+ function so(e) {
2886
+ switch (e) {
2887
+ default:
2888
+ return React__default.createElement(io, null);
2889
+ }
2890
+ }
2891
+ var Yr = {
2892
+ locale: ro,
2893
+ prefixCls: "arco",
2894
+ getPopupContainer: function() {
2895
+ return document.body;
2896
+ },
2897
+ size: "default",
2898
+ renderEmpty: so,
2899
+ focusLock: {
2900
+ modal: { autoFocus: true },
2901
+ drawer: { autoFocus: true }
2902
+ }
2903
+ }, _e = createContext(gt({ getPrefixCls: function(e, n) {
2904
+ return (n || "arco") + "-" + e;
2905
+ } }, Yr)), co = /* @__PURE__ */ function() {
2906
+ var e = function(n, r) {
2907
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
2908
+ t.__proto__ = o;
2909
+ } || function(t, o) {
2910
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (t[a] = o[a]);
2911
+ }, e(n, r);
2912
+ };
2913
+ return function(n, r) {
2914
+ if (typeof r != "function" && r !== null)
2915
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
2916
+ e(n, r);
2917
+ function t() {
2918
+ this.constructor = n;
2919
+ }
2920
+ n.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
2921
+ };
2922
+ }(), $e = function() {
2923
+ return $e = Object.assign || function(e) {
2924
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
2925
+ n = arguments[r];
2926
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
2927
+ }
2928
+ return e;
2929
+ }, $e.apply(this, arguments);
2930
+ }, Fr = (
2931
+ /** @class */
2932
+ function(e) {
2933
+ co(n, e);
2934
+ function n(r) {
2935
+ var t = e.call(this, r) || this;
2936
+ return t.getRootDOMNode = function() {
2937
+ return t.rootDOMRef.current;
2938
+ }, t.startTimer = function() {
2939
+ var o = t.props, a = o.duration, i = o.onClose, s = o.id;
2940
+ a !== 0 && (t.timer = window.setTimeout(function() {
2941
+ i && i(s), t.removeTimer();
2942
+ }, a));
2943
+ }, t.removeTimer = function() {
2944
+ t.timer && (window.clearTimeout(t.timer), t.timer = null);
2945
+ }, t.onClose = function() {
2946
+ t.props.onClose && t.props.onClose(t.props.id);
2947
+ }, t.renderIcon = function() {
2948
+ var o = t.props, a = o.showIcon, i = o.icon, s = o.type, c = o.prefixCls, u = o.iconPrefix, l;
2949
+ if (i)
2950
+ l = i;
2951
+ else if (a) {
2952
+ switch (s) {
2953
+ case "info":
2954
+ l = React__default.createElement(xt, null);
2955
+ break;
2956
+ case "success":
2957
+ l = React__default.createElement(Ct, null);
2958
+ break;
2959
+ case "error":
2960
+ l = React__default.createElement(Ot, null);
2961
+ break;
2962
+ case "warning":
2963
+ l = React__default.createElement(St, null);
2964
+ break;
2965
+ case "loading":
2966
+ l = React__default.createElement(Nt, null);
2967
+ break;
2968
+ }
2969
+ l = React__default.createElement(ie.Provider, { value: u ? { prefixCls: u } : {} }, l);
2970
+ }
2971
+ return React__default.createElement("span", { className: c + "-icon" }, l);
2972
+ }, t.onMouseEnter = function() {
2973
+ t.removeTimer();
2974
+ }, t.onMouseLeave = function() {
2975
+ t.removeTimer(), t.startTimer();
2976
+ }, t.rootDOMRef = createRef(), t;
2977
+ }
2978
+ return n.prototype.componentDidMount = function() {
2979
+ this.startTimer();
2980
+ }, n.prototype.componentDidUpdate = function(r) {
2981
+ (r.duration !== this.props.duration || this.props.update) && (this.removeTimer(), this.startTimer());
2982
+ }, n.prototype.componentWillUnmount = function() {
2983
+ this.removeTimer();
2984
+ }, n.prototype.render = function() {
2985
+ var r, t = this.props, o = t.title, a = t.content, i = t.showIcon, s = t.className, c = t.style, u = t.type, l = t.btn, d = t.icon, p = t.prefixCls, b = t.closable, M = t.noticeType, O = t.iconPrefix, v = t.rtl, R = t.closeIcon, H = t.classPrefixCls, D = De(p, p + "-" + u, (r = {}, r[p + "-closable"] = b, r[p + "-rtl"] = v, r), s), q = "closable" in this.props ? b : true, m = i;
2986
+ u === "normal" && !d && (m = false);
2987
+ var B = $e({}, this.context);
2988
+ if (H && (B.prefixCls = H), M === "message")
2989
+ return q = b, React__default.createElement(
2990
+ Ve,
2991
+ $e({}, B),
2992
+ React__default.createElement(
2993
+ "div",
2994
+ { style: { textAlign: "center" }, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, ref: this.rootDOMRef },
2995
+ React__default.createElement(
2996
+ "div",
2997
+ { className: D, style: c, role: "alert" },
2998
+ m && this.renderIcon(),
2999
+ React__default.createElement("span", { className: p + "-content" }, a),
3000
+ q && (R !== void 0 ? React__default.createElement("span", { onClick: this.onClose, className: p + "-close-btn" }, R) : React__default.createElement(
3001
+ cr,
3002
+ { prefix: p, className: p + "-close-btn", onClick: this.onClose },
3003
+ React__default.createElement(We, null)
3004
+ ))
3005
+ )
3006
+ )
3007
+ );
3008
+ if (M === "notification")
3009
+ return React__default.createElement(
3010
+ Ve,
3011
+ $e({}, B),
3012
+ React__default.createElement(
3013
+ "div",
3014
+ { ref: this.rootDOMRef, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave },
3015
+ React__default.createElement(
3016
+ "div",
3017
+ { className: D, style: c, role: "alert" },
3018
+ m && React__default.createElement("div", { className: p + "-left" }, this.renderIcon()),
3019
+ React__default.createElement(
3020
+ "div",
3021
+ { className: p + "-right" },
3022
+ o && React__default.createElement("div", { className: p + "-title" }, o),
3023
+ React__default.createElement("div", { className: p + "-content" }, a),
3024
+ l && React__default.createElement("div", { className: p + "-btn-wrapper" }, l)
3025
+ ),
3026
+ q && (R !== void 0 ? React__default.createElement("span", { onClick: this.onClose, className: p + "-close-btn" }, R) : React__default.createElement(
3027
+ cr,
3028
+ { prefix: p, className: p + "-close-btn", onClick: this.onClose },
3029
+ React__default.createElement(
3030
+ ie.Provider,
3031
+ { value: O ? { prefixCls: O } : {} },
3032
+ React__default.createElement(We, null)
3033
+ )
3034
+ ))
3035
+ )
3036
+ )
3037
+ );
3038
+ }, n.defaultProps = {
3039
+ type: "info",
3040
+ showIcon: true,
3041
+ noticeType: "message",
3042
+ duration: 3e3
3043
+ }, n.contextType = _e, n;
3044
+ }(Component)
3045
+ ), dr = function(e, n) {
3046
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
3047
+ if (!r) return e;
3048
+ var t = r.call(e), o, a = [], i;
3049
+ try {
3050
+ for (; (n === void 0 || n-- > 0) && !(o = t.next()).done; ) a.push(o.value);
3051
+ } catch (s) {
3052
+ i = { error: s };
3053
+ } finally {
3054
+ try {
3055
+ o && !o.done && (r = t.return) && r.call(t);
3056
+ } finally {
3057
+ if (i) throw i.error;
3058
+ }
3059
+ }
3060
+ return a;
3061
+ }, pr = function(e, n, r) {
3062
+ if (arguments.length === 2) for (var t = 0, o = n.length, a; t < o; t++)
3063
+ (a || !(t in n)) && (a || (a = Array.prototype.slice.call(n, 0, t)), a[t] = n[t]);
3064
+ return e.concat(a || Array.prototype.slice.call(n));
3065
+ }, Wr = forwardRef(function(e, n) {
3066
+ var r = useContext(_e), t = dr(useState([]), 2), o = t[0], a = t[1];
3067
+ function i(u) {
3068
+ a(function(l) {
3069
+ return pr(pr([], dr(l), false), [u], false);
3070
+ });
3071
+ }
3072
+ function s(u) {
3073
+ a(function(l) {
3074
+ return l.filter(function(d) {
3075
+ return u !== d;
3076
+ });
3077
+ });
3078
+ }
3079
+ function c() {
3080
+ return r;
3081
+ }
3082
+ return useImperativeHandle(n, function() {
3083
+ return {
3084
+ addInstance: i,
3085
+ removeInstance: s,
3086
+ getContextConfig: c
3087
+ };
3088
+ }), React__default.createElement(React__default.Fragment, null, React__default.Children.map(o, function(u, l) {
3089
+ return React__default.cloneElement(u, { key: l });
3090
+ }));
3091
+ }), me = function() {
3092
+ return me = Object.assign || function(e) {
3093
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
3094
+ n = arguments[r];
3095
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
3096
+ }
3097
+ return e;
3098
+ }, me.apply(this, arguments);
3099
+ };
3100
+ function uo(e) {
3101
+ e === void 0 && (e = {});
3102
+ var n = e.maxCount, r = e.duration, t = r === void 0 ? 3e3 : r, o = e.prefixCls, a = useRef(), i = useMemo(function() {
3103
+ return React__default.createElement(Wr, { ref: a });
3104
+ }, []), s = {}, c;
3105
+ function u(d) {
3106
+ var p, b;
3107
+ if (a.current) {
3108
+ var M = a.current.getContextConfig();
3109
+ b = M.rtl, p = M.prefixCls;
3110
+ }
3111
+ var O = o || p, v = me({ position: "top", duration: t }, d), R = v.position, H = v.transitionClassNames, D;
3112
+ if (s[R]) {
3113
+ var q = s[R].state.notices;
3114
+ if (q.length >= n) {
3115
+ var m = q[0];
3116
+ D = m.id, q.shift(), s[R].add(me(me({}, v), { id: D }));
3117
+ } else
3118
+ D = s[R].add(v);
3119
+ } else
3120
+ c = React__default.createElement(Ie, { transitionClassNames: H, ref: function(ne) {
3121
+ s[R] = ne, s[R] && (D = s[R].add(v));
3122
+ }, prefixCls: O, rtl: b }), a.current.addInstance(c);
3123
+ var B = function() {
3124
+ s[R] && s[R].remove(D);
3125
+ };
3126
+ return B;
3127
+ }
3128
+ var l = {};
3129
+ return ["info", "success", "warning", "error", "normal"].forEach(function(d) {
3130
+ l[d] = function(p) {
3131
+ var b = xr(p) ? { content: p } : p;
3132
+ return u(me(me({}, b), { type: d }));
3133
+ };
3134
+ }), [l, i];
3135
+ }
3136
+ var fo = /* @__PURE__ */ function() {
3137
+ var e = function(n, r) {
3138
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
3139
+ t.__proto__ = o;
3140
+ } || function(t, o) {
3141
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (t[a] = o[a]);
3142
+ }, e(n, r);
3143
+ };
3144
+ return function(n, r) {
3145
+ if (typeof r != "function" && r !== null)
3146
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
3147
+ e(n, r);
3148
+ function t() {
3149
+ this.constructor = n;
3150
+ }
3151
+ n.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
3152
+ };
3153
+ }(), Q = function() {
3154
+ return Q = Object.assign || function(e) {
3155
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
3156
+ n = arguments[r];
3157
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
3158
+ }
3159
+ return e;
3160
+ }, Q.apply(this, arguments);
3161
+ }, lo = ["info", "success", "error", "warning", "loading", "normal"], te = {}, qr, vr, Hr, bt, mr, yr;
3162
+ function zr(e) {
3163
+ var n = Q({ position: "top", duration: Hr }, e), r = n.position, t = n.transitionClassNames, o = n.transitionTimeout, a, i = te[r] || {}, s = i.instance, c = i.pending;
3164
+ if (s || c) {
3165
+ var u = function() {
3166
+ var p = (te[r] || {}).instance, b = p.state.notices, M = b.find(function(v) {
3167
+ return v.id === e.id;
3168
+ }), O = Q(Q({}, n), { update: M });
3169
+ b.length >= qr ? M ? p.add(Q(Q({}, O), { id: M.id })) : (b.shift(), p.add(O)) : a = p.add(O);
3170
+ };
3171
+ s ? u() : c != null && c.then && c.then(function() {
3172
+ u(), te[r].pending = null;
3173
+ });
3174
+ } else {
3175
+ var l = document.createElement("div");
3176
+ (bt || document.body).appendChild(l), te[r] = {}, te[r].pending = new Promise(function(p) {
3177
+ Nr(React__default.createElement(Ie, { transitionClassNames: t, transitionTimeout: o, ref: function(b) {
3178
+ te[r] || (te[r] = {}), te[r].instance = b, a = b.add(n), p(null);
3179
+ } }), l);
3180
+ });
3181
+ }
3182
+ var d = function() {
3183
+ var p, b;
3184
+ (b = (p = te[r]) === null || p === void 0 ? void 0 : p.instance) === null || b === void 0 || b.remove(a);
3185
+ };
3186
+ return d;
3187
+ }
3188
+ var Ie = (
3189
+ /** @class */
3190
+ function(e) {
3191
+ fo(n, e);
3192
+ function n() {
3193
+ var r = e !== null && e.apply(this, arguments) || this;
3194
+ return r.remove = function(t) {
3195
+ var o = r.state.notices.find(function(a) {
3196
+ return a.id === t;
3197
+ });
3198
+ o && r.update(Q(Q({}, o), { style: Q(Q({}, o.style), { opacity: 0 }) })), setTimeout(function() {
3199
+ e.prototype.remove.call(r, t);
3200
+ }, 100);
3201
+ }, r;
3202
+ }
3203
+ return n.prototype.render = function() {
3204
+ var r = this, t = this.props, o = t.transitionClassNames, a = t.transitionTimeout, i = t.prefixCls, s = t.rtl, c = t.closable, u = this.state, l = u.notices, d = u.position, p = i || vr, b = be(s) ? mr : s, M = be(c) ? yr : c, O = p ? p + "-message" : "arco-message", v = {
3205
+ enter: Se(a == null ? void 0 : a.enter) ? a == null ? void 0 : a.enter : 100,
3206
+ exit: Se(a == null ? void 0 : a.exit) ? a == null ? void 0 : a.exit : 300
3207
+ }, R = De(O + "-wrapper", O + "-wrapper-" + d);
3208
+ return React__default.createElement(
3209
+ "div",
3210
+ { className: R },
3211
+ React__default.createElement(Be, { component: null }, l.map(function(H) {
3212
+ return React__default.createElement(
3213
+ jr,
3214
+ { key: H.id, timeout: v, classNames: o || "fadeMessage", onExit: function(D) {
3215
+ D && (D.style.height = D.scrollHeight + "px");
3216
+ }, onExiting: function(D) {
3217
+ D && (D.style.height = 0);
3218
+ }, onExited: function(D) {
3219
+ D && (D.style.height = 0, H.onClose && H.onClose());
3220
+ } },
3221
+ React__default.createElement(Fr, Q({}, H, { prefixCls: O, classPrefixCls: p, iconPrefix: p, onClose: r.remove, noticeType: "message", rtl: b }, be(M) ? {} : { closable: M }))
3222
+ );
3223
+ }))
3224
+ );
3225
+ }, n.config = function(r) {
3226
+ r === void 0 && (r = {}), Se(r.maxCount) && (qr = r.maxCount), r.prefixCls && (vr = r.prefixCls), Se(r.duration) && (Hr = r.duration), typeof r.rtl == "boolean" && (mr = r.rtl), typeof r.closable == "boolean" && (yr = r.closable), r.getContainer && r.getContainer() !== bt && (bt = r.getContainer(), Object.values(te).forEach(function(t) {
3227
+ var o = t.instance;
3228
+ return o == null ? void 0 : o.clear();
3229
+ }), te = {});
3230
+ }, n.clear = function() {
3231
+ Object.values(te).forEach(function(r) {
3232
+ var t = r.instance;
3233
+ t == null || t.clear();
3234
+ });
3235
+ }, n.addInstance = zr, n;
3236
+ }(Dr)
3237
+ );
3238
+ lo.forEach(function(e) {
3239
+ Ie[e] = function(n) {
3240
+ var r = typeof n == "string" ? { content: n } : n;
3241
+ return zr(Q(Q({}, r), { type: e }));
3242
+ };
3243
+ });
3244
+ Ie.useMessage = uo;
3245
+ var ye = function() {
3246
+ return ye = Object.assign || function(e) {
3247
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
3248
+ n = arguments[r];
3249
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
3250
+ }
3251
+ return e;
3252
+ }, ye.apply(this, arguments);
3253
+ };
3254
+ function po(e) {
3255
+ e === void 0 && (e = {});
3256
+ var n = e.maxCount, r = e.duration, t = r === void 0 ? 3e3 : r, o = e.prefixCls, a = e.getContainer, i = createRef(), s = React__default.createElement(Wr, { ref: i }), c = {}, u;
3257
+ function l(p) {
3258
+ var b, M;
3259
+ if (i.current) {
3260
+ var O = i.current.getContextConfig();
3261
+ M = O.rtl, b = O.prefixCls;
3262
+ }
3263
+ var v = o || b, R = p.position;
3264
+ be(p.position) && (R = M ? "topLeft" : "topRight");
3265
+ var H = ye({ duration: t }, p), D;
3266
+ if (c[R]) {
3267
+ var q = c[R].state.notices;
3268
+ if (q.length >= n) {
3269
+ var m = q[0];
3270
+ D = m.id, q.shift(), c[R].add(ye(ye({}, H), { id: D }));
3271
+ } else
3272
+ D = c[R].add(H);
3273
+ } else
3274
+ u = React__default.createElement(Ne, { ref: function(B) {
3275
+ c[R] = B, c[R] && (D = c[R].add(H));
3276
+ }, prefixCls: v, rtl: M, getContainer: a }), i.current.addInstance(u);
3277
+ return c[R];
3278
+ }
3279
+ var d = {};
3280
+ return ["info", "success", "warning", "error", "normal"].forEach(function(p) {
3281
+ d[p] = function(b) {
3282
+ return l(ye(ye({}, b), { type: p }));
3283
+ };
3284
+ }), [d, s];
3285
+ }
3286
+ var vo = /* @__PURE__ */ function() {
3287
+ var e = function(n, r) {
3288
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
3289
+ t.__proto__ = o;
3290
+ } || function(t, o) {
3291
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (t[a] = o[a]);
3292
+ }, e(n, r);
3293
+ };
3294
+ return function(n, r) {
3295
+ if (typeof r != "function" && r !== null)
3296
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
3297
+ e(n, r);
3298
+ function t() {
3299
+ this.constructor = n;
3300
+ }
3301
+ n.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
3302
+ };
3303
+ }(), K = function() {
3304
+ return K = Object.assign || function(e) {
3305
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
3306
+ n = arguments[r];
3307
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
3308
+ }
3309
+ return e;
3310
+ }, K.apply(this, arguments);
3311
+ }, mo = ["info", "success", "error", "warning", "normal"], ee = {}, hr, gr, br, it, ke, Ne = (
3312
+ /** @class */
3313
+ function(e) {
3314
+ vo(n, e);
3315
+ function n() {
3316
+ var r = e !== null && e.apply(this, arguments) || this;
3317
+ return r.remove = function(t) {
3318
+ var o = r.state.notices.find(function(a) {
3319
+ return a.id === t;
3320
+ });
3321
+ o && r.update(K(K({}, o), { style: K(K({}, o.style), { opacity: 0 }) })), setTimeout(function() {
3322
+ e.prototype.remove.call(r, t);
3323
+ }, 200);
3324
+ }, r;
3325
+ }
3326
+ return n.prototype.render = function() {
3327
+ var r, t = this, o = this.state.notices, a = this.props, i = a.prefixCls, s = a.rtl, c = a.getContainer, u = this.state.position, l = be(s) ? ke : s;
3328
+ be(u) && (u = l ? "topLeft" : "topRight");
3329
+ var d = i || gr, p = d ? d + "-notification" : "arco-notification", b;
3330
+ u === "topLeft" || u === "bottomLeft" ? b = "slideNoticeLeft" : b = "slideNoticeRight";
3331
+ var M = De(p + "-wrapper", p + "-wrapper-" + u, (r = {}, r[p + "-wrapper-rtl"] = ke, r)), O = c == null ? void 0 : c(), v = React__default.createElement(
3332
+ "div",
3333
+ { className: M },
3334
+ React__default.createElement(Be, { component: null }, o.map(function(R) {
3335
+ return React__default.createElement(
3336
+ jr,
3337
+ { key: R.id, timeout: {
3338
+ enter: 400,
3339
+ exit: 300
3340
+ }, classNames: b, onExit: function(H) {
3341
+ H && (H.style.height = H.scrollHeight + "px");
3342
+ }, onExiting: function(H) {
3343
+ H && (H.style.height = 0);
3344
+ }, onExited: function(H) {
3345
+ H && (H.style.height = 0, R.onClose && R.onClose());
3346
+ } },
3347
+ React__default.createElement(Fr, K({}, R, { onClose: t.remove, prefixCls: p, iconPrefix: d, classPrefixCls: d, noticeType: "notification", rtl: l }))
3348
+ );
3349
+ }))
3350
+ );
3351
+ return O ? createPortal(v, O) : v;
3352
+ }, n.config = function(r) {
3353
+ r === void 0 && (r = {}), Se(r.maxCount) && (hr = r.maxCount), r.prefixCls && (gr = r.prefixCls), Se(r.duration) && (br = r.duration), typeof r.rtl == "boolean" && (ke = r.rtl), r.getContainer && r.getContainer() !== it && (it = r.getContainer(), Object.values(ee).forEach(function(t) {
3354
+ var o = t.instance;
3355
+ return o == null ? void 0 : o.clear();
3356
+ }), ee = {});
3357
+ }, n.clear = function() {
3358
+ Object.values(ee).forEach(function(r) {
3359
+ var t = r.instance;
3360
+ t == null || t.clear();
3361
+ });
3362
+ }, n.remove = function(r) {
3363
+ Object.values(ee).forEach(function(t) {
3364
+ var o = t.instance;
3365
+ o == null || o.remove(r);
3366
+ });
3367
+ }, n.addInstance = function(r) {
3368
+ var t = r.position;
3369
+ be(r.position) && (t = ke ? "topLeft" : "topRight");
3370
+ var o = K({ duration: br }, r), a = ee[t] || {}, i = a.instance, s = a.pending;
3371
+ if (i || s) {
3372
+ var c = function() {
3373
+ var l = (ee[t] || {}).instance, d = l.state.notices, p = d.find(function(M) {
3374
+ return M.id === r.id;
3375
+ }), b = K(K({}, o), { update: p });
3376
+ return d.length >= hr ? p ? l.add(K(K({}, b), { id: p.id })) : (d.shift(), l.add(b)) : l.add(K({}, b)), l;
3377
+ };
3378
+ return i ? c() : s != null && s.then && s.then(function() {
3379
+ c(), ee[t].pending = null;
3380
+ }), i;
3381
+ }
3382
+ var u = document.createElement("div");
3383
+ return (it || document.body).appendChild(u), ee[t] = {}, ee[t].pending = new Promise(function(l) {
3384
+ Nr(React__default.createElement(n, { ref: function(d) {
3385
+ return ee[t] || (ee[t] = {}), ee[t].instance = d, d.add(o), l(null), d;
3386
+ } }), u);
3387
+ }), ee[t].instance;
3388
+ }, n;
3389
+ }(Dr)
3390
+ );
3391
+ mo.forEach(function(e) {
3392
+ Ne[e] = function(n) {
3393
+ return Ne.addInstance(K(K({}, n), { type: e }));
3394
+ };
3395
+ });
3396
+ Ne.useNotification = po;
3397
+ var je = function() {
3398
+ return je = Object.assign || function(e) {
3399
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
3400
+ n = arguments[r];
3401
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
3402
+ }
3403
+ return e;
3404
+ }, je.apply(this, arguments);
3405
+ };
3406
+ function yo(e) {
3407
+ je({}, e);
3408
+ }
3409
+ var Ue = function() {
3410
+ return Ue = Object.assign || function(e) {
3411
+ for (var n, r = 1, t = arguments.length; r < t; r++) {
3412
+ n = arguments[r];
3413
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
3414
+ }
3415
+ return e;
3416
+ }, Ue.apply(this, arguments);
3417
+ }, Ye = {
3418
+ primaryColor: {
3419
+ default: "--arcoblue-6",
3420
+ hover: "--arcoblue-5",
3421
+ active: "--arcoblue-7"
3422
+ },
3423
+ successColor: {
3424
+ default: "--green-6",
3425
+ hover: "--green-5",
3426
+ active: "--green-7"
3427
+ },
3428
+ infoColor: {
3429
+ default: "--arcoblue-6",
3430
+ hover: "--arcoblue-5",
3431
+ active: "--arcoblue-7"
3432
+ },
3433
+ warningColor: {
3434
+ default: "--orangered-6",
3435
+ hover: "--orangered-5",
3436
+ active: "--orangered-7"
3437
+ },
3438
+ dangerColor: {
3439
+ default: "--red-6",
3440
+ hover: "--red-5",
3441
+ active: "--red-7"
3442
+ }
3443
+ };
3444
+ function ho(e) {
3445
+ if (e && wt(e)) {
3446
+ var n = document.body;
3447
+ Object.keys(Ye).forEach(function(r) {
3448
+ e[r] && (n.style.setProperty(Ye[r].default, Ke(e[r], 0)), e[r + "Hover"] || n.style.setProperty(Ye[r].hover, Ke(e[r], 10)), e[r + "Active"] || n.style.setProperty(Ye[r].active, Ke(e[r], -10)));
3449
+ });
3450
+ }
3451
+ }
3452
+ var go = Yr, bo = {};
3453
+ function Ve(e) {
3454
+ var n = Lr(e, go, bo), r = n.theme, t = n.prefixCls, o = n.children, a = n.locale, i = n.rtl, s = n.effectGlobalNotice, c = s === void 0 ? true : s, u = n.effectGlobalModal, l = u === void 0 ? true : u;
3455
+ useEffect(function() {
3456
+ ho(r);
3457
+ }, [r]), useEffect(function() {
3458
+ c && (Ie.config({ prefixCls: t, rtl: i }), Ne.config({ prefixCls: t, rtl: i }));
3459
+ }, [t, i, c]);
3460
+ function d(M, O) {
3461
+ return (O || t) + "-" + M;
3462
+ }
3463
+ var p = Ue(Ue({}, Ar(n, ["children"])), { getPrefixCls: d });
3464
+ useEffect(function() {
3465
+ l && yo({ locale: a, prefixCls: t, rtl: i });
3466
+ }, [a, t, i, l]);
3467
+ var b = o;
3468
+ return t && t !== "arco" && (b = React__default.createElement(ie.Provider, { value: { prefixCls: t } }, o)), React__default.createElement(_e.Provider, { value: p }, b);
3469
+ }
3470
+ Ve.ConfigContext = _e;
3471
+ Ve.displayName = "ConfigProvider";
3472
+ _e.Consumer;
3473
+ export {
3474
+ Nr as B,
3475
+ _e as C,
3476
+ Wr as E,
3477
+ jr as F,
3478
+ Nt as I,
3479
+ Ie as M,
3480
+ N as P,
3481
+ fe as _,
3482
+ Or as a,
3483
+ Vn as b,
3484
+ De as c,
3485
+ ie as d,
3486
+ Ee as e,
3487
+ Un as f,
3488
+ Xr as g,
3489
+ wt as h,
3490
+ be as i,
3491
+ Se as j,
3492
+ cr as k,
3493
+ We as l,
3494
+ Sr as m,
3495
+ xr as n,
3496
+ Ar as o,
3497
+ Me as p,
3498
+ Rn as q,
3499
+ Tt as r,
3500
+ vn as s,
3501
+ Lr as u,
3502
+ St as v,
3503
+ Ot as w,
3504
+ Ct as x,
3505
+ xt as y,
3506
+ Ve as z
3507
+ };
3508
+ //# sourceMappingURL=index-zvVd1BJp.es.es.js.map