@vectorx/agent-simulator 0.0.0-beta-20251112071234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -0
- package/bin/agent.js +55 -0
- package/lib/app.d.ts +43 -0
- package/lib/app.d.ts.map +1 -0
- package/lib/app.js +99 -0
- package/lib/app.js.map +1 -0
- package/lib/config/api.config.d.ts +2 -0
- package/lib/config/api.config.d.ts.map +1 -0
- package/lib/config/api.config.js +13 -0
- package/lib/config/api.config.js.map +1 -0
- package/lib/config/app.config.d.ts +22 -0
- package/lib/config/app.config.d.ts.map +1 -0
- package/lib/config/app.config.js +18 -0
- package/lib/config/app.config.js.map +1 -0
- package/lib/config/upload.config.d.ts +6 -0
- package/lib/config/upload.config.d.ts.map +1 -0
- package/lib/config/upload.config.js +10 -0
- package/lib/config/upload.config.js.map +1 -0
- package/lib/container/container.d.ts +6 -0
- package/lib/container/container.d.ts.map +1 -0
- package/lib/container/container.js +34 -0
- package/lib/container/container.js.map +1 -0
- package/lib/container/identifiers.d.ts +14 -0
- package/lib/container/identifiers.d.ts.map +1 -0
- package/lib/container/identifiers.js +20 -0
- package/lib/container/identifiers.js.map +1 -0
- package/lib/container/index.d.ts +4 -0
- package/lib/container/index.d.ts.map +1 -0
- package/lib/container/index.js +20 -0
- package/lib/container/index.js.map +1 -0
- package/lib/container/types.d.ts +48 -0
- package/lib/container/types.d.ts.map +1 -0
- package/lib/container/types.js +3 -0
- package/lib/container/types.js.map +1 -0
- package/lib/controllers/agent.controller.d.ts +19 -0
- package/lib/controllers/agent.controller.d.ts.map +1 -0
- package/lib/controllers/agent.controller.js +102 -0
- package/lib/controllers/agent.controller.js.map +1 -0
- package/lib/controllers/auth.controller.d.ts +23 -0
- package/lib/controllers/auth.controller.d.ts.map +1 -0
- package/lib/controllers/auth.controller.js +132 -0
- package/lib/controllers/auth.controller.js.map +1 -0
- package/lib/controllers/simulator.controller.d.ts +11 -0
- package/lib/controllers/simulator.controller.d.ts.map +1 -0
- package/lib/controllers/simulator.controller.js +44 -0
- package/lib/controllers/simulator.controller.js.map +1 -0
- package/lib/controllers/upload.controller.d.ts +8 -0
- package/lib/controllers/upload.controller.d.ts.map +1 -0
- package/lib/controllers/upload.controller.js +44 -0
- package/lib/controllers/upload.controller.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/lib/middleware/cors.middleware.d.ts +7 -0
- package/lib/middleware/cors.middleware.d.ts.map +1 -0
- package/lib/middleware/cors.middleware.js +14 -0
- package/lib/middleware/cors.middleware.js.map +1 -0
- package/lib/middleware/error.middleware.d.ts +8 -0
- package/lib/middleware/error.middleware.d.ts.map +1 -0
- package/lib/middleware/error.middleware.js +33 -0
- package/lib/middleware/error.middleware.js.map +1 -0
- package/lib/middleware/proxy.middleware.d.ts +3 -0
- package/lib/middleware/proxy.middleware.d.ts.map +1 -0
- package/lib/middleware/proxy.middleware.js +21 -0
- package/lib/middleware/proxy.middleware.js.map +1 -0
- package/lib/middleware/upload.middleware.d.ts +10 -0
- package/lib/middleware/upload.middleware.d.ts.map +1 -0
- package/lib/middleware/upload.middleware.js +27 -0
- package/lib/middleware/upload.middleware.js.map +1 -0
- package/lib/routes/agent.d.ts +3 -0
- package/lib/routes/agent.d.ts.map +1 -0
- package/lib/routes/agent.js +19 -0
- package/lib/routes/agent.js.map +1 -0
- package/lib/routes/auth.d.ts +3 -0
- package/lib/routes/auth.d.ts.map +1 -0
- package/lib/routes/auth.js +20 -0
- package/lib/routes/auth.js.map +1 -0
- package/lib/routes/index.d.ts +3 -0
- package/lib/routes/index.d.ts.map +1 -0
- package/lib/routes/index.js +19 -0
- package/lib/routes/index.js.map +1 -0
- package/lib/routes/simulator.d.ts +3 -0
- package/lib/routes/simulator.d.ts.map +1 -0
- package/lib/routes/simulator.js +14 -0
- package/lib/routes/simulator.js.map +1 -0
- package/lib/routes/upload.d.ts +3 -0
- package/lib/routes/upload.d.ts.map +1 -0
- package/lib/routes/upload.js +13 -0
- package/lib/routes/upload.js.map +1 -0
- package/lib/services/agent.service.d.ts +49 -0
- package/lib/services/agent.service.d.ts.map +1 -0
- package/lib/services/agent.service.js +147 -0
- package/lib/services/agent.service.js.map +1 -0
- package/lib/services/auth.service.d.ts +55 -0
- package/lib/services/auth.service.d.ts.map +1 -0
- package/lib/services/auth.service.js +124 -0
- package/lib/services/auth.service.js.map +1 -0
- package/lib/services/simulator.service.d.ts +23 -0
- package/lib/services/simulator.service.d.ts.map +1 -0
- package/lib/services/simulator.service.js +49 -0
- package/lib/services/simulator.service.js.map +1 -0
- package/lib/services/upload.service.d.ts +32 -0
- package/lib/services/upload.service.d.ts.map +1 -0
- package/lib/services/upload.service.js +61 -0
- package/lib/services/upload.service.js.map +1 -0
- package/lib/simulator.d.ts +27 -0
- package/lib/simulator.d.ts.map +1 -0
- package/lib/simulator.js +79 -0
- package/lib/simulator.js.map +1 -0
- package/lib/utils/logger.d.ts +8 -0
- package/lib/utils/logger.d.ts.map +1 -0
- package/lib/utils/logger.js +28 -0
- package/lib/utils/logger.js.map +1 -0
- package/lib/utils/request.d.ts +11 -0
- package/lib/utils/request.d.ts.map +1 -0
- package/lib/utils/request.js +36 -0
- package/lib/utils/request.js.map +1 -0
- package/lib/utils/url-parser.d.ts +14 -0
- package/lib/utils/url-parser.d.ts.map +1 -0
- package/lib/utils/url-parser.js +25 -0
- package/lib/utils/url-parser.js.map +1 -0
- package/lib/utils.d.ts +6 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +12 -0
- package/lib/utils.js.map +1 -0
- package/lib/webview-ui/Agent.d.ts +5 -0
- package/lib/webview-ui/Agent.d.ts.map +1 -0
- package/lib/webview-ui/Agent.js +24 -0
- package/lib/webview-ui/Agent.js.map +1 -0
- package/lib/webview-ui/App.d.ts +3 -0
- package/lib/webview-ui/App.d.ts.map +1 -0
- package/lib/webview-ui/App.js +775 -0
- package/lib/webview-ui/App.js.map +1 -0
- package/lib/webview-ui/ErrorBoundary.d.ts +19 -0
- package/lib/webview-ui/ErrorBoundary.d.ts.map +1 -0
- package/lib/webview-ui/ErrorBoundary.js +54 -0
- package/lib/webview-ui/ErrorBoundary.js.map +1 -0
- package/lib/webview-ui/components/AsyncTaskBlock.d.ts +13 -0
- package/lib/webview-ui/components/AsyncTaskBlock.d.ts.map +1 -0
- package/lib/webview-ui/components/AsyncTaskBlock.js +179 -0
- package/lib/webview-ui/components/AsyncTaskBlock.js.map +1 -0
- package/lib/webview-ui/components/AuthIndicator.d.ts +3 -0
- package/lib/webview-ui/components/AuthIndicator.d.ts.map +1 -0
- package/lib/webview-ui/components/AuthIndicator.js +17 -0
- package/lib/webview-ui/components/AuthIndicator.js.map +1 -0
- package/lib/webview-ui/components/ErrorCard.d.ts +11 -0
- package/lib/webview-ui/components/ErrorCard.d.ts.map +1 -0
- package/lib/webview-ui/components/ErrorCard.js +18 -0
- package/lib/webview-ui/components/ErrorCard.js.map +1 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchBlock.d.ts +20 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchBlock.d.ts.map +1 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchBlock.js +45 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchBlock.js.map +1 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchResult.d.ts +9 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchResult.d.ts.map +1 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchResult.js +31 -0
- package/lib/webview-ui/components/KnowledgeBaseSearchResult.js.map +1 -0
- package/lib/webview-ui/components/MarkdownRenderer.d.ts +7 -0
- package/lib/webview-ui/components/MarkdownRenderer.d.ts.map +1 -0
- package/lib/webview-ui/components/MarkdownRenderer.js +28 -0
- package/lib/webview-ui/components/MarkdownRenderer.js.map +1 -0
- package/lib/webview-ui/components/MessageRenderer.d.ts +7 -0
- package/lib/webview-ui/components/MessageRenderer.d.ts.map +1 -0
- package/lib/webview-ui/components/MessageRenderer.js +33 -0
- package/lib/webview-ui/components/MessageRenderer.js.map +1 -0
- package/lib/webview-ui/components/MultimodalFileRenderer.d.ts +20 -0
- package/lib/webview-ui/components/MultimodalFileRenderer.d.ts.map +1 -0
- package/lib/webview-ui/components/MultimodalFileRenderer.js +216 -0
- package/lib/webview-ui/components/MultimodalFileRenderer.js.map +1 -0
- package/lib/webview-ui/components/ThinkingBlock.d.ts +8 -0
- package/lib/webview-ui/components/ThinkingBlock.d.ts.map +1 -0
- package/lib/webview-ui/components/ThinkingBlock.js +75 -0
- package/lib/webview-ui/components/ThinkingBlock.js.map +1 -0
- package/lib/webview-ui/components/ToolUseBlock.d.ts +10 -0
- package/lib/webview-ui/components/ToolUseBlock.d.ts.map +1 -0
- package/lib/webview-ui/components/ToolUseBlock.js +14 -0
- package/lib/webview-ui/components/ToolUseBlock.js.map +1 -0
- package/lib/webview-ui/components/ToolUseBlockHeader.d.ts +10 -0
- package/lib/webview-ui/components/ToolUseBlockHeader.d.ts.map +1 -0
- package/lib/webview-ui/components/ToolUseBlockHeader.js +31 -0
- package/lib/webview-ui/components/ToolUseBlockHeader.js.map +1 -0
- package/lib/webview-ui/components/UploadPreview.d.ts +6 -0
- package/lib/webview-ui/components/UploadPreview.d.ts.map +1 -0
- package/lib/webview-ui/components/UploadPreview.js +12 -0
- package/lib/webview-ui/components/UploadPreview.js.map +1 -0
- package/lib/webview-ui/components/WelcomeModule.d.ts +10 -0
- package/lib/webview-ui/components/WelcomeModule.d.ts.map +1 -0
- package/lib/webview-ui/components/WelcomeModule.js +161 -0
- package/lib/webview-ui/components/WelcomeModule.js.map +1 -0
- package/lib/webview-ui/components/index.d.ts +14 -0
- package/lib/webview-ui/components/index.d.ts.map +1 -0
- package/lib/webview-ui/components/index.js +30 -0
- package/lib/webview-ui/components/index.js.map +1 -0
- package/lib/webview-ui/config/cos-config.d.ts +41 -0
- package/lib/webview-ui/config/cos-config.d.ts.map +1 -0
- package/lib/webview-ui/config/cos-config.js +83 -0
- package/lib/webview-ui/config/cos-config.js.map +1 -0
- package/lib/webview-ui/config/http-config.d.ts +8 -0
- package/lib/webview-ui/config/http-config.d.ts.map +1 -0
- package/lib/webview-ui/config/http-config.js +36 -0
- package/lib/webview-ui/config/http-config.js.map +1 -0
- package/lib/webview-ui/constants.d.ts +18 -0
- package/lib/webview-ui/constants.d.ts.map +1 -0
- package/lib/webview-ui/constants.js +25 -0
- package/lib/webview-ui/constants.js.map +1 -0
- package/lib/webview-ui/contexts/AgentContext.d.ts +13 -0
- package/lib/webview-ui/contexts/AgentContext.d.ts.map +1 -0
- package/lib/webview-ui/contexts/AgentContext.js +19 -0
- package/lib/webview-ui/contexts/AgentContext.js.map +1 -0
- package/lib/webview-ui/contexts/AuthContext.d.ts +17 -0
- package/lib/webview-ui/contexts/AuthContext.d.ts.map +1 -0
- package/lib/webview-ui/contexts/AuthContext.js +79 -0
- package/lib/webview-ui/contexts/AuthContext.js.map +1 -0
- package/lib/webview-ui/contexts/ThemeContext.d.ts +12 -0
- package/lib/webview-ui/contexts/ThemeContext.d.ts.map +1 -0
- package/lib/webview-ui/contexts/ThemeContext.js +21 -0
- package/lib/webview-ui/contexts/ThemeContext.js.map +1 -0
- package/lib/webview-ui/hooks/useAgentStatus.d.ts +17 -0
- package/lib/webview-ui/hooks/useAgentStatus.d.ts.map +1 -0
- package/lib/webview-ui/hooks/useAgentStatus.js +117 -0
- package/lib/webview-ui/hooks/useAgentStatus.js.map +1 -0
- package/lib/webview-ui/hooks/useUploader.d.ts +19 -0
- package/lib/webview-ui/hooks/useUploader.d.ts.map +1 -0
- package/lib/webview-ui/hooks/useUploader.js +132 -0
- package/lib/webview-ui/hooks/useUploader.js.map +1 -0
- package/lib/webview-ui/hooks/useUserAvatar.d.ts +28 -0
- package/lib/webview-ui/hooks/useUserAvatar.d.ts.map +1 -0
- package/lib/webview-ui/hooks/useUserAvatar.js +74 -0
- package/lib/webview-ui/hooks/useUserAvatar.js.map +1 -0
- package/lib/webview-ui/index.d.ts +3 -0
- package/lib/webview-ui/index.d.ts.map +1 -0
- package/lib/webview-ui/index.js +17 -0
- package/lib/webview-ui/index.js.map +1 -0
- package/lib/webview-ui/services/agent-service.d.ts +124 -0
- package/lib/webview-ui/services/agent-service.d.ts.map +1 -0
- package/lib/webview-ui/services/agent-service.js +80 -0
- package/lib/webview-ui/services/agent-service.js.map +1 -0
- package/lib/webview-ui/services/index.d.ts +3 -0
- package/lib/webview-ui/services/index.d.ts.map +1 -0
- package/lib/webview-ui/services/index.js +19 -0
- package/lib/webview-ui/services/index.js.map +1 -0
- package/lib/webview-ui/services/logger-service.d.ts +46 -0
- package/lib/webview-ui/services/logger-service.d.ts.map +1 -0
- package/lib/webview-ui/services/logger-service.js +69 -0
- package/lib/webview-ui/services/logger-service.js.map +1 -0
- package/lib/webview-ui/styles/copilot.d.ts +14 -0
- package/lib/webview-ui/styles/copilot.d.ts.map +1 -0
- package/lib/webview-ui/styles/copilot.js +119 -0
- package/lib/webview-ui/styles/copilot.js.map +1 -0
- package/lib/webview-ui/styles/workarea.d.ts +11 -0
- package/lib/webview-ui/styles/workarea.d.ts.map +1 -0
- package/lib/webview-ui/styles/workarea.js +73 -0
- package/lib/webview-ui/styles/workarea.js.map +1 -0
- package/lib/webview-ui/types.d.ts +65 -0
- package/lib/webview-ui/types.d.ts.map +1 -0
- package/lib/webview-ui/types.js +3 -0
- package/lib/webview-ui/types.js.map +1 -0
- package/lib/webview-ui/utils/cos.d.ts +65 -0
- package/lib/webview-ui/utils/cos.d.ts.map +1 -0
- package/lib/webview-ui/utils/cos.js +113 -0
- package/lib/webview-ui/utils/cos.js.map +1 -0
- package/lib/webview-ui/utils/http-client.d.ts +44 -0
- package/lib/webview-ui/utils/http-client.d.ts.map +1 -0
- package/lib/webview-ui/utils/http-client.js +101 -0
- package/lib/webview-ui/utils/http-client.js.map +1 -0
- package/lib/webview-ui/utils/stream-text-handler.d.ts +4 -0
- package/lib/webview-ui/utils/stream-text-handler.d.ts.map +1 -0
- package/lib/webview-ui/utils/stream-text-handler.js +54 -0
- package/lib/webview-ui/utils/stream-text-handler.js.map +1 -0
- package/lib/webview-ui/utils/upload.d.ts +8 -0
- package/lib/webview-ui/utils/upload.d.ts.map +1 -0
- package/lib/webview-ui/utils/upload.js +22 -0
- package/lib/webview-ui/utils/upload.js.map +1 -0
- package/lib/webview-ui/widgets/BubbleComponents.d.ts +8 -0
- package/lib/webview-ui/widgets/BubbleComponents.d.ts.map +1 -0
- package/lib/webview-ui/widgets/BubbleComponents.js +62 -0
- package/lib/webview-ui/widgets/BubbleComponents.js.map +1 -0
- package/lib/webview-ui/widgets/ChatInput.d.ts +27 -0
- package/lib/webview-ui/widgets/ChatInput.d.ts.map +1 -0
- package/lib/webview-ui/widgets/ChatInput.js +203 -0
- package/lib/webview-ui/widgets/ChatInput.js.map +1 -0
- package/lib/webview-ui/widgets/LogPanel.d.ts +15 -0
- package/lib/webview-ui/widgets/LogPanel.d.ts.map +1 -0
- package/lib/webview-ui/widgets/LogPanel.js +59 -0
- package/lib/webview-ui/widgets/LogPanel.js.map +1 -0
- package/lib/webview-ui/widgets/SystemLogs.d.ts +30 -0
- package/lib/webview-ui/widgets/SystemLogs.d.ts.map +1 -0
- package/lib/webview-ui/widgets/SystemLogs.js +460 -0
- package/lib/webview-ui/widgets/SystemLogs.js.map +1 -0
- package/lib/webview-ui/widgets/ToolBar.d.ts +18 -0
- package/lib/webview-ui/widgets/ToolBar.d.ts.map +1 -0
- package/lib/webview-ui/widgets/ToolBar.js +90 -0
- package/lib/webview-ui/widgets/ToolBar.js.map +1 -0
- package/lib/webview-ui/widgets/index.d.ts +6 -0
- package/lib/webview-ui/widgets/index.d.ts.map +1 -0
- package/lib/webview-ui/widgets/index.js +22 -0
- package/lib/webview-ui/widgets/index.js.map +1 -0
- package/package.json +92 -0
- package/public/assets/index-j_rEEDWU.js +93 -0
- package/public/assets/main.js +603 -0
- package/public/assets/style.css +1 -0
- package/public/index.html +15 -0
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
var L$=Object.defineProperty;var D$=(e,t,n)=>t in e?L$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zr=(e,t,n)=>D$(e,typeof t!="symbol"?t+"":t,n);function D6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var B$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B6={exports:{}},s0={},z6={exports:{}},jt={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var oc=Symbol.for("react.element"),z$=Symbol.for("react.portal"),H$=Symbol.for("react.fragment"),V$=Symbol.for("react.strict_mode"),U$=Symbol.for("react.profiler"),W$=Symbol.for("react.provider"),K$=Symbol.for("react.context"),q$=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),X$=Symbol.for("react.memo"),Y$=Symbol.for("react.lazy"),Cy=Symbol.iterator;function Q$(e){return e===null||typeof e!="object"?null:(e=Cy&&e[Cy]||e["@@iterator"],typeof e=="function"?e:null)}var H6={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V6=Object.assign,U6={};function sl(e,t,n){this.props=e,this.context=t,this.refs=U6,this.updater=n||H6}sl.prototype.isReactComponent={};sl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function W6(){}W6.prototype=sl.prototype;function q1(e,t,n){this.props=e,this.context=t,this.refs=U6,this.updater=n||H6}var G1=q1.prototype=new W6;G1.constructor=q1;V6(G1,sl.prototype);G1.isPureReactComponent=!0;var xy=Array.isArray,K6=Object.prototype.hasOwnProperty,X1={current:null},q6={key:!0,ref:!0,__self:!0,__source:!0};function G6(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)K6.call(t,r)&&!q6.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),d=0;d<s;d++)l[d]=arguments[d+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:oc,type:e,key:i,ref:a,props:o,_owner:X1.current}}function Z$(e,t){return{$$typeof:oc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Y1(e){return typeof e=="object"&&e!==null&&e.$$typeof===oc}function J$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sy=/\/+/g;function Yp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?J$(""+e.key):t.toString(36)}function Od(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case oc:case z$:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Yp(a,0):r,xy(o)?(n="",e!=null&&(n=e.replace(Sy,"$&/")+"/"),Od(o,t,n,"",function(d){return d})):o!=null&&(Y1(o)&&(o=Z$(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Sy,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",xy(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+Yp(i,s);a+=Od(i,t,n,l,o)}else if(l=Q$(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+Yp(i,s++),a+=Od(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Dc(e,t,n){if(e==null)return e;var r=[],o=0;return Od(e,r,"","",function(i){return t.call(n,i,o++)}),r}function eR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var mr={current:null},Pd={transition:null},tR={ReactCurrentDispatcher:mr,ReactCurrentBatchConfig:Pd,ReactCurrentOwner:X1};function X6(){throw Error("act(...) is not supported in production builds of React.")}jt.Children={map:Dc,forEach:function(e,t,n){Dc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Dc(e,function(){t++}),t},toArray:function(e){return Dc(e,function(t){return t})||[]},only:function(e){if(!Y1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};jt.Component=sl;jt.Fragment=H$;jt.Profiler=U$;jt.PureComponent=q1;jt.StrictMode=V$;jt.Suspense=G$;jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tR;jt.act=X6;jt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=V6({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=X1.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)K6.call(t,l)&&!q6.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var d=0;d<l;d++)s[d]=arguments[d+2];r.children=s}return{$$typeof:oc,type:e.type,key:o,ref:i,props:r,_owner:a}};jt.createContext=function(e){return e={$$typeof:K$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:W$,_context:e},e.Consumer=e};jt.createElement=G6;jt.createFactory=function(e){var t=G6.bind(null,e);return t.type=e,t};jt.createRef=function(){return{current:null}};jt.forwardRef=function(e){return{$$typeof:q$,render:e}};jt.isValidElement=Y1;jt.lazy=function(e){return{$$typeof:Y$,_payload:{_status:-1,_result:e},_init:eR}};jt.memo=function(e,t){return{$$typeof:X$,type:e,compare:t===void 0?null:t}};jt.startTransition=function(e){var t=Pd.transition;Pd.transition={};try{e()}finally{Pd.transition=t}};jt.unstable_act=X6;jt.useCallback=function(e,t){return mr.current.useCallback(e,t)};jt.useContext=function(e){return mr.current.useContext(e)};jt.useDebugValue=function(){};jt.useDeferredValue=function(e){return mr.current.useDeferredValue(e)};jt.useEffect=function(e,t){return mr.current.useEffect(e,t)};jt.useId=function(){return mr.current.useId()};jt.useImperativeHandle=function(e,t,n){return mr.current.useImperativeHandle(e,t,n)};jt.useInsertionEffect=function(e,t){return mr.current.useInsertionEffect(e,t)};jt.useLayoutEffect=function(e,t){return mr.current.useLayoutEffect(e,t)};jt.useMemo=function(e,t){return mr.current.useMemo(e,t)};jt.useReducer=function(e,t,n){return mr.current.useReducer(e,t,n)};jt.useRef=function(e){return mr.current.useRef(e)};jt.useState=function(e){return mr.current.useState(e)};jt.useSyncExternalStore=function(e,t,n){return mr.current.useSyncExternalStore(e,t,n)};jt.useTransition=function(){return mr.current.useTransition()};jt.version="18.3.1";z6.exports=jt;var u=z6.exports;const V=rc(u),Fs=D6({__proto__:null,default:V},[u]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var nR=u,rR=Symbol.for("react.element"),oR=Symbol.for("react.fragment"),iR=Object.prototype.hasOwnProperty,aR=nR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sR={key:!0,ref:!0,__self:!0,__source:!0};function Y6(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)iR.call(t,r)&&!sR.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:rR,type:e,key:i,ref:a,props:o,_owner:aR.current}}s0.Fragment=oR;s0.jsx=Y6;s0.jsxs=Y6;B6.exports=s0;var B=B6.exports,_m={},Q6={exports:{}},qr={},Z6={exports:{}},J6={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(A,D){var L=A.length;A.push(D);e:for(;0<L;){var z=L-1>>>1,q=A[z];if(0<o(q,D))A[z]=D,A[L]=q,L=z;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var D=A[0],L=A.pop();if(L!==D){A[0]=L;e:for(var z=0,q=A.length,U=q>>>1;z<U;){var H=2*(z+1)-1,K=A[H],X=H+1,Z=A[X];if(0>o(K,L))X<q&&0>o(Z,K)?(A[z]=Z,A[X]=L,z=X):(A[z]=K,A[H]=L,z=H);else if(X<q&&0>o(Z,L))A[z]=Z,A[X]=L,z=X;else break e}}return D}function o(A,D){var L=A.sortIndex-D.sortIndex;return L!==0?L:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],d=[],c=1,f=null,p=3,m=!1,h=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(A){for(var D=n(d);D!==null;){if(D.callback===null)r(d);else if(D.startTime<=A)r(d),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(d)}}function O(A){if(g=!1,C(A),!h)if(n(l)!==null)h=!0,M($);else{var D=n(d);D!==null&&j(O,D.startTime-A)}}function $(A,D){h=!1,g&&(g=!1,y(T),T=-1),m=!0;var L=p;try{for(C(D),f=n(l);f!==null&&(!(f.expirationTime>D)||A&&!E());){var z=f.callback;if(typeof z=="function"){f.callback=null,p=f.priorityLevel;var q=z(f.expirationTime<=D);D=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(l)&&r(l),C(D)}else r(l);f=n(l)}if(f!==null)var U=!0;else{var H=n(d);H!==null&&j(O,H.startTime-D),U=!1}return U}finally{f=null,p=L,m=!1}}var x=!1,w=null,T=-1,R=5,S=-1;function E(){return!(e.unstable_now()-S<R)}function P(){if(w!==null){var A=e.unstable_now();S=A;var D=!0;try{D=w(!0,A)}finally{D?I():(x=!1,w=null)}}else x=!1}var I;if(typeof v=="function")I=function(){v(P)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,N=k.port2;k.port1.onmessage=P,I=function(){N.postMessage(null)}}else I=function(){b(P,0)};function M(A){w=A,x||(x=!0,I())}function j(A,D){T=b(function(){A(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){h||m||(h=!0,M($))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var D=3;break;default:D=p}var L=p;p=D;try{return A()}finally{p=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,D){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var L=p;p=A;try{return D()}finally{p=L}},e.unstable_scheduleCallback=function(A,D,L){var z=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?z+L:z):L=z,A){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=L+q,A={id:c++,callback:D,priorityLevel:A,startTime:L,expirationTime:q,sortIndex:-1},L>z?(A.sortIndex=L,t(d,A),n(l)===null&&A===n(d)&&(g?(y(T),T=-1):g=!0,j(O,L-z))):(A.sortIndex=q,t(l,A),h||m||(h=!0,M($))),A},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(A){var D=p;return function(){var L=p;p=D;try{return A.apply(this,arguments)}finally{p=L}}}})(J6);Z6.exports=J6;var lR=Z6.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var uR=u,Vr=lR;function qe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ex=new Set,du={};function La(e,t){Ls(e,t),Ls(e+"Capture",t)}function Ls(e,t){for(du[e]=t,e=0;e<t.length;e++)ex.add(t[e])}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),km=Object.prototype.hasOwnProperty,cR=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,wy={},Ey={};function dR(e){return km.call(Ey,e)?!0:km.call(wy,e)?!1:cR.test(e)?Ey[e]=!0:(wy[e]=!0,!1)}function fR(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pR(e,t,n,r){if(t===null||typeof t>"u"||fR(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Zn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zn[e]=new gr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zn[t]=new gr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zn[e]=new gr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zn[e]=new gr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Zn[e]=new gr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zn[e]=new gr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zn[e]=new gr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zn[e]=new gr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zn[e]=new gr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q1=/[\-:]([a-z])/g;function Z1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q1,Z1);Zn[t]=new gr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Q1,Z1);Zn[t]=new gr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Q1,Z1);Zn[t]=new gr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zn[e]=new gr(e,1,!1,e.toLowerCase(),null,!1,!1)});Zn.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zn[e]=new gr(e,1,!1,e.toLowerCase(),null,!0,!0)});function J1(e,t,n,r){var o=Zn.hasOwnProperty(t)?Zn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pR(t,n,o,r)&&(n=null),r||o===null?dR(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var bi=uR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bc=Symbol.for("react.element"),os=Symbol.for("react.portal"),is=Symbol.for("react.fragment"),ev=Symbol.for("react.strict_mode"),Mm=Symbol.for("react.profiler"),tx=Symbol.for("react.provider"),nx=Symbol.for("react.context"),tv=Symbol.for("react.forward_ref"),Am=Symbol.for("react.suspense"),Nm=Symbol.for("react.suspense_list"),nv=Symbol.for("react.memo"),Pi=Symbol.for("react.lazy"),rx=Symbol.for("react.offscreen"),$y=Symbol.iterator;function wl(e){return e===null||typeof e!="object"?null:(e=$y&&e[$y]||e["@@iterator"],typeof e=="function"?e:null)}var Cn=Object.assign,Qp;function Hl(e){if(Qp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qp=t&&t[1]||""}return`
|
|
34
|
+
`+Qp+e}var Zp=!1;function Jp(e,t){if(!e||Zp)return"";Zp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
|
|
37
|
+
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Zp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hl(e):""}function hR(e){switch(e.tag){case 5:return Hl(e.type);case 16:return Hl("Lazy");case 13:return Hl("Suspense");case 19:return Hl("SuspenseList");case 0:case 2:case 15:return e=Jp(e.type,!1),e;case 11:return e=Jp(e.type.render,!1),e;case 1:return e=Jp(e.type,!0),e;default:return""}}function jm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case is:return"Fragment";case os:return"Portal";case Mm:return"Profiler";case ev:return"StrictMode";case Am:return"Suspense";case Nm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nx:return(e.displayName||"Context")+".Consumer";case tx:return(e._context.displayName||"Context")+".Provider";case tv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nv:return t=e.displayName||null,t!==null?t:jm(e.type)||"Memo";case Pi:t=e._payload,e=e._init;try{return jm(e(t))}catch{}}return null}function mR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jm(t);case 8:return t===ev?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ox(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gR(e){var t=ox(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zc(e){e._valueTracker||(e._valueTracker=gR(e))}function ix(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ox(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Fm(e,t){var n=t.checked;return Cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ry(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ax(e,t){t=t.checked,t!=null&&J1(e,"checked",t,!1)}function Lm(e,t){ax(e,t);var n=Qi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dm(e,t.type,Qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dm(e,t,n){(t!=="number"||sf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vl=Array.isArray;function Ss(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qi(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Bm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(qe(91));return Cn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Py(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(qe(92));if(Vl(n)){if(1<n.length)throw Error(qe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qi(n)}}function sx(e,t){var n=Qi(t.value),r=Qi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Iy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function zm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hc,ux=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hc=Hc||document.createElement("div"),Hc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vR=["Webkit","ms","Moz","O"];Object.keys(Zl).forEach(function(e){vR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zl[t]=Zl[e]})});function cx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zl.hasOwnProperty(e)&&Zl[e]?(""+t).trim():t+"px"}function dx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var yR=Cn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hm(e,t){if(t){if(yR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(qe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(qe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(qe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(qe(62))}}function Vm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Um=null;function rv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wm=null,ws=null,Es=null;function Ty(e){if(e=sc(e)){if(typeof Wm!="function")throw Error(qe(280));var t=e.stateNode;t&&(t=f0(t),Wm(e.stateNode,e.type,t))}}function fx(e){ws?Es?Es.push(e):Es=[e]:ws=e}function px(){if(ws){var e=ws,t=Es;if(Es=ws=null,Ty(e),t)for(e=0;e<t.length;e++)Ty(t[e])}}function hx(e,t){return e(t)}function mx(){}var eh=!1;function gx(e,t,n){if(eh)return e(t,n);eh=!0;try{return hx(e,t,n)}finally{eh=!1,(ws!==null||Es!==null)&&(mx(),px())}}function pu(e,t){var n=e.stateNode;if(n===null)return null;var r=f0(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(qe(231,t,typeof n));return n}var Km=!1;if(fi)try{var El={};Object.defineProperty(El,"passive",{get:function(){Km=!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{Km=!1}function bR(e,t,n,r,o,i,a,s,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(c){this.onError(c)}}var Jl=!1,lf=null,uf=!1,qm=null,CR={onError:function(e){Jl=!0,lf=e}};function xR(e,t,n,r,o,i,a,s,l){Jl=!1,lf=null,bR.apply(CR,arguments)}function SR(e,t,n,r,o,i,a,s,l){if(xR.apply(this,arguments),Jl){if(Jl){var d=lf;Jl=!1,lf=null}else throw Error(qe(198));uf||(uf=!0,qm=d)}}function Da(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vx(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _y(e){if(Da(e)!==e)throw Error(qe(188))}function wR(e){var t=e.alternate;if(!t){if(t=Da(e),t===null)throw Error(qe(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return _y(o),e;if(i===r)return _y(o),t;i=i.sibling}throw Error(qe(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(qe(189))}}if(n.alternate!==r)throw Error(qe(190))}if(n.tag!==3)throw Error(qe(188));return n.stateNode.current===n?e:t}function yx(e){return e=wR(e),e!==null?bx(e):null}function bx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bx(e);if(t!==null)return t;e=e.sibling}return null}var Cx=Vr.unstable_scheduleCallback,ky=Vr.unstable_cancelCallback,ER=Vr.unstable_shouldYield,$R=Vr.unstable_requestPaint,Pn=Vr.unstable_now,RR=Vr.unstable_getCurrentPriorityLevel,ov=Vr.unstable_ImmediatePriority,xx=Vr.unstable_UserBlockingPriority,cf=Vr.unstable_NormalPriority,OR=Vr.unstable_LowPriority,Sx=Vr.unstable_IdlePriority,l0=null,Ko=null;function PR(e){if(Ko&&typeof Ko.onCommitFiberRoot=="function")try{Ko.onCommitFiberRoot(l0,e,void 0,(e.current.flags&128)===128)}catch{}}var wo=Math.clz32?Math.clz32:_R,IR=Math.log,TR=Math.LN2;function _R(e){return e>>>=0,e===0?32:31-(IR(e)/TR|0)|0}var Vc=64,Uc=4194304;function Ul(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function df(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ul(s):(i&=a,i!==0&&(r=Ul(i)))}else a=n&~o,a!==0?r=Ul(a):i!==0&&(r=Ul(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-wo(t),o=1<<n,r|=e[n],t&=~o;return r}function kR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function MR(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-wo(i),s=1<<a,l=o[a];l===-1?(!(s&n)||s&r)&&(o[a]=kR(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function Gm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wx(){var e=Vc;return Vc<<=1,!(Vc&4194240)&&(Vc=64),e}function th(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ic(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wo(t),e[t]=n}function AR(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wo(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function iv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wo(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var tn=0;function Ex(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $x,av,Rx,Ox,Px,Xm=!1,Wc=[],zi=null,Hi=null,Vi=null,hu=new Map,mu=new Map,_i=[],NR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function My(e,t){switch(e){case"focusin":case"focusout":zi=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":Vi=null;break;case"pointerover":case"pointerout":hu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mu.delete(t.pointerId)}}function $l(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=sc(t),t!==null&&av(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function jR(e,t,n,r,o){switch(t){case"focusin":return zi=$l(zi,e,t,n,r,o),!0;case"dragenter":return Hi=$l(Hi,e,t,n,r,o),!0;case"mouseover":return Vi=$l(Vi,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return hu.set(i,$l(hu.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,mu.set(i,$l(mu.get(i)||null,e,t,n,r,o)),!0}return!1}function Ix(e){var t=ma(e.target);if(t!==null){var n=Da(t);if(n!==null){if(t=n.tag,t===13){if(t=vx(n),t!==null){e.blockedOn=t,Px(e.priority,function(){Rx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Id(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ym(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Um=r,n.target.dispatchEvent(r),Um=null}else return t=sc(n),t!==null&&av(t),e.blockedOn=n,!1;t.shift()}return!0}function Ay(e,t,n){Id(e)&&n.delete(t)}function FR(){Xm=!1,zi!==null&&Id(zi)&&(zi=null),Hi!==null&&Id(Hi)&&(Hi=null),Vi!==null&&Id(Vi)&&(Vi=null),hu.forEach(Ay),mu.forEach(Ay)}function Rl(e,t){e.blockedOn===t&&(e.blockedOn=null,Xm||(Xm=!0,Vr.unstable_scheduleCallback(Vr.unstable_NormalPriority,FR)))}function gu(e){function t(o){return Rl(o,e)}if(0<Wc.length){Rl(Wc[0],e);for(var n=1;n<Wc.length;n++){var r=Wc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zi!==null&&Rl(zi,e),Hi!==null&&Rl(Hi,e),Vi!==null&&Rl(Vi,e),hu.forEach(t),mu.forEach(t),n=0;n<_i.length;n++)r=_i[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_i.length&&(n=_i[0],n.blockedOn===null);)Ix(n),n.blockedOn===null&&_i.shift()}var $s=bi.ReactCurrentBatchConfig,ff=!0;function LR(e,t,n,r){var o=tn,i=$s.transition;$s.transition=null;try{tn=1,sv(e,t,n,r)}finally{tn=o,$s.transition=i}}function DR(e,t,n,r){var o=tn,i=$s.transition;$s.transition=null;try{tn=4,sv(e,t,n,r)}finally{tn=o,$s.transition=i}}function sv(e,t,n,r){if(ff){var o=Ym(e,t,n,r);if(o===null)dh(e,t,r,pf,n),My(e,r);else if(jR(o,e,t,n,r))r.stopPropagation();else if(My(e,r),t&4&&-1<NR.indexOf(e)){for(;o!==null;){var i=sc(o);if(i!==null&&$x(i),i=Ym(e,t,n,r),i===null&&dh(e,t,r,pf,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else dh(e,t,r,null,n)}}var pf=null;function Ym(e,t,n,r){if(pf=null,e=rv(r),e=ma(e),e!==null)if(t=Da(e),t===null)e=null;else if(n=t.tag,n===13){if(e=vx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pf=e,null}function Tx(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(RR()){case ov:return 1;case xx:return 4;case cf:case OR:return 16;case Sx:return 536870912;default:return 16}default:return 16}}var Ai=null,lv=null,Td=null;function _x(){if(Td)return Td;var e,t=lv,n=t.length,r,o="value"in Ai?Ai.value:Ai.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return Td=o.slice(e,1<r?1-r:void 0)}function _d(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Kc(){return!0}function Ny(){return!1}function Gr(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Kc:Ny,this.isPropagationStopped=Ny,this}return Cn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Kc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Kc)},persist:function(){},isPersistent:Kc}),t}var ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uv=Gr(ll),ac=Cn({},ll,{view:0,detail:0}),BR=Gr(ac),nh,rh,Ol,u0=Cn({},ac,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ol&&(Ol&&e.type==="mousemove"?(nh=e.screenX-Ol.screenX,rh=e.screenY-Ol.screenY):rh=nh=0,Ol=e),nh)},movementY:function(e){return"movementY"in e?e.movementY:rh}}),jy=Gr(u0),zR=Cn({},u0,{dataTransfer:0}),HR=Gr(zR),VR=Cn({},ac,{relatedTarget:0}),oh=Gr(VR),UR=Cn({},ll,{animationName:0,elapsedTime:0,pseudoElement:0}),WR=Gr(UR),KR=Cn({},ll,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qR=Gr(KR),GR=Cn({},ll,{data:0}),Fy=Gr(GR),XR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},QR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=QR[e])?!!t[e]:!1}function cv(){return ZR}var JR=Cn({},ac,{key:function(e){if(e.key){var t=XR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_d(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?YR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cv,charCode:function(e){return e.type==="keypress"?_d(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_d(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eO=Gr(JR),tO=Cn({},u0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=Gr(tO),nO=Cn({},ac,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cv}),rO=Gr(nO),oO=Cn({},ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),iO=Gr(oO),aO=Cn({},u0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sO=Gr(aO),lO=[9,13,27,32],dv=fi&&"CompositionEvent"in window,eu=null;fi&&"documentMode"in document&&(eu=document.documentMode);var uO=fi&&"TextEvent"in window&&!eu,kx=fi&&(!dv||eu&&8<eu&&11>=eu),Dy=" ",By=!1;function Mx(e,t){switch(e){case"keyup":return lO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ax(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function cO(e,t){switch(e){case"compositionend":return Ax(t);case"keypress":return t.which!==32?null:(By=!0,Dy);case"textInput":return e=t.data,e===Dy&&By?null:e;default:return null}}function dO(e,t){if(as)return e==="compositionend"||!dv&&Mx(e,t)?(e=_x(),Td=lv=Ai=null,as=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kx&&t.locale!=="ko"?null:t.data;default:return null}}var fO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fO[e.type]:t==="textarea"}function Nx(e,t,n,r){fx(r),t=hf(t,"onChange"),0<t.length&&(n=new uv("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tu=null,vu=null;function pO(e){Kx(e,0)}function c0(e){var t=us(e);if(ix(t))return e}function hO(e,t){if(e==="change")return t}var jx=!1;if(fi){var ih;if(fi){var ah="oninput"in document;if(!ah){var Hy=document.createElement("div");Hy.setAttribute("oninput","return;"),ah=typeof Hy.oninput=="function"}ih=ah}else ih=!1;jx=ih&&(!document.documentMode||9<document.documentMode)}function Vy(){tu&&(tu.detachEvent("onpropertychange",Fx),vu=tu=null)}function Fx(e){if(e.propertyName==="value"&&c0(vu)){var t=[];Nx(t,vu,e,rv(e)),gx(pO,t)}}function mO(e,t,n){e==="focusin"?(Vy(),tu=t,vu=n,tu.attachEvent("onpropertychange",Fx)):e==="focusout"&&Vy()}function gO(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return c0(vu)}function vO(e,t){if(e==="click")return c0(t)}function yO(e,t){if(e==="input"||e==="change")return c0(t)}function bO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Io=typeof Object.is=="function"?Object.is:bO;function yu(e,t){if(Io(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!km.call(t,o)||!Io(e[o],t[o]))return!1}return!0}function Uy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wy(e,t){var n=Uy(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uy(n)}}function Lx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dx(){for(var e=window,t=sf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sf(e.document)}return t}function fv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function CO(e){var t=Dx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lx(n.ownerDocument.documentElement,n)){if(r!==null&&fv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Wy(n,i);var a=Wy(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xO=fi&&"documentMode"in document&&11>=document.documentMode,ss=null,Qm=null,nu=null,Zm=!1;function Ky(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zm||ss==null||ss!==sf(r)||(r=ss,"selectionStart"in r&&fv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),nu&&yu(nu,r)||(nu=r,r=hf(Qm,"onSelect"),0<r.length&&(t=new uv("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ss)))}function qc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ls={animationend:qc("Animation","AnimationEnd"),animationiteration:qc("Animation","AnimationIteration"),animationstart:qc("Animation","AnimationStart"),transitionend:qc("Transition","TransitionEnd")},sh={},Bx={};fi&&(Bx=document.createElement("div").style,"AnimationEvent"in window||(delete ls.animationend.animation,delete ls.animationiteration.animation,delete ls.animationstart.animation),"TransitionEvent"in window||delete ls.transitionend.transition);function d0(e){if(sh[e])return sh[e];if(!ls[e])return e;var t=ls[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bx)return sh[e]=t[n];return e}var zx=d0("animationend"),Hx=d0("animationiteration"),Vx=d0("animationstart"),Ux=d0("transitionend"),Wx=new Map,qy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ra(e,t){Wx.set(e,t),La(t,[e])}for(var lh=0;lh<qy.length;lh++){var uh=qy[lh],SO=uh.toLowerCase(),wO=uh[0].toUpperCase()+uh.slice(1);ra(SO,"on"+wO)}ra(zx,"onAnimationEnd");ra(Hx,"onAnimationIteration");ra(Vx,"onAnimationStart");ra("dblclick","onDoubleClick");ra("focusin","onFocus");ra("focusout","onBlur");ra(Ux,"onTransitionEnd");Ls("onMouseEnter",["mouseout","mouseover"]);Ls("onMouseLeave",["mouseout","mouseover"]);Ls("onPointerEnter",["pointerout","pointerover"]);Ls("onPointerLeave",["pointerout","pointerover"]);La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));La("onBeforeInput",["compositionend","keypress","textInput","paste"]);La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),EO=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wl));function Gy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,SR(r,t,void 0,e),e.currentTarget=null}function Kx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,d=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Gy(o,s,d),i=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,d=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Gy(o,s,d),i=l}}}if(uf)throw e=qm,uf=!1,qm=null,e}function dn(e,t){var n=t[rg];n===void 0&&(n=t[rg]=new Set);var r=e+"__bubble";n.has(r)||(qx(t,e,2,!1),n.add(r))}function ch(e,t,n){var r=0;t&&(r|=4),qx(n,e,r,t)}var Gc="_reactListening"+Math.random().toString(36).slice(2);function bu(e){if(!e[Gc]){e[Gc]=!0,ex.forEach(function(n){n!=="selectionchange"&&(EO.has(n)||ch(n,!1,e),ch(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gc]||(t[Gc]=!0,ch("selectionchange",!1,t))}}function qx(e,t,n,r){switch(Tx(t)){case 1:var o=LR;break;case 4:o=DR;break;default:o=sv}n=o.bind(null,t,n,e),o=void 0,!Km||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function dh(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=ma(s),a===null)return;if(l=a.tag,l===5||l===6){r=i=a;continue e}s=s.parentNode}}r=r.return}gx(function(){var d=i,c=rv(n),f=[];e:{var p=Wx.get(e);if(p!==void 0){var m=uv,h=e;switch(e){case"keypress":if(_d(n)===0)break e;case"keydown":case"keyup":m=eO;break;case"focusin":h="focus",m=oh;break;case"focusout":h="blur",m=oh;break;case"beforeblur":case"afterblur":m=oh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=jy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=HR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=rO;break;case zx:case Hx:case Vx:m=WR;break;case Ux:m=iO;break;case"scroll":m=BR;break;case"wheel":m=sO;break;case"copy":case"cut":case"paste":m=qR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Ly}var g=(t&4)!==0,b=!g&&e==="scroll",y=g?p!==null?p+"Capture":null:p;g=[];for(var v=d,C;v!==null;){C=v;var O=C.stateNode;if(C.tag===5&&O!==null&&(C=O,y!==null&&(O=pu(v,y),O!=null&&g.push(Cu(v,O,C)))),b)break;v=v.return}0<g.length&&(p=new m(p,h,null,n,c),f.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==Um&&(h=n.relatedTarget||n.fromElement)&&(ma(h)||h[pi]))break e;if((m||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,m?(h=n.relatedTarget||n.toElement,m=d,h=h?ma(h):null,h!==null&&(b=Da(h),h!==b||h.tag!==5&&h.tag!==6)&&(h=null)):(m=null,h=d),m!==h)){if(g=jy,O="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(g=Ly,O="onPointerLeave",y="onPointerEnter",v="pointer"),b=m==null?p:us(m),C=h==null?p:us(h),p=new g(O,v+"leave",m,n,c),p.target=b,p.relatedTarget=C,O=null,ma(c)===d&&(g=new g(y,v+"enter",h,n,c),g.target=C,g.relatedTarget=b,O=g),b=O,m&&h)t:{for(g=m,y=h,v=0,C=g;C;C=Wa(C))v++;for(C=0,O=y;O;O=Wa(O))C++;for(;0<v-C;)g=Wa(g),v--;for(;0<C-v;)y=Wa(y),C--;for(;v--;){if(g===y||y!==null&&g===y.alternate)break t;g=Wa(g),y=Wa(y)}g=null}else g=null;m!==null&&Xy(f,p,m,g,!1),h!==null&&b!==null&&Xy(f,b,h,g,!0)}}e:{if(p=d?us(d):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var $=hO;else if(zy(p))if(jx)$=yO;else{$=gO;var x=mO}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&($=vO);if($&&($=$(e,d))){Nx(f,$,n,c);break e}x&&x(e,p,d),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&Dm(p,"number",p.value)}switch(x=d?us(d):window,e){case"focusin":(zy(x)||x.contentEditable==="true")&&(ss=x,Qm=d,nu=null);break;case"focusout":nu=Qm=ss=null;break;case"mousedown":Zm=!0;break;case"contextmenu":case"mouseup":case"dragend":Zm=!1,Ky(f,n,c);break;case"selectionchange":if(xO)break;case"keydown":case"keyup":Ky(f,n,c)}var w;if(dv)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else as?Mx(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(kx&&n.locale!=="ko"&&(as||T!=="onCompositionStart"?T==="onCompositionEnd"&&as&&(w=_x()):(Ai=c,lv="value"in Ai?Ai.value:Ai.textContent,as=!0)),x=hf(d,T),0<x.length&&(T=new Fy(T,e,null,n,c),f.push({event:T,listeners:x}),w?T.data=w:(w=Ax(n),w!==null&&(T.data=w)))),(w=uO?cO(e,n):dO(e,n))&&(d=hf(d,"onBeforeInput"),0<d.length&&(c=new Fy("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:d}),c.data=w))}Kx(f,t)})}function Cu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hf(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=pu(e,n),i!=null&&r.unshift(Cu(e,i,o)),i=pu(e,t),i!=null&&r.push(Cu(e,i,o))),e=e.return}return r}function Wa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xy(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,d=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&d!==null&&(s=d,o?(l=pu(n,i),l!=null&&a.unshift(Cu(n,l,s))):o||(l=pu(n,i),l!=null&&a.push(Cu(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var $O=/\r\n?/g,RO=/\u0000|\uFFFD/g;function Yy(e){return(typeof e=="string"?e:""+e).replace($O,`
|
|
38
|
+
`).replace(RO,"")}function Xc(e,t,n){if(t=Yy(t),Yy(e)!==t&&n)throw Error(qe(425))}function mf(){}var Jm=null,eg=null;function tg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ng=typeof setTimeout=="function"?setTimeout:void 0,OO=typeof clearTimeout=="function"?clearTimeout:void 0,Qy=typeof Promise=="function"?Promise:void 0,PO=typeof queueMicrotask=="function"?queueMicrotask:typeof Qy<"u"?function(e){return Qy.resolve(null).then(e).catch(IO)}:ng;function IO(e){setTimeout(function(){throw e})}function fh(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),gu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);gu(t)}function Ui(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ul=Math.random().toString(36).slice(2),Vo="__reactFiber$"+ul,xu="__reactProps$"+ul,pi="__reactContainer$"+ul,rg="__reactEvents$"+ul,TO="__reactListeners$"+ul,_O="__reactHandles$"+ul;function ma(e){var t=e[Vo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[Vo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zy(e);e!==null;){if(n=e[Vo])return n;e=Zy(e)}return t}e=n,n=e.parentNode}return null}function sc(e){return e=e[Vo]||e[pi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function us(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(qe(33))}function f0(e){return e[xu]||null}var og=[],cs=-1;function oa(e){return{current:e}}function fn(e){0>cs||(e.current=og[cs],og[cs]=null,cs--)}function ln(e,t){cs++,og[cs]=e.current,e.current=t}var Zi={},ar=oa(Zi),xr=oa(!1),Pa=Zi;function Ds(e,t){var n=e.type.contextTypes;if(!n)return Zi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Sr(e){return e=e.childContextTypes,e!=null}function gf(){fn(xr),fn(ar)}function Jy(e,t,n){if(ar.current!==Zi)throw Error(qe(168));ln(ar,t),ln(xr,n)}function Gx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(qe(108,mR(e)||"Unknown",o));return Cn({},n,r)}function vf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zi,Pa=ar.current,ln(ar,e),ln(xr,xr.current),!0}function eb(e,t,n){var r=e.stateNode;if(!r)throw Error(qe(169));n?(e=Gx(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,fn(xr),fn(ar),ln(ar,e)):fn(xr),ln(xr,n)}var ai=null,p0=!1,ph=!1;function Xx(e){ai===null?ai=[e]:ai.push(e)}function kO(e){p0=!0,Xx(e)}function ia(){if(!ph&&ai!==null){ph=!0;var e=0,t=tn;try{var n=ai;for(tn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ai=null,p0=!1}catch(o){throw ai!==null&&(ai=ai.slice(e+1)),Cx(ov,ia),o}finally{tn=t,ph=!1}}return null}var ds=[],fs=0,yf=null,bf=0,oo=[],io=0,Ia=null,si=1,li="";function ca(e,t){ds[fs++]=bf,ds[fs++]=yf,yf=e,bf=t}function Yx(e,t,n){oo[io++]=si,oo[io++]=li,oo[io++]=Ia,Ia=e;var r=si;e=li;var o=32-wo(r)-1;r&=~(1<<o),n+=1;var i=32-wo(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,si=1<<32-wo(t)+o|n<<o|r,li=i+e}else si=1<<i|n<<o|r,li=e}function pv(e){e.return!==null&&(ca(e,1),Yx(e,1,0))}function hv(e){for(;e===yf;)yf=ds[--fs],ds[fs]=null,bf=ds[--fs],ds[fs]=null;for(;e===Ia;)Ia=oo[--io],oo[io]=null,li=oo[--io],oo[io]=null,si=oo[--io],oo[io]=null}var Br=null,Fr=null,gn=!1,xo=null;function Qx(e,t){var n=ao(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function tb(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Br=e,Fr=Ui(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Br=e,Fr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ia!==null?{id:si,overflow:li}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ao(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Br=e,Fr=null,!0):!1;default:return!1}}function ig(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ag(e){if(gn){var t=Fr;if(t){var n=t;if(!tb(e,t)){if(ig(e))throw Error(qe(418));t=Ui(n.nextSibling);var r=Br;t&&tb(e,t)?Qx(r,n):(e.flags=e.flags&-4097|2,gn=!1,Br=e)}}else{if(ig(e))throw Error(qe(418));e.flags=e.flags&-4097|2,gn=!1,Br=e}}}function nb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Br=e}function Yc(e){if(e!==Br)return!1;if(!gn)return nb(e),gn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tg(e.type,e.memoizedProps)),t&&(t=Fr)){if(ig(e))throw Zx(),Error(qe(418));for(;t;)Qx(e,t),t=Ui(t.nextSibling)}if(nb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(qe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Fr=Ui(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Fr=null}}else Fr=Br?Ui(e.stateNode.nextSibling):null;return!0}function Zx(){for(var e=Fr;e;)e=Ui(e.nextSibling)}function Bs(){Fr=Br=null,gn=!1}function mv(e){xo===null?xo=[e]:xo.push(e)}var MO=bi.ReactCurrentBatchConfig;function Pl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(qe(309));var r=n.stateNode}if(!r)throw Error(qe(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(qe(284));if(!n._owner)throw Error(qe(290,e))}return e}function Qc(e,t){throw e=Object.prototype.toString.call(t),Error(qe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rb(e){var t=e._init;return t(e._payload)}function Jx(e){function t(y,v){if(e){var C=y.deletions;C===null?(y.deletions=[v],y.flags|=16):C.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function o(y,v){return y=Gi(y,v),y.index=0,y.sibling=null,y}function i(y,v,C){return y.index=C,e?(C=y.alternate,C!==null?(C=C.index,C<v?(y.flags|=2,v):C):(y.flags|=2,v)):(y.flags|=1048576,v)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,v,C,O){return v===null||v.tag!==6?(v=Ch(C,y.mode,O),v.return=y,v):(v=o(v,C),v.return=y,v)}function l(y,v,C,O){var $=C.type;return $===is?c(y,v,C.props.children,O,C.key):v!==null&&(v.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Pi&&rb($)===v.type)?(O=o(v,C.props),O.ref=Pl(y,v,C),O.return=y,O):(O=Ld(C.type,C.key,C.props,null,y.mode,O),O.ref=Pl(y,v,C),O.return=y,O)}function d(y,v,C,O){return v===null||v.tag!==4||v.stateNode.containerInfo!==C.containerInfo||v.stateNode.implementation!==C.implementation?(v=xh(C,y.mode,O),v.return=y,v):(v=o(v,C.children||[]),v.return=y,v)}function c(y,v,C,O,$){return v===null||v.tag!==7?(v=Ea(C,y.mode,O,$),v.return=y,v):(v=o(v,C),v.return=y,v)}function f(y,v,C){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ch(""+v,y.mode,C),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Bc:return C=Ld(v.type,v.key,v.props,null,y.mode,C),C.ref=Pl(y,null,v),C.return=y,C;case os:return v=xh(v,y.mode,C),v.return=y,v;case Pi:var O=v._init;return f(y,O(v._payload),C)}if(Vl(v)||wl(v))return v=Ea(v,y.mode,C,null),v.return=y,v;Qc(y,v)}return null}function p(y,v,C,O){var $=v!==null?v.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return $!==null?null:s(y,v,""+C,O);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Bc:return C.key===$?l(y,v,C,O):null;case os:return C.key===$?d(y,v,C,O):null;case Pi:return $=C._init,p(y,v,$(C._payload),O)}if(Vl(C)||wl(C))return $!==null?null:c(y,v,C,O,null);Qc(y,C)}return null}function m(y,v,C,O,$){if(typeof O=="string"&&O!==""||typeof O=="number")return y=y.get(C)||null,s(v,y,""+O,$);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Bc:return y=y.get(O.key===null?C:O.key)||null,l(v,y,O,$);case os:return y=y.get(O.key===null?C:O.key)||null,d(v,y,O,$);case Pi:var x=O._init;return m(y,v,C,x(O._payload),$)}if(Vl(O)||wl(O))return y=y.get(C)||null,c(v,y,O,$,null);Qc(v,O)}return null}function h(y,v,C,O){for(var $=null,x=null,w=v,T=v=0,R=null;w!==null&&T<C.length;T++){w.index>T?(R=w,w=null):R=w.sibling;var S=p(y,w,C[T],O);if(S===null){w===null&&(w=R);break}e&&w&&S.alternate===null&&t(y,w),v=i(S,v,T),x===null?$=S:x.sibling=S,x=S,w=R}if(T===C.length)return n(y,w),gn&&ca(y,T),$;if(w===null){for(;T<C.length;T++)w=f(y,C[T],O),w!==null&&(v=i(w,v,T),x===null?$=w:x.sibling=w,x=w);return gn&&ca(y,T),$}for(w=r(y,w);T<C.length;T++)R=m(w,y,T,C[T],O),R!==null&&(e&&R.alternate!==null&&w.delete(R.key===null?T:R.key),v=i(R,v,T),x===null?$=R:x.sibling=R,x=R);return e&&w.forEach(function(E){return t(y,E)}),gn&&ca(y,T),$}function g(y,v,C,O){var $=wl(C);if(typeof $!="function")throw Error(qe(150));if(C=$.call(C),C==null)throw Error(qe(151));for(var x=$=null,w=v,T=v=0,R=null,S=C.next();w!==null&&!S.done;T++,S=C.next()){w.index>T?(R=w,w=null):R=w.sibling;var E=p(y,w,S.value,O);if(E===null){w===null&&(w=R);break}e&&w&&E.alternate===null&&t(y,w),v=i(E,v,T),x===null?$=E:x.sibling=E,x=E,w=R}if(S.done)return n(y,w),gn&&ca(y,T),$;if(w===null){for(;!S.done;T++,S=C.next())S=f(y,S.value,O),S!==null&&(v=i(S,v,T),x===null?$=S:x.sibling=S,x=S);return gn&&ca(y,T),$}for(w=r(y,w);!S.done;T++,S=C.next())S=m(w,y,T,S.value,O),S!==null&&(e&&S.alternate!==null&&w.delete(S.key===null?T:S.key),v=i(S,v,T),x===null?$=S:x.sibling=S,x=S);return e&&w.forEach(function(P){return t(y,P)}),gn&&ca(y,T),$}function b(y,v,C,O){if(typeof C=="object"&&C!==null&&C.type===is&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Bc:e:{for(var $=C.key,x=v;x!==null;){if(x.key===$){if($=C.type,$===is){if(x.tag===7){n(y,x.sibling),v=o(x,C.props.children),v.return=y,y=v;break e}}else if(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Pi&&rb($)===x.type){n(y,x.sibling),v=o(x,C.props),v.ref=Pl(y,x,C),v.return=y,y=v;break e}n(y,x);break}else t(y,x);x=x.sibling}C.type===is?(v=Ea(C.props.children,y.mode,O,C.key),v.return=y,y=v):(O=Ld(C.type,C.key,C.props,null,y.mode,O),O.ref=Pl(y,v,C),O.return=y,y=O)}return a(y);case os:e:{for(x=C.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===C.containerInfo&&v.stateNode.implementation===C.implementation){n(y,v.sibling),v=o(v,C.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=xh(C,y.mode,O),v.return=y,y=v}return a(y);case Pi:return x=C._init,b(y,v,x(C._payload),O)}if(Vl(C))return h(y,v,C,O);if(wl(C))return g(y,v,C,O);Qc(y,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,v!==null&&v.tag===6?(n(y,v.sibling),v=o(v,C),v.return=y,y=v):(n(y,v),v=Ch(C,y.mode,O),v.return=y,y=v),a(y)):n(y,v)}return b}var zs=Jx(!0),eS=Jx(!1),Cf=oa(null),xf=null,ps=null,gv=null;function vv(){gv=ps=xf=null}function yv(e){var t=Cf.current;fn(Cf),e._currentValue=t}function sg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rs(e,t){xf=e,gv=ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Cr=!0),e.firstContext=null)}function uo(e){var t=e._currentValue;if(gv!==e)if(e={context:e,memoizedValue:t,next:null},ps===null){if(xf===null)throw Error(qe(308));ps=e,xf.dependencies={lanes:0,firstContext:e}}else ps=ps.next=e;return t}var ga=null;function bv(e){ga===null?ga=[e]:ga.push(e)}function tS(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,bv(t)):(n.next=o.next,o.next=n),t.interleaved=n,hi(e,r)}function hi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ii=!1;function Cv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Kt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,hi(e,n)}return o=r.interleaved,o===null?(t.next=t,bv(r)):(t.next=o.next,o.next=t),r.interleaved=t,hi(e,n)}function kd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iv(e,n)}}function ob(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Sf(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,d=l.next;l.next=null,a===null?i=d:a.next=d,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=d:s.next=d,c.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,c=d=l=null,s=i;do{var p=s.lane,m=s.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(p=t,m=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){f=h.call(m,f,p);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h=="function"?h.call(m,f,p):h,p==null)break e;f=Cn({},f,p);break e;case 2:Ii=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(d=c=m,l=f):c=c.next=m,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=d,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);_a|=a,e.lanes=a,e.memoizedState=f}}function ib(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(qe(191,o));o.call(r)}}}var lc={},qo=oa(lc),Su=oa(lc),wu=oa(lc);function va(e){if(e===lc)throw Error(qe(174));return e}function xv(e,t){switch(ln(wu,t),ln(Su,e),ln(qo,lc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zm(t,e)}fn(qo),ln(qo,t)}function Hs(){fn(qo),fn(Su),fn(wu)}function rS(e){va(wu.current);var t=va(qo.current),n=zm(t,e.type);t!==n&&(ln(Su,e),ln(qo,n))}function Sv(e){Su.current===e&&(fn(qo),fn(Su))}var yn=oa(0);function wf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hh=[];function wv(){for(var e=0;e<hh.length;e++)hh[e]._workInProgressVersionPrimary=null;hh.length=0}var Md=bi.ReactCurrentDispatcher,mh=bi.ReactCurrentBatchConfig,Ta=0,bn=null,Fn=null,Un=null,Ef=!1,ru=!1,Eu=0,AO=0;function er(){throw Error(qe(321))}function Ev(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Io(e[n],t[n]))return!1;return!0}function $v(e,t,n,r,o,i){if(Ta=i,bn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Md.current=e===null||e.memoizedState===null?LO:DO,e=n(r,o),ru){i=0;do{if(ru=!1,Eu=0,25<=i)throw Error(qe(301));i+=1,Un=Fn=null,t.updateQueue=null,Md.current=BO,e=n(r,o)}while(ru)}if(Md.current=$f,t=Fn!==null&&Fn.next!==null,Ta=0,Un=Fn=bn=null,Ef=!1,t)throw Error(qe(300));return e}function Rv(){var e=Eu!==0;return Eu=0,e}function Lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Un===null?bn.memoizedState=Un=e:Un=Un.next=e,Un}function co(){if(Fn===null){var e=bn.alternate;e=e!==null?e.memoizedState:null}else e=Fn.next;var t=Un===null?bn.memoizedState:Un.next;if(t!==null)Un=t,Fn=e;else{if(e===null)throw Error(qe(310));Fn=e,e={memoizedState:Fn.memoizedState,baseState:Fn.baseState,baseQueue:Fn.baseQueue,queue:Fn.queue,next:null},Un===null?bn.memoizedState=Un=e:Un=Un.next=e}return Un}function $u(e,t){return typeof t=="function"?t(e):t}function gh(e){var t=co(),n=t.queue;if(n===null)throw Error(qe(311));n.lastRenderedReducer=e;var r=Fn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,l=null,d=i;do{var c=d.lane;if((Ta&c)===c)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var f={lane:c,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(s=l=f,a=r):l=l.next=f,bn.lanes|=c,_a|=c}d=d.next}while(d!==null&&d!==i);l===null?a=r:l.next=s,Io(r,t.memoizedState)||(Cr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,bn.lanes|=i,_a|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vh(e){var t=co(),n=t.queue;if(n===null)throw Error(qe(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);Io(i,t.memoizedState)||(Cr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function oS(){}function iS(e,t){var n=bn,r=co(),o=t(),i=!Io(r.memoizedState,o);if(i&&(r.memoizedState=o,Cr=!0),r=r.queue,Ov(lS.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Un!==null&&Un.memoizedState.tag&1){if(n.flags|=2048,Ru(9,sS.bind(null,n,r,o,t),void 0,null),Kn===null)throw Error(qe(349));Ta&30||aS(n,t,o)}return o}function aS(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=bn.updateQueue,t===null?(t={lastEffect:null,stores:null},bn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sS(e,t,n,r){t.value=n,t.getSnapshot=r,uS(t)&&cS(e)}function lS(e,t,n){return n(function(){uS(t)&&cS(e)})}function uS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Io(e,n)}catch{return!0}}function cS(e){var t=hi(e,1);t!==null&&Eo(t,e,1,-1)}function ab(e){var t=Lo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$u,lastRenderedState:e},t.queue=e,e=e.dispatch=FO.bind(null,bn,e),[t.memoizedState,e]}function Ru(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=bn.updateQueue,t===null?(t={lastEffect:null,stores:null},bn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function dS(){return co().memoizedState}function Ad(e,t,n,r){var o=Lo();bn.flags|=e,o.memoizedState=Ru(1|t,n,void 0,r===void 0?null:r)}function h0(e,t,n,r){var o=co();r=r===void 0?null:r;var i=void 0;if(Fn!==null){var a=Fn.memoizedState;if(i=a.destroy,r!==null&&Ev(r,a.deps)){o.memoizedState=Ru(t,n,i,r);return}}bn.flags|=e,o.memoizedState=Ru(1|t,n,i,r)}function sb(e,t){return Ad(8390656,8,e,t)}function Ov(e,t){return h0(2048,8,e,t)}function fS(e,t){return h0(4,2,e,t)}function pS(e,t){return h0(4,4,e,t)}function hS(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function mS(e,t,n){return n=n!=null?n.concat([e]):null,h0(4,4,hS.bind(null,t,e),n)}function Pv(){}function gS(e,t){var n=co();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ev(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vS(e,t){var n=co();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ev(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yS(e,t,n){return Ta&21?(Io(n,t)||(n=wx(),bn.lanes|=n,_a|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Cr=!0),e.memoizedState=n)}function NO(e,t){var n=tn;tn=n!==0&&4>n?n:4,e(!0);var r=mh.transition;mh.transition={};try{e(!1),t()}finally{tn=n,mh.transition=r}}function bS(){return co().memoizedState}function jO(e,t,n){var r=qi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CS(e))xS(t,n);else if(n=tS(e,t,n,r),n!==null){var o=pr();Eo(n,e,r,o),SS(n,t,r)}}function FO(e,t,n){var r=qi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CS(e))xS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Io(s,a)){var l=t.interleaved;l===null?(o.next=o,bv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=tS(e,t,o,r),n!==null&&(o=pr(),Eo(n,e,r,o),SS(n,t,r))}}function CS(e){var t=e.alternate;return e===bn||t!==null&&t===bn}function xS(e,t){ru=Ef=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function SS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iv(e,n)}}var $f={readContext:uo,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},LO={readContext:uo,useCallback:function(e,t){return Lo().memoizedState=[e,t===void 0?null:t],e},useContext:uo,useEffect:sb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ad(4194308,4,hS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ad(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ad(4,2,e,t)},useMemo:function(e,t){var n=Lo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jO.bind(null,bn,e),[r.memoizedState,e]},useRef:function(e){var t=Lo();return e={current:e},t.memoizedState=e},useState:ab,useDebugValue:Pv,useDeferredValue:function(e){return Lo().memoizedState=e},useTransition:function(){var e=ab(!1),t=e[0];return e=NO.bind(null,e[1]),Lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=bn,o=Lo();if(gn){if(n===void 0)throw Error(qe(407));n=n()}else{if(n=t(),Kn===null)throw Error(qe(349));Ta&30||aS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,sb(lS.bind(null,r,i,e),[e]),r.flags|=2048,Ru(9,sS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Lo(),t=Kn.identifierPrefix;if(gn){var n=li,r=si;n=(r&~(1<<32-wo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Eu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=AO++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},DO={readContext:uo,useCallback:gS,useContext:uo,useEffect:Ov,useImperativeHandle:mS,useInsertionEffect:fS,useLayoutEffect:pS,useMemo:vS,useReducer:gh,useRef:dS,useState:function(){return gh($u)},useDebugValue:Pv,useDeferredValue:function(e){var t=co();return yS(t,Fn.memoizedState,e)},useTransition:function(){var e=gh($u)[0],t=co().memoizedState;return[e,t]},useMutableSource:oS,useSyncExternalStore:iS,useId:bS,unstable_isNewReconciler:!1},BO={readContext:uo,useCallback:gS,useContext:uo,useEffect:Ov,useImperativeHandle:mS,useInsertionEffect:fS,useLayoutEffect:pS,useMemo:vS,useReducer:vh,useRef:dS,useState:function(){return vh($u)},useDebugValue:Pv,useDeferredValue:function(e){var t=co();return Fn===null?t.memoizedState=e:yS(t,Fn.memoizedState,e)},useTransition:function(){var e=vh($u)[0],t=co().memoizedState;return[e,t]},useMutableSource:oS,useSyncExternalStore:iS,useId:bS,unstable_isNewReconciler:!1};function go(e,t){if(e&&e.defaultProps){t=Cn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function lg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Cn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var m0={isMounted:function(e){return(e=e._reactInternals)?Da(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pr(),o=qi(e),i=ui(r,o);i.payload=t,n!=null&&(i.callback=n),t=Wi(e,i,o),t!==null&&(Eo(t,e,o,r),kd(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pr(),o=qi(e),i=ui(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wi(e,i,o),t!==null&&(Eo(t,e,o,r),kd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pr(),r=qi(e),o=ui(n,r);o.tag=2,t!=null&&(o.callback=t),t=Wi(e,o,r),t!==null&&(Eo(t,e,r,n),kd(t,e,r))}};function lb(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!yu(n,r)||!yu(o,i):!0}function wS(e,t,n){var r=!1,o=Zi,i=t.contextType;return typeof i=="object"&&i!==null?i=uo(i):(o=Sr(t)?Pa:ar.current,r=t.contextTypes,i=(r=r!=null)?Ds(e,o):Zi),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=m0,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ub(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&m0.enqueueReplaceState(t,t.state,null)}function ug(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Cv(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=uo(i):(i=Sr(t)?Pa:ar.current,o.context=Ds(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(lg(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&m0.enqueueReplaceState(o,o.state,null),Sf(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Vs(e,t){try{var n="",r=t;do n+=hR(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function yh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zO=typeof WeakMap=="function"?WeakMap:Map;function ES(e,t,n){n=ui(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Of||(Of=!0,Cg=r),cg(e,t)},n}function $S(e,t,n){n=ui(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){cg(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){cg(e,t),typeof r!="function"&&(Ki===null?Ki=new Set([this]):Ki.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function cb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zO;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=tP.bind(null,e,t,n),t.then(e,e))}function db(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fb(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ui(-1,1),t.tag=2,Wi(n,t,1))),n.lanes|=1),e)}var HO=bi.ReactCurrentOwner,Cr=!1;function fr(e,t,n,r){t.child=e===null?eS(t,null,n,r):zs(t,e.child,n,r)}function pb(e,t,n,r,o){n=n.render;var i=t.ref;return Rs(t,o),r=$v(e,t,n,r,i,o),n=Rv(),e!==null&&!Cr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mi(e,t,o)):(gn&&n&&pv(t),t.flags|=1,fr(e,t,r,o),t.child)}function hb(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!jv(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,RS(e,t,i,r,o)):(e=Ld(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:yu,n(a,r)&&e.ref===t.ref)return mi(e,t,o)}return t.flags|=1,e=Gi(i,r),e.ref=t.ref,e.return=t,t.child=e}function RS(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(yu(i,r)&&e.ref===t.ref)if(Cr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Cr=!0);else return t.lanes=e.lanes,mi(e,t,o)}return dg(e,t,n,r,o)}function OS(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ln(ms,jr),jr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ln(ms,jr),jr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ln(ms,jr),jr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ln(ms,jr),jr|=r;return fr(e,t,o,n),t.child}function PS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dg(e,t,n,r,o){var i=Sr(n)?Pa:ar.current;return i=Ds(t,i),Rs(t,o),n=$v(e,t,n,r,i,o),r=Rv(),e!==null&&!Cr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mi(e,t,o)):(gn&&r&&pv(t),t.flags|=1,fr(e,t,n,o),t.child)}function mb(e,t,n,r,o){if(Sr(n)){var i=!0;vf(t)}else i=!1;if(Rs(t,o),t.stateNode===null)Nd(e,t),wS(t,n,r),ug(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=uo(d):(d=Sr(n)?Pa:ar.current,d=Ds(t,d));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==d)&&ub(t,a,r,d),Ii=!1;var p=t.memoizedState;a.state=p,Sf(t,r,a,o),l=t.memoizedState,s!==r||p!==l||xr.current||Ii?(typeof c=="function"&&(lg(t,n,c,r),l=t.memoizedState),(s=Ii||lb(t,n,s,r,p,l,d))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=d,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,nS(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:go(t.type,s),a.props=d,f=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=uo(l):(l=Sr(n)?Pa:ar.current,l=Ds(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&ub(t,a,r,l),Ii=!1,p=t.memoizedState,a.state=p,Sf(t,r,a,o);var h=t.memoizedState;s!==f||p!==h||xr.current||Ii?(typeof m=="function"&&(lg(t,n,m,r),h=t.memoizedState),(d=Ii||lb(t,n,d,r,p,h,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=d):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return fg(e,t,n,r,i,o)}function fg(e,t,n,r,o,i){PS(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&eb(t,n,!1),mi(e,t,i);r=t.stateNode,HO.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=zs(t,e.child,null,i),t.child=zs(t,null,s,i)):fr(e,t,s,i),t.memoizedState=r.state,o&&eb(t,n,!0),t.child}function IS(e){var t=e.stateNode;t.pendingContext?Jy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jy(e,t.context,!1),xv(e,t.containerInfo)}function gb(e,t,n,r,o){return Bs(),mv(o),t.flags|=256,fr(e,t,n,r),t.child}var pg={dehydrated:null,treeContext:null,retryLane:0};function hg(e){return{baseLanes:e,cachePool:null,transitions:null}}function TS(e,t,n){var r=t.pendingProps,o=yn.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ln(yn,o&1),e===null)return ag(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=y0(a,r,0,null),e=Ea(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=hg(n),t.memoizedState=pg,e):Iv(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return VO(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Gi(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Gi(s,i):(i=Ea(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?hg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=pg,r}return i=e.child,e=i.sibling,r=Gi(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Iv(e,t){return t=y0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Zc(e,t,n,r){return r!==null&&mv(r),zs(t,e.child,null,n),e=Iv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VO(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=yh(Error(qe(422))),Zc(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=y0({mode:"visible",children:r.children},o,0,null),i=Ea(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&zs(t,e.child,null,a),t.child.memoizedState=hg(a),t.memoizedState=pg,i);if(!(t.mode&1))return Zc(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(qe(419)),r=yh(i,r,void 0),Zc(e,t,a,r)}if(s=(a&e.childLanes)!==0,Cr||s){if(r=Kn,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,hi(e,o),Eo(r,e,o,-1))}return Nv(),r=yh(Error(qe(421))),Zc(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=nP.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Fr=Ui(o.nextSibling),Br=t,gn=!0,xo=null,e!==null&&(oo[io++]=si,oo[io++]=li,oo[io++]=Ia,si=e.id,li=e.overflow,Ia=t),t=Iv(t,r.children),t.flags|=4096,t)}function vb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sg(e.return,t,n)}function bh(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function _S(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(fr(e,t,r.children,n),r=yn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vb(e,n,t);else if(e.tag===19)vb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ln(yn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&wf(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),bh(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&wf(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}bh(t,!0,n,null,i);break;case"together":bh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_a|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(qe(153));if(t.child!==null){for(e=t.child,n=Gi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function UO(e,t,n){switch(t.tag){case 3:IS(t),Bs();break;case 5:rS(t);break;case 1:Sr(t.type)&&vf(t);break;case 4:xv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ln(Cf,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ln(yn,yn.current&1),t.flags|=128,null):n&t.child.childLanes?TS(e,t,n):(ln(yn,yn.current&1),e=mi(e,t,n),e!==null?e.sibling:null);ln(yn,yn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _S(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ln(yn,yn.current),r)break;return null;case 22:case 23:return t.lanes=0,OS(e,t,n)}return mi(e,t,n)}var kS,mg,MS,AS;kS=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};mg=function(){};MS=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,va(qo.current);var i=null;switch(n){case"input":o=Fm(e,o),r=Fm(e,r),i=[];break;case"select":o=Cn({},o,{value:void 0}),r=Cn({},r,{value:void 0}),i=[];break;case"textarea":o=Bm(e,o),r=Bm(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=mf)}Hm(n,r);var a;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var s=o[d];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(du.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var l=r[d];if(s=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&l!==s&&(l!=null||s!=null))if(d==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(d,n)),n=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(du.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&dn("scroll",e),i||s===l||(i=[])):(i=i||[]).push(d,l))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};AS=function(e,t,n,r){n!==r&&(t.flags|=4)};function Il(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function WO(e,t,n){var r=t.pendingProps;switch(hv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tr(t),null;case 1:return Sr(t.type)&&gf(),tr(t),null;case 3:return r=t.stateNode,Hs(),fn(xr),fn(ar),wv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xo!==null&&(wg(xo),xo=null))),mg(e,t),tr(t),null;case 5:Sv(t);var o=va(wu.current);if(n=t.type,e!==null&&t.stateNode!=null)MS(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(qe(166));return tr(t),null}if(e=va(qo.current),Yc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Vo]=t,r[xu]=i,e=(t.mode&1)!==0,n){case"dialog":dn("cancel",r),dn("close",r);break;case"iframe":case"object":case"embed":dn("load",r);break;case"video":case"audio":for(o=0;o<Wl.length;o++)dn(Wl[o],r);break;case"source":dn("error",r);break;case"img":case"image":case"link":dn("error",r),dn("load",r);break;case"details":dn("toggle",r);break;case"input":Ry(r,i),dn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},dn("invalid",r);break;case"textarea":Py(r,i),dn("invalid",r)}Hm(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Xc(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Xc(r.textContent,s,e),o=["children",""+s]):du.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&dn("scroll",r)}switch(n){case"input":zc(r),Oy(r,i,!0);break;case"textarea":zc(r),Iy(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=mf)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=lx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Vo]=t,e[xu]=r,kS(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vm(n,r),n){case"dialog":dn("cancel",e),dn("close",e),o=r;break;case"iframe":case"object":case"embed":dn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Wl.length;o++)dn(Wl[o],e);o=r;break;case"source":dn("error",e),o=r;break;case"img":case"image":case"link":dn("error",e),dn("load",e),o=r;break;case"details":dn("toggle",e),o=r;break;case"input":Ry(e,r),o=Fm(e,r),dn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Cn({},r,{value:void 0}),dn("invalid",e);break;case"textarea":Py(e,r),o=Bm(e,r),dn("invalid",e);break;default:o=r}Hm(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?dx(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ux(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&fu(e,l):typeof l=="number"&&fu(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(du.hasOwnProperty(i)?l!=null&&i==="onScroll"&&dn("scroll",e):l!=null&&J1(e,i,l,a))}switch(n){case"input":zc(e),Oy(e,r,!1);break;case"textarea":zc(e),Iy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qi(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ss(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ss(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=mf)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tr(t),null;case 6:if(e&&t.stateNode!=null)AS(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(qe(166));if(n=va(wu.current),va(qo.current),Yc(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vo]=t,(i=r.nodeValue!==n)&&(e=Br,e!==null))switch(e.tag){case 3:Xc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xc(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vo]=t,t.stateNode=r}return tr(t),null;case 13:if(fn(yn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(gn&&Fr!==null&&t.mode&1&&!(t.flags&128))Zx(),Bs(),t.flags|=98560,i=!1;else if(i=Yc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(qe(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(qe(317));i[Vo]=t}else Bs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tr(t),i=!1}else xo!==null&&(wg(xo),xo=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||yn.current&1?Ln===0&&(Ln=3):Nv())),t.updateQueue!==null&&(t.flags|=4),tr(t),null);case 4:return Hs(),mg(e,t),e===null&&bu(t.stateNode.containerInfo),tr(t),null;case 10:return yv(t.type._context),tr(t),null;case 17:return Sr(t.type)&&gf(),tr(t),null;case 19:if(fn(yn),i=t.memoizedState,i===null)return tr(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Il(i,!1);else{if(Ln!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=wf(e),a!==null){for(t.flags|=128,Il(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ln(yn,yn.current&1|2),t.child}e=e.sibling}i.tail!==null&&Pn()>Us&&(t.flags|=128,r=!0,Il(i,!1),t.lanes=4194304)}else{if(!r)if(e=wf(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Il(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!gn)return tr(t),null}else 2*Pn()-i.renderingStartTime>Us&&n!==1073741824&&(t.flags|=128,r=!0,Il(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Pn(),t.sibling=null,n=yn.current,ln(yn,r?n&1|2:n&1),t):(tr(t),null);case 22:case 23:return Av(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jr&1073741824&&(tr(t),t.subtreeFlags&6&&(t.flags|=8192)):tr(t),null;case 24:return null;case 25:return null}throw Error(qe(156,t.tag))}function KO(e,t){switch(hv(t),t.tag){case 1:return Sr(t.type)&&gf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hs(),fn(xr),fn(ar),wv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sv(t),null;case 13:if(fn(yn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(qe(340));Bs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fn(yn),null;case 4:return Hs(),null;case 10:return yv(t.type._context),null;case 22:case 23:return Av(),null;case 24:return null;default:return null}}var Jc=!1,or=!1,qO=typeof WeakSet=="function"?WeakSet:Set,ft=null;function hs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){En(e,t,r)}else n.current=null}function gg(e,t,n){try{n()}catch(r){En(e,t,r)}}var yb=!1;function GO(e,t){if(Jm=ff,e=Dx(),fv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,d=0,c=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++d===o&&(s=a),p===i&&++c===r&&(l=a),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(eg={focusedElem:e,selectionRange:n},ff=!1,ft=t;ft!==null;)if(t=ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ft=e;else for(;ft!==null;){t=ft;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,b=h.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:go(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(qe(163))}}catch(O){En(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,ft=e;break}ft=t.return}return h=yb,yb=!1,h}function ou(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&gg(t,n,i)}o=o.next}while(o!==r)}}function g0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function NS(e){var t=e.alternate;t!==null&&(e.alternate=null,NS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vo],delete t[xu],delete t[rg],delete t[TO],delete t[_O])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jS(e){return e.tag===5||e.tag===3||e.tag===4}function bb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mf));else if(r!==4&&(e=e.child,e!==null))for(yg(e,t,n),e=e.sibling;e!==null;)yg(e,t,n),e=e.sibling}function bg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bg(e,t,n),e=e.sibling;e!==null;)bg(e,t,n),e=e.sibling}var Xn=null,vo=!1;function Si(e,t,n){for(n=n.child;n!==null;)FS(e,t,n),n=n.sibling}function FS(e,t,n){if(Ko&&typeof Ko.onCommitFiberUnmount=="function")try{Ko.onCommitFiberUnmount(l0,n)}catch{}switch(n.tag){case 5:or||hs(n,t);case 6:var r=Xn,o=vo;Xn=null,Si(e,t,n),Xn=r,vo=o,Xn!==null&&(vo?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(vo?(e=Xn,n=n.stateNode,e.nodeType===8?fh(e.parentNode,n):e.nodeType===1&&fh(e,n),gu(e)):fh(Xn,n.stateNode));break;case 4:r=Xn,o=vo,Xn=n.stateNode.containerInfo,vo=!0,Si(e,t,n),Xn=r,vo=o;break;case 0:case 11:case 14:case 15:if(!or&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&gg(n,t,a),o=o.next}while(o!==r)}Si(e,t,n);break;case 1:if(!or&&(hs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){En(n,t,s)}Si(e,t,n);break;case 21:Si(e,t,n);break;case 22:n.mode&1?(or=(r=or)||n.memoizedState!==null,Si(e,t,n),or=r):Si(e,t,n);break;default:Si(e,t,n)}}function Cb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qO),t.forEach(function(r){var o=rP.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Xn=s.stateNode,vo=!1;break e;case 3:Xn=s.stateNode.containerInfo,vo=!0;break e;case 4:Xn=s.stateNode.containerInfo,vo=!0;break e}s=s.return}if(Xn===null)throw Error(qe(160));FS(i,a,o),Xn=null,vo=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(d){En(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)LS(t,e),t=t.sibling}function LS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mo(t,e),jo(e),r&4){try{ou(3,e,e.return),g0(3,e)}catch(g){En(e,e.return,g)}try{ou(5,e,e.return)}catch(g){En(e,e.return,g)}}break;case 1:mo(t,e),jo(e),r&512&&n!==null&&hs(n,n.return);break;case 5:if(mo(t,e),jo(e),r&512&&n!==null&&hs(n,n.return),e.flags&32){var o=e.stateNode;try{fu(o,"")}catch(g){En(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&ax(o,i),Vm(s,a);var d=Vm(s,i);for(a=0;a<l.length;a+=2){var c=l[a],f=l[a+1];c==="style"?dx(o,f):c==="dangerouslySetInnerHTML"?ux(o,f):c==="children"?fu(o,f):J1(o,c,f,d)}switch(s){case"input":Lm(o,i);break;case"textarea":sx(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Ss(o,!!i.multiple,m,!1):p!==!!i.multiple&&(i.defaultValue!=null?Ss(o,!!i.multiple,i.defaultValue,!0):Ss(o,!!i.multiple,i.multiple?[]:"",!1))}o[xu]=i}catch(g){En(e,e.return,g)}}break;case 6:if(mo(t,e),jo(e),r&4){if(e.stateNode===null)throw Error(qe(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){En(e,e.return,g)}}break;case 3:if(mo(t,e),jo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{gu(t.containerInfo)}catch(g){En(e,e.return,g)}break;case 4:mo(t,e),jo(e);break;case 13:mo(t,e),jo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(kv=Pn())),r&4&&Cb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(or=(d=or)||c,mo(t,e),or=d):mo(t,e),jo(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!c&&e.mode&1)for(ft=e,c=e.child;c!==null;){for(f=ft=c;ft!==null;){switch(p=ft,m=p.child,p.tag){case 0:case 11:case 14:case 15:ou(4,p,p.return);break;case 1:hs(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){En(r,n,g)}}break;case 5:hs(p,p.return);break;case 22:if(p.memoizedState!==null){Sb(f);continue}}m!==null?(m.return=p,ft=m):Sb(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,d?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=cx("display",a))}catch(g){En(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=d?"":f.memoizedProps}catch(g){En(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mo(t,e),jo(e),r&4&&Cb(e);break;case 21:break;default:mo(t,e),jo(e)}}function jo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jS(n)){var r=n;break e}n=n.return}throw Error(qe(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(fu(o,""),r.flags&=-33);var i=bb(e);bg(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=bb(e);yg(e,s,a);break;default:throw Error(qe(161))}}catch(l){En(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function XO(e,t,n){ft=e,DS(e)}function DS(e,t,n){for(var r=(e.mode&1)!==0;ft!==null;){var o=ft,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Jc;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||or;s=Jc;var d=or;if(Jc=a,(or=l)&&!d)for(ft=o;ft!==null;)a=ft,l=a.child,a.tag===22&&a.memoizedState!==null?wb(o):l!==null?(l.return=a,ft=l):wb(o);for(;i!==null;)ft=i,DS(i),i=i.sibling;ft=o,Jc=s,or=d}xb(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,ft=i):xb(e)}}function xb(e){for(;ft!==null;){var t=ft;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:or||g0(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!or)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ib(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ib(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var c=d.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&gu(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(qe(163))}or||t.flags&512&&vg(t)}catch(p){En(t,t.return,p)}}if(t===e){ft=null;break}if(n=t.sibling,n!==null){n.return=t.return,ft=n;break}ft=t.return}}function Sb(e){for(;ft!==null;){var t=ft;if(t===e){ft=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ft=n;break}ft=t.return}}function wb(e){for(;ft!==null;){var t=ft;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{g0(4,t)}catch(l){En(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){En(t,o,l)}}var i=t.return;try{vg(t)}catch(l){En(t,i,l)}break;case 5:var a=t.return;try{vg(t)}catch(l){En(t,a,l)}}}catch(l){En(t,t.return,l)}if(t===e){ft=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ft=s;break}ft=t.return}}var YO=Math.ceil,Rf=bi.ReactCurrentDispatcher,Tv=bi.ReactCurrentOwner,so=bi.ReactCurrentBatchConfig,Kt=0,Kn=null,Mn=null,Qn=0,jr=0,ms=oa(0),Ln=0,Ou=null,_a=0,v0=0,_v=0,iu=null,br=null,kv=0,Us=1/0,ii=null,Of=!1,Cg=null,Ki=null,ed=!1,Ni=null,Pf=0,au=0,xg=null,jd=-1,Fd=0;function pr(){return Kt&6?Pn():jd!==-1?jd:jd=Pn()}function qi(e){return e.mode&1?Kt&2&&Qn!==0?Qn&-Qn:MO.transition!==null?(Fd===0&&(Fd=wx()),Fd):(e=tn,e!==0||(e=window.event,e=e===void 0?16:Tx(e.type)),e):1}function Eo(e,t,n,r){if(50<au)throw au=0,xg=null,Error(qe(185));ic(e,n,r),(!(Kt&2)||e!==Kn)&&(e===Kn&&(!(Kt&2)&&(v0|=n),Ln===4&&ki(e,Qn)),wr(e,r),n===1&&Kt===0&&!(t.mode&1)&&(Us=Pn()+500,p0&&ia()))}function wr(e,t){var n=e.callbackNode;MR(e,t);var r=df(e,e===Kn?Qn:0);if(r===0)n!==null&&ky(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ky(n),t===1)e.tag===0?kO(Eb.bind(null,e)):Xx(Eb.bind(null,e)),PO(function(){!(Kt&6)&&ia()}),n=null;else{switch(Ex(r)){case 1:n=ov;break;case 4:n=xx;break;case 16:n=cf;break;case 536870912:n=Sx;break;default:n=cf}n=qS(n,BS.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function BS(e,t){if(jd=-1,Fd=0,Kt&6)throw Error(qe(327));var n=e.callbackNode;if(Os()&&e.callbackNode!==n)return null;var r=df(e,e===Kn?Qn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=If(e,r);else{t=r;var o=Kt;Kt|=2;var i=HS();(Kn!==e||Qn!==t)&&(ii=null,Us=Pn()+500,wa(e,t));do try{JO();break}catch(s){zS(e,s)}while(!0);vv(),Rf.current=i,Kt=o,Mn!==null?t=0:(Kn=null,Qn=0,t=Ln)}if(t!==0){if(t===2&&(o=Gm(e),o!==0&&(r=o,t=Sg(e,o))),t===1)throw n=Ou,wa(e,0),ki(e,r),wr(e,Pn()),n;if(t===6)ki(e,r);else{if(o=e.current.alternate,!(r&30)&&!QO(o)&&(t=If(e,r),t===2&&(i=Gm(e),i!==0&&(r=i,t=Sg(e,i))),t===1))throw n=Ou,wa(e,0),ki(e,r),wr(e,Pn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(qe(345));case 2:da(e,br,ii);break;case 3:if(ki(e,r),(r&130023424)===r&&(t=kv+500-Pn(),10<t)){if(df(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){pr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ng(da.bind(null,e,br,ii),t);break}da(e,br,ii);break;case 4:if(ki(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-wo(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=Pn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YO(r/1960))-r,10<r){e.timeoutHandle=ng(da.bind(null,e,br,ii),r);break}da(e,br,ii);break;case 5:da(e,br,ii);break;default:throw Error(qe(329))}}}return wr(e,Pn()),e.callbackNode===n?BS.bind(null,e):null}function Sg(e,t){var n=iu;return e.current.memoizedState.isDehydrated&&(wa(e,t).flags|=256),e=If(e,t),e!==2&&(t=br,br=n,t!==null&&wg(t)),e}function wg(e){br===null?br=e:br.push.apply(br,e)}function QO(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Io(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ki(e,t){for(t&=~_v,t&=~v0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wo(t),r=1<<n;e[n]=-1,t&=~r}}function Eb(e){if(Kt&6)throw Error(qe(327));Os();var t=df(e,0);if(!(t&1))return wr(e,Pn()),null;var n=If(e,t);if(e.tag!==0&&n===2){var r=Gm(e);r!==0&&(t=r,n=Sg(e,r))}if(n===1)throw n=Ou,wa(e,0),ki(e,t),wr(e,Pn()),n;if(n===6)throw Error(qe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,da(e,br,ii),wr(e,Pn()),null}function Mv(e,t){var n=Kt;Kt|=1;try{return e(t)}finally{Kt=n,Kt===0&&(Us=Pn()+500,p0&&ia())}}function ka(e){Ni!==null&&Ni.tag===0&&!(Kt&6)&&Os();var t=Kt;Kt|=1;var n=so.transition,r=tn;try{if(so.transition=null,tn=1,e)return e()}finally{tn=r,so.transition=n,Kt=t,!(Kt&6)&&ia()}}function Av(){jr=ms.current,fn(ms)}function wa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,OO(n)),Mn!==null)for(n=Mn.return;n!==null;){var r=n;switch(hv(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gf();break;case 3:Hs(),fn(xr),fn(ar),wv();break;case 5:Sv(r);break;case 4:Hs();break;case 13:fn(yn);break;case 19:fn(yn);break;case 10:yv(r.type._context);break;case 22:case 23:Av()}n=n.return}if(Kn=e,Mn=e=Gi(e.current,null),Qn=jr=t,Ln=0,Ou=null,_v=v0=_a=0,br=iu=null,ga!==null){for(t=0;t<ga.length;t++)if(n=ga[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}ga=null}return e}function zS(e,t){do{var n=Mn;try{if(vv(),Md.current=$f,Ef){for(var r=bn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ef=!1}if(Ta=0,Un=Fn=bn=null,ru=!1,Eu=0,Tv.current=null,n===null||n.return===null){Ln=1,Ou=t,Mn=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Qn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=db(a);if(m!==null){m.flags&=-257,fb(m,a,s,i,t),m.mode&1&&cb(i,d,t),t=m,l=d;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break e}else{if(!(t&1)){cb(i,d,t),Nv();break e}l=Error(qe(426))}}else if(gn&&s.mode&1){var b=db(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),fb(b,a,s,i,t),mv(Vs(l,s));break e}}i=l=Vs(l,s),Ln!==4&&(Ln=2),iu===null?iu=[i]:iu.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=ES(i,l,t);ob(i,y);break e;case 1:s=l;var v=i.type,C=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Ki===null||!Ki.has(C)))){i.flags|=65536,t&=-t,i.lanes|=t;var O=$S(i,s,t);ob(i,O);break e}}i=i.return}while(i!==null)}US(n)}catch($){t=$,Mn===n&&n!==null&&(Mn=n=n.return);continue}break}while(!0)}function HS(){var e=Rf.current;return Rf.current=$f,e===null?$f:e}function Nv(){(Ln===0||Ln===3||Ln===2)&&(Ln=4),Kn===null||!(_a&268435455)&&!(v0&268435455)||ki(Kn,Qn)}function If(e,t){var n=Kt;Kt|=2;var r=HS();(Kn!==e||Qn!==t)&&(ii=null,wa(e,t));do try{ZO();break}catch(o){zS(e,o)}while(!0);if(vv(),Kt=n,Rf.current=r,Mn!==null)throw Error(qe(261));return Kn=null,Qn=0,Ln}function ZO(){for(;Mn!==null;)VS(Mn)}function JO(){for(;Mn!==null&&!ER();)VS(Mn)}function VS(e){var t=KS(e.alternate,e,jr);e.memoizedProps=e.pendingProps,t===null?US(e):Mn=t,Tv.current=null}function US(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=KO(n,t),n!==null){n.flags&=32767,Mn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ln=6,Mn=null;return}}else if(n=WO(n,t,jr),n!==null){Mn=n;return}if(t=t.sibling,t!==null){Mn=t;return}Mn=t=e}while(t!==null);Ln===0&&(Ln=5)}function da(e,t,n){var r=tn,o=so.transition;try{so.transition=null,tn=1,eP(e,t,n,r)}finally{so.transition=o,tn=r}return null}function eP(e,t,n,r){do Os();while(Ni!==null);if(Kt&6)throw Error(qe(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(qe(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(AR(e,i),e===Kn&&(Mn=Kn=null,Qn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ed||(ed=!0,qS(cf,function(){return Os(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=so.transition,so.transition=null;var a=tn;tn=1;var s=Kt;Kt|=4,Tv.current=null,GO(e,n),LS(n,e),CO(eg),ff=!!Jm,eg=Jm=null,e.current=n,XO(n),$R(),Kt=s,tn=a,so.transition=i}else e.current=n;if(ed&&(ed=!1,Ni=e,Pf=o),i=e.pendingLanes,i===0&&(Ki=null),PR(n.stateNode),wr(e,Pn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Of)throw Of=!1,e=Cg,Cg=null,e;return Pf&1&&e.tag!==0&&Os(),i=e.pendingLanes,i&1?e===xg?au++:(au=0,xg=e):au=0,ia(),null}function Os(){if(Ni!==null){var e=Ex(Pf),t=so.transition,n=tn;try{if(so.transition=null,tn=16>e?16:e,Ni===null)var r=!1;else{if(e=Ni,Ni=null,Pf=0,Kt&6)throw Error(qe(331));var o=Kt;for(Kt|=4,ft=e.current;ft!==null;){var i=ft,a=i.child;if(ft.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var d=s[l];for(ft=d;ft!==null;){var c=ft;switch(c.tag){case 0:case 11:case 15:ou(8,c,i)}var f=c.child;if(f!==null)f.return=c,ft=f;else for(;ft!==null;){c=ft;var p=c.sibling,m=c.return;if(NS(c),c===d){ft=null;break}if(p!==null){p.return=m,ft=p;break}ft=m}}}var h=i.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}ft=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,ft=a;else e:for(;ft!==null;){if(i=ft,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ou(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,ft=y;break e}ft=i.return}}var v=e.current;for(ft=v;ft!==null;){a=ft;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,ft=C;else e:for(a=v;ft!==null;){if(s=ft,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:g0(9,s)}}catch($){En(s,s.return,$)}if(s===a){ft=null;break e}var O=s.sibling;if(O!==null){O.return=s.return,ft=O;break e}ft=s.return}}if(Kt=o,ia(),Ko&&typeof Ko.onPostCommitFiberRoot=="function")try{Ko.onPostCommitFiberRoot(l0,e)}catch{}r=!0}return r}finally{tn=n,so.transition=t}}return!1}function $b(e,t,n){t=Vs(n,t),t=ES(e,t,1),e=Wi(e,t,1),t=pr(),e!==null&&(ic(e,1,t),wr(e,t))}function En(e,t,n){if(e.tag===3)$b(e,e,n);else for(;t!==null;){if(t.tag===3){$b(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ki===null||!Ki.has(r))){e=Vs(n,e),e=$S(t,e,1),t=Wi(t,e,1),e=pr(),t!==null&&(ic(t,1,e),wr(t,e));break}}t=t.return}}function tP(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pr(),e.pingedLanes|=e.suspendedLanes&n,Kn===e&&(Qn&n)===n&&(Ln===4||Ln===3&&(Qn&130023424)===Qn&&500>Pn()-kv?wa(e,0):_v|=n),wr(e,t)}function WS(e,t){t===0&&(e.mode&1?(t=Uc,Uc<<=1,!(Uc&130023424)&&(Uc=4194304)):t=1);var n=pr();e=hi(e,t),e!==null&&(ic(e,t,n),wr(e,n))}function nP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),WS(e,n)}function rP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(qe(314))}r!==null&&r.delete(t),WS(e,n)}var KS;KS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xr.current)Cr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Cr=!1,UO(e,t,n);Cr=!!(e.flags&131072)}else Cr=!1,gn&&t.flags&1048576&&Yx(t,bf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nd(e,t),e=t.pendingProps;var o=Ds(t,ar.current);Rs(t,n),o=$v(null,t,r,e,o,n);var i=Rv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Sr(r)?(i=!0,vf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Cv(t),o.updater=m0,t.stateNode=o,o._reactInternals=t,ug(t,r,e,n),t=fg(null,t,r,!0,i,n)):(t.tag=0,gn&&i&&pv(t),fr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=iP(r),e=go(r,e),o){case 0:t=dg(null,t,r,e,n);break e;case 1:t=mb(null,t,r,e,n);break e;case 11:t=pb(null,t,r,e,n);break e;case 14:t=hb(null,t,r,go(r.type,e),n);break e}throw Error(qe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:go(r,o),dg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:go(r,o),mb(e,t,r,o,n);case 3:e:{if(IS(t),e===null)throw Error(qe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,nS(e,t),Sf(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vs(Error(qe(423)),t),t=gb(e,t,r,n,o);break e}else if(r!==o){o=Vs(Error(qe(424)),t),t=gb(e,t,r,n,o);break e}else for(Fr=Ui(t.stateNode.containerInfo.firstChild),Br=t,gn=!0,xo=null,n=eS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bs(),r===o){t=mi(e,t,n);break e}fr(e,t,r,n)}t=t.child}return t;case 5:return rS(t),e===null&&ag(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,tg(r,o)?a=null:i!==null&&tg(r,i)&&(t.flags|=32),PS(e,t),fr(e,t,a,n),t.child;case 6:return e===null&&ag(t),null;case 13:return TS(e,t,n);case 4:return xv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zs(t,null,r,n):fr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:go(r,o),pb(e,t,r,o,n);case 7:return fr(e,t,t.pendingProps,n),t.child;case 8:return fr(e,t,t.pendingProps.children,n),t.child;case 12:return fr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ln(Cf,r._currentValue),r._currentValue=a,i!==null)if(Io(i.value,a)){if(i.children===o.children&&!xr.current){t=mi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=ui(-1,n&-n),l.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var c=d.pending;c===null?l.next=l:(l.next=c.next,c.next=l),d.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),sg(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(qe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),sg(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}fr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Rs(t,n),o=uo(o),r=r(o),t.flags|=1,fr(e,t,r,n),t.child;case 14:return r=t.type,o=go(r,t.pendingProps),o=go(r.type,o),hb(e,t,r,o,n);case 15:return RS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:go(r,o),Nd(e,t),t.tag=1,Sr(r)?(e=!0,vf(t)):e=!1,Rs(t,n),wS(t,r,o),ug(t,r,o,n),fg(null,t,r,!0,e,n);case 19:return _S(e,t,n);case 22:return OS(e,t,n)}throw Error(qe(156,t.tag))};function qS(e,t){return Cx(e,t)}function oP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ao(e,t,n,r){return new oP(e,t,n,r)}function jv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iP(e){if(typeof e=="function")return jv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tv)return 11;if(e===nv)return 14}return 2}function Gi(e,t){var n=e.alternate;return n===null?(n=ao(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ld(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")jv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case is:return Ea(n.children,o,i,t);case ev:a=8,o|=8;break;case Mm:return e=ao(12,n,t,o|2),e.elementType=Mm,e.lanes=i,e;case Am:return e=ao(13,n,t,o),e.elementType=Am,e.lanes=i,e;case Nm:return e=ao(19,n,t,o),e.elementType=Nm,e.lanes=i,e;case rx:return y0(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tx:a=10;break e;case nx:a=9;break e;case tv:a=11;break e;case nv:a=14;break e;case Pi:a=16,r=null;break e}throw Error(qe(130,e==null?e:typeof e,""))}return t=ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ea(e,t,n,r){return e=ao(7,e,r,t),e.lanes=n,e}function y0(e,t,n,r){return e=ao(22,e,r,t),e.elementType=rx,e.lanes=n,e.stateNode={isHidden:!1},e}function Ch(e,t,n){return e=ao(6,e,null,t),e.lanes=n,e}function xh(e,t,n){return t=ao(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aP(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=th(0),this.expirationTimes=th(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=th(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fv(e,t,n,r,o,i,a,s,l){return e=new aP(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ao(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cv(i),e}function sP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:os,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function GS(e){if(!e)return Zi;e=e._reactInternals;e:{if(Da(e)!==e||e.tag!==1)throw Error(qe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Sr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(qe(171))}if(e.tag===1){var n=e.type;if(Sr(n))return Gx(e,n,t)}return t}function XS(e,t,n,r,o,i,a,s,l){return e=Fv(n,r,!0,e,o,i,a,s,l),e.context=GS(null),n=e.current,r=pr(),o=qi(n),i=ui(r,o),i.callback=t??null,Wi(n,i,o),e.current.lanes=o,ic(e,o,r),wr(e,r),e}function b0(e,t,n,r){var o=t.current,i=pr(),a=qi(o);return n=GS(n),t.context===null?t.context=n:t.pendingContext=n,t=ui(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wi(o,t,a),e!==null&&(Eo(e,o,a,i),kd(e,o,a)),a}function Tf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Rb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lv(e,t){Rb(e,t),(e=e.alternate)&&Rb(e,t)}function lP(){return null}var YS=typeof reportError=="function"?reportError:function(e){console.error(e)};function Dv(e){this._internalRoot=e}C0.prototype.render=Dv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(qe(409));b0(e,t,null,null)};C0.prototype.unmount=Dv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ka(function(){b0(null,e,null,null)}),t[pi]=null}};function C0(e){this._internalRoot=e}C0.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ox();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_i.length&&t!==0&&t<_i[n].priority;n++);_i.splice(n,0,e),n===0&&Ix(e)}};function Bv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ob(){}function uP(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=Tf(a);i.call(d)}}var a=XS(t,r,e,0,null,!1,!1,"",Ob);return e._reactRootContainer=a,e[pi]=a.current,bu(e.nodeType===8?e.parentNode:e),ka(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var d=Tf(l);s.call(d)}}var l=Fv(e,0,!1,null,null,!1,!1,"",Ob);return e._reactRootContainer=l,e[pi]=l.current,bu(e.nodeType===8?e.parentNode:e),ka(function(){b0(t,l,n,r)}),l}function S0(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=Tf(a);s.call(l)}}b0(t,a,e,o)}else a=uP(n,t,e,o,r);return Tf(a)}$x=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ul(t.pendingLanes);n!==0&&(iv(t,n|1),wr(t,Pn()),!(Kt&6)&&(Us=Pn()+500,ia()))}break;case 13:ka(function(){var r=hi(e,1);if(r!==null){var o=pr();Eo(r,e,1,o)}}),Lv(e,1)}};av=function(e){if(e.tag===13){var t=hi(e,134217728);if(t!==null){var n=pr();Eo(t,e,134217728,n)}Lv(e,134217728)}};Rx=function(e){if(e.tag===13){var t=qi(e),n=hi(e,t);if(n!==null){var r=pr();Eo(n,e,t,r)}Lv(e,t)}};Ox=function(){return tn};Px=function(e,t){var n=tn;try{return tn=e,t()}finally{tn=n}};Wm=function(e,t,n){switch(t){case"input":if(Lm(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=f0(r);if(!o)throw Error(qe(90));ix(r),Lm(r,o)}}}break;case"textarea":sx(e,n);break;case"select":t=n.value,t!=null&&Ss(e,!!n.multiple,t,!1)}};hx=Mv;mx=ka;var cP={usingClientEntryPoint:!1,Events:[sc,us,f0,fx,px,Mv]},Tl={findFiberByHostInstance:ma,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dP={bundleType:Tl.bundleType,version:Tl.version,rendererPackageName:Tl.rendererPackageName,rendererConfig:Tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yx(e),e===null?null:e.stateNode},findFiberByHostInstance:Tl.findFiberByHostInstance||lP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var td=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!td.isDisabled&&td.supportsFiber)try{l0=td.inject(dP),Ko=td}catch{}}qr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cP;qr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bv(t))throw Error(qe(200));return sP(e,t,null,n)};qr.createRoot=function(e,t){if(!Bv(e))throw Error(qe(299));var n=!1,r="",o=YS;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Fv(e,1,!1,null,null,n,!1,r,o),e[pi]=t.current,bu(e.nodeType===8?e.parentNode:e),new Dv(t)};qr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(qe(188)):(e=Object.keys(e).join(","),Error(qe(268,e)));return e=yx(t),e=e===null?null:e.stateNode,e};qr.flushSync=function(e){return ka(e)};qr.hydrate=function(e,t,n){if(!x0(t))throw Error(qe(200));return S0(null,e,t,!0,n)};qr.hydrateRoot=function(e,t,n){if(!Bv(e))throw Error(qe(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=YS;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=XS(t,null,e,1,n??null,o,!1,i,a),e[pi]=t.current,bu(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new C0(t)};qr.render=function(e,t,n){if(!x0(t))throw Error(qe(200));return S0(null,e,t,!1,n)};qr.unmountComponentAtNode=function(e){if(!x0(e))throw Error(qe(40));return e._reactRootContainer?(ka(function(){S0(null,null,e,!1,function(){e._reactRootContainer=null,e[pi]=null})}),!0):!1};qr.unstable_batchedUpdates=Mv;qr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!x0(n))throw Error(qe(200));if(e==null||e._reactInternals===void 0)throw Error(qe(38));return S0(e,t,n,!1,r)};qr.version="18.3.1-next-f1338f8080-20240426";function QS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QS)}catch(e){console.error(e)}}QS(),Q6.exports=qr;var fo=Q6.exports;const Pu=rc(fo),fP=D6({__proto__:null,default:Pu},[fo]);var Pb=fo;_m.createRoot=Pb.createRoot,_m.hydrateRoot=Pb.hydrateRoot;var zv=u.createContext({});function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}function ZS(e){if(Array.isArray(e))return e}function pP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,d=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){d=!0,o=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}function Eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hv(e,t){if(e){if(typeof e=="string")return Eg(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eg(e,t):void 0}}function JS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e,t){return ZS(e)||pP(e,t)||Hv(e,t)||JS()}function nt(e){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function hP(e,t){if(nt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e8(e){var t=hP(e,"string");return nt(t)=="symbol"?t:t+""}function J(e,t,n){return(t=e8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gt(e,t){if(e==null)return{};var n,r,o=mP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var t8={exports:{}};/*!
|
|
42
|
+
Copyright (c) 2018 Jed Watson.
|
|
43
|
+
Licensed under the MIT License (MIT), see
|
|
44
|
+
http://jedwatson.github.io/classnames
|
|
45
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(t8);var gP=t8.exports;const ae=rc(gP),Hn=Math.round;function Sh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Ib=(e,t,n)=>n===0?e:e/100;function _l(e,t){const n=t||255;return e>n?n:e<0?0:e}class Mt{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var r=i;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(t instanceof Mt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=_l(t.r),this.g=_l(t.g),this.b=_l(t.b),this.a=typeof t.a=="number"?_l(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Hn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],a={r:Hn(i("r")),g:Hn(i("g")),b:Hn(i("b")),a:Hn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>Hn((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Hn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Hn(this.getSaturation()*100),r=Hn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=_l(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=Hn(r*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,s=0;const l=t/60,d=(1-Math.abs(2*r-1))*n,c=d*(1-Math.abs(l%2-1));l>=0&&l<1?(i=d,a=c):l>=1&&l<2?(i=c,a=d):l>=2&&l<3?(a=d,s=c):l>=3&&l<4?(a=c,s=d):l>=4&&l<5?(i=c,s=d):l>=5&&l<6&&(i=d,s=c);const f=r-d/2;this.r=Hn((i+f)*255),this.g=Hn((a+f)*255),this.b=Hn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=Hn(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,d=Hn(r*(1-n)*255),c=Hn(r*(1-n*l)*255),f=Hn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=d;break;case 1:this.r=c,this.b=d;break;case 2:this.r=d,this.b=f;break;case 3:this.r=d,this.g=c;break;case 4:this.r=f,this.g=d;break;case 5:default:this.g=d,this.b=c;break}}fromHsvString(t){const n=Sh(t,Ib);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Sh(t,Ib);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Sh(t,(r,o)=>o.includes("%")?Hn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var nd=2,Tb=.16,vP=.05,yP=.05,bP=.15,n8=5,r8=4,CP=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _b(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-nd*t:Math.round(e.h)+nd*t:r=n?Math.round(e.h)+nd*t:Math.round(e.h)-nd*t,r<0?r+=360:r>=360&&(r-=360),r}function kb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Tb*t:t===r8?r=e.s+Tb:r=e.s+vP*t,r>1&&(r=1),n&&t===n8&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Mb(e,t,n){var r;return n?r=e.v+yP*t:r=e.v-bP*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ma(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Mt(e),o=r.toHsv(),i=n8;i>0;i-=1){var a=new Mt({h:_b(o,i,!0),s:kb(o,i,!0),v:Mb(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=r8;s+=1){var l=new Mt({h:_b(o,s),s:kb(o,s),v:Mb(o,s)});n.push(l)}return t.theme==="dark"?CP.map(function(d){var c=d.index,f=d.amount;return new Mt(t.backgroundColor||"#141414").mix(n[c],f).toHexString()}):n.map(function(d){return d.toHexString()})}var Ps={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},$g=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];$g.primary=$g[5];var Rg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Rg.primary=Rg[5];var Og=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Og.primary=Og[5];var _f=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_f.primary=_f[5];var Pg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Pg.primary=Pg[5];var Ig=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ig.primary=Ig[5];var Tg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Tg.primary=Tg[5];var _g=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_g.primary=_g[5];var Ws=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ws.primary=Ws[5];var kg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];kg.primary=kg[5];var Mg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Mg.primary=Mg[5];var Ag=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ag.primary=Ag[5];var Ng=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ng.primary=Ng[5];var wh={red:$g,volcano:Rg,orange:Og,gold:_f,yellow:Pg,lime:Ig,green:Tg,cyan:_g,blue:Ws,geekblue:kg,purple:Mg,magenta:Ag,grey:Ng};function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ab(Object(n),!0).forEach(function(r){J(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function jg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Nb="data-rc-order",jb="data-rc-priority",xP="rc-util-key",Fg=new Map;function o8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):xP}function w0(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function SP(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Vv(e){return Array.from((Fg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function i8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Jn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=SP(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Nb,a),s&&i&&l.setAttribute(jb,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var d=w0(t),c=d.firstChild;if(r){if(s){var f=(t.styles||Vv(d)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Nb)))return!1;var m=Number(p.getAttribute(jb)||0);return i>=m});if(f.length)return d.insertBefore(l,f[f.length-1].nextSibling),l}d.insertBefore(l,c)}else d.appendChild(l);return l}function a8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=w0(t);return(t.styles||Vv(n)).find(function(r){return r.getAttribute(o8(t))===e})}function Iu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a8(e,t);if(n){var r=w0(t);r.removeChild(n)}}function wP(e,t){var n=Fg.get(e);if(!n||!jg(document,n)){var r=i8("",t),o=r.parentNode;Fg.set(e,o),e.removeChild(r)}}function ci(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=w0(n),o=Vv(r),i=Y(Y({},n),{},{styles:o});wP(r,i);var a=a8(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var d;a.nonce=(d=i.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var c=i8(e,i);return c.setAttribute(o8(i),t),c}function s8(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function EP(e){return s8(e)instanceof ShadowRoot}function kf(e){return EP(e)?s8(e):null}var Lg={},$P=function(t){};function RP(e,t){}function OP(e,t){}function PP(){Lg={}}function l8(e,t,n){!t&&!Lg[n]&&(e(!1,n),Lg[n]=!0)}function An(e,t){l8(RP,e,t)}function IP(e,t){l8(OP,e,t)}An.preMessage=$P;An.resetWarned=PP;An.noteOnce=IP;function TP(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function _P(e,t){An(e,"[@ant-design/icons] ".concat(t))}function Fb(e){return nt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(nt(e.icon)==="object"||typeof e.icon=="function")}function Lb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[TP(n)]=r}return t},{})}function Dg(e,t,n){return n?V.createElement(e.tag,Y(Y({key:t},Lb(e.attrs)),n),(e.children||[]).map(function(r,o){return Dg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):V.createElement(e.tag,Y({key:t},Lb(e.attrs)),(e.children||[]).map(function(r,o){return Dg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function u8(e){return Ma(e)[0]}function c8(e){return e?Array.isArray(e)?e:[e]:[]}var kP=`
|
|
46
|
+
.anticon {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
color: inherit;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
line-height: 0;
|
|
52
|
+
text-align: center;
|
|
53
|
+
text-transform: none;
|
|
54
|
+
vertical-align: -0.125em;
|
|
55
|
+
text-rendering: optimizeLegibility;
|
|
56
|
+
-webkit-font-smoothing: antialiased;
|
|
57
|
+
-moz-osx-font-smoothing: grayscale;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.anticon > * {
|
|
61
|
+
line-height: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.anticon svg {
|
|
65
|
+
display: inline-block;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.anticon::before {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.anticon .anticon-icon {
|
|
73
|
+
display: block;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.anticon[tabindex] {
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.anticon-spin::before,
|
|
81
|
+
.anticon-spin {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
84
|
+
animation: loadingCircle 1s infinite linear;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@-webkit-keyframes loadingCircle {
|
|
88
|
+
100% {
|
|
89
|
+
-webkit-transform: rotate(360deg);
|
|
90
|
+
transform: rotate(360deg);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@keyframes loadingCircle {
|
|
95
|
+
100% {
|
|
96
|
+
-webkit-transform: rotate(360deg);
|
|
97
|
+
transform: rotate(360deg);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`,MP=function(t){var n=u.useContext(zv),r=n.csp,o=n.prefixCls,i=n.layer,a=kP;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
101
|
+
`).concat(a,`
|
|
102
|
+
}`)),u.useEffect(function(){var s=t.current,l=kf(s);ci(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},AP=["icon","className","onClick","style","primaryColor","secondaryColor"],su={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function NP(e){var t=e.primaryColor,n=e.secondaryColor;su.primaryColor=t,su.secondaryColor=n||u8(t),su.calculated=!!n}function jP(){return Y({},su)}var cl=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=gt(t,AP),d=u.useRef(),c=su;if(a&&(c={primaryColor:a,secondaryColor:s||u8(a)}),MP(d),_P(Fb(n),"icon should be icon definiton, but got ".concat(n)),!Fb(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Y(Y({},f),{},{icon:f.icon(c.primaryColor,c.secondaryColor)})),Dg(f.icon,"svg-".concat(f.name),Y(Y({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:d}))};cl.displayName="IconReact";cl.getTwoToneColors=jP;cl.setTwoToneColors=NP;function d8(e){var t=c8(e),n=ge(t,2),r=n[0],o=n[1];return cl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function FP(){var e=cl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var LP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];d8(Ws.primary);var yt=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,d=gt(e,LP),c=u.useContext(zv),f=c.prefixCls,p=f===void 0?"anticon":f,m=c.rootClassName,h=ae(m,p,J(J({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=c8(l),v=ge(y,2),C=v[0],O=v[1];return u.createElement("span",we({role:"img","aria-label":r.name},d,{ref:t,tabIndex:g,onClick:s,className:h}),u.createElement(cl,{icon:r,primaryColor:C,secondaryColor:O,style:b}))});yt.displayName="AntdIcon";yt.getTwoToneColor=FP;yt.setTwoToneColor=d8;var DP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 00-120.5-81.2A375.65 375.65 0 00519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 00-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0029.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-325.2 79c0 20.4-16.6 37.1-37.1 37.1-20.4 0-37.1-16.7-37.1-37.1v-55.1c0-20.4 16.6-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1zm175.2 0c0 20.4-16.6 37.1-37.1 37.1S644 476.8 644 456.4v-55.1c0-20.4 16.7-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1z"}}]},name:"aliwangwang",theme:"filled"},BP=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:DP}))},zP=u.forwardRef(BP),HP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},VP=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:HP}))},UP=u.forwardRef(VP),WP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},KP=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:WP}))},qP=u.forwardRef(KP),GP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},XP=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:GP}))},YP=u.forwardRef(XP),QP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},ZP=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:QP}))},f8=u.forwardRef(ZP),JP={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},eI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:JP}))},tI=u.forwardRef(eI),nI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},rI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:nI}))},oI=u.forwardRef(rI),iI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},aI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:iI}))},uc=u.forwardRef(aI),sI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},lI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:sI}))},Uv=u.forwardRef(lI),uI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},cI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:uI}))},p8=u.forwardRef(cI),dI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},fI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:dI}))},aa=u.forwardRef(fI),pI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},hI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:pI}))},mI=u.forwardRef(hI),gI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},vI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:gI}))},Jo=u.forwardRef(vI),yI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},bI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:yI}))},CI=u.forwardRef(bI),xI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},SI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:xI}))},wI=u.forwardRef(SI),EI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},$I=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:EI}))},h8=u.forwardRef($I),RI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},OI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:RI}))},PI=u.forwardRef(OI),II={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},TI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:II}))},_I=u.forwardRef(TI),kI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},MI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:kI}))},Is=u.forwardRef(MI),AI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},NI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:AI}))},jI=u.forwardRef(NI),FI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},LI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:FI}))},DI=u.forwardRef(LI),BI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},zI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:BI}))},HI=u.forwardRef(zI),VI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},UI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:VI}))},E0=u.forwardRef(UI),WI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},KI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:WI}))},qI=u.forwardRef(KI),GI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},XI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:GI}))},YI=u.forwardRef(XI),QI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},ZI=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:QI}))},$a=u.forwardRef(ZI),JI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},eT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:JI}))},tT=u.forwardRef(eT),nT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},rT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:nT}))},oT=u.forwardRef(rT),iT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},aT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:iT}))},sT=u.forwardRef(aT),lT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},uT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:lT}))},cT=u.forwardRef(uT),dT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},fT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:dT}))},pT=u.forwardRef(fT),hT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},mT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:hT}))},gT=u.forwardRef(mT),vT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},yT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:vT}))},Mf=u.forwardRef(yT),bT={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},CT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:bT}))},xT=u.forwardRef(CT),ST={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},wT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:ST}))},ET=u.forwardRef(wT),$T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},RT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:$T}))},OT=u.forwardRef(RT),PT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},IT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:PT}))},Wv=u.forwardRef(IT),TT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},_T=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:TT}))},Tu=u.forwardRef(_T),kT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},MT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:kT}))},Aa=u.forwardRef(MT),AT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},NT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:AT}))},jT=u.forwardRef(NT),FT={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482.88 128c-84.35 0-156.58 52.8-185.68 126.98-60.89 8.13-115.3 43.63-146.6 97.84-42.16 73-32.55 161.88 17.14 224.16-23.38 56.75-19.85 121.6 11.42 175.78 42.18 73.02 124.1 109.15 202.94 97.23C419.58 898.63 477.51 928 540.12 928c84.35 0 156.58-52.8 185.68-126.98 60.89-8.13 115.3-43.62 146.6-97.84 42.16-73 32.55-161.88-17.14-224.16 23.38-56.75 19.85-121.6-11.42-175.78-42.18-73.02-124.1-109.15-202.94-97.23C603.42 157.38 545.49 128 482.88 128m0 61.54c35.6 0 68.97 13.99 94.22 37.74-1.93 1.03-3.92 1.84-5.83 2.94l-136.68 78.91a46.11 46.11 0 00-23.09 39.78l-.84 183.6-65.72-38.34V327.4c0-76 61.9-137.86 137.94-137.86m197.7 75.9c44.19 3.14 86.16 27.44 109.92 68.57 17.8 30.8 22.38 66.7 14.43 100.42-1.88-1.17-3.6-2.49-5.53-3.6l-136.73-78.91a46.23 46.23 0 00-46-.06l-159.47 91.1.36-76.02 144.5-83.41a137.19 137.19 0 0178.53-18.09m-396.92 55.4c-.07 2.2-.3 4.35-.3 6.56v157.75a46.19 46.19 0 0022.91 39.9l158.68 92.5-66.02 37.67-144.55-83.35c-65.86-38-88.47-122.53-50.45-188.34 17.78-30.78 46.55-52.69 79.73-62.68m340.4 79.93l144.54 83.35c65.86 38 88.47 122.53 50.45 188.34-17.78 30.78-46.55 52.69-79.73 62.68.07-2.19.3-4.34.3-6.55V570.85a46.19 46.19 0 00-22.9-39.9l-158.69-92.5zM511.8 464.84l54.54 31.79-.3 63.22-54.84 31.31-54.54-31.85.3-63.16zm100.54 58.65l65.72 38.35V728.6c0 76-61.9 137.86-137.94 137.86-35.6 0-68.97-13.99-94.22-37.74 1.93-1.03 3.92-1.84 5.83-2.94l136.68-78.9a46.11 46.11 0 0023.09-39.8zm-46.54 89.55l-.36 76.02-144.5 83.41c-65.85 38-150.42 15.34-188.44-50.48-17.8-30.8-22.38-66.7-14.43-100.42 1.88 1.17 3.6 2.5 5.53 3.6l136.74 78.91a46.23 46.23 0 0046 .06z"}}]},name:"open-a-i",theme:"outlined"},LT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:FT}))},DT=u.forwardRef(LT),BT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},zT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:BT}))},m8=u.forwardRef(zT),HT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},VT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:HT}))},Kv=u.forwardRef(VT),UT={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},WT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:UT}))},KT=u.forwardRef(WT),qT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},GT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:qT}))},XT=u.forwardRef(GT),YT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},QT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:YT}))},g8=u.forwardRef(QT),ZT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},JT=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:ZT}))},v8=u.forwardRef(JT),e_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},t_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:e_}))},di=u.forwardRef(t_),n_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},r_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:n_}))},o_=u.forwardRef(r_),i_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},a_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:i_}))},s_=u.forwardRef(a_),l_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},u_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:l_}))},qv=u.forwardRef(u_),c_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},d_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:c_}))},Db=u.forwardRef(d_),f_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},p_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:f_}))},Bb=u.forwardRef(p_),h_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},m_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:h_}))},g_=u.forwardRef(m_),v_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},y_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:v_}))},b_=u.forwardRef(y_),C_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},x_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:C_}))},S_=u.forwardRef(x_),w_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},E_=function(t,n){return u.createElement(yt,we({},t,{ref:n,icon:w_}))},$_=u.forwardRef(E_),y8={exports:{}},rn={};/**
|
|
103
|
+
* @license React
|
|
104
|
+
* react-is.production.min.js
|
|
105
|
+
*
|
|
106
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the MIT license found in the
|
|
109
|
+
* LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/var Gv=Symbol.for("react.element"),Xv=Symbol.for("react.portal"),$0=Symbol.for("react.fragment"),R0=Symbol.for("react.strict_mode"),O0=Symbol.for("react.profiler"),P0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),R_=Symbol.for("react.server_context"),T0=Symbol.for("react.forward_ref"),_0=Symbol.for("react.suspense"),k0=Symbol.for("react.suspense_list"),M0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),O_=Symbol.for("react.offscreen"),b8;b8=Symbol.for("react.module.reference");function ho(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gv:switch(e=e.type,e){case $0:case O0:case R0:case _0:case k0:return e;default:switch(e=e&&e.$$typeof,e){case R_:case I0:case T0:case A0:case M0:case P0:return e;default:return t}}case Xv:return t}}}rn.ContextConsumer=I0;rn.ContextProvider=P0;rn.Element=Gv;rn.ForwardRef=T0;rn.Fragment=$0;rn.Lazy=A0;rn.Memo=M0;rn.Portal=Xv;rn.Profiler=O0;rn.StrictMode=R0;rn.Suspense=_0;rn.SuspenseList=k0;rn.isAsyncMode=function(){return!1};rn.isConcurrentMode=function(){return!1};rn.isContextConsumer=function(e){return ho(e)===I0};rn.isContextProvider=function(e){return ho(e)===P0};rn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gv};rn.isForwardRef=function(e){return ho(e)===T0};rn.isFragment=function(e){return ho(e)===$0};rn.isLazy=function(e){return ho(e)===A0};rn.isMemo=function(e){return ho(e)===M0};rn.isPortal=function(e){return ho(e)===Xv};rn.isProfiler=function(e){return ho(e)===O0};rn.isStrictMode=function(e){return ho(e)===R0};rn.isSuspense=function(e){return ho(e)===_0};rn.isSuspenseList=function(e){return ho(e)===k0};rn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$0||e===O0||e===R0||e===_0||e===k0||e===O_||typeof e=="object"&&e!==null&&(e.$$typeof===A0||e.$$typeof===M0||e.$$typeof===P0||e.$$typeof===I0||e.$$typeof===T0||e.$$typeof===b8||e.getModuleId!==void 0)};rn.typeOf=ho;y8.exports=rn;var Eh=y8.exports;function dl(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var P_=Symbol.for("react.element"),I_=Symbol.for("react.transitional.element"),T_=Symbol.for("react.fragment");function C8(e){return e&&nt(e)==="object"&&(e.$$typeof===P_||e.$$typeof===I_)&&e.type===T_}var __=Number(u.version.split(".")[0]),Yv=function(t,n){typeof t=="function"?t(n):nt(t)==="object"&&t&&"current"in t&&(t.current=n)},Xr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){Yv(a,i)})}},Ci=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dl(function(){return Xr.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Ba=function(t){var n,r;if(!t)return!1;if(x8(t)&&__>=19)return!0;var o=Eh.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Eh.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Eh.ForwardRef)};function x8(e){return u.isValidElement(e)&&!C8(e)}var fl=function(t){if(t&&x8(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};const k_="1.2.0",M_=V.createContext({}),A_={classNames:{},styles:{},className:"",style:{}},N0=e=>{const t=V.useContext(M_);return V.useMemo(()=>({...A_,...t[e]}),[t[e]])};function Rr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return V.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Rr(r)):C8(r)&&r.props?n=n.concat(Rr(r.props.children,t)):n.push(r))}),n}function _u(e){return e instanceof HTMLElement||e instanceof SVGElement}function N_(e){return e&&nt(e)==="object"&&_u(e.nativeElement)?e.nativeElement:_u(e)?e:null}function Dd(e){var t=N_(e);if(t)return t;if(e instanceof V.Component){var n;return(n=Pu.findDOMNode)===null||n===void 0?void 0:n.call(Pu,e)}return null}var Bg=u.createContext(null);function j_(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),i=u.useContext(Bg),a=u.useCallback(function(s,l,d){r.current+=1;var c=r.current;o.current.push({size:s,element:l,data:d}),Promise.resolve().then(function(){c===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,l,d)},[n,i]);return u.createElement(Bg.Provider,{value:a},t)}var S8=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),zg=typeof window<"u"&&typeof document<"u"&&window.document===document,Af=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),F_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Af):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),L_=2;function D_(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){F_(i)}function s(){var l=Date.now();if(n){if(l-o<L_)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=l}return s}var B_=20,z_=["top","right","bottom","left","width","height","size","weight"],H_=typeof MutationObserver<"u",V_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=D_(this.refresh.bind(this),B_)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!zg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),H_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!zg||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=z_.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),w8=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ks=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Af},E8=j0(0,0,0,0);function Nf(e){return parseFloat(e)||0}function zb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Nf(i)},0)}function U_(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Nf(a)}return n}function W_(e){var t=e.getBBox();return j0(0,0,t.width,t.height)}function K_(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return E8;var r=Ks(e).getComputedStyle(e),o=U_(r),i=o.left+o.right,a=o.top+o.bottom,s=Nf(r.width),l=Nf(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=zb(r,"left","right")+i),Math.round(l+a)!==n&&(l-=zb(r,"top","bottom")+a)),!G_(e)){var d=Math.round(s+i)-t,c=Math.round(l+a)-n;Math.abs(d)!==1&&(s-=d),Math.abs(c)!==1&&(l-=c)}return j0(o.left,o.top,s,l)}var q_=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ks(e).SVGGraphicsElement}:function(e){return e instanceof Ks(e).SVGElement&&typeof e.getBBox=="function"}}();function G_(e){return e===Ks(e).document.documentElement}function X_(e){return zg?q_(e)?W_(e):K_(e):E8}function Y_(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return w8(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function j0(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Q_=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=j0(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=X_(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Z_=function(){function e(t,n){var r=Y_(n);w8(this,{target:t,contentRect:r})}return e}(),J_=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new S8,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ks(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Q_(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ks(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Z_(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$8=typeof WeakMap<"u"?new WeakMap:new S8,R8=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=V_.getInstance(),r=new J_(t,n,this);$8.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){R8.prototype[e]=function(){var t;return(t=$8.get(this))[e].apply(t,arguments)}});var ek=function(){return typeof Af.ResizeObserver<"u"?Af.ResizeObserver:R8}(),ji=new Map;function tk(e){e.forEach(function(t){var n,r=t.target;(n=ji.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var O8=new ek(tk);function nk(e,t){ji.has(e)||(ji.set(e,new Set),O8.observe(e)),ji.get(e).add(t)}function rk(e,t){ji.has(e)&&(ji.get(e).delete(t),ji.get(e).size||(O8.unobserve(e),ji.delete(e)))}function xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,e8(r.key),r)}}function Sn(e,t,n){return t&&Hb(e.prototype,t),n&&Hb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ku(e,t)}function _o(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ku(e,t)}function Mu(e){return Mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mu(e)}function Qv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qv=function(){return!!e})()}function wt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ok(e,t){if(t&&(nt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}function ko(e){var t=Qv();return function(){var n,r=Mu(e);if(t){var o=Mu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ok(this,n)}}var ik=function(e){_o(n,e);var t=ko(n);function n(){return xn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function ak(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),i=u.useRef(null),a=u.useContext(Bg),s=typeof n=="function",l=s?n(o):n,d=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&u.isValidElement(l)&&Ba(l),f=c?fl(l):null,p=Ci(f,o),m=function(){var y;return Dd(o.current)||(o.current&&nt(o.current)==="object"?Dd((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||Dd(i.current)};u.useImperativeHandle(t,function(){return m()});var h=u.useRef(e);h.current=e;var g=u.useCallback(function(b){var y=h.current,v=y.onResize,C=y.data,O=b.getBoundingClientRect(),$=O.width,x=O.height,w=b.offsetWidth,T=b.offsetHeight,R=Math.floor($),S=Math.floor(x);if(d.current.width!==R||d.current.height!==S||d.current.offsetWidth!==w||d.current.offsetHeight!==T){var E={width:R,height:S,offsetWidth:w,offsetHeight:T};d.current=E;var P=w===Math.round($)?$:w,I=T===Math.round(x)?x:T,k=Y(Y({},E),{},{offsetWidth:P,offsetHeight:I});a==null||a(k,b,C),v&&Promise.resolve().then(function(){v(k,b)})}},[]);return u.useEffect(function(){var b=m();return b&&!r&&nk(b,g),function(){return rk(b,g)}},[o.current,r]),u.createElement(ik,{ref:i},c?u.cloneElement(l,{ref:p}):l)}var sk=u.forwardRef(ak),lk="rc-observer-key";function uk(e,t){var n=e.children,r=typeof n=="function"?[n]:Rr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(lk,"-").concat(i);return u.createElement(sk,we({},e,{key:a,ref:i===0?t:void 0}),o)})}var zr=u.forwardRef(uk);zr.Collection=j_;function ck(e){if(Array.isArray(e))return Eg(e)}function P8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
111
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e){return ck(e)||P8(e)||Hv(e)||dk()}var I8=function(t){return+setTimeout(t,16)},T8=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(I8=function(t){return window.requestAnimationFrame(t)},T8=function(t){return window.cancelAnimationFrame(t)});var Vb=0,Zv=new Map;function _8(e){Zv.delete(e)}var en=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vb+=1;var r=Vb;function o(i){if(i===0)_8(r),t();else{var a=I8(function(){o(i-1)});Zv.set(r,a)}}return o(n),r};en.cancel=function(e){var t=Zv.get(e);return _8(e),T8(t)};function Au(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Ji(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(An(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var d=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var c=0;c<i.length;c++)if(!o(i[c],a[c],d))return!1;return!0}if(i&&a&&nt(i)==="object"&&nt(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(p){return o(i[p],a[p],d)})}return!1}return o(e,t)}var fk="%";function Hg(e){return e.join(fk)}var pk=function(){function e(t){xn(this,e),J(this,"instanceId",void 0),J(this,"cache",new Map),this.instanceId=t}return Sn(e,[{key:"get",value:function(n){return this.opGet(Hg(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Hg(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),hk=["children"],qs="data-token-hash",$o="data-css-hash",Fi="__cssinjs_instance__";function k8(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat($o,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Fi]=o[Fi]||e,o[Fi]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat($o,"]"))).forEach(function(o){var i=o.getAttribute($o);if(r[i]){if(o[Fi]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new pk(e)}var Na=u.createContext({hashPriority:"low",cache:k8(),defaultCache:!0}),mk=function(t){var n=t.children,r=gt(t,hk),o=u.useContext(Na),i=dl(function(){var a=Y({},o);Object.keys(r).forEach(function(l){var d=r[l];r[l]!==void 0&&(a[l]=d)});var s=r.cache;return a.cache=a.cache||k8(),a.defaultCache=!s&&o.defaultCache,a},[o,r],function(a,s){return!Ji(a[0],s[0],!0)||!Ji(a[1],s[1],!0)});return u.createElement(Na.Provider,{value:i},n)};function gk(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Jv=function(){function e(){xn(this,e),J(this,"cache",void 0),J(this,"keys",void 0),J(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Sn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(d,c){var f=ge(d,2),p=f[1];return o.internalGet(c)[1]<p?[c,o.internalGet(c)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=ge(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(d,c){if(c===n.length-1)l.set(d,{value:[r,o.cacheCallTimes++]});else{var f=l.get(d);f?f.map||(f.map=new Map):l.set(d,{map:new Map}),l=l.get(d).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!gk(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();J(Jv,"MAX_CACHE_SIZE",20);J(Jv,"MAX_CACHE_OFFSET",5);var Ub=0,M8=function(){function e(t){xn(this,e),J(this,"derivatives",void 0),J(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ub,t.length===0&&(t.length>0,void 0),Ub+=1}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),$h=new Jv;function Nu(e){var t=Array.isArray(e)?e:[e];return $h.has(t)||$h.set(t,new M8(t)),$h.get(t)}var vk=new WeakMap,Rh={};function yk(e,t){for(var n=vk,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Rh)||n.set(Rh,e()),n.get(Rh)}var Wb=new WeakMap;function lu(e){var t=Wb.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof M8?t+=r.id:r&&nt(r)==="object"?t+=lu(r):t+=r}),t=Au(t),Wb.set(e,t)),t}function Kb(e,t){return Au("".concat(t,"_").concat(lu(e)))}var Vg=Jn();function be(e){return typeof e=="number"?"".concat(e,"px"):e}function jf(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=Y(Y({},o),{},(r={},J(r,qs,t),J(r,$o,n),r)),s=Object.keys(a).map(function(l){var d=a[l];return d?"".concat(l,'="').concat(d,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Bd=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},bk=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=ge(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},A8=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,d=ge(a,2),c=d[0],f=d[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[c])i[c]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[c])){var p,m=Bd(c,r==null?void 0:r.prefix);o[m]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[c])?"".concat(f,"px"):String(f),i[c]="var(".concat(m,")")}}),[i,bk(o,n,{scope:r==null?void 0:r.scope})]},qb=Jn()?u.useLayoutEffect:u.useEffect,Ut=function(t,n){var r=u.useRef(!0);qb(function(){return t(r.current)},n),qb(function(){return r.current=!1,function(){r.current=!0}},[])},Ug=function(t,n){Ut(function(r){if(!r)return t()},n)},Ck=Y({},Fs),Gb=Ck.useInsertionEffect,xk=function(t,n,r){u.useMemo(t,r),Ut(function(){return n(!0)},r)},Sk=Gb?function(e,t,n){return Gb(function(){return e(),t()},n)}:xk,wk=Y({},Fs),Ek=wk.useInsertionEffect,$k=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},Rk=function(){return function(t){t()}},Ok=typeof Ek<"u"?$k:Rk;function e2(e,t,n,r,o){var i=u.useContext(Na),a=i.cache,s=[e].concat(Ne(t)),l=Hg(s),d=Ok([l]),c=function(h){a.opUpdate(l,function(g){var b=g||[void 0,void 0],y=ge(b,2),v=y[0],C=v===void 0?0:v,O=y[1],$=O,x=$||n(),w=[C,x];return h?h(w):w})};u.useMemo(function(){c()},[l]);var f=a.opGet(l),p=f[1];return Sk(function(){o==null||o(p)},function(m){return c(function(h){var g=ge(h,2),b=g[0],y=g[1];return m&&b===0&&(o==null||o(p)),[b+1,y]}),function(){a.opUpdate(l,function(h){var g=h||[],b=ge(g,2),y=b[0],v=y===void 0?0:y,C=b[1],O=v-1;return O===0?(d(function(){(m||!a.opGet(l))&&(r==null||r(C,!1))}),null):[v-1,C]})}},[l]),p}var Pk={},Ik="css",fa=new Map;function Tk(e){fa.set(e,(fa.get(e)||0)+1)}function _k(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(qs,'="').concat(e,'"]'));n.forEach(function(r){if(r[Fi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var kk=0;function Mk(e,t){fa.set(e,(fa.get(e)||0)-1);var n=Array.from(fa.keys()),r=n.filter(function(o){var i=fa.get(o)||0;return i<=0});n.length-r.length>kk&&r.forEach(function(o){_k(o,t),fa.delete(o)})}var N8=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Y(Y({},i),n);return o&&(a=o(a)),a},j8="token";function F8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(Na),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,d=l===void 0?Pk:l,c=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=yk(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),h=lu(m),g=lu(d),b=p?lu(p):"",y=e2(j8,[s,e.id,h,g,b],function(){var v,C=f?f(m,d,e):N8(m,d,e,c),O=Y({},C),$="";if(p){var x=A8(C,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),w=ge(x,2);C=w[0],$=w[1]}var T=Kb(C,s);C._tokenKey=T,O._tokenKey=Kb(O,s);var R=(v=p==null?void 0:p.key)!==null&&v!==void 0?v:T;C._themeKey=R,Tk(R);var S="".concat(Ik,"-").concat(Au(T));return C._hashId=S,[C,S,O,$,(p==null?void 0:p.key)||""]},function(v){Mk(v[0]._themeKey,o)},function(v){var C=ge(v,4),O=C[0],$=C[3];if(p&&$){var x=ci($,Au("css-variables-".concat(O._themeKey)),{mark:$o,prepend:"queue",attachTo:i,priority:-999});x[Fi]=o,x.setAttribute(qs,O._themeKey)}});return y}var Ak=function(t,n,r){var o=ge(t,5),i=o[2],a=o[3],s=o[4],l=r||{},d=l.plain;if(!a)return null;var c=i._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=jf(a,s,c,p,d);return[f,c,m]},Nk={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},L8="comm",D8="rule",B8="decl",jk="@import",Fk="@namespace",Lk="@keyframes",Dk="@layer",z8=Math.abs,t2=String.fromCharCode;function H8(e){return e.trim()}function zd(e,t,n){return e.replace(t,n)}function Bk(e,t,n){return e.indexOf(t,n)}function Ts(e,t){return e.charCodeAt(t)|0}function Gs(e,t,n){return e.slice(t,n)}function Bo(e){return e.length}function zk(e){return e.length}function rd(e,t){return t.push(e),e}var F0=1,Xs=1,V8=0,po=0,_n=0,pl="";function n2(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:F0,column:Xs,length:a,return:"",siblings:s}}function Hk(){return _n}function Vk(){return _n=po>0?Ts(pl,--po):0,Xs--,_n===10&&(Xs=1,F0--),_n}function Ro(){return _n=po<V8?Ts(pl,po++):0,Xs++,_n===10&&(Xs=1,F0++),_n}function Li(){return Ts(pl,po)}function Hd(){return po}function L0(e,t){return Gs(pl,e,t)}function ju(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uk(e){return F0=Xs=1,V8=Bo(pl=e),po=0,[]}function Wk(e){return pl="",e}function Oh(e){return H8(L0(po-1,Wg(e===91?e+2:e===40?e+1:e)))}function Kk(e){for(;(_n=Li())&&_n<33;)Ro();return ju(e)>2||ju(_n)>3?"":" "}function qk(e,t){for(;--t&&Ro()&&!(_n<48||_n>102||_n>57&&_n<65||_n>70&&_n<97););return L0(e,Hd()+(t<6&&Li()==32&&Ro()==32))}function Wg(e){for(;Ro();)switch(_n){case e:return po;case 34:case 39:e!==34&&e!==39&&Wg(_n);break;case 40:e===41&&Wg(e);break;case 92:Ro();break}return po}function Gk(e,t){for(;Ro()&&e+_n!==57;)if(e+_n===84&&Li()===47)break;return"/*"+L0(t,po-1)+"*"+t2(e===47?e:Ro())}function Xk(e){for(;!ju(Li());)Ro();return L0(e,po)}function Yk(e){return Wk(Vd("",null,null,null,[""],e=Uk(e),0,[0],e))}function Vd(e,t,n,r,o,i,a,s,l){for(var d=0,c=0,f=a,p=0,m=0,h=0,g=1,b=1,y=1,v=0,C="",O=o,$=i,x=r,w=C;b;)switch(h=v,v=Ro()){case 40:if(h!=108&&Ts(w,f-1)==58){Bk(w+=zd(Oh(v),"&","&\f"),"&\f",z8(d?s[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Oh(v);break;case 9:case 10:case 13:case 32:w+=Kk(h);break;case 92:w+=qk(Hd()-1,7);continue;case 47:switch(Li()){case 42:case 47:rd(Qk(Gk(Ro(),Hd()),t,n,l),l),(ju(h||1)==5||ju(Li()||1)==5)&&Bo(w)&&Gs(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*g:s[d++]=Bo(w)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:y==-1&&(w=zd(w,/\f/g,"")),m>0&&(Bo(w)-f||g===0&&h===47)&&rd(m>32?Yb(w+";",r,n,f-1,l):Yb(zd(w," ","")+";",r,n,f-2,l),l);break;case 59:w+=";";default:if(rd(x=Xb(w,t,n,d,c,o,s,C,O=[],$=[],f,i),i),v===123)if(c===0)Vd(w,t,x,x,O,i,f,s,$);else{switch(p){case 99:if(Ts(w,3)===110)break;case 108:if(Ts(w,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Vd(e,x,x,r&&rd(Xb(e,x,x,0,0,o,s,C,o,O=[],f,$),$),o,$,f,s,r?O:$):Vd(w,x,x,x,[""],$,0,s,$)}}d=c=m=0,g=y=1,C=w="",f=a;break;case 58:f=1+Bo(w),m=h;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&Vk()==125)continue}switch(w+=t2(v),v*g){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[d++]=(Bo(w)-1)*y,y=1;break;case 64:Li()===45&&(w+=Oh(Ro())),p=Li(),c=f=Bo(C=w+=Xk(Hd())),v++;break;case 45:h===45&&Bo(w)==2&&(g=0)}}return i}function Xb(e,t,n,r,o,i,a,s,l,d,c,f){for(var p=o-1,m=o===0?i:[""],h=zk(m),g=0,b=0,y=0;g<r;++g)for(var v=0,C=Gs(e,p+1,p=z8(b=a[g])),O=e;v<h;++v)(O=H8(b>0?m[v]+" "+C:zd(C,/&\f/g,m[v])))&&(l[y++]=O);return n2(e,t,n,o===0?D8:s,l,d,c,f)}function Qk(e,t,n,r){return n2(e,t,n,L8,t2(Hk()),Gs(e,2,-2),0,r)}function Yb(e,t,n,r,o){return n2(e,t,n,B8,Gs(e,0,r),Gs(e,r+1,-1),r,o)}function Kg(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Zk(e,t,n,r){switch(e.type){case Dk:if(e.children.length)break;case jk:case Fk:case B8:return e.return=e.return||e.value;case L8:return"";case Lk:return e.return=e.value+"{"+Kg(e.children,r)+"}";case D8:if(!Bo(e.value=e.props.join(",")))return""}return Bo(n=Kg(e.children,r))?e.return=e.value+"{"+n+"}":""}var Qb="data-ant-cssinjs-cache-path",U8="_FILE_STYLE__",Ra,W8=!0;function Jk(){if(!Ra&&(Ra={},Jn())){var e=document.createElement("div");e.className=Qb,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ge(i,2),s=a[0],l=a[1];Ra[s]=l});var n=document.querySelector("style[".concat(Qb,"]"));if(n){var r;W8=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function eM(e){return Jk(),!!Ra[e]}function tM(e){var t=Ra[e],n=null;if(t&&Jn())if(W8)n=U8;else{var r=document.querySelector("style[".concat($o,'="').concat(Ra[e],'"]'));r?n=r.innerHTML:delete Ra[e]}return[n,t]}var nM="_skip_check_",K8="_multi_value_";function Ud(e){var t=Kg(Yk(e),Zk);return t.replace(/\{%%%\:[^;];}/g,";")}function rM(e){return nt(e)==="object"&&e&&(nM in e||K8 in e)}function Zb(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),d=l[0]||"",c=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(c).concat(o).concat(d.slice(c.length)),[d].concat(Ne(l.slice(1))).join(" ")});return i.join(",")}var oM=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var d=n.hashPriority,c=n.transformers,f=c===void 0?[]:c;n.linters;var p="",m={};function h(y){var v=y.getName(s);if(!m[v]){var C=e(y.style,n,{root:!1,parentSelectors:a}),O=ge(C,1),$=O[0];m[v]="@keyframes ".concat(y.getName(s)).concat($)}}function g(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(C){Array.isArray(C)?g(C,v):C&&v.push(C)}),v}var b=g(Array.isArray(t)?t:[t]);return b.forEach(function(y){var v=typeof y=="string"&&!o?{}:y;if(typeof v=="string")p+="".concat(v,`
|
|
112
|
+
`);else if(v._keyframe)h(v);else{var C=f.reduce(function(O,$){var x;return($==null||(x=$.visit)===null||x===void 0?void 0:x.call($,O))||O},v);Object.keys(C).forEach(function(O){var $=C[O];if(nt($)==="object"&&$&&(O!=="animationName"||!$._keyframe)&&!rM($)){var x=!1,w=O.trim(),T=!1;(o||i)&&s?w.startsWith("@")?x=!0:w==="&"?w=Zb("",s,d):w=Zb(O,s,d):o&&!s&&(w==="&"||w==="")&&(w="",T=!0);var R=e($,n,{root:T,injectHash:x,parentSelectors:[].concat(Ne(a),[w])}),S=ge(R,2),E=S[0],P=S[1];m=Y(Y({},m),P),p+="".concat(w).concat(E)}else{let N=function(M,j){var A=M.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),D=j;!Nk[M]&&typeof D=="number"&&D!==0&&(D="".concat(D,"px")),M==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(h(j),D=j.getName(s)),p+="".concat(A,":").concat(D,";")};var I,k=(I=$==null?void 0:$.value)!==null&&I!==void 0?I:$;nt($)==="object"&&$!==null&&$!==void 0&&$[K8]&&Array.isArray(k)?k.forEach(function(M){N(O,M)}):N(O,k)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(`
|
|
113
|
+
`))):p="{".concat(p,"}"),[p,m]};function q8(e,t){return Au("".concat(e.join("%")).concat(t))}function iM(){return null}var G8="style";function qg(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,d=l===void 0?0:l,c=u.useContext(Na),f=c.autoClear;c.mock;var p=c.defaultCache,m=c.hashPriority,h=c.container,g=c.ssrInline,b=c.transformers,y=c.linters,v=c.cache,C=c.layer,O=n._tokenKey,$=[O];C&&$.push("layer"),$.push.apply($,Ne(r));var x=Vg,w=e2(G8,$,function(){var P=$.join("|");if(eM(P)){var I=tM(P),k=ge(I,2),N=k[0],M=k[1];if(N)return[N,O,M,{},s,d]}var j=t(),A=oM(j,{hashId:o,hashPriority:m,layer:C?i:void 0,path:r.join("-"),transformers:b,linters:y}),D=ge(A,2),L=D[0],z=D[1],q=Ud(L),U=q8($,q);return[q,O,U,z,s,d]},function(P,I){var k=ge(P,3),N=k[2];(I||f)&&Vg&&Iu(N,{mark:$o})},function(P){var I=ge(P,4),k=I[0];I[1];var N=I[2],M=I[3];if(x&&k!==U8){var j={mark:$o,prepend:C?!1:"queue",attachTo:h,priority:d},A=typeof a=="function"?a():a;A&&(j.csp={nonce:A});var D=[],L=[];Object.keys(M).forEach(function(q){q.startsWith("@layer")?D.push(q):L.push(q)}),D.forEach(function(q){ci(Ud(M[q]),"_layer-".concat(q),Y(Y({},j),{},{prepend:!0}))});var z=ci(k,N,j);z[Fi]=v.instanceId,z.setAttribute(qs,O),L.forEach(function(q){ci(Ud(M[q]),"_effect-".concat(q),j)})}}),T=ge(w,3),R=T[0],S=T[1],E=T[2];return function(P){var I;if(!g||x||!p)I=u.createElement(iM,null);else{var k;I=u.createElement("style",we({},(k={},J(k,qs,S),J(k,$o,E),k),{dangerouslySetInnerHTML:{__html:R}}))}return u.createElement(u.Fragment,null,I,P)}}var aM=function(t,n,r){var o=ge(t,6),i=o[0],a=o[1],s=o[2],l=o[3],d=o[4],c=o[5],f=r||{},p=f.plain;if(d)return null;var m=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return m=jf(i,a,s,h,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var b=Ud(l[g]),y=jf(b,a,"_effect-".concat(g),h,p);g.startsWith("@layer")?m=y+m:m+=y}}),[c,s,m]},X8="cssVar",sM=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,d=l===void 0?"":l,c=u.useContext(Na),f=c.cache.instanceId,p=c.container,m=s._tokenKey,h=[].concat(Ne(t.path),[r,d,m]),g=e2(X8,h,function(){var b=n(),y=A8(b,r,{prefix:o,unitless:i,ignore:a,scope:d}),v=ge(y,2),C=v[0],O=v[1],$=q8(h,O);return[C,O,$,r]},function(b){var y=ge(b,3),v=y[2];Vg&&Iu(v,{mark:$o})},function(b){var y=ge(b,3),v=y[1],C=y[2];if(v){var O=ci(v,C,{mark:$o,prepend:"queue",attachTo:p,priority:-999});O[Fi]=f,O.setAttribute(qs,r)}});return g},lM=function(t,n,r){var o=ge(t,4),i=o[1],a=o[2],s=o[3],l=r||{},d=l.plain;if(!i)return null;var c=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},p=jf(i,s,a,f,d);return[c,a,p]},kl;kl={},J(kl,G8,aM),J(kl,j8,Ak),J(kl,X8,lM);var Ot=function(){function e(t,n){xn(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=n}return Sn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Ka(e){return e.notSplit=!0,e}Ka(["borderTop","borderBottom"]),Ka(["borderTop"]),Ka(["borderBottom"]),Ka(["borderLeft","borderRight"]),Ka(["borderLeft"]),Ka(["borderRight"]);function Y8(e){return ZS(e)||P8(e)||Hv(e)||JS()}function So(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Q8(e,t,n,r){if(!t.length)return n;var o=Y8(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Ne(e):s=Y({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=Q8(s[i],a,n,r),s}function yo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!So(e,t.slice(0,-1))?e:Q8(e,t,n,r)}function uM(e){return nt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Jb(e){return Array.isArray(e)?[]:{}}var cM=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Jb(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),d=So(o,a),c=Array.isArray(d);if(c||uM(d)){if(!l.has(d)){l.add(d);var f=So(r,a);c?r=yo(r,a,[]):(!f||nt(f)!=="object")&&(r=yo(r,a,Jb(d))),cM(d).forEach(function(p){i([].concat(Ne(a),[p]),l)})}}else r=yo(r,a,d)}i([])}),r}function dM(){}const fM=u.createContext({}),D0=()=>{const e=()=>{};return e.deprecated=dM,e},pM=u.createContext(void 0);var hM={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},mM={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},gM=Y(Y({},mM),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Z8={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},e3={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},gM),timePickerLocale:Object.assign({},Z8)},kr="${label} is not a valid ${type}",gi={locale:"en",Pagination:hM,DatePicker:e3,TimePicker:Z8,Calendar:e3,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:kr,method:kr,array:kr,object:kr,number:kr,date:kr,boolean:kr,integer:kr,float:kr,regexp:kr,email:kr,url:kr,hex:kr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Wd=Object.assign({},gi.Modal),Kd=[];const t3=()=>Kd.reduce((e,t)=>Object.assign(Object.assign({},e),t),gi.Modal);function vM(e){if(e){const t=Object.assign({},e);return Kd.push(t),Wd=t3(),()=>{Kd=Kd.filter(n=>n!==t),Wd=t3()}}Wd=Object.assign({},gi.Modal)}function J8(){return Wd}const r2=u.createContext(void 0),ei=(e,t)=>{const n=u.useContext(r2),r=u.useMemo(()=>{var i;const a=t||gi[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=u.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?gi.locale:i},[n]);return[r,o]},yM="internalMark",bM=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>vM(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(r2.Provider,{value:o},n)},o2={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ys=Object.assign(Object.assign({},o2),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
114
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
115
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function e5(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:d,colorTextBase:c}=e,f=n(l),p=n(o),m=n(i),h=n(a),g=n(s),b=r(d,c),y=e.colorLink||e.colorInfo,v=n(y),C=new Mt(h[1]).mix(new Mt(h[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:C,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Mt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const CM=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function xM(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},CM(r))}const t5=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function qd(e){return(e+8)/e}function SM(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:qd(n)}))}const n5=e=>{const t=SM(e),n=t.map(c=>c.size),r=t.map(c=>c.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],d=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:d,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function wM(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Jr=(e,t)=>new Mt(e).setA(t).toRgbString(),Ml=(e,t)=>new Mt(e).darken(t).toHexString(),EM=e=>{const t=Ma(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},$M=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Jr(r,.88),colorTextSecondary:Jr(r,.65),colorTextTertiary:Jr(r,.45),colorTextQuaternary:Jr(r,.25),colorFill:Jr(r,.15),colorFillSecondary:Jr(r,.06),colorFillTertiary:Jr(r,.04),colorFillQuaternary:Jr(r,.02),colorBgSolid:Jr(r,1),colorBgSolidHover:Jr(r,.75),colorBgSolidActive:Jr(r,.95),colorBgLayout:Ml(n,4),colorBgContainer:Ml(n,0),colorBgElevated:Ml(n,0),colorBgSpotlight:Jr(r,.85),colorBgBlur:"transparent",colorBorder:Ml(n,15),colorBorderSecondary:Ml(n,6)}};function B0(e){Ps.pink=Ps.magenta,wh.pink=wh.magenta;const t=Object.keys(o2).map(n=>{const r=e[n]===Ps[n]?wh[n]:Ma(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),e5(e,{generateColorPalettes:EM,generateNeutralColorPalettes:$M})),n5(e.fontSize)),wM(e)),t5(e)),xM(e))}const i2=Nu(B0),Fu={token:Ys,override:{override:Ys},hashed:!0},a2=V.createContext(Fu),Lu="ant",z0="anticon",RM=["outlined","borderless","filled","underlined"],OM=(e,t)=>t||(e?`${Lu}-${e}`:Lu),bt=u.createContext({getPrefixCls:OM,iconPrefixCls:z0}),{Consumer:Dre}=bt,n3={};function vr(e){const t=u.useContext(bt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:n3,styles:n3},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const PM=`-ant-${Date.now()}-${Math.random()}`;function IM(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Mt(a),d=Ma(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=d[1],n[`${s}-color-hover`]=d[4],n[`${s}-color-active`]=d[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=d[0],n[`${s}-color-deprecated-border`]=d[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Mt(t.primaryColor),s=Ma(a.toRgbString());s.forEach((d,c)=>{n[`primary-${c+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setA(d.a*.12));const l=new Mt(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,d=>d.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
116
|
+
:root {
|
|
117
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
118
|
+
`)}
|
|
119
|
+
}
|
|
120
|
+
`.trim()}function TM(e,t){const n=IM(e,t);Jn()&&ci(n,`${PM}-dynamic-theme`)}const Yo=u.createContext(!1),r5=e=>{let{children:t,disabled:n}=e;const r=u.useContext(Yo);return u.createElement(Yo.Provider,{value:n??r},t)},Qs=u.createContext(void 0),_M=e=>{let{children:t,size:n}=e;const r=u.useContext(Qs);return u.createElement(Qs.Provider,{value:n||r},t)};function kM(){const e=u.useContext(Yo),t=u.useContext(Qs);return{componentDisabled:e,componentSize:t}}var o5=Sn(function e(){xn(this,e)}),i5="CALC_UNIT",MM=new RegExp(i5,"g");function Ph(e){return typeof e=="number"?"".concat(e).concat(i5):e}var AM=function(e){_o(n,e);var t=ko(n);function n(r,o){var i;xn(this,n),i=t.call(this),J(wt(i),"result",""),J(wt(i),"unitlessCssVar",void 0),J(wt(i),"lowPriority",void 0);var a=nt(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=Ph(r):a==="string"&&(i.result=r),i}return Sn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Ph(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Ph(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(d){return i.result.includes(d)})&&(l=!1),this.result=this.result.replace(MM,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(o5),NM=function(e){_o(n,e);var t=ko(n);function n(r){var o;return xn(this,n),o=t.call(this),J(wt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Sn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(o5),jM=function(t,n){var r=t==="css"?AM:NM;return function(o){return new r(o,n)}},r3=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Gt(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function Zs(e){var t=u.useRef(!1),n=u.useState(e),r=ge(n,2),o=r[0],i=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function Ih(e){return e!==void 0}function nn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Zs(function(){return Ih(o)?o:Ih(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=ge(s,2),d=l[0],c=l[1],f=o!==void 0?o:d,p=a?a(f):f,m=Gt(i),h=Zs([f]),g=ge(h,2),b=g[0],y=g[1];Ug(function(){var C=b[0];d!==C&&m(d,C)},[b]),Ug(function(){Ih(o)||c(o)},[o]);var v=Gt(function(C,O){c(C,O),y([f],O)});return[p,v]}function o3(e,t,n,r){var o=Y({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=ge(s,2),d=l[0],c=l[1];if(o!=null&&o[d]||o!=null&&o[c]){var f;(f=o[c])!==null&&f!==void 0||(o[c]=o==null?void 0:o[d])}})}var a=Y(Y({},n),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var a5=typeof CSSINJS_STATISTIC<"u",Gg=!0;function Pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!a5)return Object.assign.apply(Object,[{}].concat(t));Gg=!1;var r={};return t.forEach(function(o){if(nt(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Gg=!0,r}var i3={};function FM(){}var LM=function(t){var n,r=t,o=FM;return a5&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(Gg){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;i3[a]={global:Array.from(n),component:Y(Y({},(l=i3[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function a3(e,t,n){if(typeof n=="function"){var r;return n(Pt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function DM(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return be(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return be(i)}).join(","),")")}}}var BM=1e3*60*10,zM=function(){function e(){xn(this,e),J(this,"map",new Map),J(this,"objectIDMap",new WeakMap),J(this,"nextID",0),J(this,"lastAccessBeat",new Map),J(this,"accessBeat",0)}return Sn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&nt(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(nt(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>BM&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),s3=new zM;function HM(e,t){return V.useMemo(function(){var n=s3.get(t);if(n)return n;var r=e();return s3.set(t,r),r},t)}var VM=function(){return{}};function s5(e){var t=e.useCSP,n=t===void 0?VM:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(p,m,h,g){var b=Array.isArray(p)?p[0]:p;function y(T){return"".concat(String(b)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var v=(g==null?void 0:g.unitless)||{},C=typeof s=="function"?s(p):{},O=Y(Y({},C),{},J({},y("zIndexPopup"),!0));Object.keys(v).forEach(function(T){O[y(T)]=v[T]});var $=Y(Y({},g),{},{unitless:O,prefixToken:y}),x=c(p,m,h,$),w=d(b,h,$);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,S=x(T,R),E=ge(S,2),P=E[1],I=w(R),k=ge(I,2),N=k[0],M=k[1];return[N,P,M]}}function d(p,m,h){var g=h.unitless,b=h.injectStyle,y=b===void 0?!0:b,v=h.prefixToken,C=h.ignore,O=function(w){var T=w.rootCls,R=w.cssVar,S=R===void 0?{}:R,E=r(),P=E.realToken;return sM({path:[p],prefix:S.prefix,key:S.key,unitless:g,ignore:C,token:P,scope:T},function(){var I=a3(p,P,m),k=o3(p,P,I,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(I).forEach(function(N){k[v(N)]=k[N],delete k[N]}),k}),null},$=function(w){var T=r(),R=T.cssVar;return[function(S){return y&&R?V.createElement(V.Fragment,null,V.createElement(O,{rootCls:w,cssVar:R,component:p}),S):S},R==null?void 0:R.key]};return $}function c(p,m,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],y=ge(b,1),v=y[0],C=b.join("-"),O=e.layer||{name:"antd"};return function($){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,w=r(),T=w.theme,R=w.realToken,S=w.hashId,E=w.token,P=w.cssVar,I=o(),k=I.rootPrefixCls,N=I.iconPrefixCls,M=n(),j=P?"css":"js",A=HM(function(){var H=new Set;return P&&Object.keys(g.unitless||{}).forEach(function(K){H.add(Bd(K,P.prefix)),H.add(Bd(K,r3(v,P.prefix)))}),jM(j,H)},[j,v,P==null?void 0:P.prefix]),D=DM(j),L=D.max,z=D.min,q={theme:T,token:E,hashId:S,nonce:function(){return M.nonce},clientOnly:g.clientOnly,layer:O,order:g.order||-999};typeof i=="function"&&qg(Y(Y({},q),{},{clientOnly:!1,path:["Shared",k]}),function(){return i(E,{prefix:{rootPrefixCls:k,iconPrefixCls:N},csp:M})});var U=qg(Y(Y({},q),{},{path:[C,$,N]}),function(){if(g.injectStyle===!1)return[];var H=LM(E),K=H.token,X=H.flush,Z=a3(v,R,h),se=".".concat($),ie=o3(v,R,Z,{deprecatedTokens:g.deprecatedTokens});P&&Z&&nt(Z)==="object"&&Object.keys(Z).forEach(function(ce){Z[ce]="var(".concat(Bd(ce,r3(v,P.prefix)),")")});var me=Pt(K,{componentCls:se,prefixCls:$,iconCls:".".concat(N),antCls:".".concat(k),calc:A,max:L,min:z},P?Z:ie),ue=m(me,{hashId:S,prefixCls:$,rootPrefixCls:k,iconPrefixCls:N});X(v,ie);var re=typeof a=="function"?a(me,$,x,g.resetFont):null;return[g.resetStyle===!1?null:re,ue]});return[U,S]}}function f(p,m,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=c(p,m,h,Y({resetStyle:!1,order:-998},g)),y=function(C){var O=C.prefixCls,$=C.rootCls,x=$===void 0?O:$;return b(O,x),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:c}}const ea=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],UM="5.25.1";function Th(e){return e>=0&&e<=255}function Kl(e,t){const{r:n,g:r,b:o,a:i}=new Mt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Mt(t).toRgb();for(let d=.01;d<=1;d+=.01){const c=Math.round((n-a*(1-d))/d),f=Math.round((r-s*(1-d))/d),p=Math.round((o-l*(1-d))/d);if(Th(c)&&Th(f)&&Th(p))return new Mt({r:c,g:f,b:p,a:Math.round(d*100)/100}).toRgbString()}return new Mt({r:n,g:r,b:o,a:1}).toRgbString()}var WM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function H0(e){const{override:t}=e,n=WM(e,["override"]),r=Object.assign({},t);Object.keys(Ys).forEach(p=>{delete r[p]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,d=1200,c=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Kl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Kl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Kl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Kl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
121
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
122
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
123
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
124
|
+
`,boxShadowSecondary:`
|
|
125
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
126
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
127
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
128
|
+
`,boxShadowTertiary:`
|
|
129
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
130
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
131
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
132
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
133
|
+
0 1px 2px -2px ${new Mt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
134
|
+
0 3px 6px 0 ${new Mt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
135
|
+
0 5px 12px 4px ${new Mt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
136
|
+
`,boxShadowDrawerRight:`
|
|
137
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
138
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
139
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
140
|
+
`,boxShadowDrawerLeft:`
|
|
141
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
142
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
143
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
144
|
+
`,boxShadowDrawerUp:`
|
|
145
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
146
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
147
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
148
|
+
`,boxShadowDrawerDown:`
|
|
149
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
150
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
151
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
152
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var l3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s2={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},l5={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},KM={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},u5=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=l3(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=H0(a),i&&Object.entries(i).forEach(s=>{let[l,d]=s;const{theme:c}=d,f=l3(d,["theme"]);let p=f;c&&(p=u5(Object.assign(Object.assign({},a),f),{override:f},c)),a[l]=p}),a};function Tr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=V.useContext(a2),i=`${UM}-${t||""}`,a=n||i2,[s,l,d]=F8(a,[Ys,e],{salt:i,override:r,getComputedToken:u5,formatToken:H0,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:s2,ignore:l5,preserve:KM}});return[a,d,t?l:"",s,o]}const Qo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},$n=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},cc=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),sa=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),qM=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),GM=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},V0=(e,t)=>({outline:`${be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),vi=(e,t)=>({"&:focus-visible":Object.assign({},V0(e,t))}),c5=e=>({[`.${e}`]:Object.assign(Object.assign({},cc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),d5=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},vi(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Zt,genComponentStyleHook:f5,genSubStyleComponent:dc}=s5({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Tr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=u.useContext(bt);return e??{}},getResetStyles:(e,t)=>{var n;const r=qM(e);return[r,{"&":r},c5((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:z0)]},getCommonStyle:GM,getCompUnitless:()=>s2});function p5(e,t){return ea.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const XM=(e,t)=>{const[n,r]=Tr();return qg({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[c5(e)])},YM=Object.assign({},Fs),{useId:u3}=YM,QM=()=>"",ZM=typeof u3>"u"?QM:u3;function JM(e,t,n){var r;D0();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Fu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Fu.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=ZM();return dl(()=>{var s,l;if(!e)return t;const d=Object.assign({},i.components);Object.keys(e.components||{}).forEach(p=>{d[p]=Object.assign(Object.assign({},d[p]),e.components[p])});const c=`css-var-${a.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:d,cssVar:f})},[o,i],(s,l)=>s.some((d,c)=>{const f=l[c];return!Ji(d,f,!0)}))}var eA=["children"],h5=u.createContext({});function tA(e){var t=e.children,n=gt(e,eA);return u.createElement(h5.Provider,{value:n},t)}var nA=function(e){_o(n,e);var t=ko(n);function n(){return xn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function rA(e){var t=u.useReducer(function(s){return s+1},0),n=ge(t,2),r=n[1],o=u.useRef(e),i=Gt(function(){return o.current}),a=Gt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Ri="none",od="appear",id="enter",ad="leave",c3="none",bo="prepare",vs="start",ys="active",l2="end",m5="prepared";function d3(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function oA(e,t){var n={animationend:d3("Animation","AnimationEnd"),transitionend:d3("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var iA=oA(Jn(),typeof window<"u"?window:{}),g5={};if(Jn()){var aA=document.createElement("div");g5=aA.style}var sd={};function v5(e){if(sd[e])return sd[e];var t=iA[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in g5)return sd[e]=t[i],sd[e]}return""}var y5=v5("animationend"),b5=v5("transitionend"),C5=!!(y5&&b5),f3=y5||"animationend",p3=b5||"transitionend";function h3(e,t){if(!e)return null;if(nt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const sA=function(e){var t=u.useRef();function n(o){o&&(o.removeEventListener(p3,e),o.removeEventListener(f3,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(p3,e),o.addEventListener(f3,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var x5=Jn()?u.useLayoutEffect:u.useEffect;const lA=function(){var e=u.useRef(null);function t(){en.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=en(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var uA=[bo,vs,ys,l2],cA=[bo,m5],S5=!1,dA=!0;function w5(e){return e===ys||e===l2}const fA=function(e,t,n){var r=Zs(c3),o=ge(r,2),i=o[0],a=o[1],s=lA(),l=ge(s,2),d=l[0],c=l[1];function f(){a(bo,!0)}var p=t?cA:uA;return x5(function(){if(i!==c3&&i!==l2){var m=p.indexOf(i),h=p[m+1],g=n(i);g===S5?a(h,!0):h&&d(function(b){function y(){b.isCanceled()||a(h,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,i]),u.useEffect(function(){return function(){c()}},[]),[f,i]};function pA(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,d=l===void 0?!0:l,c=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,b=r.onEnterStart,y=r.onLeaveStart,v=r.onAppearActive,C=r.onEnterActive,O=r.onLeaveActive,$=r.onAppearEnd,x=r.onEnterEnd,w=r.onLeaveEnd,T=r.onVisibleChanged,R=Zs(),S=ge(R,2),E=S[0],P=S[1],I=rA(Ri),k=ge(I,2),N=k[0],M=k[1],j=Zs(null),A=ge(j,2),D=A[0],L=A[1],z=N(),q=u.useRef(!1),U=u.useRef(null);function H(){return n()}var K=u.useRef(!1);function X(){M(Ri),L(null,!0)}var Z=Gt(function($e){var Fe=N();if(Fe!==Ri){var Ee=H();if(!($e&&!$e.deadline&&$e.target!==Ee)){var ke=K.current,Be;Fe===od&&ke?Be=$==null?void 0:$(Ee,$e):Fe===id&&ke?Be=x==null?void 0:x(Ee,$e):Fe===ad&&ke&&(Be=w==null?void 0:w(Ee,$e)),ke&&Be!==!1&&X()}}}),se=sA(Z),ie=ge(se,1),me=ie[0],ue=function(Fe){switch(Fe){case od:return J(J(J({},bo,p),vs,g),ys,v);case id:return J(J(J({},bo,m),vs,b),ys,C);case ad:return J(J(J({},bo,h),vs,y),ys,O);default:return{}}},re=u.useMemo(function(){return ue(z)},[z]),ce=fA(z,!e,function($e){if($e===bo){var Fe=re[bo];return Fe?Fe(H()):S5}if(ve in re){var Ee;L(((Ee=re[ve])===null||Ee===void 0?void 0:Ee.call(re,H(),null))||null)}return ve===ys&&z!==Ri&&(me(H()),c>0&&(clearTimeout(U.current),U.current=setTimeout(function(){Z({deadline:!0})},c))),ve===m5&&X(),dA}),fe=ge(ce,2),de=fe[0],ve=fe[1],ye=w5(ve);K.current=ye;var Se=u.useRef(null);x5(function(){if(!(q.current&&Se.current===t)){P(t);var $e=q.current;q.current=!0;var Fe;!$e&&t&&s&&(Fe=od),$e&&t&&i&&(Fe=id),($e&&!t&&d||!$e&&f&&!t&&d)&&(Fe=ad);var Ee=ue(Fe);Fe&&(e||Ee[bo])?(M(Fe),de()):M(Ri),Se.current=t}},[t]),u.useEffect(function(){(z===od&&!s||z===id&&!i||z===ad&&!d)&&M(Ri)},[s,i,d]),u.useEffect(function(){return function(){q.current=!1,clearTimeout(U.current)}},[]);var Pe=u.useRef(!1);u.useEffect(function(){E&&(Pe.current=!0),E!==void 0&&z===Ri&&((Pe.current||E)&&(T==null||T(E)),Pe.current=!0)},[E,z]);var Ie=D;return re[bo]&&ve===vs&&(Ie=Y({transition:"none"},Ie)),[z,ve,Ie,E??t]}function hA(e){var t=e;nt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=u.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,d=l===void 0?!0:l,c=o.forceRender,f=o.children,p=o.motionName,m=o.leavedClassName,h=o.eventProps,g=u.useContext(h5),b=g.motion,y=n(o,b),v=u.useRef(),C=u.useRef();function O(){try{return v.current instanceof HTMLElement?v.current:Dd(C.current)}catch{return null}}var $=pA(y,s,O,o),x=ge($,4),w=x[0],T=x[1],R=x[2],S=x[3],E=u.useRef(S);S&&(E.current=!0);var P=u.useCallback(function(A){v.current=A,Yv(i,A)},[i]),I,k=Y(Y({},h),{},{visible:s});if(!f)I=null;else if(w===Ri)S?I=f(Y({},k),P):!d&&E.current&&m?I=f(Y(Y({},k),{},{className:m}),P):c||!d&&!m?I=f(Y(Y({},k),{},{style:{display:"none"}}),P):I=null;else{var N;T===bo?N="prepare":w5(T)?N="active":T===vs&&(N="start");var M=h3(p,"".concat(w,"-").concat(N));I=f(Y(Y({},k),{},{className:ae(h3(p,w),J(J({},M,M&&N),p,typeof p=="string")),style:R}),P)}if(u.isValidElement(I)&&Ba(I)){var j=fl(I);j||(I=u.cloneElement(I,{ref:P}))}return u.createElement(nA,{ref:C},I)});return r.displayName="CSSMotion",r}const sr=hA(C5);var Xg="add",Yg="keep",Qg="remove",_h="removed";function mA(e){var t;return e&&nt(e)==="object"&&"key"in e?t=e:t={key:e},Y(Y({},t),{},{key:String(t.key)})}function Zg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(mA)}function gA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Zg(e),a=Zg(t);i.forEach(function(d){for(var c=!1,f=r;f<o;f+=1){var p=a[f];if(p.key===d.key){r<f&&(n=n.concat(a.slice(r,f).map(function(m){return Y(Y({},m),{},{status:Xg})})),r=f),n.push(Y(Y({},p),{},{status:Yg})),r+=1,c=!0;break}}c||n.push(Y(Y({},d),{},{status:Qg}))}),r<o&&(n=n.concat(a.slice(r).map(function(d){return Y(Y({},d),{},{status:Xg})})));var s={};n.forEach(function(d){var c=d.key;s[c]=(s[c]||0)+1});var l=Object.keys(s).filter(function(d){return s[d]>1});return l.forEach(function(d){n=n.filter(function(c){var f=c.key,p=c.status;return f!==d||p!==Qg}),n.forEach(function(c){c.key===d&&(c.status=Yg)})}),n}var vA=["component","children","onVisibleChanged","onAllRemoved"],yA=["status"],bA=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function CA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sr,n=function(r){_o(i,r);var o=ko(i);function i(){var a;xn(this,i);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return a=o.call.apply(o,[this].concat(l)),J(wt(a),"state",{keyEntities:[]}),J(wt(a),"removeKey",function(c){a.setState(function(f){var p=f.keyEntities.map(function(m){return m.key!==c?m:Y(Y({},m),{},{status:_h})});return{keyEntities:p}},function(){var f=a.state.keyEntities,p=f.filter(function(m){var h=m.status;return h!==_h}).length;p===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Sn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,d=this.props,c=d.component,f=d.children,p=d.onVisibleChanged;d.onAllRemoved;var m=gt(d,vA),h=c||u.Fragment,g={};return bA.forEach(function(b){g[b]=m[b],delete m[b]}),delete m.keys,u.createElement(h,m,l.map(function(b,y){var v=b.status,C=gt(b,yA),O=v===Xg||v===Yg;return u.createElement(t,we({},g,{key:C.key,visible:O,eventProps:C,onVisibleChanged:function(x){p==null||p(x,{key:C.key}),x||s.removeKey(C.key)}}),function($,x){return f(Y(Y({},$),{},{index:y}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var d=s.keys,c=l.keyEntities,f=Zg(d),p=gA(c,f);return{keyEntities:p.filter(function(m){var h=c.find(function(g){var b=g.key;return m.key===b});return!(h&&h.status===_h&&m.status===Qg)})}}}]),i}(u.Component);return J(n,"defaultProps",{component:"div"}),n}const u2=CA(C5);function xA(e){const{children:t}=e,[,n]=Tr(),{motion:r}=n,o=u.useRef(!1);return o.current=o.current||r===!1,o.current?u.createElement(tA,{motion:r},t):t}const SA=()=>null;var wA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ff,E5,$5,R5;function Gd(){return Ff||Lu}function $A(){return E5||z0}function RA(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const OA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ff=t),n!==void 0&&(E5=n),"holderRender"in e&&(R5=o),r&&(RA(r)?TM(Gd(),r):$5=r)},c2=()=>({getPrefixCls:(e,t)=>t||(e?`${Gd()}-${e}`:Gd()),getIconPrefixCls:$A,getRootPrefixCls:()=>Ff||Gd(),getTheme:()=>$5,holderRender:R5}),PA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:d,space:c,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:b,parentContext:y,iconPrefixCls:v,theme:C,componentDisabled:O,segmented:$,statistic:x,spin:w,calendar:T,carousel:R,cascader:S,collapse:E,typography:P,checkbox:I,descriptions:k,divider:N,drawer:M,skeleton:j,steps:A,image:D,layout:L,list:z,mentions:q,modal:U,progress:H,result:K,slider:X,breadcrumb:Z,menu:se,pagination:ie,input:me,textArea:ue,empty:re,badge:ce,radio:fe,rate:de,switch:ve,transfer:ye,avatar:Se,message:Pe,tag:Ie,table:$e,card:Fe,tabs:Ee,timeline:ke,timePicker:Be,upload:je,notification:We,tree:Ye,colorPicker:Xe,datePicker:it,rangePicker:et,flex:ct,wave:He,dropdown:he,warning:Q,tour:ee,tooltip:ne,popover:xe,popconfirm:Re,floatButtonGroup:De,variant:Qe,inputNumber:rt,treeSelect:dt}=e,pt=u.useCallback((st,_e)=>{const{prefixCls:zt}=e;if(_e)return _e;const kt=zt||y.getPrefixCls("");return st?`${kt}-${st}`:kt},[y.getPrefixCls,e.prefixCls]),vt=v||y.iconPrefixCls||z0,at=n||y.csp;XM(vt,at);const Ge=JM(C,y.theme,{prefixCls:pt("")}),ze={csp:at,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||b,direction:d,space:c,splitter:f,virtual:p,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:pt,iconPrefixCls:vt,theme:Ge,segmented:$,statistic:x,spin:w,calendar:T,carousel:R,cascader:S,collapse:E,typography:P,checkbox:I,descriptions:k,divider:N,drawer:M,skeleton:j,steps:A,image:D,input:me,textArea:ue,layout:L,list:z,mentions:q,modal:U,progress:H,result:K,slider:X,breadcrumb:Z,menu:se,pagination:ie,empty:re,badge:ce,radio:fe,rate:de,switch:ve,transfer:ye,avatar:Se,message:Pe,tag:Ie,table:$e,card:Fe,tabs:Ee,timeline:ke,timePicker:Be,upload:je,notification:We,tree:Ye,colorPicker:Xe,datePicker:it,rangePicker:et,flex:ct,wave:He,dropdown:he,warning:Q,tour:ee,tooltip:ne,popover:xe,popconfirm:Re,floatButtonGroup:De,variant:Qe,inputNumber:rt,treeSelect:dt},Le=Object.assign({},y);Object.keys(ze).forEach(st=>{ze[st]!==void 0&&(Le[st]=ze[st])}),EA.forEach(st=>{const _e=e[st];_e&&(Le[st]=_e)}),typeof r<"u"&&(Le.button=Object.assign({autoInsertSpace:r},Le.button));const Je=dl(()=>Le,Le,(st,_e)=>{const zt=Object.keys(st),kt=Object.keys(_e);return zt.length!==kt.length||zt.some(Ft=>st[Ft]!==_e[Ft])}),{layer:Ct}=u.useContext(Na),Ke=u.useMemo(()=>({prefixCls:vt,csp:at,layer:Ct?"antd":void 0}),[vt,at,Ct]);let Ve=u.createElement(u.Fragment,null,u.createElement(SA,{dropdownMatchSelectWidth:m}),t);const ot=u.useMemo(()=>{var st,_e,zt,kt;return gs(((st=gi.Form)===null||st===void 0?void 0:st.defaultValidateMessages)||{},((zt=(_e=Je.locale)===null||_e===void 0?void 0:_e.Form)===null||zt===void 0?void 0:zt.defaultValidateMessages)||{},((kt=Je.form)===null||kt===void 0?void 0:kt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Je,a==null?void 0:a.validateMessages]);Object.keys(ot).length>0&&(Ve=u.createElement(pM.Provider,{value:ot},Ve)),s&&(Ve=u.createElement(bM,{locale:s,_ANT_MARK__:yM},Ve)),Ve=u.createElement(zv.Provider,{value:Ke},Ve),l&&(Ve=u.createElement(_M,{size:l},Ve)),Ve=u.createElement(xA,null,Ve);const ut=u.useMemo(()=>{const st=Ge||{},{algorithm:_e,token:zt,components:kt,cssVar:Ft}=st,_=wA(st,["algorithm","token","components","cssVar"]),G=_e&&(!Array.isArray(_e)||_e.length>0)?Nu(_e):i2,F={};Object.entries(kt||{}).forEach(oe=>{let[te,pe]=oe;const le=Object.assign({},pe);"algorithm"in le&&(le.algorithm===!0?le.theme=G:(Array.isArray(le.algorithm)||typeof le.algorithm=="function")&&(le.theme=Nu(le.algorithm)),delete le.algorithm),F[te]=le});const W=Object.assign(Object.assign({},Ys),zt);return Object.assign(Object.assign({},_),{theme:G,token:W,components:F,override:Object.assign({override:W},F),cssVar:Ft})},[Ge]);return C&&(Ve=u.createElement(a2.Provider,{value:ut},Ve)),Je.warning&&(Ve=u.createElement(fM.Provider,{value:Je.warning},Ve)),O!==void 0&&(Ve=u.createElement(r5,{disabled:O},Ve)),u.createElement(bt.Provider,{value:Je},Ve)},_r=e=>{const t=u.useContext(bt),n=u.useContext(r2);return u.createElement(PA,Object.assign({parentContext:t,legacyLocale:n},e))};_r.ConfigContext=bt;_r.SizeContext=Qs;_r.config=OA;_r.useConfig=kM;Object.defineProperty(_r,"SizeContext",{get:()=>Qs});var IA=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
153
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
154
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
155
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
156
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
157
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
158
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
159
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
160
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
161
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
162
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
163
|
+
summary tabIndex target title type useMap value width wmode wrap`,TA=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
164
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
165
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
166
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
167
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
168
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
169
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,_A="".concat(IA," ").concat(TA).split(/[\s\n]+/),kA="aria-",MA="data-";function m3(e,t){return e.indexOf(t)===0}function lr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Y({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||m3(o,kA))||n.data&&m3(o,MA)||n.attr&&_A.includes(o))&&(r[o]=e[o])}),r}function O5(e){return e&&V.isValidElement(e)&&e.type===V.Fragment}const P5=(e,t,n)=>V.isValidElement(e)?V.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Ur(e,t){return P5(e,e,t)}const ur=e=>{const[,,,,t]=Tr();return t?`${e}-css-var`:""};var Ze={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},d2=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,d=l===void 0?!0:l,c=e.eventKey,f=e.content,p=e.closable,m=e.closeIcon,h=m===void 0?"x":m,g=e.props,b=e.onClick,y=e.onNoticeClose,v=e.times,C=e.hovering,O=u.useState(!1),$=ge(O,2),x=$[0],w=$[1],T=u.useState(0),R=ge(T,2),S=R[0],E=R[1],P=u.useState(0),I=ge(P,2),k=I[0],N=I[1],M=C||x,j=a>0&&s,A=function(){y(c)},D=function(K){(K.key==="Enter"||K.code==="Enter"||K.keyCode===Ze.ENTER)&&A()};u.useEffect(function(){if(!M&&a>0){var H=Date.now()-k,K=setTimeout(function(){A()},a*1e3-k);return function(){d&&clearTimeout(K),N(Date.now()-H)}}},[a,M,v]),u.useEffect(function(){if(!M&&j&&(d||k===0)){var H=performance.now(),K,X=function Z(){cancelAnimationFrame(K),K=requestAnimationFrame(function(se){var ie=se+k-H,me=Math.min(ie/(a*1e3),1);E(me*100),me<1&&Z()})};return X(),function(){d&&cancelAnimationFrame(K)}}},[a,k,M,j,v]);var L=u.useMemo(function(){return nt(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),z=lr(L,!0),q=100-(!S||S<0?0:S>100?100:S),U="".concat(n,"-notice");return u.createElement("div",we({},g,{ref:t,className:ae(U,o,J({},"".concat(U,"-closable"),p)),style:r,onMouseEnter:function(K){var X;w(!0),g==null||(X=g.onMouseEnter)===null||X===void 0||X.call(g,K)},onMouseLeave:function(K){var X;w(!1),g==null||(X=g.onMouseLeave)===null||X===void 0||X.call(g,K)},onClick:b}),u.createElement("div",{className:"".concat(U,"-content")},f),p&&u.createElement("a",we({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:D,"aria-label":"Close"},z,{onClick:function(K){K.preventDefault(),K.stopPropagation(),A()}}),L.closeIcon),j&&u.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:q},q+"%"))}),I5=V.createContext({}),T5=function(t){var n=t.children,r=t.classNames;return V.createElement(I5.Provider,{value:{classNames:r}},n)},g3=8,v3=3,y3=16,AA=function(t){var n={offset:g3,threshold:v3,gap:y3};if(t&&nt(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:g3,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:v3,n.gap=(i=t.gap)!==null&&i!==void 0?i:y3}return[!!t,n]},NA=["className","style","classNames","styles"],jA=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,d=t.onNoticeClose,c=t.stack,f=u.useContext(I5),p=f.classNames,m=u.useRef({}),h=u.useState(null),g=ge(h,2),b=g[0],y=g[1],v=u.useState([]),C=ge(v,2),O=C[0],$=C[1],x=n.map(function(M){return{config:M,key:String(M.key)}}),w=AA(c),T=ge(w,2),R=T[0],S=T[1],E=S.offset,P=S.threshold,I=S.gap,k=R&&(O.length>0||x.length<=P),N=typeof s=="function"?s(r):s;return u.useEffect(function(){R&&O.length>1&&$(function(M){return M.filter(function(j){return x.some(function(A){var D=A.key;return j===D})})})},[O,x,R]),u.useEffect(function(){var M;if(R&&m.current[(M=x[x.length-1])===null||M===void 0?void 0:M.key]){var j;y(m.current[(j=x[x.length-1])===null||j===void 0?void 0:j.key])}},[x,R]),V.createElement(u2,we({key:r,className:ae(o,"".concat(o,"-").concat(r),p==null?void 0:p.list,i,J(J({},"".concat(o,"-stack"),!!R),"".concat(o,"-stack-expanded"),k)),style:a,keys:x,motionAppear:!0},N,{onAllRemoved:function(){l(r)}}),function(M,j){var A=M.config,D=M.className,L=M.style,z=M.index,q=A,U=q.key,H=q.times,K=String(U),X=A,Z=X.className,se=X.style,ie=X.classNames,me=X.styles,ue=gt(X,NA),re=x.findIndex(function(ke){return ke.key===K}),ce={};if(R){var fe=x.length-1-(re>-1?re:z-1),de=r==="top"||r==="bottom"?"-50%":"0";if(fe>0){var ve,ye,Se;ce.height=k?(ve=m.current[K])===null||ve===void 0?void 0:ve.offsetHeight:b==null?void 0:b.offsetHeight;for(var Pe=0,Ie=0;Ie<fe;Ie++){var $e;Pe+=(($e=m.current[x[x.length-1-Ie].key])===null||$e===void 0?void 0:$e.offsetHeight)+I}var Fe=(k?Pe:fe*E)*(r.startsWith("top")?1:-1),Ee=!k&&b!==null&&b!==void 0&&b.offsetWidth&&(ye=m.current[K])!==null&&ye!==void 0&&ye.offsetWidth?((b==null?void 0:b.offsetWidth)-E*2*(fe<3?fe:3))/((Se=m.current[K])===null||Se===void 0?void 0:Se.offsetWidth):1;ce.transform="translate3d(".concat(de,", ").concat(Fe,"px, 0) scaleX(").concat(Ee,")")}else ce.transform="translate3d(".concat(de,", 0, 0)")}return V.createElement("div",{ref:j,className:ae("".concat(o,"-notice-wrapper"),D,ie==null?void 0:ie.wrapper),style:Y(Y(Y({},L),ce),me==null?void 0:me.wrapper),onMouseEnter:function(){return $(function(Be){return Be.includes(K)?Be:[].concat(Ne(Be),[K])})},onMouseLeave:function(){return $(function(Be){return Be.filter(function(je){return je!==K})})}},V.createElement(d2,we({},ue,{ref:function(Be){re>-1?m.current[K]=Be:delete m.current[K]},prefixCls:o,classNames:ie,styles:me,className:ae(Z,p==null?void 0:p.notice),style:se,times:H,key:U,eventKey:U,onNoticeClose:d,hovering:R&&O.length>0})))})},FA=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,d=e.onAllRemoved,c=e.stack,f=e.renderNotifications,p=u.useState([]),m=ge(p,2),h=m[0],g=m[1],b=function(R){var S,E=h.find(function(P){return P.key===R});E==null||(S=E.onClose)===null||S===void 0||S.call(E),g(function(P){return P.filter(function(I){return I.key!==R})})};u.useImperativeHandle(t,function(){return{open:function(R){g(function(S){var E=Ne(S),P=E.findIndex(function(N){return N.key===R.key}),I=Y({},R);if(P>=0){var k;I.times=(((k=S[P])===null||k===void 0?void 0:k.times)||0)+1,E[P]=I}else I.times=0,E.push(I);return a>0&&E.length>a&&(E=E.slice(-a)),E})},close:function(R){b(R)},destroy:function(){g([])}}});var y=u.useState({}),v=ge(y,2),C=v[0],O=v[1];u.useEffect(function(){var T={};h.forEach(function(R){var S=R.placement,E=S===void 0?"topRight":S;E&&(T[E]=T[E]||[],T[E].push(R))}),Object.keys(C).forEach(function(R){T[R]=T[R]||[]}),O(T)},[h]);var $=function(R){O(function(S){var E=Y({},S),P=E[R]||[];return P.length||delete E[R],E})},x=u.useRef(!1);if(u.useEffect(function(){Object.keys(C).length>0?x.current=!0:x.current&&(d==null||d(),x.current=!1)},[C]),!o)return null;var w=Object.keys(C);return fo.createPortal(u.createElement(u.Fragment,null,w.map(function(T){var R=C[T],S=u.createElement(jA,{key:T,configList:R,placement:T,prefixCls:r,className:s==null?void 0:s(T),style:l==null?void 0:l(T),motion:i,onNoticeClose:b,onAllNoticeRemoved:$,stack:c});return f?f(S,{prefixCls:r,key:T}):S})),o)}),LA=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],DA=function(){return document.body},b3=0;function BA(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function _5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?DA:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,d=e.stack,c=e.renderNotifications,f=gt(e,LA),p=u.useState(),m=ge(p,2),h=m[0],g=m[1],b=u.useRef(),y=u.createElement(FA,{container:h,ref:b,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:d,renderNotifications:c}),v=u.useState([]),C=ge(v,2),O=C[0],$=C[1],x=Gt(function(T){var R=BA(f,T);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(b3),b3+=1),$(function(S){return[].concat(Ne(S),[{type:"open",config:R}])})}),w=u.useMemo(function(){return{open:x,close:function(R){$(function(S){return[].concat(Ne(S),[{type:"close",key:R}])})},destroy:function(){$(function(R){return[].concat(Ne(R),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){g(n())}),u.useEffect(function(){if(b.current&&O.length){O.forEach(function(S){switch(S.type){case"open":b.current.open(S.config);break;case"close":b.current.close(S.key);break;case"destroy":b.current.destroy();break}});var T,R;$(function(S){return(T!==S||!R)&&(T=S,R=S.filter(function(E){return!O.includes(E)})),R})}},[O]),[w,y]}const U0=V.createContext(void 0),Oi=100,zA=10,f2=Oi*zA,k5={Modal:Oi,Drawer:Oi,Popover:Oi,Popconfirm:Oi,Tooltip:Oi,Tour:Oi,FloatButton:Oi},HA={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function VA(e){return e in k5}const hl=(e,t)=>{const[,n]=Tr(),r=V.useContext(U0),o=VA(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+k5[e]:a+=HA[e],i=[r===void 0?t:a,a]}return i},UA=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:d,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:p,paddingXS:m,borderRadiusLG:h,zIndexPopup:g,contentPadding:b,contentBg:y}=e,v=`${t}-notice`,C=new Ot("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),O=new Ot("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:m,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:d},[`${v}-content`]:{display:"inline-block",padding:b,background:y,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
170
|
+
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},$n(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
171
|
+
${t}-move-up-appear,
|
|
172
|
+
${t}-move-up-enter
|
|
173
|
+
`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`
|
|
174
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
175
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
176
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:O,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},WA=e=>({zIndexPopup:e.zIndexPopupBase+f2+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),M5=Zt("Message",e=>{const t=Pt(e,{height:150});return[UA(t)]},WA);var KA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qA={info:u.createElement(Wv,null),success:u.createElement(uc,null),error:u.createElement(aa,null),warning:u.createElement(E0,null),loading:u.createElement(Aa,null)},A5=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return u.createElement("div",{className:ae(`${t}-custom-content`,`${t}-${n}`)},r||qA[n],u.createElement("span",null,o))},GA=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=KA(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=u.useContext(bt),l=t||s("message"),d=ur(l),[c,f,p]=M5(l,d);return c(u.createElement(d2,Object.assign({},a,{prefixCls:l,className:ae(n,f,`${l}-notice-pure-panel`,p,d),eventKey:"pure",duration:null,content:u.createElement(A5,{prefixCls:l,type:r,icon:o},i)})))};function XA(e,t){return{motionName:t??`${e}-move-up`}}function p2(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var YA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const QA=8,ZA=3,JA=e=>{let{children:t,prefixCls:n}=e;const r=ur(n),[o,i,a]=M5(n,r);return o(u.createElement(T5,{classNames:{list:ae(i,a,r)}},t))},eN=(e,t)=>{let{prefixCls:n,key:r}=t;return u.createElement(JA,{prefixCls:n,key:r},e)},tN=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=ZA,rtl:s,transitionName:l,onAllRemoved:d}=e,{getPrefixCls:c,getPopupContainer:f,message:p,direction:m}=u.useContext(bt),h=r||c("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??QA}),b=()=>ae({[`${h}-rtl`]:s??m==="rtl"}),y=()=>XA(h,l),v=u.createElement("span",{className:`${h}-close-x`},u.createElement(Jo,{className:`${h}-close-icon`})),[C,O]=_5({prefixCls:h,style:g,className:b,motion:y,closable:!1,closeIcon:v,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:d,renderNotifications:eN});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:h,message:p})),O});let C3=0;function N5(e){const t=u.useRef(null);return D0(),[u.useMemo(()=>{const r=l=>{var d;(d=t.current)===null||d===void 0||d.close(l)},o=l=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:d,prefixCls:c,message:f}=t.current,p=`${c}-notice`,{content:m,icon:h,type:g,key:b,className:y,style:v,onClose:C}=l,O=YA(l,["content","icon","type","key","className","style","onClose"]);let $=b;return $==null&&(C3+=1,$=`antd-message-${C3}`),p2(x=>(d(Object.assign(Object.assign({},O),{key:$,content:u.createElement(A5,{prefixCls:c,type:g,icon:h},m),placement:"top",className:ae(g&&`${p}-${g}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),v),onClose:()=>{C==null||C(),x()}})),()=>{r($)}))},a={open:o,destroy:l=>{var d;l!==void 0?r(l):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const d=(c,f,p)=>{let m;c&&typeof c=="object"&&"content"in c?m=c:m={content:c};let h,g;typeof f=="function"?g=f:(h=f,g=p);const b=Object.assign(Object.assign({onClose:g,duration:h},m),{type:l});return o(b)};a[l]=d}),a},[]),u.createElement(tN,Object.assign({key:"message-holder"},e,{ref:t}))]}function nN(e){return N5(e)}function rN(){const[e,t]=u.useState([]),n=u.useCallback(r=>(t(o=>[].concat(Ne(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function sn(){sn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(S,E,P,I){return Object.defineProperty(S,E,{value:P,enumerable:!I,configurable:!I,writable:!I})}try{l({},"")}catch{l=function(P,I,k){return P[I]=k}}function d(S,E,P,I){var k=E&&E.prototype instanceof p?E:p,N=Object.create(k.prototype);return l(N,"_invoke",function(M,j,A){var D=1;return function(L,z){if(D===3)throw Error("Generator is already running");if(D===4){if(L==="throw")throw z;return{value:e,done:!0}}for(A.method=L,A.arg=z;;){var q=A.delegate;if(q){var U=$(q,A);if(U){if(U===f)continue;return U}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(D===1)throw D=4,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);D=3;var H=c(M,j,A);if(H.type==="normal"){if(D=A.done?4:2,H.arg===f)continue;return{value:H.arg,done:A.done}}H.type==="throw"&&(D=4,A.method="throw",A.arg=H.arg)}}}(S,P,new T(I||[])),!0),N}function c(S,E,P){try{return{type:"normal",arg:S.call(E,P)}}catch(I){return{type:"throw",arg:I}}}t.wrap=d;var f={};function p(){}function m(){}function h(){}var g={};l(g,i,function(){return this});var b=Object.getPrototypeOf,y=b&&b(b(R([])));y&&y!==n&&r.call(y,i)&&(g=y);var v=h.prototype=p.prototype=Object.create(g);function C(S){["next","throw","return"].forEach(function(E){l(S,E,function(P){return this._invoke(E,P)})})}function O(S,E){function P(k,N,M,j){var A=c(S[k],S,N);if(A.type!=="throw"){var D=A.arg,L=D.value;return L&&nt(L)=="object"&&r.call(L,"__await")?E.resolve(L.__await).then(function(z){P("next",z,M,j)},function(z){P("throw",z,M,j)}):E.resolve(L).then(function(z){D.value=z,M(D)},function(z){return P("throw",z,M,j)})}j(A.arg)}var I;l(this,"_invoke",function(k,N){function M(){return new E(function(j,A){P(k,N,j,A)})}return I=I?I.then(M,M):M()},!0)}function $(S,E){var P=E.method,I=S.i[P];if(I===e)return E.delegate=null,P==="throw"&&S.i.return&&(E.method="return",E.arg=e,$(S,E),E.method==="throw")||P!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+P+"' method")),f;var k=c(I,S.i,E.arg);if(k.type==="throw")return E.method="throw",E.arg=k.arg,E.delegate=null,f;var N=k.arg;return N?N.done?(E[S.r]=N.value,E.next=S.n,E.method!=="return"&&(E.method="next",E.arg=e),E.delegate=null,f):N:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,f)}function x(S){this.tryEntries.push(S)}function w(S){var E=S[4]||{};E.type="normal",E.arg=e,S[4]=E}function T(S){this.tryEntries=[[-1]],S.forEach(x,this),this.reset(!0)}function R(S){if(S!=null){var E=S[i];if(E)return E.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var P=-1,I=function k(){for(;++P<S.length;)if(r.call(S,P))return k.value=S[P],k.done=!1,k;return k.value=e,k.done=!0,k};return I.next=I}}throw new TypeError(nt(S)+" is not iterable")}return m.prototype=h,l(v,"constructor",h),l(h,"constructor",m),m.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(S){var E=typeof S=="function"&&S.constructor;return!!E&&(E===m||(E.displayName||E.name)==="GeneratorFunction")},t.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,h):(S.__proto__=h,l(S,s,"GeneratorFunction")),S.prototype=Object.create(v),S},t.awrap=function(S){return{__await:S}},C(O.prototype),l(O.prototype,a,function(){return this}),t.AsyncIterator=O,t.async=function(S,E,P,I,k){k===void 0&&(k=Promise);var N=new O(d(S,E,P,I),k);return t.isGeneratorFunction(E)?N:N.next().then(function(M){return M.done?M.value:N.next()})},C(v),l(v,s,"Generator"),l(v,i,function(){return this}),l(v,"toString",function(){return"[object Generator]"}),t.keys=function(S){var E=Object(S),P=[];for(var I in E)P.unshift(I);return function k(){for(;P.length;)if((I=P.pop())in E)return k.value=I,k.done=!1,k;return k.done=!0,k}},t.values=R,T.prototype={constructor:T,reset:function(E){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!E)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=e)},stop:function(){this.done=!0;var E=this.tryEntries[0][4];if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var P=this;function I(L){M.type="throw",M.arg=E,P.next=L}for(var k=P.tryEntries.length-1;k>=0;--k){var N=this.tryEntries[k],M=N[4],j=this.prev,A=N[1],D=N[2];if(N[0]===-1)return I("end"),!1;if(!A&&!D)throw Error("try statement without catch or finally");if(N[0]!=null&&N[0]<=j){if(j<A)return this.method="next",this.arg=e,I(A),!0;if(j<D)return I(D),!1}}},abrupt:function(E,P){for(var I=this.tryEntries.length-1;I>=0;--I){var k=this.tryEntries[I];if(k[0]>-1&&k[0]<=this.prev&&this.prev<k[2]){var N=k;break}}N&&(E==="break"||E==="continue")&&N[0]<=P&&P<=N[2]&&(N=null);var M=N?N[4]:{};return M.type=E,M.arg=P,N?(this.method="next",this.next=N[2],f):this.complete(M)},complete:function(E,P){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&P&&(this.next=P),f},finish:function(E){for(var P=this.tryEntries.length-1;P>=0;--P){var I=this.tryEntries[P];if(I[2]===E)return this.complete(I[4],I[3]),w(I),f}},catch:function(E){for(var P=this.tryEntries.length-1;P>=0;--P){var I=this.tryEntries[P];if(I[0]===E){var k=I[4];if(k.type==="throw"){var N=k.arg;w(I)}return N}}throw Error("illegal catch attempt")},delegateYield:function(E,P,I){return this.delegate={i:R(E),r:P,n:I},this.method==="next"&&(this.arg=e),f}},t}function x3(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(d){return void n(d)}s.done?t(l):Promise.resolve(l).then(r,o)}function Lr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){x3(i,r,o,a,s,"next",l)}function s(l){x3(i,r,o,a,s,"throw",l)}a(void 0)})}}var fc=Y({},fP),oN=fc.version,kh=fc.render,iN=fc.unmountComponentAtNode,W0;try{var aN=Number((oN||"").split(".")[0]);aN>=18&&(W0=fc.createRoot)}catch{}function S3(e){var t=fc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&nt(t)==="object"&&(t.usingClientEntryPoint=e)}var Lf="__rc_react_root__";function sN(e,t){S3(!0);var n=t[Lf]||W0(t);S3(!1),n.render(e),t[Lf]=n}function lN(e,t){kh==null||kh(e,t)}function uN(e,t){if(W0){sN(e,t);return}lN(e,t)}function cN(e){return Jg.apply(this,arguments)}function Jg(){return Jg=Lr(sn().mark(function e(t){return sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Lf])===null||o===void 0||o.unmount(),delete t[Lf]}));case 1:case"end":return r.stop()}},e)})),Jg.apply(this,arguments)}function dN(e){iN(e)}function fN(e){return e1.apply(this,arguments)}function e1(){return e1=Lr(sn().mark(function e(t){return sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(W0===void 0){r.next=2;break}return r.abrupt("return",cN(t));case 2:dN(t);case 3:case"end":return r.stop()}},e)})),e1.apply(this,arguments)}const pN=(e,t)=>(uN(e,t),()=>fN(t));let hN=pN;function K0(e){return hN}const Mh=()=>({height:0,opacity:0}),w3=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},mN=e=>({height:e?e.offsetHeight:0}),Ah=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",j5=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lu}-motion-collapse`,onAppearStart:Mh,onEnterStart:Mh,onAppearActive:w3,onEnterActive:w3,onLeaveStart:mN,onLeaveActive:Mh,onAppearEnd:Ah,onEnterEnd:Ah,onLeaveEnd:Ah,motionDeadline:500}},hr=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function In(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const h2=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},gN=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},vN=f5("Wave",e=>[gN(e)]),F5=`${Lu}-wave-target`;function Nh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function yN(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Nh(t)?t:Nh(n)?n:Nh(r)?r:null}function jh(e){return Number.isNaN(e)?0:e}const bN=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=u.useRef(null),a=u.useRef(null);u.useEffect(()=>{a.current=o()},[]);const[s,l]=u.useState(null),[d,c]=u.useState([]),[f,p]=u.useState(0),[m,h]=u.useState(0),[g,b]=u.useState(0),[y,v]=u.useState(0),[C,O]=u.useState(!1),$={left:f,top:m,width:g,height:y,borderRadius:d.map(T=>`${T}px`).join(" ")};s&&($["--wave-color"]=s);function x(){const T=getComputedStyle(n);l(yN(n));const R=T.position==="static",{borderLeftWidth:S,borderTopWidth:E}=T;p(R?n.offsetLeft:jh(-parseFloat(S))),h(R?n.offsetTop:jh(-parseFloat(E))),b(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:I,borderBottomLeftRadius:k,borderBottomRightRadius:N}=T;c([P,I,N,k].map(M=>jh(parseFloat(M))))}if(u.useEffect(()=>{if(n){const T=en(()=>{x(),O(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(n)),()=>{en.cancel(T),R==null||R.disconnect()}}},[]),!C)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(F5));return u.createElement(sr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,R)=>{var S,E;if(R.deadline||R.propertyName==="opacity"){const P=(S=i.current)===null||S===void 0?void 0:S.parentElement;(E=a.current)===null||E===void 0||E.call(a).then(()=>{P==null||P.remove()})}return!1}},(T,R)=>{let{className:S}=T;return u.createElement("div",{ref:Xr(i,R),className:ae(t,S,{"wave-quick":w}),style:$})})},CN=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=K0();let a=null;function s(){return a}a=i(u.createElement(bN,Object.assign({},t,{target:e,registerUnmount:s})),o)},xN=(e,t,n)=>{const{wave:r}=u.useContext(bt),[,o,i]=Tr(),a=Gt(d=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const f=c.querySelector(`.${F5}`)||c,{showEffect:p}=r||{};(p||CN)(f,{className:t,token:o,component:n,event:d,hashId:i})}),s=u.useRef(null);return d=>{en.cancel(s.current),s.current=en(()=>{a(d)})}},L5=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(bt),i=u.useRef(null),a=o("wave"),[,s]=vN(a),l=xN(i,ae(a,s),r);if(V.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||n)return;const f=p=>{!h2(p.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||l(p)};return c.addEventListener("click",f,!0),()=>{c.removeEventListener("click",f,!0)}},[n]),!V.isValidElement(t))return t??null;const d=Ba(t)?Xr(fl(t),i):i;return Ur(t,{ref:d})},Mo=e=>{const t=V.useContext(Qs);return V.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},SN=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},wN=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},EN=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},D5=Zt("Space",e=>{const t=Pt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[wN(t),EN(t),SN(t)]},()=>({}),{resetStyle:!1});var B5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q0=u.createContext(null),pc=(e,t)=>{const n=u.useContext(q0),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return ae(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},$N=e=>{const{children:t}=e;return u.createElement(q0.Provider,{value:null},t)},RN=e=>{const{children:t}=e,n=B5(e,["children"]);return u.createElement(q0.Provider,{value:u.useMemo(()=>n,[n])},t)},ON=e=>{const{getPrefixCls:t,direction:n}=u.useContext(bt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:d}=e,c=B5(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Mo(C=>r??C),p=t("space-compact",a),[m,h]=D5(p),g=ae(p,h,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:i,[`${p}-vertical`]:o==="vertical"},s,l),b=u.useContext(q0),y=Rr(d),v=u.useMemo(()=>y.map((C,O)=>{const $=(C==null?void 0:C.key)||`${p}-item-${O}`;return u.createElement(RN,{key:$,compactSize:f,compactDirection:o,isFirstItem:O===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:O===y.length-1&&(!b||(b==null?void 0:b.isLastItem))},C)}),[r,y,b]);return y.length===0?null:m(u.createElement("div",Object.assign({className:g},c),v))};var PN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const z5=u.createContext(void 0),IN=e=>{const{getPrefixCls:t,direction:n}=u.useContext(bt),{prefixCls:r,size:o,className:i}=e,a=PN(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Tr(),d=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),c=ae(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:n==="rtl"},i,l);return u.createElement(z5.Provider,{value:o},u.createElement("div",Object.assign({},a,{className:c})))},E3=/^[\u4E00-\u9FA5]{2}$/,t1=E3.test.bind(E3);function H5(e){return e==="danger"?{danger:!0}:{type:e}}function $3(e){return typeof e=="string"}function Fh(e){return e==="text"||e==="link"}function TN(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&$3(e.type)&&t1(e.props.children)?Ur(e,{children:e.props.children.split("").join(n)}):$3(e)?t1(e)?V.createElement("span",null,e.split("").join(n)):V.createElement("span",null,e):O5(e)?V.createElement("span",null,e):e}function _N(e,t){let n=!1;const r=[];return V.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),V.Children.map(r,o=>TN(o,t))}["default","primary","danger"].concat(Ne(ea));const n1=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ae(`${i}-icon`,n);return V.createElement("span",{ref:t,className:a,style:r},o)}),R3=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=ae(`${n}-loading-icon`,r);return V.createElement(n1,{prefixCls:n,className:a,style:o,ref:t},V.createElement(Aa,{className:i}))}),Lh=()=>({width:0,opacity:0,transform:"scale(0)"}),Dh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),kN=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,s=!!n;return r?V.createElement(R3,{prefixCls:t,className:o,style:i}):V.createElement(sr,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Lh,onAppearActive:Dh,onEnterStart:Lh,onEnterActive:Dh,onLeaveStart:Dh,onLeaveActive:Lh},(l,d)=>{let{className:c,style:f}=l;const p=Object.assign(Object.assign({},i),f);return V.createElement(R3,{prefixCls:t,className:ae(o,c),style:p,ref:d})})},O3=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),MN=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},O3(`${t}-primary`,o),O3(`${t}-danger`,i)]}};var AN=["b"],NN=["v"],Bh=function(t){return Math.round(Number(t||0))},jN=function(t){if(t instanceof Mt)return t;if(t&&nt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=gt(n,AN);return Y(Y({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Du=function(e){_o(n,e);var t=ko(n);function n(r){return xn(this,n),t.call(this,jN(r))}return Sn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Bh(o.s*100),a=Bh(o.b*100),s=Bh(o.h),l=o.a,d="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),c="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?d:c}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=gt(o,NN);return Y(Y({},a),{},{b:i,a:this.a})}}]),n}(Mt),FN=function(t){return t instanceof Du?t:new Du(t)};FN("#1677ff");const LN=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",DN=(e,t)=>e?LN(e,t):"";let BN=function(){function e(t){xn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(o=>{let{color:i,percent:a}=o;return{color:new e(i),percent:a}}),this.metaColor=new Du(this.colors[0].color.metaColor)):this.metaColor=new Du(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Sn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return DN(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();var V5=V.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,s=e.isActive,l=e.role,d=e.classNames,c=e.styles,f=V.useState(s||r),p=ge(f,2),m=p[0],h=p[1];return V.useEffect(function(){(r||s)&&h(!0)},[r,s]),m?V.createElement("div",{ref:t,className:ae("".concat(n,"-content"),J(J({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:i,role:l},V.createElement("div",{className:ae("".concat(n,"-content-box"),d==null?void 0:d.body),style:c==null?void 0:c.body},a)):null});V5.displayName="PanelContent";var zN=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],U5=V.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,i=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,d=e.classNames,c=d===void 0?{}:d,f=e.styles,p=f===void 0?{}:f,m=e.prefixCls,h=e.collapsible,g=e.accordion,b=e.panelKey,y=e.extra,v=e.header,C=e.expandIcon,O=e.openMotion,$=e.destroyInactivePanel,x=e.children,w=gt(e,zN),T=h==="disabled",R=y!=null&&typeof y!="boolean",S=J(J(J({onClick:function(){a==null||a(b)},onKeyDown:function(j){(j.key==="Enter"||j.keyCode===Ze.ENTER||j.which===Ze.ENTER)&&(a==null||a(b))},role:g?"tab":"button"},"aria-expanded",i),"aria-disabled",T),"tabIndex",T?-1:0),E=typeof C=="function"?C(e):V.createElement("i",{className:"arrow"}),P=E&&V.createElement("div",we({className:"".concat(m,"-expand-icon")},["header","icon"].includes(h)?S:{}),E),I=ae("".concat(m,"-item"),J(J({},"".concat(m,"-item-active"),i),"".concat(m,"-item-disabled"),T),l),k=ae(o,"".concat(m,"-header"),J({},"".concat(m,"-collapsible-").concat(h),!!h),c.header),N=Y({className:k,style:p.header},["header","icon"].includes(h)?{}:S);return V.createElement("div",we({},w,{ref:t,className:I}),V.createElement("div",N,r&&P,V.createElement("span",we({className:"".concat(m,"-header-text")},h==="header"?S:{}),v),R&&V.createElement("div",{className:"".concat(m,"-extra")},y)),V.createElement(sr,we({visible:i,leavedClassName:"".concat(m,"-content-hidden")},O,{forceRender:s,removeOnLeave:$}),function(M,j){var A=M.className,D=M.style;return V.createElement(V5,{ref:j,prefixCls:m,className:A,classNames:c,style:D,styles:p,isActive:i,forceRender:s,role:g?"tabpanel":void 0},x)}))}),HN=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],VN=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,d=n.openMotion,c=n.expandIcon;return t.map(function(f,p){var m=f.children,h=f.label,g=f.key,b=f.collapsible,y=f.onItemClick,v=f.destroyInactivePanel,C=gt(f,HN),O=String(g??p),$=b??i,x=v??a,w=function(S){$!=="disabled"&&(s(S),y==null||y(S))},T=!1;return o?T=l[0]===O:T=l.indexOf(O)>-1,V.createElement(U5,we({},C,{prefixCls:r,key:O,panelKey:O,isActive:T,accordion:o,openMotion:d,expandIcon:c,header:h,collapsible:$,onItemClick:w,destroyInactivePanel:x}),m)})},UN=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,d=r.activeKey,c=r.openMotion,f=r.expandIcon,p=t.key||String(n),m=t.props,h=m.header,g=m.headerClass,b=m.destroyInactivePanel,y=m.collapsible,v=m.onItemClick,C=!1;i?C=d[0]===p:C=d.indexOf(p)>-1;var O=y??a,$=function(T){O!=="disabled"&&(l(T),v==null||v(T))},x={key:p,panelKey:p,header:h,headerClass:g,isActive:C,prefixCls:o,destroyInactivePanel:b??s,openMotion:c,accordion:i,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:O};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(w){typeof x[w]>"u"&&delete x[w]}),V.cloneElement(t,x))};function WN(e,t,n){return Array.isArray(e)?VN(e,n):Rr(t).map(function(r,o){return UN(r,o,n)})}function KN(e){var t=e;if(!Array.isArray(t)){var n=nt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var qN=V.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,d=e.children,c=e.collapsible,f=e.openMotion,p=e.expandIcon,m=e.activeKey,h=e.defaultActiveKey,g=e.onChange,b=e.items,y=ae(r,l),v=nn([],{value:m,onChange:function(R){return g==null?void 0:g(R)},defaultValue:h,postState:KN}),C=ge(v,2),O=C[0],$=C[1],x=function(R){return $(function(){if(s)return O[0]===R?[]:[R];var S=O.indexOf(R),E=S>-1;return E?O.filter(function(P){return P!==R}):[].concat(Ne(O),[R])})};An(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=WN(b,d,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:c,destroyInactivePanel:i,onItemClick:x,activeKey:O});return V.createElement("div",we({ref:t,className:y,style:a,role:s?"tablist":void 0},lr(e,{aria:!0,data:!0})),w)});const m2=Object.assign(qN,{Panel:U5});m2.Panel;const GN=u.forwardRef((e,t)=>{const{getPrefixCls:n}=u.useContext(bt),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=ae({[`${a}-no-arrow`]:!i},o);return u.createElement(m2.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),W5=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
177
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
178
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),XN=e=>({animationDuration:e,animationFillMode:"both"}),YN=e=>({animationDuration:e,animationFillMode:"both"}),G0=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
179
|
+
${i}${e}-enter,
|
|
180
|
+
${i}${e}-appear
|
|
181
|
+
`]:Object.assign(Object.assign({},XN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},YN(r)),{animationPlayState:"paused"}),[`
|
|
182
|
+
${i}${e}-enter${e}-enter-active,
|
|
183
|
+
${i}${e}-appear${e}-appear-active
|
|
184
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},QN=new Ot("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ZN=new Ot("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),g2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[G0(r,QN,ZN,e.motionDurationMid,t),{[`
|
|
185
|
+
${o}${r}-enter,
|
|
186
|
+
${o}${r}-appear
|
|
187
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},JN=new Ot("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ej=new Ot("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),tj=new Ot("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nj=new Ot("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rj=new Ot("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oj=new Ot("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ij=new Ot("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aj=new Ot("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),sj={"move-up":{inKeyframes:ij,outKeyframes:aj},"move-down":{inKeyframes:JN,outKeyframes:ej},"move-left":{inKeyframes:tj,outKeyframes:nj},"move-right":{inKeyframes:rj,outKeyframes:oj}},P3=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=sj[t];return[G0(r,o,i,e.motionDurationMid),{[`
|
|
188
|
+
${r}-enter,
|
|
189
|
+
${r}-appear
|
|
190
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},K5=new Ot("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),q5=new Ot("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),G5=new Ot("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),X5=new Ot("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),lj=new Ot("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),uj=new Ot("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),cj=new Ot("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),dj=new Ot("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),fj={"slide-up":{inKeyframes:K5,outKeyframes:q5},"slide-down":{inKeyframes:G5,outKeyframes:X5},"slide-left":{inKeyframes:lj,outKeyframes:uj},"slide-right":{inKeyframes:cj,outKeyframes:dj}},Df=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=fj[t];return[G0(r,o,i,e.motionDurationMid),{[`
|
|
191
|
+
${r}-enter,
|
|
192
|
+
${r}-appear
|
|
193
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},pj=new Ot("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hj=new Ot("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),I3=new Ot("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),T3=new Ot("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),mj=new Ot("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),gj=new Ot("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),vj=new Ot("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),yj=new Ot("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),bj=new Ot("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Cj=new Ot("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),xj=new Ot("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Sj=new Ot("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),wj={zoom:{inKeyframes:pj,outKeyframes:hj},"zoom-big":{inKeyframes:I3,outKeyframes:T3},"zoom-big-fast":{inKeyframes:I3,outKeyframes:T3},"zoom-left":{inKeyframes:vj,outKeyframes:yj},"zoom-right":{inKeyframes:bj,outKeyframes:Cj},"zoom-up":{inKeyframes:mj,outKeyframes:gj},"zoom-down":{inKeyframes:xj,outKeyframes:Sj}},X0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=wj[t];return[G0(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
194
|
+
${r}-enter,
|
|
195
|
+
${r}-appear
|
|
196
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ej=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:d,lineType:c,colorBorder:f,colorText:p,colorTextHeading:m,colorTextDisabled:h,fontSizeLG:g,lineHeight:b,lineHeightLG:y,marginSM:v,paddingSM:C,paddingLG:O,paddingXS:$,motionDurationSlow:x,fontSizeIcon:w,contentPadding:T,fontHeight:R,fontHeightLG:S}=e,E=`${be(d)} ${c} ${f}`;return{[t]:Object.assign(Object.assign({},$n(e)),{backgroundColor:o,border:E,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:first-child":{[`
|
|
197
|
+
&,
|
|
198
|
+
& > ${t}-header`]:{borderRadius:`${be(l)} ${be(l)} 0 0`}},"&:last-child":{[`
|
|
199
|
+
&,
|
|
200
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${be(l)} ${be(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:m,lineHeight:b,cursor:"pointer",transition:`all ${x}, visibility 0s`},vi(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},cc()),{fontSize:w,transition:`transform ${x}`,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:S,marginInlineStart:e.calc(O).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${be(l)} ${be(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},$j=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Rj=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
|
|
201
|
+
> ${t}-item:last-child,
|
|
202
|
+
> ${t}-item:last-child ${t}-header
|
|
203
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},Oj=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Pj=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),Ij=Zt("Collapse",e=>{const t=Pt(e,{collapseHeaderPaddingSM:`${be(e.paddingXS)} ${be(e.paddingSM)}`,collapseHeaderPaddingLG:`${be(e.padding)} ${be(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Ej(t),Rj(t),Oj(t),$j(t),W5(t)]},Pj),Tj=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:i,style:a}=vr("collapse"),{prefixCls:s,className:l,rootClassName:d,style:c,bordered:f=!0,ghost:p,size:m,expandIconPosition:h="start",children:g,destroyInactivePanel:b,destroyOnHidden:y,expandIcon:v}=e,C=Mo(N=>{var M;return(M=m??N)!==null&&M!==void 0?M:"middle"}),O=n("collapse",s),$=n(),[x,w,T]=Ij(O),R=u.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),S=v??o,E=u.useCallback(function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof S=="function"?S(N):u.createElement(di,{rotate:N.isActive?r==="rtl"?-90:90:void 0,"aria-label":N.isActive?"expanded":"collapsed"});return Ur(M,()=>{var j;return{className:ae((j=M==null?void 0:M.props)===null||j===void 0?void 0:j.className,`${O}-arrow`)}})},[S,O]),P=ae(`${O}-icon-position-${R}`,{[`${O}-borderless`]:!f,[`${O}-rtl`]:r==="rtl",[`${O}-ghost`]:!!p,[`${O}-${C}`]:C!=="middle"},i,l,d,w,T),I=Object.assign(Object.assign({},j5($)),{motionAppear:!1,leavedClassName:`${O}-content-hidden`}),k=u.useMemo(()=>g?Rr(g).map((N,M)=>{var j,A;const D=N.props;if(D!=null&&D.disabled){const L=(j=N.key)!==null&&j!==void 0?j:String(M),z=Object.assign(Object.assign({},In(N.props,["disabled"])),{key:L,collapsible:(A=D.collapsible)!==null&&A!==void 0?A:"disabled"});return Ur(N,z)}return N}):null,[g]);return x(u.createElement(m2,Object.assign({ref:t,openMotion:I},In(e,["rootClassName"]),{expandIcon:E,prefixCls:O,className:P,style:Object.assign(Object.assign({},a),c),destroyInactivePanel:y??b}),k))}),_j=Object.assign(Tj,{Panel:GN}),kj=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Du(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},Y5=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Pt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Q5=e=>{var t,n,r,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,d=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,c=(o=e.contentLineHeight)!==null&&o!==void 0?o:qd(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:qd(l),p=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:qd(d),m=kj(new BN(e.colorBgSolid),"#fff")?"#000":"#fff",h=ea.reduce((g,b)=>Object.assign(Object.assign({},g),{[`${b}ShadowColor`]:`0 ${be(e.controlOutlineWidth)} 0 ${Kl(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:d,contentLineHeight:c,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*p)/2-e.lineWidth,0)})},Mj=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:cc(),"> a":{color:"currentColor"},"&:not(:disabled)":vi(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Z5=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Aj=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Nj=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),jj=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Y0=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Z5(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Fj=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jj(e))}),Lj=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Q0=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?Lj:Fj;return Object.assign(Object.assign({},i(e)),Z5(e.componentCls,t,n))},Z0=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Q0(e,r,o))}),J0=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Q0(e,r,o))}),ep=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),tp=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Q0(e,n,r))}),Zo=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Q0(e,r,o,n))}),Dj=e=>{const{componentCls:t}=e;return ea.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],d=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Z0(e,e.colorTextLightSolid,o,{background:a},{background:d})),J0(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:d,borderColor:d,background:e.colorBgContainer})),ep(e)),tp(e,i,{background:s},{background:l})),Zo(e,o,"link",{color:a},{color:d})),Zo(e,o,"text",{color:a,background:i},{color:d,background:l}))})},{})},Bj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Z0(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ep(e)),tp(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Y0(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Zo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),zj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},J0(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ep(e)),tp(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Zo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Zo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Y0(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Hj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Z0(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),J0(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ep(e)),tp(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Zo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Zo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Y0(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Vj=e=>Object.assign(Object.assign({},Zo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Y0(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Uj=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Bj(e),[`${t}-color-primary`]:zj(e),[`${t}-color-dangerous`]:Hj(e),[`${t}-color-link`]:Vj(e)},Dj(e))},Wj=e=>Object.assign(Object.assign(Object.assign(Object.assign({},J0(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Zo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Z0(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Zo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),v2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:o,height:r,padding:`${be(l)} ${be(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:Aj(e)},{[`${n}${n}-round${t}`]:Nj(e)}]},Kj=e=>{const t=Pt(e,{fontSize:e.contentFontSize});return v2(t,e.componentCls)},qj=e=>{const t=Pt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return v2(t,`${e.componentCls}-sm`)},Gj=e=>{const t=Pt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return v2(t,`${e.componentCls}-lg`)},Xj=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Yj=Zt("Button",e=>{const t=Y5(e);return[Mj(t),Kj(t),qj(t),Gj(t),Xj(t),Uj(t),Wj(t),MN(t)]},Q5,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Qj(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Zj(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function np(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Qj(e,r,t)),Zj(n,r,t))}}function Jj(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function eF(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function tF(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Jj(e,t)),eF(e.componentCls,t))}}const nF=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},rF=dc(["Button","compact"],e=>{const t=Y5(e);return[np(t),tF(t),nF(t)]},Q5);var oF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function iF(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const aF={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},sF=V.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:d=!1,shape:c="default",size:f,styles:p,disabled:m,className:h,rootClassName:g,children:b,icon:y,iconPosition:v="start",ghost:C=!1,block:O=!1,htmlType:$="button",classNames:x,style:w={},autoInsertSpace:T,autoFocus:R}=e,S=oF(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),E=l||"default",{button:P}=V.useContext(bt),[I,k]=u.useMemo(()=>{if(a&&s)return[a,s];if(l||d){const ee=aF[E]||[];return d?["danger",ee[1]]:ee}return P!=null&&P.color&&(P!=null&&P.variant)?[P.color,P.variant]:["default","outlined"]},[l,a,s,d,P==null?void 0:P.variant,P==null?void 0:P.color]),M=I==="danger"?"dangerous":I,{getPrefixCls:j,direction:A,autoInsertSpace:D,className:L,style:z,classNames:q,styles:U}=vr("button"),H=(n=T??D)!==null&&n!==void 0?n:!0,K=j("btn",i),[X,Z,se]=Yj(K),ie=u.useContext(Yo),me=m??ie,ue=u.useContext(z5),re=u.useMemo(()=>iF(o),[o]),[ce,fe]=u.useState(re.loading),[de,ve]=u.useState(!1),ye=u.useRef(null),Se=Ci(t,ye),Pe=u.Children.count(b)===1&&!y&&!Fh(k),Ie=u.useRef(!0);V.useEffect(()=>(Ie.current=!1,()=>{Ie.current=!0}),[]),u.useEffect(()=>{let ee=null;re.delay>0?ee=setTimeout(()=>{ee=null,fe(!0)},re.delay):fe(re.loading);function ne(){ee&&(clearTimeout(ee),ee=null)}return ne},[re]),u.useEffect(()=>{if(!ye.current||!H)return;const ee=ye.current.textContent||"";Pe&&t1(ee)?de||ve(!0):de&&ve(!1)}),u.useEffect(()=>{R&&ye.current&&ye.current.focus()},[]);const $e=V.useCallback(ee=>{var ne;if(ce||me){ee.preventDefault();return}(ne=e.onClick)===null||ne===void 0||ne.call(e,("href"in e,ee))},[e.onClick,ce,me]),{compactSize:Fe,compactItemClassnames:Ee}=pc(K,A),ke={large:"lg",small:"sm",middle:void 0},Be=Mo(ee=>{var ne,xe;return(xe=(ne=f??Fe)!==null&&ne!==void 0?ne:ue)!==null&&xe!==void 0?xe:ee}),je=Be&&(r=ke[Be])!==null&&r!==void 0?r:"",We=ce?"loading":y,Ye=In(S,["navigate"]),Xe=ae(K,Z,se,{[`${K}-${c}`]:c!=="default"&&c,[`${K}-${E}`]:E,[`${K}-dangerous`]:d,[`${K}-color-${M}`]:M,[`${K}-variant-${k}`]:k,[`${K}-${je}`]:je,[`${K}-icon-only`]:!b&&b!==0&&!!We,[`${K}-background-ghost`]:C&&!Fh(k),[`${K}-loading`]:ce,[`${K}-two-chinese-chars`]:de&&H&&!ce,[`${K}-block`]:O,[`${K}-rtl`]:A==="rtl",[`${K}-icon-end`]:v==="end"},Ee,h,g,L),it=Object.assign(Object.assign({},z),w),et=ae(x==null?void 0:x.icon,q.icon),ct=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),U.icon||{}),He=y&&!ce?V.createElement(n1,{prefixCls:K,className:et,style:ct},y):o&&typeof o=="object"&&o.icon?V.createElement(n1,{prefixCls:K,className:et,style:ct},o.icon):V.createElement(kN,{existIcon:!!y,prefixCls:K,loading:ce,mount:Ie.current}),he=b||b===0?_N(b,Pe&&H):null;if(Ye.href!==void 0)return X(V.createElement("a",Object.assign({},Ye,{className:ae(Xe,{[`${K}-disabled`]:me}),href:me?void 0:Ye.href,style:it,onClick:$e,ref:Se,tabIndex:me?-1:0}),He,he));let Q=V.createElement("button",Object.assign({},S,{type:$,className:Xe,style:it,onClick:$e,disabled:me,ref:Se}),He,he,Ee&&V.createElement(rF,{prefixCls:K}));return Fh(k)||(Q=V.createElement(L5,{component:"Button",disabled:ce},Q)),X(Q)}),Dt=sF;Dt.Group=IN;Dt.__ANT_BUTTON=!0;function zh(e){return!!(e!=null&&e.then)}const J5=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:d,actionFn:c}=e,f=u.useRef(!1),p=u.useRef(null),[m,h]=Zs(!1),g=function(){i==null||i.apply(void 0,arguments)};u.useEffect(()=>{let v=null;return a&&(v=setTimeout(()=>{var C;(C=p.current)===null||C===void 0||C.focus({preventScroll:!0})})),()=>{v&&clearTimeout(v)}},[]);const b=v=>{zh(v)&&(h(!0),v.then(function(){h(!1,!0),g.apply(void 0,arguments),f.current=!1},C=>{if(h(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(C)}))},y=v=>{if(f.current)return;if(f.current=!0,!c){g();return}let C;if(s){if(C=c(v),d&&!zh(C)){f.current=!1,g(v);return}}else if(c.length)C=c(i),f.current=!1;else if(C=c(),!zh(C)){g();return}b(C)};return u.createElement(Dt,Object.assign({},H5(t),{onClick:y,loading:m,prefixCls:r},o,{ref:p}),n)},hc=V.createContext({}),{Provider:ew}=hc,_3=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=u.useContext(hc);return o?V.createElement(J5,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},k3=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=u.useContext(hc);return V.createElement(J5,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var tw=u.createContext(null),M3=[];function lF(e,t){var n=u.useState(function(){if(!Jn())return null;var h=document.createElement("div");return h}),r=ge(n,1),o=r[0],i=u.useRef(!1),a=u.useContext(tw),s=u.useState(M3),l=ge(s,2),d=l[0],c=l[1],f=a||(i.current?void 0:function(h){c(function(g){var b=[h].concat(Ne(g));return b})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return Ut(function(){return e?a?a(p):p():m(),m},[e]),Ut(function(){d.length&&(d.forEach(function(h){return h()}),c(M3))},[d]),[o,f]}function uF(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),d=parseInt(s.height,10);try{var c=l?"width: ".concat(s.width,";"):"",f=d?"height: ".concat(s.height,";"):"";ci(`
|
|
204
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
205
|
+
`).concat(c,`
|
|
206
|
+
`).concat(f,`
|
|
207
|
+
}`),t)}catch(h){console.error(h),o=l,i=d}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,m=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Iu(t),{width:p,height:m}}function cF(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:uF(e)}function dF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fF="rc-util-locker-".concat(Date.now()),A3=0;function pF(e){var t=!!e,n=u.useState(function(){return A3+=1,"".concat(fF,"_").concat(A3)}),r=ge(n,1),o=r[0];Ut(function(){if(t){var i=cF(document.body).width,a=dF();ci(`
|
|
208
|
+
html body {
|
|
209
|
+
overflow-y: hidden;
|
|
210
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
211
|
+
}`),o)}else Iu(o);return function(){Iu(o)}},[t,o])}var hF=!1;function mF(e){return hF}var N3=function(t){return t===!1?!1:!Jn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},mc=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=u.useState(n),d=ge(l,2),c=d[0],f=d[1],p=c||n;u.useEffect(function(){(a||n)&&f(n)},[n,a]);var m=u.useState(function(){return N3(o)}),h=ge(m,2),g=h[0],b=h[1];u.useEffect(function(){var E=N3(o);b(E??null)});var y=lF(p&&!g),v=ge(y,2),C=v[0],O=v[1],$=g??C;pF(r&&n&&Jn()&&($===C||$===document.body));var x=null;if(s&&Ba(s)&&t){var w=s;x=w.ref}var T=Ci(x,t);if(!p||!Jn()||g===void 0)return null;var R=$===!1||mF(),S=s;return t&&(S=u.cloneElement(s,{ref:T})),u.createElement(tw.Provider,{value:O},R?S:fo.createPortal(S,$))}),nw=u.createContext({});function gF(){var e=Y({},Fs);return e.useId}var j3=0,F3=gF();const y2=F3?function(t){var n=F3();return t||n}:function(t){var n=u.useState("ssr-id"),r=ge(n,2),o=r[0],i=r[1];return u.useEffect(function(){var a=j3;j3+=1,i("rc_unique_".concat(a))},[]),t||o};function L3(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function D3(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function vF(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=D3(o),n.top+=D3(o,!0),n}const yF=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var bF={width:0,height:0,overflow:"hidden",outline:"none"},CF={outline:"none"},rw=V.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,d=e.closeIcon,c=e.onClose,f=e.children,p=e.bodyStyle,m=e.bodyProps,h=e.modalRender,g=e.onMouseDown,b=e.onMouseUp,y=e.holderRef,v=e.visible,C=e.forceRender,O=e.width,$=e.height,x=e.classNames,w=e.styles,T=V.useContext(nw),R=T.panel,S=Ci(y,R),E=u.useRef(),P=u.useRef();V.useImperativeHandle(t,function(){return{focus:function(){var q;(q=E.current)===null||q===void 0||q.focus({preventScroll:!0})},changeActive:function(q){var U=document,H=U.activeElement;q&&H===P.current?E.current.focus({preventScroll:!0}):!q&&H===E.current&&P.current.focus({preventScroll:!0})}}});var I={};O!==void 0&&(I.width=O),$!==void 0&&(I.height=$);var k=s?V.createElement("div",{className:ae("".concat(n,"-footer"),x==null?void 0:x.footer),style:Y({},w==null?void 0:w.footer)},s):null,N=i?V.createElement("div",{className:ae("".concat(n,"-header"),x==null?void 0:x.header),style:Y({},w==null?void 0:w.header)},V.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,M=u.useMemo(function(){return nt(l)==="object"&&l!==null?l:l?{closeIcon:d??V.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,d,n]),j=lr(M,!0),A=nt(l)==="object"&&l.disabled,D=l?V.createElement("button",we({type:"button",onClick:c,"aria-label":"Close"},j,{className:"".concat(n,"-close"),disabled:A}),M.closeIcon):null,L=V.createElement("div",{className:ae("".concat(n,"-content"),x==null?void 0:x.content),style:w==null?void 0:w.content},D,N,V.createElement("div",we({className:ae("".concat(n,"-body"),x==null?void 0:x.body),style:Y(Y({},p),w==null?void 0:w.body)},m),f),k);return V.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:S,style:Y(Y({},o),I),className:ae(n,r),onMouseDown:g,onMouseUp:b},V.createElement("div",{ref:E,tabIndex:0,style:CF},V.createElement(yF,{shouldUpdate:v||C},h?h(L):L)),V.createElement("div",{tabIndex:0,ref:P,style:bF}))}),ow=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,d=e.motionName,c=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,m=u.useRef(),h=u.useState(),g=ge(h,2),b=g[0],y=g[1],v={};b&&(v.transformOrigin=b);function C(){var O=vF(m.current);y(p&&(p.x||p.y)?"".concat(p.x-O.left,"px ").concat(p.y-O.top,"px"):"")}return u.createElement(sr,{visible:a,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:d,removeOnLeave:l,ref:m},function(O,$){var x=O.className,w=O.style;return u.createElement(rw,we({},e,{ref:t,title:r,ariaId:c,prefixCls:n,holderRef:$,style:Y(Y(Y({},w),o),v),className:ae(i,x)}))})});ow.displayName="Content";var xF=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return u.createElement(sr,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,d){var c=l.className,f=l.style;return u.createElement("div",we({ref:d,style:Y(Y({},f),r),className:ae("".concat(n,"-mask"),c,s)},i))})},SF=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,d=t.focusTriggerAfterClose,c=d===void 0?!0:d,f=t.wrapStyle,p=t.wrapClassName,m=t.wrapProps,h=t.onClose,g=t.afterOpenChange,b=t.afterClose,y=t.transitionName,v=t.animation,C=t.closable,O=C===void 0?!0:C,$=t.mask,x=$===void 0?!0:$,w=t.maskTransitionName,T=t.maskAnimation,R=t.maskClosable,S=R===void 0?!0:R,E=t.maskStyle,P=t.maskProps,I=t.rootClassName,k=t.classNames,N=t.styles,M=u.useRef(),j=u.useRef(),A=u.useRef(),D=u.useState(a),L=ge(D,2),z=L[0],q=L[1],U=y2();function H(){jg(j.current,document.activeElement)||(M.current=document.activeElement)}function K(){if(!jg(j.current,document.activeElement)){var de;(de=A.current)===null||de===void 0||de.focus()}}function X(de){if(de)K();else{if(q(!1),x&&M.current&&c){try{M.current.focus({preventScroll:!0})}catch{}M.current=null}z&&(b==null||b())}g==null||g(de)}function Z(de){h==null||h(de)}var se=u.useRef(!1),ie=u.useRef(),me=function(){clearTimeout(ie.current),se.current=!0},ue=function(){ie.current=setTimeout(function(){se.current=!1})},re=null;S&&(re=function(ve){se.current?se.current=!1:j.current===ve.target&&Z(ve)});function ce(de){if(l&&de.keyCode===Ze.ESC){de.stopPropagation(),Z(de);return}a&&de.keyCode===Ze.TAB&&A.current.changeActive(!de.shiftKey)}u.useEffect(function(){a&&(q(!0),H())},[a]),u.useEffect(function(){return function(){clearTimeout(ie.current)}},[]);var fe=Y(Y(Y({zIndex:o},f),N==null?void 0:N.wrapper),{},{display:z?null:"none"});return u.createElement("div",we({className:ae("".concat(r,"-root"),I)},lr(t,{data:!0})),u.createElement(xF,{prefixCls:r,visible:x&&a,motionName:L3(r,w,T),style:Y(Y({zIndex:o},E),N==null?void 0:N.mask),maskProps:P,className:k==null?void 0:k.mask}),u.createElement("div",we({tabIndex:-1,onKeyDown:ce,className:ae("".concat(r,"-wrap"),p,k==null?void 0:k.wrapper),ref:j,onClick:re,style:fe},m),u.createElement(ow,we({},t,{onMouseDown:me,onMouseUp:ue,ref:A,closable:O,ariaId:U,prefixCls:r,visible:a&&z,onClose:Z,onVisibleChanged:X,motionName:L3(r,y,v)}))))},b2=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,d=u.useState(n),c=ge(d,2),f=c[0],p=c[1],m=u.useMemo(function(){return{panel:l}},[l]);return u.useEffect(function(){n&&p(!0)},[n]),!o&&a&&!f?null:u.createElement(nw.Provider,{value:m},u.createElement(mc,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},u.createElement(SF,we({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),p(!1)}}))))};b2.displayName="Dialog";var ya="RC_FORM_INTERNAL_HOOKS",an=function(){An(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Js=u.createContext({getFieldValue:an,getFieldsValue:an,getFieldError:an,getFieldWarning:an,getFieldsError:an,isFieldsTouched:an,isFieldTouched:an,isFieldValidating:an,isFieldsValidating:an,resetFields:an,setFields:an,setFieldValue:an,setFieldsValue:an,validateFields:an,submit:an,getInternalHooks:function(){return an(),{dispatch:an,initEntityValue:an,registerField:an,useSubscribe:an,setInitialValues:an,destroyForm:an,setCallbacks:an,registerWatch:an,getFields:an,setValidateMessages:an,setPreserve:an,getInitialValue:an}}}),Bf=u.createContext(null);function r1(e){return e==null?[]:Array.isArray(e)?e:[e]}function wF(e){return e&&!!e._init}function o1(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var i1=o1();function EF(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function $F(e,t,n){if(Qv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ku(o,n.prototype),o}function a1(e){var t=typeof Map=="function"?new Map:void 0;return a1=function(r){if(r===null||!EF(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return $F(r,arguments,Mu(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ku(o,r)},a1(e)}var RF=/%[sdj%]/g,OF=function(){};function s1(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Dr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(RF,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function PF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Dn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||PF(t)&&typeof e=="string"&&!e)}function IF(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,Ne(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function B3(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function TF(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ne(e[n]||[]))}),t}var z3=function(e){_o(n,e);var t=ko(n);function n(r,o){var i;return xn(this,n),i=t.call(this,"Async Validation Error"),J(wt(i),"errors",void 0),J(wt(i),"fields",void 0),i.errors=r,i.fields=o,i}return Sn(n)}(a1(Error));function _F(e,t,n,r,o){if(t.first){var i=new Promise(function(p,m){var h=function(y){return r(y),y.length?m(new z3(y,s1(y))):p(o)},g=TF(e);B3(g,n,h)});return i.catch(function(p){return p}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,d=0,c=[],f=new Promise(function(p,m){var h=function(b){if(c.push.apply(c,b),d++,d===l)return r(c),c.length?m(new z3(c,s1(c))):p(o)};s.length||(r(c),p(o)),s.forEach(function(g){var b=e[g];a.indexOf(g)!==-1?B3(b,n,h):IF(b,n,h)})});return f.catch(function(p){return p}),f}function kF(e){return!!(e&&e.message!==void 0)}function MF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function H3(e,t){return function(n){var r;return e.fullFields?r=MF(t,e.fullFields):r=t[n.field||e.fullField],kF(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function V3(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];nt(r)==="object"&&nt(e[n])==="object"?e[n]=Y(Y({},e[n]),r):e[n]=r}}return e}var qa="enum",AF=function(t,n,r,o,i){t[qa]=Array.isArray(t[qa])?t[qa]:[],t[qa].indexOf(n)===-1&&o.push(Dr(i.messages[qa],t.fullField,t[qa].join(", ")))},NF=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Dr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Dr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},jF=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,p=typeof n=="number",m=typeof n=="string",h=Array.isArray(n);if(p?f="number":m?f="string":h&&(f="array"),!f)return!1;h&&(c=n.length),m&&(c=n.replace(d,"_").length),a?c!==t.len&&o.push(Dr(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?o.push(Dr(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?o.push(Dr(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&o.push(Dr(i.messages[f].range,t.fullField,t.min,t.max))},iw=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Dn(n,a||t.type))&&o.push(Dr(i.messages.required,t.fullField))},ld;const FF=function(){if(ld)return ld;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(a,"$")),c=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(a).concat(t(x),")"),"g")};c.v4=function($){return $&&$.exact?l:new RegExp("".concat(t($)).concat(n).concat(t($)),"g")},c.v6=function($){return $&&$.exact?d:new RegExp("".concat(t($)).concat(a).concat(t($)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",m=c.v4().source,h=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',O="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(m,"|").concat(h,"|").concat(g).concat(b).concat(y,")").concat(v).concat(C);return ld=new RegExp("(?:^".concat(O,"$)"),"i"),ld};var U3={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ql={integer:function(t){return ql.number(t)&&parseInt(t,10)===t},float:function(t){return ql.number(t)&&!ql.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return nt(t)==="object"&&!ql.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(U3.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(FF())},hex:function(t){return typeof t=="string"&&!!t.match(U3.hex)}},LF=function(t,n,r,o,i){if(t.required&&n===void 0){iw(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ql[s](n)||o.push(Dr(i.messages.types[s],t.fullField,t.type)):s&&nt(n)!==t.type&&o.push(Dr(i.messages.types[s],t.fullField,t.type))},DF=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Dr(i.messages.whitespace,t.fullField))};const Bt={required:iw,whitespace:DF,type:LF,range:jF,enum:AF,pattern:NF};var BF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},zF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},HF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},VF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!Dn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Bt.type(t,l,o,a,i),l&&Bt.range(t,l.getTime(),o,a,i)}}r(a)},UF="enum",WF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[UF](t,n,o,a,i)}r(a)},KF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},qF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},GF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},XF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},YF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},QF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),Dn(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},ZF=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),Dn(n)||Bt.type(t,n,o,a,i)}r(a)},JF=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":nt(n);Bt.required(t,n,o,a,i,s),r(a)},eL=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Dn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),Dn(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},Hh=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Dn(n,a)&&!t.required)return r();Bt.required(t,n,o,s,i,a),Dn(n,a)||Bt.type(t,n,o,s,i)}r(s)};const uu={string:eL,method:GF,number:XF,boolean:HF,regexp:ZF,integer:qF,float:KF,array:zF,object:YF,enum:WF,pattern:QF,date:VF,url:Hh,hex:Hh,email:Hh,required:JF,any:BF};var gc=function(){function e(t){xn(this,e),J(this,"rules",null),J(this,"_messages",i1),this.define(t)}return Sn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(nt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=V3(o1(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function d(h){var g=[],b={};function y(C){if(Array.isArray(C)){var O;g=(O=g).concat.apply(O,Ne(C))}else g.push(C)}for(var v=0;v<h.length;v++)y(h[v]);g.length?(b=s1(g),l(g,b)):l(null,a)}if(s.messages){var c=this.messages();c===i1&&(c=o1()),V3(c,s.messages),s.messages=c}else s.messages=this.messages();var f={},p=s.keys||Object.keys(this.rules);p.forEach(function(h){var g=r.rules[h],b=a[h];g.forEach(function(y){var v=y;typeof v.transform=="function"&&(a===n&&(a=Y({},a)),b=a[h]=v.transform(b),b!=null&&(v.type=v.type||(Array.isArray(b)?"array":nt(b)))),typeof v=="function"?v={validator:v}:v=Y({},v),v.validator=r.getValidationMethod(v),v.validator&&(v.field=h,v.fullField=v.fullField||h,v.type=r.getType(v),f[h]=f[h]||[],f[h].push({rule:v,value:b,source:a,field:h}))})});var m={};return _F(f,s,function(h,g){var b=h.rule,y=(b.type==="object"||b.type==="array")&&(nt(b.fields)==="object"||nt(b.defaultField)==="object");y=y&&(b.required||!b.required&&h.value),b.field=h.field;function v(w,T){return Y(Y({},T),{},{fullField:"".concat(b.fullField,".").concat(w),fullFields:b.fullFields?[].concat(Ne(b.fullFields),[w]):[w]})}function C(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(w)?w:[w];!s.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&b.message!==void 0&&(T=[].concat(b.message));var R=T.map(H3(b,a));if(s.first&&R.length)return m[b.field]=1,g(R);if(!y)g(R);else{if(b.required&&!h.value)return b.message!==void 0?R=[].concat(b.message).map(H3(b,a)):s.error&&(R=[s.error(b,Dr(s.messages.required,b.field))]),g(R);var S={};b.defaultField&&Object.keys(h.value).map(function(I){S[I]=b.defaultField}),S=Y(Y({},S),h.rule.fields);var E={};Object.keys(S).forEach(function(I){var k=S[I],N=Array.isArray(k)?k:[k];E[I]=N.map(v.bind(null,I))});var P=new e(E);P.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),P.validate(h.value,h.rule.options||s,function(I){var k=[];R&&R.length&&k.push.apply(k,Ne(R)),I&&I.length&&k.push.apply(k,Ne(I)),g(k.length?k:null)})}}var O;if(b.asyncValidator)O=b.asyncValidator(b,h.value,C,h.source,s);else if(b.validator){try{O=b.validator(b,h.value,C,h.source,s)}catch(w){var $,x;($=(x=console).error)===null||$===void 0||$.call(x,w),s.suppressValidatorError||setTimeout(function(){throw w},0),C(w.message)}O===!0?C():O===!1?C(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):O instanceof Array?C(O):O instanceof Error&&C(O.message)}O&&O.then&&O.then(function(){return C()},function(w){return C(w)})},function(h){d(h)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!uu.hasOwnProperty(n.type))throw new Error(Dr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?uu.required:uu[this.getType(n)]||void 0}}]),e}();J(gc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");uu[t]=n});J(gc,"warning",OF);J(gc,"messages",i1);J(gc,"validators",uu);var Mr="'${name}' is not a valid ${type}",aw={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Mr,method:Mr,array:Mr,object:Mr,number:Mr,date:Mr,boolean:Mr,integer:Mr,float:Mr,regexp:Mr,email:Mr,url:Mr,hex:Mr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},W3=gc;function tL(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var K3="CODE_LOGIC_ERROR";function l1(e,t,n,r,o){return u1.apply(this,arguments)}function u1(){return u1=Lr(sn().mark(function e(t,n,r,o,i){var a,s,l,d,c,f,p,m,h;return sn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=Y({},r),delete a.ruleIndex,W3.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(K3)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),d=new W3(J({},t,[a])),c=gs(aw,o.validateMessages),d.messages(c),f=[],b.prev=10,b.next=13,Promise.resolve(d.validate(J({},t,n),Y({},o)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(f=b.t0.errors.map(function(y,v){var C=y.message,O=C===K3?c.default:C;return u.isValidElement(O)?u.cloneElement(O,{key:"error_".concat(v)}):O}));case 18:if(!(!f.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(y,v){return l1("".concat(t,".").concat(v),y,l,o,i)}));case 21:return p=b.sent,b.abrupt("return",p.reduce(function(y,v){return[].concat(Ne(y),Ne(v))},[]));case 23:return m=Y(Y({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map(function(y){return typeof y=="string"?tL(y,m):y}),b.abrupt("return",h);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),u1.apply(this,arguments)}function nL(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(c,f){var p=c.validator,m=Y(Y({},c),{},{ruleIndex:f});return p&&(m.validator=function(h,g,b){var y=!1,v=function(){for(var $=arguments.length,x=new Array($),w=0;w<$;w++)x[w]=arguments[w];Promise.resolve().then(function(){An(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||b.apply(void 0,x)})},C=p(h,g,v);y=C&&typeof C.then=="function"&&typeof C.catch=="function",An(y,"`callback` is deprecated. Please return a promise instead."),y&&C.then(function(){b()}).catch(function(O){b(O||" ")})}),m}).sort(function(c,f){var p=c.warningOnly,m=c.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?m-g:p?1:-1}),l;if(o===!0)l=new Promise(function(){var c=Lr(sn().mark(function f(p,m){var h,g,b;return sn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:h=0;case 1:if(!(h<s.length)){v.next=12;break}return g=s[h],v.next=5,l1(a,t,g,r,i);case 5:if(b=v.sent,!b.length){v.next=9;break}return m([{errors:b,rule:g}]),v.abrupt("return");case 9:h+=1,v.next=1;break;case 12:p([]);case 13:case"end":return v.stop()}},f)}));return function(f,p){return c.apply(this,arguments)}}());else{var d=s.map(function(c){return l1(a,t,c,r,i).then(function(f){return{errors:f,rule:c}})});l=(o?oL(d):rL(d)).then(function(c){return Promise.reject(c)})}return l.catch(function(c){return c}),l}function rL(e){return c1.apply(this,arguments)}function c1(){return c1=Lr(sn().mark(function e(t){return sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Ne(o));return a}));case 1:case"end":return r.stop()}},e)})),c1.apply(this,arguments)}function oL(e){return d1.apply(this,arguments)}function d1(){return d1=Lr(sn().mark(function e(t){var n;return sn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),d1.apply(this,arguments)}function On(e){return r1(e)}function q3(e,t){var n={};return t.forEach(function(r){var o=So(e,r);n=yo(n,r,o)}),n}function _s(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return sw(t,r,n)})}function sw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function iL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||nt(e)!=="object"||nt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ne(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function aL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&nt(t.target)==="object"&&e in t.target?t.target[e]:t}function G3(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ne(e.slice(0,n)),[o],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):i<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[o],Ne(e.slice(n+1,r))):e}var sL=["name"],eo=[];function Vh(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var C2=function(e){_o(n,e);var t=ko(n);function n(r){var o;if(xn(this,n),o=t.call(this,r),J(wt(o),"state",{resetCount:0}),J(wt(o),"cancelRegisterFunc",null),J(wt(o),"mounted",!1),J(wt(o),"touched",!1),J(wt(o),"dirty",!1),J(wt(o),"validatePromise",void 0),J(wt(o),"prevValidating",void 0),J(wt(o),"errors",eo),J(wt(o),"warnings",eo),J(wt(o),"cancelRegister",function(){var l=o.props,d=l.preserve,c=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(c,d,On(f)),o.cancelRegisterFunc=null}),J(wt(o),"getNamePath",function(){var l=o.props,d=l.name,c=l.fieldContext,f=c.prefixName,p=f===void 0?[]:f;return d!==void 0?[].concat(Ne(p),Ne(d)):[]}),J(wt(o),"getRules",function(){var l=o.props,d=l.rules,c=d===void 0?[]:d,f=l.fieldContext;return c.map(function(p){return typeof p=="function"?p(f):p})}),J(wt(o),"refresh",function(){o.mounted&&o.setState(function(l){var d=l.resetCount;return{resetCount:d+1}})}),J(wt(o),"metaCache",null),J(wt(o),"triggerMetaEvent",function(l){var d=o.props.onMetaChange;if(d){var c=Y(Y({},o.getMeta()),{},{destroy:l});Ji(o.metaCache,c)||d(c),o.metaCache=c}else o.metaCache=null}),J(wt(o),"onStoreChange",function(l,d,c){var f=o.props,p=f.shouldUpdate,m=f.dependencies,h=m===void 0?[]:m,g=f.onReset,b=c.store,y=o.getNamePath(),v=o.getValue(l),C=o.getValue(b),O=d&&_s(d,y);switch(c.type==="valueUpdate"&&c.source==="external"&&!Ji(v,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=eo,o.warnings=eo,o.triggerMetaEvent()),c.type){case"reset":if(!d||O){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=eo,o.warnings=eo,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&Vh(p,l,b,v,C,c)){o.reRender();return}break}case"setField":{var $=c.data;if(O){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||eo),"warnings"in $&&(o.warnings=$.warnings||eo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&_s(d,y,!0)){o.reRender();return}if(p&&!y.length&&Vh(p,l,b,v,C,c)){o.reRender();return}break}case"dependenciesUpdate":{var x=h.map(On);if(x.some(function(w){return _s(c.relatedFields,w)})){o.reRender();return}break}default:if(O||(!h.length||y.length||p)&&Vh(p,l,b,v,C,c)){o.reRender();return}break}p===!0&&o.reRender()}),J(wt(o),"validateRules",function(l){var d=o.getNamePath(),c=o.getValue(),f=l||{},p=f.triggerName,m=f.validateOnly,h=m===void 0?!1:m,g=Promise.resolve().then(Lr(sn().mark(function b(){var y,v,C,O,$,x,w;return sn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(o.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(y=o.props,v=y.validateFirst,C=v===void 0?!1:v,O=y.messageVariables,$=y.validateDebounce,x=o.getRules(),p&&(x=x.filter(function(S){return S}).filter(function(S){var E=S.validateTrigger;if(!E)return!0;var P=r1(E);return P.includes(p)})),!($&&p)){R.next=10;break}return R.next=8,new Promise(function(S){setTimeout(S,$)});case 8:if(o.validatePromise===g){R.next=10;break}return R.abrupt("return",[]);case 10:return w=nL(d,c,x,l,C,O),w.catch(function(S){return S}).then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eo;if(o.validatePromise===g){var E;o.validatePromise=null;var P=[],I=[];(E=S.forEach)===null||E===void 0||E.call(S,function(k){var N=k.rule.warningOnly,M=k.errors,j=M===void 0?eo:M;N?I.push.apply(I,Ne(j)):P.push.apply(P,Ne(j))}),o.errors=P,o.warnings=I,o.triggerMetaEvent(),o.reRender()}}),R.abrupt("return",w);case 13:case"end":return R.stop()}},b)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=eo,o.warnings=eo,o.triggerMetaEvent(),o.reRender()),g}),J(wt(o),"isFieldValidating",function(){return!!o.validatePromise}),J(wt(o),"isFieldTouched",function(){return o.touched}),J(wt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,d=l.getInternalHooks(ya),c=d.getInitialValue;return c(o.getNamePath())!==void 0}),J(wt(o),"getErrors",function(){return o.errors}),J(wt(o),"getWarnings",function(){return o.warnings}),J(wt(o),"isListField",function(){return o.props.isListField}),J(wt(o),"isList",function(){return o.props.isList}),J(wt(o),"isPreserve",function(){return o.props.preserve}),J(wt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),J(wt(o),"getOnlyChild",function(l){if(typeof l=="function"){var d=o.getMeta();return Y(Y({},o.getOnlyChild(l(o.getControlled(),d,o.props.fieldContext))),{},{isFunction:!0})}var c=Rr(l);return c.length!==1||!u.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),J(wt(o),"getValue",function(l){var d=o.props.fieldContext.getFieldsValue,c=o.getNamePath();return So(l||d(!0),c)}),J(wt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=o.props,c=d.name,f=d.trigger,p=d.validateTrigger,m=d.getValueFromEvent,h=d.normalize,g=d.valuePropName,b=d.getValueProps,y=d.fieldContext,v=p!==void 0?p:y.validateTrigger,C=o.getNamePath(),O=y.getInternalHooks,$=y.getFieldsValue,x=O(ya),w=x.dispatch,T=o.getValue(),R=b||function(k){return J({},g,k)},S=l[f],E=c!==void 0?R(T):{},P=Y(Y({},l),E);P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var k,N=arguments.length,M=new Array(N),j=0;j<N;j++)M[j]=arguments[j];m?k=m.apply(void 0,M):k=aL.apply(void 0,[g].concat(M)),h&&(k=h(k,T,$(!0))),k!==T&&w({type:"updateValue",namePath:C,value:k}),S&&S.apply(void 0,M)};var I=r1(v||[]);return I.forEach(function(k){var N=P[k];P[k]=function(){N&&N.apply(void 0,arguments);var M=o.props.rules;M&&M.length&&w({type:"validateField",namePath:C,triggerName:k})}}),P}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(ya),s=a.initEntityValue;s(wt(o))}return o}return Sn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(ya),d=l.registerField;this.cancelRegisterFunc=d(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,d;return l?d=s:u.isValidElement(s)?d=u.cloneElement(s,this.getControlled(s.props)):(An(!s,"`children` of Field is not validate ReactElement."),d=s),u.createElement(u.Fragment,{key:o},d)}}]),n}(u.Component);J(C2,"contextType",Js);J(C2,"defaultProps",{trigger:"onChange",valuePropName:"value"});function lw(e){var t,n=e.name,r=gt(e,sL),o=u.useContext(Js),i=u.useContext(Bf),a=n!==void 0?On(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),u.createElement(C2,we({key:l,name:a,isListField:s},r,{fieldContext:o}))}function lL(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=u.useContext(Js),l=u.useContext(Bf),d=u.useRef({keys:[],id:0}),c=d.current,f=u.useMemo(function(){var g=On(s.prefixName)||[];return[].concat(Ne(g),Ne(On(t)))},[s.prefixName,t]),p=u.useMemo(function(){return Y(Y({},s),{},{prefixName:f})},[s,f]),m=u.useMemo(function(){return{getKey:function(b){var y=f.length,v=b[y];return[c.keys[v],b.slice(y+1)]}}},[f]);if(typeof r!="function")return An(!1,"Form.List only accepts function as children."),null;var h=function(b,y,v){var C=v.source;return C==="internal"?!1:b!==y};return u.createElement(Bf.Provider,{value:m},u.createElement(Js.Provider,{value:p},u.createElement(lw,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(g,b){var y=g.value,v=y===void 0?[]:y,C=g.onChange,O=s.getFieldValue,$=function(){var R=O(f||[]);return R||[]},x={add:function(R,S){var E=$();S>=0&&S<=E.length?(c.keys=[].concat(Ne(c.keys.slice(0,S)),[c.id],Ne(c.keys.slice(S))),C([].concat(Ne(E.slice(0,S)),[R],Ne(E.slice(S))))):(c.keys=[].concat(Ne(c.keys),[c.id]),C([].concat(Ne(E),[R]))),c.id+=1},remove:function(R){var S=$(),E=new Set(Array.isArray(R)?R:[R]);E.size<=0||(c.keys=c.keys.filter(function(P,I){return!E.has(I)}),C(S.filter(function(P,I){return!E.has(I)})))},move:function(R,S){if(R!==S){var E=$();R<0||R>=E.length||S<0||S>=E.length||(c.keys=G3(c.keys,R,S),C(G3(E,R,S)))}}},w=v||[];return Array.isArray(w)||(w=[]),r(w.map(function(T,R){var S=c.keys[R];return S===void 0&&(c.keys[R]=c.id,S=c.keys[R],c.id+=1),{name:R,key:S,isListField:!0}}),x,b)})))}function uL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var uw="__@field_split__";function Uh(e){return e.map(function(t){return"".concat(nt(t),":").concat(t)}).join(uw)}var Ga=function(){function e(){xn(this,e),J(this,"kvs",new Map)}return Sn(e,[{key:"set",value:function(n,r){this.kvs.set(Uh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Uh(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Uh(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var o=ge(r,2),i=o[0],a=o[1],s=i.split(uw);return n({key:s.map(function(l){var d=l.match(/^([^:]*):(.*)$/),c=ge(d,3),f=c[1],p=c[2];return f==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),cL=["name"],dL=Sn(function e(t){var n=this;xn(this,e),J(this,"formHooked",!1),J(this,"forceRootUpdate",void 0),J(this,"subscribable",!0),J(this,"store",{}),J(this,"fieldEntities",[]),J(this,"initialValues",{}),J(this,"callbacks",{}),J(this,"validateMessages",null),J(this,"preserve",null),J(this,"lastValidatePromise",null),J(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),J(this,"getInternalHooks",function(r){return r===ya?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(An(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),J(this,"useSubscribe",function(r){n.subscribable=r}),J(this,"prevWithoutPreserves",null),J(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=gs(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=yo(a,l,So(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),J(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Ga;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),J(this,"getInitialValue",function(r){var o=So(n.initialValues,r);return r.length?gs(o):o}),J(this,"setCallbacks",function(r){n.callbacks=r}),J(this,"setValidateMessages",function(r){n.validateMessages=r}),J(this,"setPreserve",function(r){n.preserve=r}),J(this,"watchList",[]),J(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),J(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),J(this,"timeoutId",null),J(this,"warningUnhooked",function(){}),J(this,"updateStore",function(r){n.store=r}),J(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),J(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ga;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),J(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=On(i);return o.get(a)||{INVALIDATE_NAME_PATH:On(i)}})}),J(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&nt(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),d=[];return l.forEach(function(c){var f,p,m="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var h,g;if((h=(g=c).isList)!==null&&h!==void 0&&h.call(g))return}else if(!i&&(f=(p=c).isListField)!==null&&f!==void 0&&f.call(p))return;if(!a)d.push(m);else{var b="getMeta"in c?c.getMeta():null;a(b)&&d.push(m)}}),q3(n.store,d.map(On))}),J(this,"getFieldValue",function(r){n.warningUnhooked();var o=On(r);return So(n.store,o)}),J(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:On(r[a]),errors:[],warnings:[]}})}),J(this,"getFieldError",function(r){n.warningUnhooked();var o=On(r),i=n.getFieldsError([o])[0];return i.errors}),J(this,"getFieldWarning",function(r){n.warningUnhooked();var o=On(r),i=n.getFieldsError([o])[0];return i.warnings}),J(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,d=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(On),d=!1):(l=null,d=a):(l=a.map(On),d=s);var c=n.getFieldEntities(!0),f=function(b){return b.isFieldTouched()};if(!l)return d?c.every(function(g){return f(g)||g.isList()}):c.some(f);var p=new Ga;l.forEach(function(g){p.set(g,[])}),c.forEach(function(g){var b=g.getNamePath();l.forEach(function(y){y.every(function(v,C){return b[C]===v})&&p.update(y,function(v){return[].concat(Ne(v),[g])})})});var m=function(b){return b.some(f)},h=p.map(function(g){var b=g.value;return b});return d?h.every(m):h.some(m)}),J(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),J(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(On);return o.some(function(a){var s=a.getNamePath();return _s(i,s)&&a.isFieldValidating()})}),J(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),J(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ga,i=n.getFieldEntities(!0);i.forEach(function(l){var d=l.props.initialValue,c=l.getNamePath();if(d!==void 0){var f=o.get(c)||new Set;f.add({entity:l,value:d}),o.set(c,f)}});var a=function(d){d.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var p=c.getNamePath(),m=n.getInitialValue(p);if(m!==void 0)An(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=o.get(p);if(h&&h.size>1)An(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=n.getFieldValue(p),b=c.isListField();!b&&(!r.skipExist||g===void 0)&&n.updateStore(yo(n.store,p,Ne(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var d=o.get(l);if(d){var c;(c=s).push.apply(c,Ne(Ne(d).map(function(f){return f.entity})))}})):s=i,a(s)}),J(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(gs(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(On);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(yo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),J(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=gt(a,cL),d=On(s);i.push(d),"value"in l&&n.updateStore(yo(n.store,d,l.value)),n.notifyObservers(o,[d],{type:"setField",data:a})}),n.notifyWatch(i)}),J(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=Y(Y({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),J(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=So(n.store,i);a===void 0&&n.updateStore(yo(n.store,i,o))}}),J(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),J(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var d=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==d&&n.fieldEntities.every(function(f){return!sw(f.getNamePath(),o)})){var c=n.store;n.updateStore(yo(c,o,d,!0)),n.notifyObservers(c,[o],{type:"remove"}),n.triggerDependenciesUpdate(c,o)}}n.notifyWatch([o])}}),J(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),J(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=Y(Y({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),J(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ne(i))}),i}),J(this,"updateValue",function(r,o){var i=On(r),a=n.store;n.updateStore(yo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var d=q3(n.store,[i]);l(d,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ne(s)))}),J(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=gs(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),J(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),J(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Ga;n.getFieldEntities().forEach(function(l){var d=l.props.dependencies;(d||[]).forEach(function(c){var f=On(c);a.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(d){var c=a.get(d)||new Set;c.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(i.push(p),l(p))}})};return s(r),i}),J(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Ga;o.forEach(function(d){var c=d.name,f=d.errors;s.set(c,f)}),a.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var l=a.filter(function(d){var c=d.name;return _s(r,c)});l.length&&i(l,a)}}),J(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(On):[],d=[],c=String(Date.now()),f=new Set,p=a||{},m=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(v){if(s||l.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(h&&!v.isFieldDirty())){var C=v.getNamePath();if(f.add(C.join(c)),!s||_s(l,C,m)){var O=v.validateRules(Y({validateMessages:Y(Y({},aw),n.validateMessages)},a));d.push(O.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function($){var x,w=[],T=[];return(x=$.forEach)===null||x===void 0||x.call($,function(R){var S=R.rule.warningOnly,E=R.errors;S?T.push.apply(T,Ne(E)):w.push.apply(w,Ne(E))}),w.length?Promise.reject({name:C,errors:w,warnings:T}):{name:C,errors:w,warnings:T}}))}}});var g=uL(d);n.lastValidatePromise=g,g.catch(function(v){return v}).then(function(v){var C=v.map(function(O){var $=O.name;return $});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,v)});var b=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(v){var C=v.filter(function(O){return O&&O.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==g})});b.catch(function(v){return v});var y=l.filter(function(v){return f.has(v.join(c))});return n.triggerOnFieldsChange(y),b}),J(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function cw(e){var t=u.useRef(),n=u.useState({}),r=ge(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new dL(i);t.current=a.getForm()}return[t.current]}var f1=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fL=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=u.useContext(f1),s=u.useRef({});return u.createElement(f1.Provider,{value:Y(Y({},a),{},{validateMessages:Y(Y({},a.validateMessages),n),triggerFormChange:function(d,c){r&&r(d,{changedFields:c,forms:s.current}),a.triggerFormChange(d,c)},triggerFormFinish:function(d,c){o&&o(d,{values:c,forms:s.current}),a.triggerFormFinish(d,c)},registerForm:function(d,c){d&&(s.current=Y(Y({},s.current),{},J({},d,c))),a.registerForm(d,c)},unregisterForm:function(d){var c=Y({},s.current);delete c[d],s.current=c,a.unregisterForm(d)}})},i)},pL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],hL=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,d=t.component,c=d===void 0?"form":d,f=t.validateMessages,p=t.validateTrigger,m=p===void 0?"onChange":p,h=t.onValuesChange,g=t.onFieldsChange,b=t.onFinish,y=t.onFinishFailed,v=t.clearOnDestroy,C=gt(t,pL),O=u.useRef(null),$=u.useContext(f1),x=cw(a),w=ge(x,1),T=w[0],R=T.getInternalHooks(ya),S=R.useSubscribe,E=R.setInitialValues,P=R.setCallbacks,I=R.setValidateMessages,k=R.setPreserve,N=R.destroyForm;u.useImperativeHandle(n,function(){return Y(Y({},T),{},{nativeElement:O.current})}),u.useEffect(function(){return $.registerForm(r,T),function(){$.unregisterForm(r)}},[$,T,r]),I(Y(Y({},$.validateMessages),f)),P({onValuesChange:h,onFieldsChange:function(H){if($.triggerFormChange(r,H),g){for(var K=arguments.length,X=new Array(K>1?K-1:0),Z=1;Z<K;Z++)X[Z-1]=arguments[Z];g.apply(void 0,[H].concat(X))}},onFinish:function(H){$.triggerFormFinish(r,H),b&&b(H)},onFinishFailed:y}),k(s);var M=u.useRef(null);E(o,!M.current),M.current||(M.current=!0),u.useEffect(function(){return function(){return N(v)}},[]);var j,A=typeof l=="function";if(A){var D=T.getFieldsValue(!0);j=l(D,T)}else j=l;S(!A);var L=u.useRef();u.useEffect(function(){iL(L.current||[],i||[])||T.setFields(i||[]),L.current=i},[i,T]);var z=u.useMemo(function(){return Y(Y({},T),{},{validateTrigger:m})},[T,m]),q=u.createElement(Bf.Provider,{value:null},u.createElement(Js.Provider,{value:z},j));return c===!1?q:u.createElement(c,we({},C,{ref:O,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),T.submit()},onReset:function(H){var K;H.preventDefault(),T.resetFields(),(K=C.onReset)===null||K===void 0||K.call(C,H)}}),q)};function X3(e){try{return JSON.stringify(e)}catch{return Math.random()}}function mL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=wF(i)?{form:i}:i,s=a.form,l=u.useState(),d=ge(l,2),c=d[0],f=d[1],p=u.useMemo(function(){return X3(c)},[c]),m=u.useRef(p);m.current=p;var h=u.useContext(Js),g=s||h,b=g&&g._init,y=On(r),v=u.useRef(y);return v.current=y,u.useEffect(function(){if(b){var C=g.getFieldsValue,O=g.getInternalHooks,$=O(ya),x=$.registerWatch,w=function(E,P){var I=a.preserve?P:E;return typeof r=="function"?r(I):So(I,v.current)},T=x(function(S,E){var P=w(S,E),I=X3(P);m.current!==I&&(m.current=I,f(P))}),R=w(C(),C(!0));return c!==R&&f(R),T}},[b]),c}var gL=u.forwardRef(hL),vc=gL;vc.FormProvider=fL;vc.Field=lw;vc.List=lL;vc.useForm=cw;vc.useWatch=mL;const yi=u.createContext({}),vL=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(yi),i=u.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return u.createElement(yi.Provider,{value:i},t)},yL=u.createContext(void 0),Bu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=V.createElement(vL,{override:!0,status:!0},o)),t&&(o=V.createElement($N,null,o)),o};function Y3(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}function el(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Q3(e){const{closable:t,closeIcon:n}=e||{};return V.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const bL={};function x2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bL;const r=Q3(e),o=Q3(t),[i]=ei("global",gi.global),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=V.useMemo(()=>Object.assign({closeIcon:V.createElement(Jo,null)},n),[n]),l=V.useMemo(()=>r===!1?!1:r?Y3(s,o,r):o===!1?!1:o?Y3(s,o):s.closable?s:!1,[r,o,s]);return V.useMemo(()=>{if(l===!1)return[!1,null,a,{}];const{closeIconRender:d}=s,{closeIcon:c}=l;let f=c;const p=lr(l,!0);return f!=null&&(d&&(f=d(c)),f=V.isValidElement(f)?V.cloneElement(f,Object.assign({"aria-label":i.close},p)):V.createElement("span",Object.assign({"aria-label":i.close},p),f)),[!0,f,a,p]},[l,s])}var CL=function(t){if(Jn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1};function Z3(e,t){return CL(e)}const xL=()=>Jn()&&window.document.documentElement,rp=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=ae({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=ae({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=u.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return u.createElement("span",{className:ae(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},SL=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),op=e=>({height:e,lineHeight:be(e)}),ks=e=>Object.assign({width:e},op(e)),wL=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:SL,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Wh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},op(e)),EL=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ks(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ks(o)),[`${t}${t}-sm`]:Object.assign({},ks(i))}},$L=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Wh(t,s)),[`${r}-lg`]:Object.assign({},Wh(o,s)),[`${r}-sm`]:Object.assign({},Wh(i,s))}},J3=e=>Object.assign({width:e},op(e)),RL=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},J3(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},J3(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Kh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},qh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},op(e)),OL=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},qh(r,s))},Kh(e,r,n)),{[`${n}-lg`]:Object.assign({},qh(o,s))}),Kh(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},qh(i,s))}),Kh(e,i,`${n}-sm`))},PL=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:d,controlHeightSM:c,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:b,paragraphLiHeight:y,controlHeightXS:v,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ks(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ks(d)),[`${n}-sm`]:Object.assign({},ks(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:b,[`+ ${o}`]:{marginBlockStart:c}},[o]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:b,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},OL(e)),EL(e)),$L(e)),RL(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
212
|
+
${r},
|
|
213
|
+
${o} > li,
|
|
214
|
+
${n},
|
|
215
|
+
${i},
|
|
216
|
+
${a},
|
|
217
|
+
${s}
|
|
218
|
+
`]:Object.assign({},wL(e))}}},IL=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},ml=Zt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Pt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[PL(r)]},IL,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),TL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=u.useContext(bt),l=s("skeleton",t),[d,c,f]=ml(l),p=In(e,["prefixCls","className"]),m=ae(l,`${l}-element`,{[`${l}-active`]:o},n,r,c,f);return d(u.createElement("div",{className:m},u.createElement(rp,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},p))))},_L=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=u.useContext(bt),l=s("skeleton",t),[d,c,f]=ml(l),p=In(e,["prefixCls"]),m=ae(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,c,f);return d(u.createElement("div",{className:m},u.createElement(rp,Object.assign({prefixCls:`${l}-button`,size:a},p))))},kL="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",ML=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=u.useContext(bt),s=a("skeleton",t),[l,d,c]=ml(s),f=ae(s,`${s}-element`,{[`${s}-active`]:i},n,r,d,c);return l(u.createElement("div",{className:f},u.createElement("div",{className:ae(`${s}-image`,n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:kL,className:`${s}-image-path`})))))},AL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=u.useContext(bt),l=s("skeleton",t),[d,c,f]=ml(l),p=In(e,["prefixCls"]),m=ae(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,c,f);return d(u.createElement("div",{className:m},u.createElement(rp,Object.assign({prefixCls:`${l}-input`,size:a},p))))},NL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=u.useContext(bt),l=s("skeleton",t),[d,c,f]=ml(l),p=ae(l,`${l}-element`,{[`${l}-active`]:i},c,n,r,f);return d(u.createElement("div",{className:p},u.createElement("div",{className:ae(`${l}-image`,n),style:o},a)))},jL=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},FL=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,s)=>u.createElement("li",{key:s,style:{width:jL(s,e)}}));return u.createElement("ul",{className:ae(t,n),style:r},i)},LL=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return u.createElement("h3",{className:ae(t,n),style:Object.assign({width:r},o)})};function Gh(e){return e&&typeof e=="object"?e:{}}function DL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function BL(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function zL(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const la=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:d=!0,active:c,round:f}=e,{getPrefixCls:p,direction:m,className:h,style:g}=vr("skeleton"),b=p("skeleton",t),[y,v,C]=ml(b);if(n||!("loading"in e)){const O=!!s,$=!!l,x=!!d;let w;if(O){const S=Object.assign(Object.assign({prefixCls:`${b}-avatar`},DL($,x)),Gh(s));w=u.createElement("div",{className:`${b}-header`},u.createElement(rp,Object.assign({},S)))}let T;if($||x){let S;if($){const P=Object.assign(Object.assign({prefixCls:`${b}-title`},BL(O,x)),Gh(l));S=u.createElement(LL,Object.assign({},P))}let E;if(x){const P=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},zL(O,$)),Gh(d));E=u.createElement(FL,Object.assign({},P))}T=u.createElement("div",{className:`${b}-content`},S,E)}const R=ae(b,{[`${b}-with-avatar`]:O,[`${b}-active`]:c,[`${b}-rtl`]:m==="rtl",[`${b}-round`]:f},h,r,o,v,C);return y(u.createElement("div",{className:R,style:Object.assign(Object.assign({},g),i)},w,T))}return a??null};la.Button=_L;la.Avatar=TL;la.Input=AL;la.Image=ML;la.Node=NL;function e4(){}const HL=u.createContext({add:e4,remove:e4});function dw(e){const t=u.useContext(HL),n=u.useRef(null);return Gt(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const t4=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(hc);return V.createElement(Dt,Object.assign({onClick:n},e),t)},n4=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=u.useContext(hc);return V.createElement(Dt,Object.assign({},H5(n),{loading:e,onClick:o},t),r)};function fw(e,t){return V.createElement("span",{className:`${e}-close-x`},t||V.createElement(Jo,{className:`${e}-close-icon`}))}const pw=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:d}=e,[c]=ei("Modal",J8()),f=t||(c==null?void 0:c.okText),p=r||(c==null?void 0:c.cancelText),m={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:i,onCancel:a},h=V.useMemo(()=>m,Ne(Object.values(m)));let g;return typeof d=="function"||typeof d>"u"?(g=V.createElement(V.Fragment,null,V.createElement(t4,null),V.createElement(n4,null)),typeof d=="function"&&(g=d(g,{OkBtn:n4,CancelBtn:t4})),g=V.createElement(ew,{value:h},g)):g=d,V.createElement(r5,{disabled:!1},g)},VL=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},UL=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},WL=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},p1=(e,t)=>WL(e,t),KL=(e,t,n)=>({[`@media (min-width: ${be(t)})`]:Object.assign({},p1(e,n))}),qL=()=>({}),GL=()=>({}),XL=Zt("Grid",VL,qL),hw=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),YL=Zt("Grid",e=>{const t=Pt(e,{gridColumns:24}),n=hw(t);return delete n.xs,[UL(t),p1(t,""),p1(t,"-xs"),Object.keys(n).map(r=>KL(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},GL);function r4(e){return{position:e,inset:0}}const mw=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},r4("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},r4("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:g2(e)}]},QL=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${be(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},$n(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${be(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:be(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},vi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${be(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
219
|
+
${t}-body,
|
|
220
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ZL=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},JL=e=>{const{componentCls:t}=e,n=hw(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${be(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Ne(r))}}},gw=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Pt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},vw=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${be(e.padding)} ${be(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${be(e.paddingXS)} ${be(e.padding)}`:0,footerBorderTop:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${be(e.padding*2)} ${be(e.padding*2)} ${be(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),yw=Zt("Modal",e=>{const t=gw(e);return[QL(t),ZL(t),mw(t),X0(t,"zoom"),JL(t)]},vw,{unitless:{titleLineHeight:!0}});var eD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h1;const tD=e=>{h1={x:e.pageX,y:e.pageY},setTimeout(()=>{h1=null},100)};xL()&&document.documentElement.addEventListener("click",tD,!0);const bw=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:s,focusTriggerAfterClose:l=!0,style:d,visible:c,width:f=520,footer:p,classNames:m,styles:h,children:g,loading:b,confirmLoading:y,zIndex:v,mousePosition:C,onOk:O,onCancel:$,destroyOnHidden:x,destroyOnClose:w}=e,T=eD(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:R,getPrefixCls:S,direction:E,modal:P}=u.useContext(bt),I=ce=>{y||$==null||$(ce)},k=ce=>{O==null||O(ce)},N=S("modal",t),M=S(),j=ur(N),[A,D,L]=yw(N,j),z=ae(i,{[`${N}-centered`]:a??(P==null?void 0:P.centered),[`${N}-wrap-rtl`]:E==="rtl"}),q=p!==null&&!b?u.createElement(pw,Object.assign({},e,{onOk:k,onCancel:I})):null,[U,H,K,X]=x2(el(e),el(P),{closable:!0,closeIcon:u.createElement(Jo,{className:`${N}-close-icon`}),closeIconRender:ce=>fw(N,ce)}),Z=dw(`.${N}-content`),[se,ie]=hl("Modal",v),[me,ue]=u.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),re=u.useMemo(()=>{const ce={};return ue&&Object.keys(ue).forEach(fe=>{const de=ue[fe];de!==void 0&&(ce[`--${N}-${fe}-width`]=typeof de=="number"?`${de}px`:de)}),ce},[ue]);return A(u.createElement(Bu,{form:!0,space:!0},u.createElement(U0.Provider,{value:ie},u.createElement(b2,Object.assign({width:me},T,{zIndex:se,getContainer:s===void 0?R:s,prefixCls:N,rootClassName:ae(D,r,L,j),footer:q,visible:o??c,mousePosition:C??h1,onClose:I,closable:U&&Object.assign({disabled:K,closeIcon:H},X),closeIcon:H,focusTriggerAfterClose:l,transitionName:hr(M,"zoom",e.transitionName),maskTransitionName:hr(M,"fade",e.maskTransitionName),className:ae(D,n,P==null?void 0:P.className),style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),d),re),classNames:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.classNames),m),{wrapper:ae(z,m==null?void 0:m.wrapper)}),styles:Object.assign(Object.assign({},P==null?void 0:P.styles),h),panelRef:Z,destroyOnClose:x??w}),b?u.createElement(la,{active:!0,title:!1,paragraph:{rows:4},className:`${N}-body-skeleton`}):g))))},nD=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:d}=e,c=`${t}-confirm`;return{[c]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:Object.assign({},sa()),[`&${t} ${t}-body`]:{padding:d},[`${c}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${c}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${be(e.marginSM)})`},[`${e.iconCls} + ${c}-paragraph`]:{maxWidth:`calc(100% - ${be(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${c}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${c}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${c}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${c}-error ${c}-body > ${e.iconCls}`]:{color:e.colorError},[`${c}-warning ${c}-body > ${e.iconCls},
|
|
221
|
+
${c}-confirm ${c}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${c}-info ${c}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${c}-success ${c}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},rD=dc(["Modal","confirm"],e=>{const t=gw(e);return[nD(t)]},vw,{order:-1e3});var oD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Cw(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:d}=e,c=oD(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(a){case"info":f=u.createElement(Wv,null);break;case"success":f=u.createElement(uc,null);break;case"error":f=u.createElement(aa,null);break;default:f=u.createElement(E0,null)}const p=s??a==="confirm",m=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=ei("Modal"),g=d||h,b=r||(p?g==null?void 0:g.okText:g==null?void 0:g.justOkText),y=o||(g==null?void 0:g.cancelText),v=Object.assign({autoFocusButton:m,cancelTextLocale:y,okTextLocale:b,mergedOkCancel:p},c),C=u.useMemo(()=>v,Ne(Object.values(v))),O=u.createElement(u.Fragment,null,u.createElement(_3,null),u.createElement(k3,null)),$=e.title!==void 0&&e.title!==null,x=`${i}-body`;return u.createElement("div",{className:`${i}-body-wrapper`},u.createElement("div",{className:ae(x,{[`${x}-has-title`]:$})},f,u.createElement("div",{className:`${i}-paragraph`},$&&u.createElement("span",{className:`${i}-title`},e.title),u.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?u.createElement(ew,{value:C},u.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(O,{OkBtn:k3,CancelBtn:_3}):O)):l,u.createElement(rD,{prefixCls:t}))}const iD=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:d=!1,onConfirm:c,styles:f}=e,p=`${i}-confirm`,m=e.width||416,h=e.style||{},g=e.mask===void 0?!0:e.mask,b=e.maskClosable===void 0?!1:e.maskClosable,y=ae(p,`${p}-${e.type}`,{[`${p}-rtl`]:o==="rtl"},e.className),[,v]=Tr(),C=u.useMemo(()=>n!==void 0?n:v.zIndexPopupBase+f2,[n,v]);return u.createElement(bw,Object.assign({},e,{className:y,wrapClassName:ae({[`${p}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),c==null||c(!1)},title:"",footer:null,transitionName:hr(s||"","zoom",e.transitionName),maskTransitionName:hr(s||"","fade",e.maskTransitionName),mask:g,maskClosable:b,style:h,styles:Object.assign({body:l,mask:r},f),width:m,zIndex:C,closable:d}),u.createElement(Cw,Object.assign({},e,{confirmPrefixCls:p})))},xw=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return u.createElement(_r,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},u.createElement(iD,Object.assign({},e)))},ba=[];let Sw="";function ww(){return Sw}const aD=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=J8(),s=u.useContext(bt),l=ww()||s.getPrefixCls(),d=r||`${l}-modal`;let c=o;return c===!1&&(c=void 0),V.createElement(xw,Object.assign({},e,{rootPrefixCls:l,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:c}))};function yc(e){const t=c2(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o,i;function a(){for(var c,f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];if(p.some(b=>b==null?void 0:b.triggerCancel)){var g;(c=e.onCancel)===null||c===void 0||(g=c).call.apply(g,[e,()=>{}].concat(Ne(p.slice(1))))}for(let b=0;b<ba.length;b++)if(ba[b]===l){ba.splice(b,1);break}i()}function s(c){clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,ww()),p=t.getIconPrefixCls(),m=t.getTheme(),h=V.createElement(aD,Object.assign({},c));i=K0()(V.createElement(_r,{prefixCls:f,iconPrefixCls:p,theme:m},t.holderRender?t.holderRender(h):h),n)})}function l(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function d(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),s(r)}return s(r),ba.push(l),{destroy:l,update:d}}function Ew(e){return Object.assign(Object.assign({},e),{type:"warning"})}function $w(e){return Object.assign(Object.assign({},e),{type:"info"})}function Rw(e){return Object.assign(Object.assign({},e),{type:"success"})}function Ow(e){return Object.assign(Object.assign({},e),{type:"error"})}function Pw(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function sD(e){let{rootPrefixCls:t}=e;Sw=t}var lD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uD=(e,t)=>{var n,{afterClose:r,config:o}=e,i=lD(e,["afterClose","config"]);const[a,s]=u.useState(!0),[l,d]=u.useState(o),{direction:c,getPrefixCls:f}=u.useContext(bt),p=f("modal"),m=f(),h=()=>{var v;r(),(v=l.afterClose)===null||v===void 0||v.call(l)},g=function(){var v;s(!1);for(var C=arguments.length,O=new Array(C),$=0;$<C;$++)O[$]=arguments[$];if(O.some(T=>T==null?void 0:T.triggerCancel)){var w;(v=l.onCancel)===null||v===void 0||(w=v).call.apply(w,[l,()=>{}].concat(Ne(O.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:g,update:v=>{d(C=>Object.assign(Object.assign({},C),v))}}));const b=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=ei("Modal",gi.Modal);return u.createElement(xw,Object.assign({prefixCls:p,rootPrefixCls:m},l,{close:g,open:a,afterClose:h,okText:l.okText||(b?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||c,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},i))},cD=u.forwardRef(uD);let o4=0;const dD=u.memo(u.forwardRef((e,t)=>{const[n,r]=rN();return u.useImperativeHandle(t,()=>({patchElement:r}),[]),u.createElement(u.Fragment,null,n)}));function fD(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(Ne(t).forEach(a=>{a()}),n([]))},[t]);const r=u.useCallback(i=>function(s){var l;o4+=1;const d=u.createRef();let c;const f=new Promise(b=>{c=b});let p=!1,m;const h=u.createElement(cD,{key:`modal-${o4}`,config:i(s),ref:d,afterClose:()=>{m==null||m()},isSilent:()=>p,onConfirm:b=>{c(b)}});return m=(l=e.current)===null||l===void 0?void 0:l.patchElement(h),m&&ba.push(m),{destroy:()=>{function b(){var y;(y=d.current)===null||y===void 0||y.destroy()}d.current?b():n(y=>[].concat(Ne(y),[b]))},update:b=>{function y(){var v;(v=d.current)===null||v===void 0||v.update(b)}d.current?y():n(v=>[].concat(Ne(v),[y]))},then:b=>(p=!0,f.then(b))}},[]);return[u.useMemo(()=>({info:r($w),success:r(Rw),error:r(Ow),warning:r(Ew),confirm:r(Pw)}),[]),u.createElement(dD,{key:"modal-holder",ref:e})]}const pD=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Ot("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Ot("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Ot("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Ot("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},hD=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],mD={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},gD=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[mD[t]]:{value:0,_skip_check_:!0}}}}},vD=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},yD=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},bD=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},vD(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},yD(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},hD.map(n=>gD(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Iw=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:d,colorError:c,colorTextHeading:f,notificationBg:p,notificationPadding:m,notificationMarginEdge:h,notificationProgressBg:g,notificationProgressHeight:b,fontSize:y,lineHeight:v,width:C,notificationIconSize:O,colorText:$}=e,x=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:r,[x]:{padding:m,width:C,maxWidth:`calc(100vw - ${be(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:v,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:y,color:$},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(O).equal(),fontSize:o},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(O).equal(),fontSize:y},[`${x}-icon`]:{position:"absolute",fontSize:O,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:c}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},vi(e)),[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${be(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:b,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${x}-actions`]:{float:"right",marginTop:e.marginSM}}},CD=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new Ot("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},$n(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Iw(e))}}]},Tw=e=>({zIndexPopup:e.zIndexPopupBase+f2+50,width:384}),_w=e=>{const t=e.paddingMD,n=e.paddingLG;return Pt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},kw=Zt("Notification",e=>{const t=_w(e);return[CD(t),pD(t),bD(t)]},Tw),xD=dc(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=_w(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Iw(n)),{width:n.width,maxWidth:`calc(100vw - ${be(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Tw);var SD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function S2(e,t){return t===null||t===!1?null:t||u.createElement(Jo,{className:`${e}-close-icon`})}const wD={success:uc,info:Wv,error:aa,warning:E0},Mw=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,actions:a,role:s="alert"}=e;let l=null;return n?l=u.createElement("span",{className:`${t}-icon`},n):r&&(l=u.createElement(wD[r]||null,{className:ae(`${t}-icon`,`${t}-icon-${r}`)})),u.createElement("div",{className:ae({[`${t}-with-icon`]:l}),role:s},l,u.createElement("div",{className:`${t}-message`},o),u.createElement("div",{className:`${t}-description`},i),a&&u.createElement("div",{className:`${t}-actions`},a))},ED=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,actions:l,closable:d=!0,closeIcon:c,className:f}=e,p=SD(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:m}=u.useContext(bt),h=l??s,g=t||m("notification"),b=`${g}-notice`,y=ur(g),[v,C,O]=kw(g,y);return v(u.createElement("div",{className:ae(`${b}-pure-panel`,C,n,O,y)},u.createElement(xD,{prefixCls:g}),u.createElement(d2,Object.assign({},p,{prefixCls:g,eventKey:"pure",duration:null,closable:d,className:ae({notificationClassName:f}),closeIcon:S2(g,c),content:u.createElement(Mw,{prefixCls:b,icon:r,type:o,message:i,description:a,actions:h})}))))};function $D(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function RD(e){return{motionName:`${e}-fade`}}function OD(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var PD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const i4=24,ID=4.5,TD="topRight",_D=e=>{let{children:t,prefixCls:n}=e;const r=ur(n),[o,i,a]=kw(n,r);return o(V.createElement(T5,{classNames:{list:ae(i,a,r)}},t))},kD=(e,t)=>{let{prefixCls:n,key:r}=t;return V.createElement(_D,{prefixCls:n,key:r},e)},MD=V.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:d,duration:c,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:m,getPopupContainer:h,notification:g,direction:b}=u.useContext(bt),[,y]=Tr(),v=o||m("notification"),C=T=>$D(T,n??i4,r??i4),O=()=>ae({[`${v}-rtl`]:s??b==="rtl"}),$=()=>RD(v),[x,w]=_5({prefixCls:v,style:C,className:O,motion:$,closable:!0,closeIcon:S2(v),duration:c??ID,getContainer:()=>(i==null?void 0:i())||(h==null?void 0:h())||document.body,maxCount:a,pauseOnHover:f,showProgress:p,onAllRemoved:l,renderNotifications:kD,stack:d===!1?!1:{threshold:typeof d=="object"?d==null?void 0:d.threshold:void 0,offset:8,gap:y.margin}});return V.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:v,notification:g})),w});function Aw(e){const t=V.useRef(null);return D0(),[V.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:d,prefixCls:c,notification:f}=t.current,p=`${c}-notice`,{message:m,description:h,icon:g,type:b,btn:y,actions:v,className:C,style:O,role:$="alert",closeIcon:x,closable:w}=s,T=PD(s,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),R=v??y,S=S2(p,OD(x,e,f));return d(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:TD},T),{content:V.createElement(Mw,{prefixCls:p,icon:g,type:b,message:m,description:h,actions:R,role:$}),className:ae(b&&`${p}-${b}`,C,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),O),closeIcon:S,closable:w??!!S}))},i={open:r,destroy:s=>{var l,d;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(d=t.current)===null||d===void 0||d.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),i},[]),V.createElement(MD,Object.assign({key:"notification-holder"},e,{ref:t}))]}function AD(e){return Aw(e)}const Nw=V.createContext({});function jw(e){return t=>u.createElement(_r,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const ND=(e,t,n,r,o)=>jw(a=>{const{prefixCls:s,style:l}=a,d=u.useRef(null),[c,f]=u.useState(0),[p,m]=u.useState(0),[h,g]=nn(!1,{value:a.open}),{getPrefixCls:b}=u.useContext(bt),y=b("select",s);u.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const O=new ResizeObserver(x=>{const w=x[0].target;f(w.offsetHeight+8),m(w.offsetWidth)}),$=setInterval(()=>{var x;const w=`.${y}-dropdown`,T=(x=d.current)===null||x===void 0?void 0:x.querySelector(w);T&&(clearInterval($),O.observe(T))},10);return()=>{clearInterval($),O.disconnect()}}},[]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>d.current});n&&(v=n(v)),Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:c,position:"relative",minWidth:p};return u.createElement("div",{ref:d,style:C},u.createElement(e,Object.assign({},v)))}),w2=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var ip=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(o):r;return u.createElement("span",{className:n,onMouseDown:function(c){c.preventDefault(),a==null||a(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:u.createElement("span",{className:ae(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},i))},jD=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,d=V.useMemo(function(){if(nt(o)==="object")return o.clearIcon;if(i)return i},[o,i]),c=V.useMemo(function(){return!!(!a&&o&&(r.length||s)&&!(l==="combobox"&&s===""))},[o,a,r.length,s,l]);return{allowClear:c,clearIcon:V.createElement(ip,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:d},"×")}},Fw=u.createContext(null);function Lw(){return u.useContext(Fw)}function FD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=ge(t,2),r=n[0],o=n[1],i=u.useRef(null),a=function(){window.clearTimeout(i.current)};u.useEffect(function(){return a},[]);var s=function(d,c){a(),i.current=window.setTimeout(function(){o(d),c&&c()},e)};return[r,s,a]}function Dw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function LD(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(l)&&d!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function DD(e){return e&&![Ze.ESC,Ze.SHIFT,Ze.BACKSPACE,Ze.TAB,Ze.WIN_KEY,Ze.ALT,Ze.META,Ze.WIN_KEY_RIGHT,Ze.CTRL,Ze.SEMICOLON,Ze.EQUALS,Ze.CAPS_LOCK,Ze.CONTEXT_MENU,Ze.F1,Ze.F2,Ze.F3,Ze.F4,Ze.F5,Ze.F6,Ze.F7,Ze.F8,Ze.F9,Ze.F10,Ze.F11,Ze.F12].includes(e)}var BD=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Xa=void 0;function zD(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,d=e.itemKey,c=e.className,f=e.style,p=e.children,m=e.display,h=e.order,g=e.component,b=g===void 0?"div":g,y=gt(e,BD),v=a&&!m;function C(T){l(d,T)}u.useEffect(function(){return function(){C(null)}},[]);var O=i&&o!==Xa?i(o,{index:h}):p,$;r||($={opacity:v?0:1,height:v?0:Xa,overflowY:v?"hidden":Xa,order:a?h:Xa,pointerEvents:v?"none":Xa,position:v?"absolute":Xa});var x={};v&&(x["aria-hidden"]=!0);var w=u.createElement(b,we({className:ae(!r&&n,c),style:Y(Y({},$),f)},x,y,{ref:t}),O);return a&&(w=u.createElement(zr,{onResize:function(R){var S=R.offsetWidth;C(S)},disabled:s},w)),w}var cu=u.forwardRef(zD);cu.displayName="Item";function HD(e){if(typeof MessageChannel>"u")en(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function VD(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],HD(function(){fo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Al(e,t){var n=u.useState(t),r=ge(n,2),o=r[0],i=r[1],a=Gt(function(s){e(function(){i(s)})});return[o,a]}var zf=V.createContext(null),UD=["component"],WD=["className"],KD=["className"],qD=function(t,n){var r=u.useContext(zf);if(!r){var o=t.component,i=o===void 0?"div":o,a=gt(t,UD);return u.createElement(i,we({},a,{ref:n}))}var s=r.className,l=gt(r,WD),d=t.className,c=gt(t,KD);return u.createElement(zf.Provider,{value:null},u.createElement(cu,we({ref:n,className:ae(s,d)},l,c)))},Bw=u.forwardRef(qD);Bw.displayName="RawItem";var GD=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],zw="responsive",Hw="invalidate";function XD(e){return"+ ".concat(e.length," ...")}function YD(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,d=e.itemWidth,c=d===void 0?10:d,f=e.ssr,p=e.style,m=e.className,h=e.maxCount,g=e.renderRest,b=e.renderRawRest,y=e.suffix,v=e.component,C=v===void 0?"div":v,O=e.itemComponent,$=e.onVisibleChange,x=gt(e,GD),w=f==="full",T=VD(),R=Al(T,null),S=ge(R,2),E=S[0],P=S[1],I=E||0,k=Al(T,new Map),N=ge(k,2),M=N[0],j=N[1],A=Al(T,0),D=ge(A,2),L=D[0],z=D[1],q=Al(T,0),U=ge(q,2),H=U[0],K=U[1],X=Al(T,0),Z=ge(X,2),se=Z[0],ie=Z[1],me=u.useState(null),ue=ge(me,2),re=ue[0],ce=ue[1],fe=u.useState(null),de=ge(fe,2),ve=de[0],ye=de[1],Se=u.useMemo(function(){return ve===null&&w?Number.MAX_SAFE_INTEGER:ve||0},[ve,E]),Pe=u.useState(!1),Ie=ge(Pe,2),$e=Ie[0],Fe=Ie[1],Ee="".concat(r,"-item"),ke=Math.max(L,H),Be=h===zw,je=i.length&&Be,We=h===Hw,Ye=je||typeof h=="number"&&i.length>h,Xe=u.useMemo(function(){var Ge=i;return je?E===null&&w?Ge=i:Ge=i.slice(0,Math.min(i.length,I/c)):typeof h=="number"&&(Ge=i.slice(0,h)),Ge},[i,c,E,h,je]),it=u.useMemo(function(){return je?i.slice(Se+1):i.slice(Xe.length)},[i,Xe,je,Se]),et=u.useCallback(function(Ge,ze){var Le;return typeof l=="function"?l(Ge):(Le=l&&(Ge==null?void 0:Ge[l]))!==null&&Le!==void 0?Le:ze},[l]),ct=u.useCallback(a||function(Ge){return Ge},[a]);function He(Ge,ze,Le){ve===Ge&&(ze===void 0||ze===re)||(ye(Ge),Le||(Fe(Ge<i.length-1),$==null||$(Ge)),ze!==void 0&&ce(ze))}function he(Ge,ze){P(ze.clientWidth)}function Q(Ge,ze){j(function(Le){var Je=new Map(Le);return ze===null?Je.delete(Ge):Je.set(Ge,ze),Je})}function ee(Ge,ze){K(ze),z(H)}function ne(Ge,ze){ie(ze)}function xe(Ge){return M.get(et(Xe[Ge],Ge))}Ut(function(){if(I&&typeof ke=="number"&&Xe){var Ge=se,ze=Xe.length,Le=ze-1;if(!ze){He(0,null);return}for(var Je=0;Je<ze;Je+=1){var Ct=xe(Je);if(w&&(Ct=Ct||0),Ct===void 0){He(Je-1,void 0,!0);break}if(Ge+=Ct,Le===0&&Ge<=I||Je===Le-1&&Ge+xe(Le)<=I){He(Le,null);break}else if(Ge+ke>I){He(Je-1,Ge-Ct-se+H);break}}y&&xe(0)+se>I&&ce(null)}},[I,M,H,se,et,Xe]);var Re=$e&&!!it.length,De={};re!==null&&je&&(De={position:"absolute",left:re,top:0});var Qe={prefixCls:Ee,responsive:je,component:O,invalidate:We},rt=s?function(Ge,ze){var Le=et(Ge,ze);return u.createElement(zf.Provider,{key:Le,value:Y(Y({},Qe),{},{order:ze,item:Ge,itemKey:Le,registerSize:Q,display:ze<=Se})},s(Ge,ze))}:function(Ge,ze){var Le=et(Ge,ze);return u.createElement(cu,we({},Qe,{order:ze,key:Le,item:Ge,renderItem:ct,itemKey:Le,registerSize:Q,display:ze<=Se}))},dt={order:Re?Se:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:ee,display:Re},pt=g||XD,vt=b?u.createElement(zf.Provider,{value:Y(Y({},Qe),dt)},b(it)):u.createElement(cu,we({},Qe,dt),typeof pt=="function"?pt(it):pt),at=u.createElement(C,we({className:ae(!We&&r,m),style:p,ref:t},x),Xe.map(rt),Ye?vt:null,y&&u.createElement(cu,we({},Qe,{responsive:Be,responsiveDisabled:!je,order:Se,className:"".concat(Ee,"-suffix"),registerSize:ne,display:!0,style:De}),y));return Be?u.createElement(zr,{onResize:he,disabled:!je},at):at}var Go=u.forwardRef(YD);Go.displayName="Overflow";Go.Item=Bw;Go.RESPONSIVE=zw;Go.INVALIDATE=Hw;function QD(e,t,n){var r=Y(Y({},e),t);return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(r[o]=function(){for(var a,s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return i.apply(void 0,l),(a=e[o])===null||a===void 0?void 0:a.call.apply(a,[e].concat(l))})}),r}var ZD=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],JD=function(t,n){var r=t.prefixCls,o=t.id,i=t.inputElement,a=t.autoFocus,s=t.autoComplete,l=t.editable,d=t.activeDescendantId,c=t.value,f=t.open,p=t.attrs,m=gt(t,ZD),h=i||u.createElement("input",null),g=h,b=g.ref,y=g.props;return"maxLength"in h.props,h=u.cloneElement(h,Y(Y(Y({type:"search"},QD(m,y)),{},{id:o,ref:Xr(n,b),autoComplete:s||"off",autoFocus:a,className:ae("".concat(r,"-selection-search-input"),y==null?void 0:y.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?d:void 0},p),{},{value:l?c:"",readOnly:!l,unselectable:l?null:"on",style:Y(Y({},y.style),{},{opacity:l?null:0})})),h},Vw=u.forwardRef(JD);function Uw(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var eB=typeof window<"u"&&window.document&&window.document.documentElement,tB=eB;function nB(e){return e!=null}function rB(e){return!e&&e!==0}function a4(e){return["string","number"].includes(nt(e))}function Ww(e){var t=void 0;return e&&(a4(e.title)?t=e.title.toString():a4(e.label)&&(t=e.label.toString())),t}function oB(e,t){tB?u.useLayoutEffect(e,t):u.useEffect(e,t)}function iB(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var s4=function(t){t.preventDefault(),t.stopPropagation()},aB=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,d=t.placeholder,c=t.disabled,f=t.mode,p=t.showSearch,m=t.autoFocus,h=t.autoComplete,g=t.activeDescendantId,b=t.tabIndex,y=t.removeIcon,v=t.maxTagCount,C=t.maxTagTextLength,O=t.maxTagPlaceholder,$=O===void 0?function(fe){return"+ ".concat(fe.length," ...")}:O,x=t.tagRender,w=t.onToggleOpen,T=t.onRemove,R=t.onInputChange,S=t.onInputPaste,E=t.onInputKeyDown,P=t.onInputMouseDown,I=t.onInputCompositionStart,k=t.onInputCompositionEnd,N=t.onInputBlur,M=u.useRef(null),j=u.useState(0),A=ge(j,2),D=A[0],L=A[1],z=u.useState(!1),q=ge(z,2),U=q[0],H=q[1],K="".concat(r,"-selection"),X=i||f==="multiple"&&s===!1||f==="tags"?a:"",Z=f==="tags"||f==="multiple"&&s===!1||p&&(i||U);oB(function(){L(M.current.scrollWidth)},[X]);var se=function(de,ve,ye,Se,Pe){return u.createElement("span",{title:Ww(de),className:ae("".concat(K,"-item"),J({},"".concat(K,"-item-disabled"),ye))},u.createElement("span",{className:"".concat(K,"-item-content")},ve),Se&&u.createElement(ip,{className:"".concat(K,"-item-remove"),onMouseDown:s4,onClick:Pe,customizeIcon:y},"×"))},ie=function(de,ve,ye,Se,Pe,Ie){var $e=function(Ee){s4(Ee),w(!i)};return u.createElement("span",{onMouseDown:$e},x({label:ve,value:de,disabled:ye,closable:Se,onClose:Pe,isMaxTag:!!Ie}))},me=function(de){var ve=de.disabled,ye=de.label,Se=de.value,Pe=!c&&!ve,Ie=ye;if(typeof C=="number"&&(typeof ye=="string"||typeof ye=="number")){var $e=String(Ie);$e.length>C&&(Ie="".concat($e.slice(0,C),"..."))}var Fe=function(ke){ke&&ke.stopPropagation(),T(de)};return typeof x=="function"?ie(Se,Ie,ve,Pe,Fe):se(de,Ie,ve,Pe,Fe)},ue=function(de){if(!o.length)return null;var ve=typeof $=="function"?$(de):$;return typeof x=="function"?ie(void 0,ve,!1,!1,void 0,!0):se({title:ve},ve,!1)},re=u.createElement("div",{className:"".concat(K,"-search"),style:{width:D},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},u.createElement(Vw,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:c,autoFocus:m,autoComplete:h,editable:Z,activeDescendantId:g,value:X,onKeyDown:E,onMouseDown:P,onChange:R,onPaste:S,onCompositionStart:I,onCompositionEnd:k,onBlur:N,tabIndex:b,attrs:lr(t,!0)}),u.createElement("span",{ref:M,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},X," ")),ce=u.createElement(Go,{prefixCls:"".concat(K,"-overflow"),data:o,renderItem:me,renderRest:ue,suffix:re,itemKey:iB,maxCount:v});return u.createElement("span",{className:"".concat(K,"-wrap")},ce,!o.length&&!X&&u.createElement("span",{className:"".concat(K,"-placeholder")},d))},sB=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,d=t.activeDescendantId,c=t.mode,f=t.open,p=t.values,m=t.placeholder,h=t.tabIndex,g=t.showSearch,b=t.searchValue,y=t.activeValue,v=t.maxLength,C=t.onInputKeyDown,O=t.onInputMouseDown,$=t.onInputChange,x=t.onInputPaste,w=t.onInputCompositionStart,T=t.onInputCompositionEnd,R=t.onInputBlur,S=t.title,E=u.useState(!1),P=ge(E,2),I=P[0],k=P[1],N=c==="combobox",M=N||g,j=p[0],A=b||"";N&&y&&!I&&(A=y),u.useEffect(function(){N&&k(!1)},[N,y]);var D=c!=="combobox"&&!f&&!g?!1:!!A,L=S===void 0?Ww(j):S,z=u.useMemo(function(){return j?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:D?{visibility:"hidden"}:void 0},m)},[j,D,m,r]);return u.createElement("span",{className:"".concat(r,"-selection-wrap")},u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(Vw,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:d,value:A,onKeyDown:C,onMouseDown:O,onChange:function(U){k(!0),$(U)},onPaste:x,onCompositionStart:w,onCompositionEnd:T,onBlur:R,tabIndex:h,attrs:lr(t,!0),maxLength:N?v:void 0})),!N&&j?u.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:D?{visibility:"hidden"}:void 0},j.label):null,z)},lB=function(t,n){var r=u.useRef(null),o=u.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,d=t.tokenWithEnter,c=t.disabled,f=t.prefix,p=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,b=t.onInputKeyDown,y=t.onInputBlur,v=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(L){r.current.focus(L)},blur:function(){r.current.blur()}}});var C=Dw(0),O=ge(C,2),$=O[0],x=O[1],w=function(L){var z=L.which,q=r.current instanceof HTMLTextAreaElement;!q&&a&&(z===Ze.UP||z===Ze.DOWN)&&L.preventDefault(),b&&b(L),z===Ze.ENTER&&s==="tags"&&!o.current&&!a&&(h==null||h(L.target.value)),!(q&&!a&&~[Ze.UP,Ze.DOWN,Ze.LEFT,Ze.RIGHT].indexOf(z))&&DD(z)&&g(!0)},T=function(){x(!0)},R=u.useRef(null),S=function(L){m(L,!0,o.current)!==!1&&g(!0)},E=function(){o.current=!0},P=function(L){o.current=!1,s!=="combobox"&&S(L.target.value)},I=function(L){var z=L.target.value;if(d&&R.current&&/[\r\n]/.test(R.current)){var q=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(q,R.current)}R.current=null,S(z)},k=function(L){var z=L.clipboardData,q=z==null?void 0:z.getData("text");R.current=q||""},N=function(L){var z=L.target;if(z!==r.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){r.current.focus()}):r.current.focus()}},M=function(L){var z=$();L.target!==r.current&&!z&&!(s==="combobox"&&c)&&L.preventDefault(),(s!=="combobox"&&(!l||!z)||!a)&&(a&&p!==!1&&m("",!0,!1),g())},j={inputRef:r,onInputKeyDown:w,onInputMouseDown:T,onInputChange:I,onInputPaste:k,onInputCompositionStart:E,onInputCompositionEnd:P,onInputBlur:y},A=s==="multiple"||s==="tags"?u.createElement(aB,we({},t,j)):u.createElement(sB,we({},t,j));return u.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:N,onMouseDown:M},f&&u.createElement("div",{className:"".concat(i,"-prefix")},f),A)},uB=u.forwardRef(lB);function cB(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,d=l===void 0?0:l,c=o.y,f=c===void 0?0:c,p=u.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],b=h[0],y=h[1],v=g[0],C=g[1];b===v||!["t","b"].includes(b)?m.top=f:b==="t"?m.top=0:m.bottom=0,y===C||!["l","r"].includes(y)?m.left=d:y==="l"?m.left=0:m.right=0}return u.createElement("div",{ref:p,className:ae("".concat(t,"-arrow"),a),style:m},s)}function dB(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u.createElement(sr,we({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return u.createElement("div",{style:{zIndex:r},className:ae("".concat(t,"-mask"),s)})}):null}var fB=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),pB=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,d=e.keepDom,c=e.fresh,f=e.onClick,p=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,b=e.motion,y=e.maskMotion,v=e.forceRender,C=e.getPopupContainer,O=e.autoDestroy,$=e.portal,x=e.zIndex,w=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,S=e.onPointerDownCapture,E=e.ready,P=e.offsetX,I=e.offsetY,k=e.offsetR,N=e.offsetB,M=e.onAlign,j=e.onPrepare,A=e.stretch,D=e.targetWidth,L=e.targetHeight,z=typeof n=="function"?n():n,q=l||d,U=(C==null?void 0:C.length)>0,H=u.useState(!C||!U),K=ge(H,2),X=K[0],Z=K[1];if(Ut(function(){!X&&U&&a&&Z(!0)},[X,U,a]),!X)return null;var se="auto",ie={left:"-1000vw",top:"-1000vh",right:se,bottom:se};if(E||!l){var me,ue=g.points,re=g.dynamicInset||((me=g._experimental)===null||me===void 0?void 0:me.dynamicInset),ce=re&&ue[0][1]==="r",fe=re&&ue[0][0]==="b";ce?(ie.right=k,ie.left=se):(ie.left=P,ie.right=se),fe?(ie.bottom=N,ie.top=se):(ie.top=I,ie.bottom=se)}var de={};return A&&(A.includes("height")&&L?de.height=L:A.includes("minHeight")&&L&&(de.minHeight=L),A.includes("width")&&D?de.width=D:A.includes("minWidth")&&D&&(de.minWidth=D)),l||(de.pointerEvents="none"),u.createElement($,{open:v||q,getContainer:C&&function(){return C(a)},autoDestroy:O},u.createElement(dB,{prefixCls:o,open:l,zIndex:x,mask:p,motion:y}),u.createElement(zr,{onResize:M,disabled:!l},function(ve){return u.createElement(sr,we({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:j,onEnterPrepare:j,visible:l,onVisibleChanged:function(Se){var Pe;b==null||(Pe=b.onVisibleChanged)===null||Pe===void 0||Pe.call(b,Se),s(Se)}}),function(ye,Se){var Pe=ye.className,Ie=ye.style,$e=ae(o,Pe,r);return u.createElement("div",{ref:Xr(ve,t,Se),className:$e,style:Y(Y(Y(Y({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ie),de),Ie),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:w,onMouseLeave:T,onPointerEnter:R,onClick:f,onPointerDownCapture:S},m&&u.createElement(cB,{prefixCls:o,arrow:m,arrowPos:h,align:g}),u.createElement(fB,{cache:!l&&!c},z))})}))}),hB=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ba(n),i=u.useCallback(function(s){Yv(t,r?r(s):s)},[r]),a=Ci(i,fl(n));return o?u.cloneElement(n,{ref:a}):n}),l4=u.createContext(null);function u4(e){return e?Array.isArray(e)?e:[e]:[]}function mB(e,t,n,r){return u.useMemo(function(){var o=u4(n??t),i=u4(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function gB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function vB(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(gB((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function c4(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function bc(e){return e.ownerDocument.defaultView}function m1(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=bc(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Nl(e){return zu(parseFloat(e),0)}function d4(e,t){var n=Y({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=bc(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,d=o.borderLeftWidth,c=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,m=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,b=Nl(s),y=Nl(l),v=Nl(d),C=Nl(c),O=zu(Math.round(f.width/h*1e3)/1e3),$=zu(Math.round(f.height/p*1e3)/1e3),x=(h-g-v-C)*O,w=(p-m-b-y)*$,T=b*$,R=y*$,S=v*O,E=C*O,P=0,I=0;if(i==="clip"){var k=Nl(a);P=k*O,I=k*$}var N=f.x+S-P,M=f.y+T-I,j=N+f.width+2*P-S-E-x,A=M+f.height+2*I-T-R-w;n.left=Math.max(n.left,N),n.top=Math.max(n.top,M),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,A)}}),n}function f4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function p4(e,t){var n=t||[],r=ge(n,2),o=r[0],i=r[1];return[f4(e.width,o),f4(e.height,i)]}function h4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ya(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function wi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function yB(e,t,n,r,o,i,a){var s=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=ge(s,2),d=l[0],c=l[1],f=u.useRef(0),p=u.useMemo(function(){return t?m1(t):[]},[t]),m=u.useRef({}),h=function(){m.current={}};e||h();var g=Gt(function(){if(t&&n&&e){let dr=function(Va,xi){var Ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ke,Nc=H.x+Va,jc=H.y+xi,Gp=Nc+ce,mt=jc+re,Et=Math.max(Nc,Ua.left),pn=Math.max(jc,Ua.top),Rn=Math.min(Gp,Ua.right),hn=Math.min(mt,Ua.bottom);return Math.max(0,(Rn-Et)*(hn-pn))},Ha=function(){G=H.y+Le,F=G+re,W=H.x+ze,oe=W+ce};var vy=dr,yy=Ha,v,C,O,$,x=t,w=x.ownerDocument,T=bc(x),R=T.getComputedStyle(x),S=R.width,E=R.height,P=R.position,I=x.style.left,k=x.style.top,N=x.style.right,M=x.style.bottom,j=x.style.overflow,A=Y(Y({},o[r]),i),D=w.createElement("div");(v=x.parentElement)===null||v===void 0||v.appendChild(D),D.style.left="".concat(x.offsetLeft,"px"),D.style.top="".concat(x.offsetTop,"px"),D.style.position=P,D.style.height="".concat(x.offsetHeight,"px"),D.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{var z,q,U=n.getBoundingClientRect();U.x=(z=U.x)!==null&&z!==void 0?z:U.left,U.y=(q=U.y)!==null&&q!==void 0?q:U.top,L={x:U.x,y:U.y,width:U.width,height:U.height}}var H=x.getBoundingClientRect();H.x=(C=H.x)!==null&&C!==void 0?C:H.left,H.y=(O=H.y)!==null&&O!==void 0?O:H.top;var K=w.documentElement,X=K.clientWidth,Z=K.clientHeight,se=K.scrollWidth,ie=K.scrollHeight,me=K.scrollTop,ue=K.scrollLeft,re=H.height,ce=H.width,fe=L.height,de=L.width,ve={left:0,top:0,right:X,bottom:Z},ye={left:-ue,top:-me,right:se-ue,bottom:ie-me},Se=A.htmlRegion,Pe="visible",Ie="visibleFirst";Se!=="scroll"&&Se!==Ie&&(Se=Pe);var $e=Se===Ie,Fe=d4(ye,p),Ee=d4(ve,p),ke=Se===Pe?Ee:Fe,Be=$e?Ee:ke;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var je=x.getBoundingClientRect();x.style.left=I,x.style.top=k,x.style.right=N,x.style.bottom=M,x.style.overflow=j,($=x.parentElement)===null||$===void 0||$.removeChild(D);var We=zu(Math.round(ce/parseFloat(S)*1e3)/1e3),Ye=zu(Math.round(re/parseFloat(E)*1e3)/1e3);if(We===0||Ye===0||_u(n)&&!h2(n))return;var Xe=A.offset,it=A.targetOffset,et=p4(H,Xe),ct=ge(et,2),He=ct[0],he=ct[1],Q=p4(L,it),ee=ge(Q,2),ne=ee[0],xe=ee[1];L.x-=ne,L.y-=xe;var Re=A.points||[],De=ge(Re,2),Qe=De[0],rt=De[1],dt=h4(rt),pt=h4(Qe),vt=Ya(L,dt),at=Ya(H,pt),Ge=Y({},A),ze=vt.x-at.x+He,Le=vt.y-at.y+he,Je=dr(ze,Le),Ct=dr(ze,Le,Ee),Ke=Ya(L,["t","l"]),Ve=Ya(H,["t","l"]),ot=Ya(L,["b","r"]),ut=Ya(H,["b","r"]),st=A.overflow||{},_e=st.adjustX,zt=st.adjustY,kt=st.shiftX,Ft=st.shiftY,_=function(xi){return typeof xi=="boolean"?xi:xi>=0},G,F,W,oe;Ha();var te=_(zt),pe=pt[0]===dt[0];if(te&&pt[0]==="t"&&(F>Be.bottom||m.current.bt)){var le=Le;pe?le-=re-fe:le=Ke.y-ut.y-he;var Ce=dr(ze,le),Me=dr(ze,le,Ee);Ce>Je||Ce===Je&&(!$e||Me>=Ct)?(m.current.bt=!0,Le=le,he=-he,Ge.points=[wi(pt,0),wi(dt,0)]):m.current.bt=!1}if(te&&pt[0]==="b"&&(G<Be.top||m.current.tb)){var Oe=Le;pe?Oe+=re-fe:Oe=ot.y-Ve.y-he;var Ue=dr(ze,Oe),Ae=dr(ze,Oe,Ee);Ue>Je||Ue===Je&&(!$e||Ae>=Ct)?(m.current.tb=!0,Le=Oe,he=-he,Ge.points=[wi(pt,0),wi(dt,0)]):m.current.tb=!1}var ht=_(_e),$t=pt[1]===dt[1];if(ht&&pt[1]==="l"&&(oe>Be.right||m.current.rl)){var At=ze;$t?At-=ce-de:At=Ke.x-ut.x-He;var _t=dr(At,Le),Lt=dr(At,Le,Ee);_t>Je||_t===Je&&(!$e||Lt>=Ct)?(m.current.rl=!0,ze=At,He=-He,Ge.points=[wi(pt,1),wi(dt,1)]):m.current.rl=!1}if(ht&&pt[1]==="r"&&(W<Be.left||m.current.lr)){var Xt=ze;$t?Xt+=ce-de:Xt=ot.x-Ve.x-He;var It=dr(Xt,Le),xt=dr(Xt,Le,Ee);It>Je||It===Je&&(!$e||xt>=Ct)?(m.current.lr=!0,ze=Xt,He=-He,Ge.points=[wi(pt,1),wi(dt,1)]):m.current.lr=!1}Ha();var Rt=kt===!0?0:kt;typeof Rt=="number"&&(W<Ee.left&&(ze-=W-Ee.left-He,L.x+de<Ee.left+Rt&&(ze+=L.x-Ee.left+de-Rt)),oe>Ee.right&&(ze-=oe-Ee.right-He,L.x>Ee.right-Rt&&(ze+=L.x-Ee.right+Rt)));var St=Ft===!0?0:Ft;typeof St=="number"&&(G<Ee.top&&(Le-=G-Ee.top-he,L.y+fe<Ee.top+St&&(Le+=L.y-Ee.top+fe-St)),F>Ee.bottom&&(Le-=F-Ee.bottom-he,L.y>Ee.bottom-St&&(Le+=L.y-Ee.bottom+St)));var wn=H.x+ze,yr=wn+ce,Nn=H.y+Le,Bn=Nn+re,Wt=L.x,lt=Wt+de,tt=L.y,Nt=tt+fe,Ht=Math.max(wn,Wt),qt=Math.min(yr,lt),Jt=(Ht+qt)/2,zn=Jt-wn,cn=Math.max(Nn,tt),Vt=Math.min(Bn,Nt),vn=(cn+Vt)/2,jn=vn-Nn;a==null||a(t,Ge);var cr=je.right-H.x-(ze+H.width),Gn=je.bottom-H.y-(Le+H.height);We===1&&(ze=Math.round(ze),cr=Math.round(cr)),Ye===1&&(Le=Math.round(Le),Gn=Math.round(Gn));var qp={ready:!0,offsetX:ze/We,offsetY:Le/Ye,offsetR:cr/We,offsetB:Gn/Ye,arrowX:zn/We,arrowY:jn/Ye,scaleX:We,scaleY:Ye,align:Ge};c(qp)}}),b=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&g()})},y=function(){c(function(C){return Y(Y({},C),{},{ready:!1})})};return Ut(y,[r]),Ut(function(){e||y()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,b]}function bB(e,t,n,r,o){Ut(function(){if(e&&t&&n){let p=function(){r(),o()};var f=p,i=t,a=n,s=m1(i),l=m1(a),d=bc(a),c=new Set([d].concat(Ne(s),Ne(l)));return c.forEach(function(m){m.addEventListener("scroll",p,{passive:!0})}),d.addEventListener("resize",p,{passive:!0}),r(),function(){c.forEach(function(m){m.removeEventListener("scroll",p),d.removeEventListener("resize",p)})}}},[e,t,n])}function CB(e,t,n,r,o,i,a,s){var l=u.useRef(e);l.current=e;var d=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){d.current=!1},p=function(b){var y;l.current&&!a(((y=b.composedPath)===null||y===void 0||(y=y.call(b))===null||y===void 0?void 0:y[0])||b.target)&&!d.current&&s(!1)},m=bc(r);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0);var h=kf(n);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,i]);function c(){d.current=!0}return c}var xB=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function SB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mc,t=u.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,d=n.showAction,c=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,b=n.mouseLeaveDelay,y=b===void 0?.1:b,v=n.focusDelay,C=n.blurDelay,O=n.mask,$=n.maskClosable,x=$===void 0?!0:$,w=n.getPopupContainer,T=n.forceRender,R=n.autoDestroy,S=n.destroyPopupOnHide,E=n.popup,P=n.popupClassName,I=n.popupStyle,k=n.popupPlacement,N=n.builtinPlacements,M=N===void 0?{}:N,j=n.popupAlign,A=n.zIndex,D=n.stretch,L=n.getPopupClassNameFromAlign,z=n.fresh,q=n.alignPoint,U=n.onPopupClick,H=n.onPopupAlign,K=n.arrow,X=n.popupMotion,Z=n.maskMotion,se=n.popupTransitionName,ie=n.popupAnimation,me=n.maskTransitionName,ue=n.maskAnimation,re=n.className,ce=n.getTriggerDOMNode,fe=gt(n,xB),de=R||S||!1,ve=u.useState(!1),ye=ge(ve,2),Se=ye[0],Pe=ye[1];Ut(function(){Pe(w2())},[]);var Ie=u.useRef({}),$e=u.useContext(l4),Fe=u.useMemo(function(){return{registerSubPopup:function(Et,pn){Ie.current[Et]=pn,$e==null||$e.registerSubPopup(Et,pn)}}},[$e]),Ee=y2(),ke=u.useState(null),Be=ge(ke,2),je=Be[0],We=Be[1],Ye=u.useRef(null),Xe=Gt(function(mt){Ye.current=mt,_u(mt)&&je!==mt&&We(mt),$e==null||$e.registerSubPopup(Ee,mt)}),it=u.useState(null),et=ge(it,2),ct=et[0],He=et[1],he=u.useRef(null),Q=Gt(function(mt){_u(mt)&&ct!==mt&&(He(mt),he.current=mt)}),ee=u.Children.only(a),ne=(ee==null?void 0:ee.props)||{},xe={},Re=Gt(function(mt){var Et,pn,Rn=ct;return(Rn==null?void 0:Rn.contains(mt))||((Et=kf(Rn))===null||Et===void 0?void 0:Et.host)===mt||mt===Rn||(je==null?void 0:je.contains(mt))||((pn=kf(je))===null||pn===void 0?void 0:pn.host)===mt||mt===je||Object.values(Ie.current).some(function(hn){return(hn==null?void 0:hn.contains(mt))||mt===hn})}),De=c4(i,X,ie,se),Qe=c4(i,Z,ue,me),rt=u.useState(p||!1),dt=ge(rt,2),pt=dt[0],vt=dt[1],at=f??pt,Ge=Gt(function(mt){f===void 0&&vt(mt)});Ut(function(){vt(f||!1)},[f]);var ze=u.useRef(at);ze.current=at;var Le=u.useRef([]);Le.current=[];var Je=Gt(function(mt){var Et;Ge(mt),((Et=Le.current[Le.current.length-1])!==null&&Et!==void 0?Et:at)!==mt&&(Le.current.push(mt),m==null||m(mt))}),Ct=u.useRef(),Ke=function(){clearTimeout(Ct.current)},Ve=function(Et){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ke(),pn===0?Je(Et):Ct.current=setTimeout(function(){Je(Et)},pn*1e3)};u.useEffect(function(){return Ke},[]);var ot=u.useState(!1),ut=ge(ot,2),st=ut[0],_e=ut[1];Ut(function(mt){(!mt||at)&&_e(!0)},[at]);var zt=u.useState(null),kt=ge(zt,2),Ft=kt[0],_=kt[1],G=u.useState(null),F=ge(G,2),W=F[0],oe=F[1],te=function(Et){oe([Et.clientX,Et.clientY])},pe=yB(at,je,q&&W!==null?W:ct,k,M,j,H),le=ge(pe,11),Ce=le[0],Me=le[1],Oe=le[2],Ue=le[3],Ae=le[4],ht=le[5],$t=le[6],At=le[7],_t=le[8],Lt=le[9],Xt=le[10],It=mB(Se,l,d,c),xt=ge(It,2),Rt=xt[0],St=xt[1],wn=Rt.has("click"),yr=St.has("click")||St.has("contextMenu"),Nn=Gt(function(){st||Xt()}),Bn=function(){ze.current&&q&&yr&&Ve(!1)};bB(at,ct,je,Nn,Bn),Ut(function(){Nn()},[W,k]),Ut(function(){at&&!(M!=null&&M[k])&&Nn()},[JSON.stringify(j)]);var Wt=u.useMemo(function(){var mt=vB(M,i,Lt,q);return ae(mt,L==null?void 0:L(Lt))},[Lt,L,M,i,q]);u.useImperativeHandle(r,function(){return{nativeElement:he.current,popupElement:Ye.current,forceAlign:Nn}});var lt=u.useState(0),tt=ge(lt,2),Nt=tt[0],Ht=tt[1],qt=u.useState(0),Jt=ge(qt,2),zn=Jt[0],cn=Jt[1],Vt=function(){if(D&&ct){var Et=ct.getBoundingClientRect();Ht(Et.width),cn(Et.height)}},vn=function(){Vt(),Nn()},jn=function(Et){_e(!1),Xt(),h==null||h(Et)},cr=function(){return new Promise(function(Et){Vt(),_(function(){return Et})})};Ut(function(){Ft&&(Xt(),Ft(),_(null))},[Ft]);function Gn(mt,Et,pn,Rn){xe[mt]=function(hn){var Fc;Rn==null||Rn(hn),Ve(Et,pn);for(var Xp=arguments.length,by=new Array(Xp>1?Xp-1:0),Lc=1;Lc<Xp;Lc++)by[Lc-1]=arguments[Lc];(Fc=ne[mt])===null||Fc===void 0||Fc.call.apply(Fc,[ne,hn].concat(by))}}(wn||yr)&&(xe.onClick=function(mt){var Et;ze.current&&yr?Ve(!1):!ze.current&&wn&&(te(mt),Ve(!0));for(var pn=arguments.length,Rn=new Array(pn>1?pn-1:0),hn=1;hn<pn;hn++)Rn[hn-1]=arguments[hn];(Et=ne.onClick)===null||Et===void 0||Et.call.apply(Et,[ne,mt].concat(Rn))});var qp=CB(at,yr,ct,je,O,x,Re,Ve),vy=Rt.has("hover"),yy=St.has("hover"),dr,Ha;vy&&(Gn("onMouseEnter",!0,g,function(mt){te(mt)}),Gn("onPointerEnter",!0,g,function(mt){te(mt)}),dr=function(Et){(at||st)&&je!==null&&je!==void 0&&je.contains(Et.target)&&Ve(!0,g)},q&&(xe.onMouseMove=function(mt){var Et;(Et=ne.onMouseMove)===null||Et===void 0||Et.call(ne,mt)})),yy&&(Gn("onMouseLeave",!1,y),Gn("onPointerLeave",!1,y),Ha=function(){Ve(!1,y)}),Rt.has("focus")&&Gn("onFocus",!0,v),St.has("focus")&&Gn("onBlur",!1,C),Rt.has("contextMenu")&&(xe.onContextMenu=function(mt){var Et;ze.current&&St.has("contextMenu")?Ve(!1):(te(mt),Ve(!0)),mt.preventDefault();for(var pn=arguments.length,Rn=new Array(pn>1?pn-1:0),hn=1;hn<pn;hn++)Rn[hn-1]=arguments[hn];(Et=ne.onContextMenu)===null||Et===void 0||Et.call.apply(Et,[ne,mt].concat(Rn))}),re&&(xe.className=ae(ne.className,re));var Va=Y(Y({},ne),xe),xi={},Ua=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ua.forEach(function(mt){fe[mt]&&(xi[mt]=function(){for(var Et,pn=arguments.length,Rn=new Array(pn),hn=0;hn<pn;hn++)Rn[hn]=arguments[hn];(Et=Va[mt])===null||Et===void 0||Et.call.apply(Et,[Va].concat(Rn)),fe[mt].apply(fe,Rn)})});var Nc=u.cloneElement(ee,Y(Y({},Va),xi)),jc={x:ht,y:$t},Gp=K?Y({},K!==!0?K:{}):null;return u.createElement(u.Fragment,null,u.createElement(zr,{disabled:!at,ref:Q,onResize:vn},u.createElement(hB,{getTriggerDOMNode:ce},Nc)),u.createElement(l4.Provider,{value:Fe},u.createElement(pB,{portal:e,ref:Xe,prefixCls:i,popup:E,className:ae(P,Wt),style:I,target:ct,onMouseEnter:dr,onMouseLeave:Ha,onPointerEnter:dr,zIndex:A,open:at,keepDom:st,fresh:z,onClick:U,onPointerDownCapture:qp,mask:O,motion:De,maskMotion:Qe,onVisibleChanged:jn,onPrepare:cr,forceRender:T,autoDestroy:de,getPopupContainer:w,align:Lt,arrow:Gp,arrowPos:jc,ready:Ce,offsetX:Me,offsetY:Oe,offsetR:Ue,offsetB:Ae,onAlign:Nn,stretch:D,targetWidth:Nt/At,targetHeight:zn/_t})))});return t}const ap=SB(mc);var wB=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],EB=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},$B=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,d=t.dropdownStyle,c=t.dropdownClassName,f=t.direction,p=f===void 0?"ltr":f,m=t.placement,h=t.builtinPlacements,g=t.dropdownMatchSelectWidth,b=t.dropdownRender,y=t.dropdownAlign,v=t.getPopupContainer,C=t.empty,O=t.getTriggerDOMNode,$=t.onPopupVisibleChange,x=t.onPopupMouseEnter,w=gt(t,wB),T="".concat(r,"-dropdown"),R=a;b&&(R=b(a));var S=u.useMemo(function(){return h||EB(g)},[h,g]),E=s?"".concat(T,"-").concat(s):l,P=typeof g=="number",I=u.useMemo(function(){return P?null:g===!1?"minWidth":"width"},[g,P]),k=d;P&&(k=Y(Y({},k),{},{width:g}));var N=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var j;return(j=N.current)===null||j===void 0?void 0:j.popupElement}}}),u.createElement(ap,we({},w,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:m||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:S,prefixCls:T,popupTransitionName:E,popup:u.createElement("div",{onMouseEnter:x},R),ref:N,stretch:I,popupAlign:y,popupVisible:o,getPopupContainer:v,popupClassName:ae(c,J({},"".concat(T,"-empty"),C)),popupStyle:k,getTriggerDOMNode:O,onPopupVisibleChange:$}),i)},RB=u.forwardRef($B);function m4(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function g1(e){return typeof e<"u"&&!Number.isNaN(e)}function Kw(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function OB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Kw(n,!1),a=i.label,s=i.value,l=i.options,d=i.groupLabel;function c(f,p){Array.isArray(f)&&f.forEach(function(m){if(p||!(l in m)){var h=m[s];o.push({key:m4(m,o.length),groupOption:p,data:m,label:m[a],value:h})}else{var g=m[d];g===void 0&&r&&(g=m.label),o.push({key:m4(m,o.length),group:!0,data:m,label:g}),c(m[l],!0)}})}return c(e,!1),o}function v1(e){var t=Y({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return An(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var PB=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function s(l,d){var c=Y8(d),f=c[0],p=c.slice(1);if(!f)return[l];var m=l.split(f);return o=o||m.length>1,m.reduce(function(h,g){return[].concat(Ne(h),Ne(s(g,p)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},E2=u.createContext(null);function IB(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(nt(i))?i:a}).join(", ")),n.length>r?", ...":null)}var TB=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],_B=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],y1=function(t){return t==="tags"||t==="multiple"},qw=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,d=e.omitDomProps,c=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,g=e.onClear,b=e.mode,y=e.disabled,v=e.loading,C=e.getInputElement,O=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,S=e.activeDescendantId,E=e.searchValue,P=e.autoClearSearchValue,I=e.onSearch,k=e.onSearchSplit,N=e.tokenSeparators,M=e.allowClear,j=e.prefix,A=e.suffixIcon,D=e.clearIcon,L=e.OptionList,z=e.animation,q=e.transitionName,U=e.dropdownStyle,H=e.dropdownClassName,K=e.dropdownMatchSelectWidth,X=e.dropdownRender,Z=e.dropdownAlign,se=e.placement,ie=e.builtinPlacements,me=e.getPopupContainer,ue=e.showAction,re=ue===void 0?[]:ue,ce=e.onFocus,fe=e.onBlur,de=e.onKeyUp,ve=e.onKeyDown,ye=e.onMouseDown,Se=gt(e,TB),Pe=y1(b),Ie=(a!==void 0?a:Pe)||b==="combobox",$e=Y({},Se);_B.forEach(function(lt){delete $e[lt]}),d==null||d.forEach(function(lt){delete $e[lt]});var Fe=u.useState(!1),Ee=ge(Fe,2),ke=Ee[0],Be=Ee[1];u.useEffect(function(){Be(w2())},[]);var je=u.useRef(null),We=u.useRef(null),Ye=u.useRef(null),Xe=u.useRef(null),it=u.useRef(null),et=u.useRef(!1),ct=FD(),He=ge(ct,3),he=He[0],Q=He[1],ee=He[2];u.useImperativeHandle(t,function(){var lt,tt;return{focus:(lt=Xe.current)===null||lt===void 0?void 0:lt.focus,blur:(tt=Xe.current)===null||tt===void 0?void 0:tt.blur,scrollTo:function(Ht){var qt;return(qt=it.current)===null||qt===void 0?void 0:qt.scrollTo(Ht)},nativeElement:je.current||We.current}});var ne=u.useMemo(function(){var lt;if(b!=="combobox")return E;var tt=(lt=c[0])===null||lt===void 0?void 0:lt.value;return typeof tt=="string"||typeof tt=="number"?String(tt):""},[E,b,c]),xe=b==="combobox"&&typeof C=="function"&&C()||null,Re=typeof O=="function"&&O(),De=Ci(We,Re==null||(n=Re.props)===null||n===void 0?void 0:n.ref),Qe=u.useState(!1),rt=ge(Qe,2),dt=rt[0],pt=rt[1];Ut(function(){pt(!0)},[]);var vt=nn(!1,{defaultValue:x,value:$}),at=ge(vt,2),Ge=at[0],ze=at[1],Le=dt?Ge:!1,Je=!h&&p;(y||Je&&Le&&b==="combobox")&&(Le=!1);var Ct=Je?!1:Le,Ke=u.useCallback(function(lt){var tt=lt!==void 0?lt:!Le;y||(ze(tt),Le!==tt&&(w==null||w(tt)))},[y,Le,ze,w]),Ve=u.useMemo(function(){return(N||[]).some(function(lt){return[`
|
|
222
|
+
`,`\r
|
|
223
|
+
`].includes(lt)})},[N]),ot=u.useContext(E2)||{},ut=ot.maxCount,st=ot.rawValues,_e=function(tt,Nt,Ht){if(!(Pe&&g1(ut)&&(st==null?void 0:st.size)>=ut)){var qt=!0,Jt=tt;R==null||R(null);var zn=PB(tt,N,g1(ut)?ut-st.size:void 0),cn=Ht?null:zn;return b!=="combobox"&&cn&&(Jt="",k==null||k(cn),Ke(!1),qt=!1),I&&ne!==Jt&&I(Jt,{source:Nt?"typing":"effect"}),qt}},zt=function(tt){!tt||!tt.trim()||I(tt,{source:"submit"})};u.useEffect(function(){!Le&&!Pe&&b!=="combobox"&&_e("",!1,!1)},[Le]),u.useEffect(function(){Ge&&y&&ze(!1),y&&!et.current&&Q(!1)},[y]);var kt=Dw(),Ft=ge(kt,2),_=Ft[0],G=Ft[1],F=u.useRef(!1),W=function(tt){var Nt=_(),Ht=tt.key,qt=Ht==="Enter";if(qt&&(b!=="combobox"&&tt.preventDefault(),Le||Ke(!0)),G(!!ne),Ht==="Backspace"&&!Nt&&Pe&&!ne&&c.length){for(var Jt=Ne(c),zn=null,cn=Jt.length-1;cn>=0;cn-=1){var Vt=Jt[cn];if(!Vt.disabled){Jt.splice(cn,1),zn=Vt;break}}zn&&f(Jt,{type:"remove",values:[zn]})}for(var vn=arguments.length,jn=new Array(vn>1?vn-1:0),cr=1;cr<vn;cr++)jn[cr-1]=arguments[cr];if(Le&&(!qt||!F.current)){var Gn;qt&&(F.current=!0),(Gn=it.current)===null||Gn===void 0||Gn.onKeyDown.apply(Gn,[tt].concat(jn))}ve==null||ve.apply(void 0,[tt].concat(jn))},oe=function(tt){for(var Nt=arguments.length,Ht=new Array(Nt>1?Nt-1:0),qt=1;qt<Nt;qt++)Ht[qt-1]=arguments[qt];if(Le){var Jt;(Jt=it.current)===null||Jt===void 0||Jt.onKeyUp.apply(Jt,[tt].concat(Ht))}tt.key==="Enter"&&(F.current=!1),de==null||de.apply(void 0,[tt].concat(Ht))},te=function(tt){var Nt=c.filter(function(Ht){return Ht!==tt});f(Nt,{type:"remove",values:[tt]})},pe=function(){F.current=!1},le=u.useRef(!1),Ce=function(){Q(!0),y||(ce&&!le.current&&ce.apply(void 0,arguments),re.includes("focus")&&Ke(!0)),le.current=!0},Me=function(){et.current=!0,Q(!1,function(){le.current=!1,et.current=!1,Ke(!1)}),!y&&(ne&&(b==="tags"?I(ne,{source:"submit"}):b==="multiple"&&I("",{source:"blur"})),fe&&fe.apply(void 0,arguments))},Oe=[];u.useEffect(function(){return function(){Oe.forEach(function(lt){return clearTimeout(lt)}),Oe.splice(0,Oe.length)}},[]);var Ue=function(tt){var Nt,Ht=tt.target,qt=(Nt=Ye.current)===null||Nt===void 0?void 0:Nt.getPopupElement();if(qt&&qt.contains(Ht)){var Jt=setTimeout(function(){var vn=Oe.indexOf(Jt);if(vn!==-1&&Oe.splice(vn,1),ee(),!ke&&!qt.contains(document.activeElement)){var jn;(jn=Xe.current)===null||jn===void 0||jn.focus()}});Oe.push(Jt)}for(var zn=arguments.length,cn=new Array(zn>1?zn-1:0),Vt=1;Vt<zn;Vt++)cn[Vt-1]=arguments[Vt];ye==null||ye.apply(void 0,[tt].concat(cn))},Ae=u.useState({}),ht=ge(Ae,2),$t=ht[1];function At(){$t({})}var _t;Re&&(_t=function(tt){Ke(tt)}),LD(function(){var lt;return[je.current,(lt=Ye.current)===null||lt===void 0?void 0:lt.getPopupElement()]},Ct,Ke,!!Re);var Lt=u.useMemo(function(){return Y(Y({},e),{},{notFoundContent:h,open:Le,triggerOpen:Ct,id:r,showSearch:Ie,multiple:Pe,toggleOpen:Ke})},[e,h,Ct,Le,r,Ie,Pe,Ke]),Xt=!!A||v,It;Xt&&(It=u.createElement(ip,{className:ae("".concat(o,"-arrow"),J({},"".concat(o,"-arrow-loading"),v)),customizeIcon:A,customizeIconProps:{loading:v,searchValue:ne,open:Le,focused:he,showSearch:Ie}}));var xt=function(){var tt;g==null||g(),(tt=Xe.current)===null||tt===void 0||tt.focus(),f([],{type:"clear",values:c}),_e("",!1,!1)},Rt=jD(o,xt,c,M,D,y,ne,b),St=Rt.allowClear,wn=Rt.clearIcon,yr=u.createElement(L,{ref:it}),Nn=ae(o,i,J(J(J(J(J(J(J(J(J(J({},"".concat(o,"-focused"),he),"".concat(o,"-multiple"),Pe),"".concat(o,"-single"),!Pe),"".concat(o,"-allow-clear"),M),"".concat(o,"-show-arrow"),Xt),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),v),"".concat(o,"-open"),Le),"".concat(o,"-customize-input"),xe),"".concat(o,"-show-search"),Ie)),Bn=u.createElement(RB,{ref:Ye,disabled:y,prefixCls:o,visible:Ct,popupElement:yr,animation:z,transitionName:q,dropdownStyle:U,dropdownClassName:H,direction:l,dropdownMatchSelectWidth:K,dropdownRender:X,dropdownAlign:Z,placement:se,builtinPlacements:ie,getPopupContainer:me,empty:p,getTriggerDOMNode:function(tt){return We.current||tt},onPopupVisibleChange:_t,onPopupMouseEnter:At},Re?u.cloneElement(Re,{ref:De}):u.createElement(uB,we({},e,{domRef:We,prefixCls:o,inputElement:xe,ref:Xe,id:r,prefix:j,showSearch:Ie,autoClearSearchValue:P,mode:b,activeDescendantId:S,tagRender:s,values:c,open:Le,onToggleOpen:Ke,activeValue:T,searchValue:ne,onSearch:_e,onSearchSubmit:zt,onRemove:te,tokenWithEnter:Ve,onInputBlur:pe}))),Wt;return Re?Wt=Bn:Wt=u.createElement("div",we({className:Nn},$e,{ref:je,onMouseDown:Ue,onKeyDown:W,onKeyUp:oe,onFocus:Ce,onBlur:Me}),u.createElement(IB,{visible:he&&!Le,values:c}),Bn,It,St&&wn),u.createElement(Fw.Provider,{value:Lt},Wt)}),Gw=function(){return null};Gw.isSelectOptGroup=!0;var Xw=function(){return null};Xw.isSelectOption=!0;var Yw=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,d=e.rtl,c=e.extra,f={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},p=Y(Y({},p),{},J(J(J(J(J({transform:"translateY(".concat(r,"px)")},d?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:f},u.createElement(zr,{onResize:function(h){var g=h.offsetHeight;g&&s&&s()}},u.createElement("div",we({style:p,className:ae(J({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,c)))});Yw.displayName="Filler";function kB(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function MB(e,t,n,r,o,i,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(d,c){var f=t+c,p=a(d,f,{style:{width:r},offsetX:o}),m=l(d);return u.createElement(kB,{key:m,setRef:function(g){return i(d,g)}},p)})}function AB(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var d=null,c=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var p=l(i[f]),m=l(a[f]);if(p!==m){d=f,c=c||p!==l(a[f+1]);break}}return d===null?null:{index:d,multiple:c}}function NB(e,t,n){var r=u.useState(e),o=ge(r,2),i=o[0],a=o[1],s=u.useState(null),l=ge(s,2),d=l[0],c=l[1];return u.useEffect(function(){var f=AB(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&c(e[f.index]),a(e)},[e]),[d]}var g4=(typeof navigator>"u"?"undefined":nt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Qw=function(e,t,n,r){var o=u.useRef(!1),i=u.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=u.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?d<0&&s.current.left||d>0&&s.current.right:d<0&&s.current.top||d>0&&s.current.bottom;return c&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function jB(e,t,n,r,o,i,a){var s=u.useRef(0),l=u.useRef(null),d=u.useRef(null),c=u.useRef(!1),f=Qw(t,n,r,o);function p(v,C){if(en.cancel(l.current),!f(!1,C)){var O=v;if(!O._virtualHandled)O._virtualHandled=!0;else return;s.current+=C,d.current=C,g4||O.preventDefault(),l.current=en(function(){var $=c.current?10:1;a(s.current*$,!1),s.current=0})}}function m(v,C){a(C,!0),g4||v.preventDefault()}var h=u.useRef(null),g=u.useRef(null);function b(v){if(e){en.cancel(g.current),g.current=en(function(){h.current=null},2);var C=v.deltaX,O=v.deltaY,$=v.shiftKey,x=C,w=O;(h.current==="sx"||!h.current&&$&&O&&!C)&&(x=O,w=0,h.current="sx");var T=Math.abs(x),R=Math.abs(w);h.current===null&&(h.current=i&&T>R?"x":"y"),h.current==="y"?p(v,w):m(v,x)}}function y(v){e&&(c.current=v.detail===d.current)}return[b,y]}function FB(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=ge(o,2),a=i[0],s=i[1],l=function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,p=a.get(c),m=a.get(f);if(p===void 0||m===void 0)for(var h=e.length,g=s.length;g<h;g+=1){var b,y=e[g],v=t(y);a.set(v,g);var C=(b=n.get(v))!==null&&b!==void 0?b:r;if(s[g]=(s[g-1]||0)+C,v===c&&(p=g),v===f&&(m=g),p!==void 0&&m!==void 0)break}return{top:s[p-1]||0,bottom:s[m]}};return l}var LB=function(){function e(){xn(this,e),J(this,"maps",void 0),J(this,"id",0),J(this,"diffRecords",new Map),this.maps=Object.create(null)}return Sn(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function v4(e){var t=parseFloat(e);return isNaN(t)?0:t}function DB(e,t,n){var r=u.useState(0),o=ge(r,2),i=o[0],a=o[1],s=u.useRef(new Map),l=u.useRef(new LB),d=u.useRef(0);function c(){d.current+=1}function f(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c();var h=function(){var y=!1;s.current.forEach(function(v,C){if(v&&v.offsetParent){var O=v.offsetHeight,$=getComputedStyle(v),x=$.marginTop,w=$.marginBottom,T=v4(x),R=v4(w),S=O+T+R;l.current.get(C)!==S&&(l.current.set(C,S),y=!0)}}),y&&a(function(v){return v+1})};if(m)h();else{d.current+=1;var g=d.current;Promise.resolve().then(function(){g===d.current&&h()})}}function p(m,h){var g=e(m);s.current.get(g),h?(s.current.set(g,h),f()):s.current.delete(g)}return u.useEffect(function(){return c},[]),[p,f,l.current,i]}var y4=14/15;function BB(e,t,n){var r=u.useRef(!1),o=u.useRef(0),i=u.useRef(0),a=u.useRef(null),s=u.useRef(null),l,d=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageX),g=Math.ceil(m.touches[0].pageY),b=o.current-h,y=i.current-g,v=Math.abs(b)>Math.abs(y);v?o.current=h:i.current=g;var C=n(v,v?b:y,!1,m);C&&m.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){v?b*=y4:y*=y4;var O=Math.floor(v?b:y);(!n(v,O,!0)||Math.abs(O)<=.1)&&clearInterval(s.current)},16))}},c=function(){r.current=!1,l()},f=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",d,{passive:!1}),a.current.addEventListener("touchend",c,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",d),a.current.removeEventListener("touchend",c))},Ut(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function b4(e){return Math.floor(Math.pow(e,.5))}function b1(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function zB(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var o=!1,i,a,s=function(){en.cancel(i)},l=function p(){s(),i=en(function(){n(a),p()})},d=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},c=function(){o=!1,s()},f=function(m){if(o){var h=b1(m,!1),g=r.getBoundingClientRect(),b=g.top,y=g.bottom;if(h<=b){var v=b-h;a=-b4(v),l()}else if(h>=y){var C=h-y;a=b4(C),l()}else s()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var HB=10;function VB(e,t,n,r,o,i,a,s){var l=u.useRef(),d=u.useState(null),c=ge(d,2),f=c[0],p=c[1];return Ut(function(){if(f&&f.times<HB){if(!e.current){p(function(D){return Y({},D)});return}i();var m=f.targetAlign,h=f.originAlign,g=f.index,b=f.offset,y=e.current.clientHeight,v=!1,C=m,O=null;if(y){for(var $=m||h,x=0,w=0,T=0,R=Math.min(t.length-1,g),S=0;S<=R;S+=1){var E=o(t[S]);w=x;var P=n.get(E);T=w+(P===void 0?r:P),x=T}for(var I=$==="top"?b:y-b,k=R;k>=0;k-=1){var N=o(t[k]),M=n.get(N);if(M===void 0){v=!0;break}if(I-=M,I<=0)break}switch($){case"top":O=w-b;break;case"bottom":O=T-y+b;break;default:{var j=e.current.scrollTop,A=j+y;w<j?C="top":T>A&&(C="bottom")}}O!==null&&a(O),O!==f.lastTop&&(v=!0)}v&&p(Y(Y({},f),{},{times:f.times+1,targetAlign:C,lastTop:O}))}},[f,e.current]),function(m){if(m==null){s();return}if(en.cancel(l.current),typeof m=="number")a(m);else if(m&&nt(m)==="object"){var h,g=m.align;"index"in m?h=m.index:h=t.findIndex(function(v){return o(v)===m.key});var b=m.offset,y=b===void 0?0:b;p({times:0,index:h,offset:y,originAlign:g})}}}var C4=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,d=e.horizontal,c=e.spinSize,f=e.containerSize,p=e.style,m=e.thumbStyle,h=e.showScrollBar,g=u.useState(!1),b=ge(g,2),y=b[0],v=b[1],C=u.useState(null),O=ge(C,2),$=O[0],x=O[1],w=u.useState(null),T=ge(w,2),R=T[0],S=T[1],E=!r,P=u.useRef(),I=u.useRef(),k=u.useState(h),N=ge(k,2),M=N[0],j=N[1],A=u.useRef(),D=function(){h===!0||h===!1||(clearTimeout(A.current),j(!0),A.current=setTimeout(function(){j(!1)},3e3))},L=i-f||0,z=f-c||0,q=u.useMemo(function(){if(o===0||L===0)return 0;var ue=o/L;return ue*z},[o,L,z]),U=function(re){re.stopPropagation(),re.preventDefault()},H=u.useRef({top:q,dragging:y,pageY:$,startTop:R});H.current={top:q,dragging:y,pageY:$,startTop:R};var K=function(re){v(!0),x(b1(re,d)),S(H.current.top),a(),re.stopPropagation(),re.preventDefault()};u.useEffect(function(){var ue=function(de){de.preventDefault()},re=P.current,ce=I.current;return re.addEventListener("touchstart",ue,{passive:!1}),ce.addEventListener("touchstart",K,{passive:!1}),function(){re.removeEventListener("touchstart",ue),ce.removeEventListener("touchstart",K)}},[]);var X=u.useRef();X.current=L;var Z=u.useRef();Z.current=z,u.useEffect(function(){if(y){var ue,re=function(de){var ve=H.current,ye=ve.dragging,Se=ve.pageY,Pe=ve.startTop;en.cancel(ue);var Ie=P.current.getBoundingClientRect(),$e=f/(d?Ie.width:Ie.height);if(ye){var Fe=(b1(de,d)-Se)*$e,Ee=Pe;!E&&d?Ee-=Fe:Ee+=Fe;var ke=X.current,Be=Z.current,je=Be?Ee/Be:0,We=Math.ceil(je*ke);We=Math.max(We,0),We=Math.min(We,ke),ue=en(function(){l(We,d)})}},ce=function(){v(!1),s()};return window.addEventListener("mousemove",re,{passive:!0}),window.addEventListener("touchmove",re,{passive:!0}),window.addEventListener("mouseup",ce,{passive:!0}),window.addEventListener("touchend",ce,{passive:!0}),function(){window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),en.cancel(ue)}}},[y]),u.useEffect(function(){return D(),function(){clearTimeout(A.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:D}});var se="".concat(n,"-scrollbar"),ie={position:"absolute",visibility:M?null:"hidden"},me={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(ie.height=8,ie.left=0,ie.right=0,ie.bottom=0,me.height="100%",me.width=c,E?me.left=q:me.right=q):(ie.width=8,ie.top=0,ie.bottom=0,E?ie.right=0:ie.left=0,me.width="100%",me.height=c,me.top=q),u.createElement("div",{ref:P,className:ae(se,J(J(J({},"".concat(se,"-horizontal"),d),"".concat(se,"-vertical"),!d),"".concat(se,"-visible"),M)),style:Y(Y({},ie),p),onMouseDown:U,onMouseMove:D},u.createElement("div",{ref:I,className:ae("".concat(se,"-thumb"),J({},"".concat(se,"-thumb-moving"),y)),style:Y(Y({},me),m),onMouseDown:K}))}),UB=20;function x4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,UB),Math.floor(n)}var WB=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],KB=[],qB={overflowY:"auto",overflowAnchor:"none"};function GB(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,d=e.style,c=e.data,f=e.children,p=e.itemKey,m=e.virtual,h=e.direction,g=e.scrollWidth,b=e.component,y=b===void 0?"div":b,v=e.onScroll,C=e.onVirtualScroll,O=e.onVisibleChange,$=e.innerProps,x=e.extraRender,w=e.styles,T=e.showScrollBar,R=T===void 0?"optional":T,S=gt(e,WB),E=u.useCallback(function(le){return typeof p=="function"?p(le):le==null?void 0:le[p]},[p]),P=DB(E),I=ge(P,4),k=I[0],N=I[1],M=I[2],j=I[3],A=!!(m!==!1&&i&&a),D=u.useMemo(function(){return Object.values(M.maps).reduce(function(le,Ce){return le+Ce},0)},[M.id,M.maps]),L=A&&c&&(Math.max(a*c.length,D)>i||!!g),z=h==="rtl",q=ae(r,J({},"".concat(r,"-rtl"),z),o),U=c||KB,H=u.useRef(),K=u.useRef(),X=u.useRef(),Z=u.useState(0),se=ge(Z,2),ie=se[0],me=se[1],ue=u.useState(0),re=ge(ue,2),ce=re[0],fe=re[1],de=u.useState(!1),ve=ge(de,2),ye=ve[0],Se=ve[1],Pe=function(){Se(!0)},Ie=function(){Se(!1)},$e={getKey:E};function Fe(le){me(function(Ce){var Me;typeof le=="function"?Me=le(Ce):Me=le;var Oe=pt(Me);return H.current.scrollTop=Oe,Oe})}var Ee=u.useRef({start:0,end:U.length}),ke=u.useRef(),Be=NB(U,E),je=ge(Be,1),We=je[0];ke.current=We;var Ye=u.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};if(!L){var le;return{scrollHeight:((le=K.current)===null||le===void 0?void 0:le.offsetHeight)||0,start:0,end:U.length-1,offset:void 0}}for(var Ce=0,Me,Oe,Ue,Ae=U.length,ht=0;ht<Ae;ht+=1){var $t=U[ht],At=E($t),_t=M.get(At),Lt=Ce+(_t===void 0?a:_t);Lt>=ie&&Me===void 0&&(Me=ht,Oe=Ce),Lt>ie+i&&Ue===void 0&&(Ue=ht),Ce=Lt}return Me===void 0&&(Me=0,Oe=0,Ue=Math.ceil(i/a)),Ue===void 0&&(Ue=U.length-1),Ue=Math.min(Ue+1,U.length-1),{scrollHeight:Ce,start:Me,end:Ue,offset:Oe}},[L,A,ie,U,j,i]),Xe=Ye.scrollHeight,it=Ye.start,et=Ye.end,ct=Ye.offset;Ee.current.start=it,Ee.current.end=et,u.useLayoutEffect(function(){var le=M.getRecord();if(le.size===1){var Ce=Array.from(le.keys())[0],Me=le.get(Ce),Oe=U[it];if(Oe&&Me===void 0){var Ue=E(Oe);if(Ue===Ce){var Ae=M.get(Ce),ht=Ae-a;Fe(function($t){return $t+ht})}}}M.resetRecord()},[Xe]);var He=u.useState({width:0,height:i}),he=ge(He,2),Q=he[0],ee=he[1],ne=function(Ce){ee({width:Ce.offsetWidth,height:Ce.offsetHeight})},xe=u.useRef(),Re=u.useRef(),De=u.useMemo(function(){return x4(Q.width,g)},[Q.width,g]),Qe=u.useMemo(function(){return x4(Q.height,Xe)},[Q.height,Xe]),rt=Xe-i,dt=u.useRef(rt);dt.current=rt;function pt(le){var Ce=le;return Number.isNaN(dt.current)||(Ce=Math.min(Ce,dt.current)),Ce=Math.max(Ce,0),Ce}var vt=ie<=0,at=ie>=rt,Ge=ce<=0,ze=ce>=g,Le=Qw(vt,at,Ge,ze),Je=function(){return{x:z?-ce:ce,y:ie}},Ct=u.useRef(Je()),Ke=Gt(function(le){if(C){var Ce=Y(Y({},Je()),le);(Ct.current.x!==Ce.x||Ct.current.y!==Ce.y)&&(C(Ce),Ct.current=Ce)}});function Ve(le,Ce){var Me=le;Ce?(fo.flushSync(function(){fe(Me)}),Ke()):Fe(Me)}function ot(le){var Ce=le.currentTarget.scrollTop;Ce!==ie&&Fe(Ce),v==null||v(le),Ke()}var ut=function(Ce){var Me=Ce,Oe=g?g-Q.width:0;return Me=Math.max(Me,0),Me=Math.min(Me,Oe),Me},st=Gt(function(le,Ce){Ce?(fo.flushSync(function(){fe(function(Me){var Oe=Me+(z?-le:le);return ut(Oe)})}),Ke()):Fe(function(Me){var Oe=Me+le;return Oe})}),_e=jB(A,vt,at,Ge,ze,!!g,st),zt=ge(_e,2),kt=zt[0],Ft=zt[1];BB(A,H,function(le,Ce,Me,Oe){var Ue=Oe;return Le(le,Ce,Me)?!1:!Ue||!Ue._virtualHandled?(Ue&&(Ue._virtualHandled=!0),kt({preventDefault:function(){},deltaX:le?Ce:0,deltaY:le?0:Ce}),!0):!1}),zB(L,H,function(le){Fe(function(Ce){return Ce+le})}),Ut(function(){function le(Me){var Oe=vt&&Me.detail<0,Ue=at&&Me.detail>0;A&&!Oe&&!Ue&&Me.preventDefault()}var Ce=H.current;return Ce.addEventListener("wheel",kt,{passive:!1}),Ce.addEventListener("DOMMouseScroll",Ft,{passive:!0}),Ce.addEventListener("MozMousePixelScroll",le,{passive:!1}),function(){Ce.removeEventListener("wheel",kt),Ce.removeEventListener("DOMMouseScroll",Ft),Ce.removeEventListener("MozMousePixelScroll",le)}},[A,vt,at]),Ut(function(){if(g){var le=ut(ce);fe(le),Ke({x:le})}},[Q.width,g]);var _=function(){var Ce,Me;(Ce=xe.current)===null||Ce===void 0||Ce.delayHidden(),(Me=Re.current)===null||Me===void 0||Me.delayHidden()},G=VB(H,U,M,a,E,function(){return N(!0)},Fe,_);u.useImperativeHandle(t,function(){return{nativeElement:X.current,getScrollInfo:Je,scrollTo:function(Ce){function Me(Oe){return Oe&&nt(Oe)==="object"&&("left"in Oe||"top"in Oe)}Me(Ce)?(Ce.left!==void 0&&fe(ut(Ce.left)),G(Ce.top)):G(Ce)}}}),Ut(function(){if(O){var le=U.slice(it,et+1);O(le,U)}},[it,et,U]);var F=FB(U,E,M,a),W=x==null?void 0:x({start:it,end:et,virtual:L,offsetX:ce,offsetY:ct,rtl:z,getSize:F}),oe=MB(U,it,et,g,ce,k,f,$e),te=null;i&&(te=Y(J({},l?"height":"maxHeight",i),qB),A&&(te.overflowY="hidden",g&&(te.overflowX="hidden"),ye&&(te.pointerEvents="none")));var pe={};return z&&(pe.dir="rtl"),u.createElement("div",we({ref:X,style:Y(Y({},d),{},{position:"relative"}),className:q},pe,S),u.createElement(zr,{onResize:ne},u.createElement(y,{className:"".concat(r,"-holder"),style:te,ref:H,onScroll:ot,onMouseEnter:_},u.createElement(Yw,{prefixCls:r,height:Xe,offsetX:ce,offsetY:ct,scrollWidth:g,onInnerResize:N,ref:K,innerProps:$,rtl:z,extra:W},oe))),L&&Xe>i&&u.createElement(C4,{ref:xe,prefixCls:r,scrollOffset:ie,scrollRange:Xe,rtl:z,onScroll:Ve,onStartMove:Pe,onStopMove:Ie,spinSize:Qe,containerSize:Q.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb,showScrollBar:R}),L&&g>Q.width&&u.createElement(C4,{ref:Re,prefixCls:r,scrollOffset:ce,scrollRange:g,rtl:z,onScroll:Ve,onStartMove:Pe,onStopMove:Ie,spinSize:De,containerSize:Q.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb,showScrollBar:R}))}var Zw=u.forwardRef(GB);Zw.displayName="List";function XB(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var YB=["disabled","title","children","style","className"];function S4(e){return typeof e=="string"||typeof e=="number"}var QB=function(t,n){var r=Lw(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,d=r.searchValue,c=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,m=u.useContext(E2),h=m.maxCount,g=m.flattenOptions,b=m.onActiveValue,y=m.defaultActiveFirstOption,v=m.onSelect,C=m.menuItemSelectedIcon,O=m.rawValues,$=m.fieldNames,x=m.virtual,w=m.direction,T=m.listHeight,R=m.listItemHeight,S=m.optionRender,E="".concat(o,"-item"),P=dl(function(){return g},[a,g],function(ue,re){return re[0]&&ue[1]!==re[1]}),I=u.useRef(null),k=u.useMemo(function(){return s&&g1(h)&&(O==null?void 0:O.size)>=h},[s,h,O==null?void 0:O.size]),N=function(re){re.preventDefault()},M=function(re){var ce;(ce=I.current)===null||ce===void 0||ce.scrollTo(typeof re=="number"?{index:re}:re)},j=u.useCallback(function(ue){return l==="combobox"?!1:O.has(ue)},[l,Ne(O).toString(),O.size]),A=function(re){for(var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fe=P.length,de=0;de<fe;de+=1){var ve=(re+de*ce+fe)%fe,ye=P[ve]||{},Se=ye.group,Pe=ye.data;if(!Se&&!(Pe!=null&&Pe.disabled)&&(j(Pe.value)||!k))return ve}return-1},D=u.useState(function(){return A(0)}),L=ge(D,2),z=L[0],q=L[1],U=function(re){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;q(re);var fe={source:ce?"keyboard":"mouse"},de=P[re];if(!de){b(null,-1,fe);return}b(de.value,re,fe)};u.useEffect(function(){U(y!==!1?A(0):-1)},[P.length,d]);var H=u.useCallback(function(ue){return l==="combobox"?String(ue).toLowerCase()===d.toLowerCase():O.has(ue)},[l,d,Ne(O).toString(),O.size]);u.useEffect(function(){var ue=setTimeout(function(){if(!s&&a&&O.size===1){var ce=Array.from(O)[0],fe=P.findIndex(function(de){var ve=de.data;return d?String(ve.value).startsWith(d):ve.value===ce});fe!==-1&&(U(fe),M(fe))}});if(a){var re;(re=I.current)===null||re===void 0||re.scrollTo(void 0)}return function(){return clearTimeout(ue)}},[a,d]);var K=function(re){re!==void 0&&v(re,{selected:!O.has(re)}),s||c(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(re){var ce=re.which,fe=re.ctrlKey;switch(ce){case Ze.N:case Ze.P:case Ze.UP:case Ze.DOWN:{var de=0;if(ce===Ze.UP?de=-1:ce===Ze.DOWN?de=1:XB()&&fe&&(ce===Ze.N?de=1:ce===Ze.P&&(de=-1)),de!==0){var ve=A(z+de,de);M(ve),U(ve,!0)}break}case Ze.TAB:case Ze.ENTER:{var ye,Se=P[z];Se&&!(Se!=null&&(ye=Se.data)!==null&&ye!==void 0&&ye.disabled)&&!k?K(Se.value):K(void 0),a&&re.preventDefault();break}case Ze.ESC:c(!1),a&&re.stopPropagation()}},onKeyUp:function(){},scrollTo:function(re){M(re)}}}),P.length===0)return u.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(E,"-empty"),onMouseDown:N},f);var X=Object.keys($).map(function(ue){return $[ue]}),Z=function(re){return re.label};function se(ue,re){var ce=ue.group;return{role:ce?"presentation":"option",id:"".concat(i,"_list_").concat(re)}}var ie=function(re){var ce=P[re];if(!ce)return null;var fe=ce.data||{},de=fe.value,ve=ce.group,ye=lr(fe,!0),Se=Z(ce);return ce?u.createElement("div",we({"aria-label":typeof Se=="string"&&!ve?Se:null},ye,{key:re},se(ce,re),{"aria-selected":H(de)}),de):null},me={role:"listbox",id:"".concat(i,"_list")};return u.createElement(u.Fragment,null,x&&u.createElement("div",we({},me,{style:{height:0,width:0,overflow:"hidden"}}),ie(z-1),ie(z),ie(z+1)),u.createElement(Zw,{itemKey:"key",ref:I,data:P,height:T,itemHeight:R,fullHeight:!1,onMouseDown:N,onScroll:p,virtual:x,direction:w,innerProps:x?null:me},function(ue,re){var ce=ue.group,fe=ue.groupOption,de=ue.data,ve=ue.label,ye=ue.value,Se=de.key;if(ce){var Pe,Ie=(Pe=de.title)!==null&&Pe!==void 0?Pe:S4(ve)?ve.toString():void 0;return u.createElement("div",{className:ae(E,"".concat(E,"-group"),de.className),title:Ie},ve!==void 0?ve:Se)}var $e=de.disabled,Fe=de.title;de.children;var Ee=de.style,ke=de.className,Be=gt(de,YB),je=In(Be,X),We=j(ye),Ye=$e||!We&&k,Xe="".concat(E,"-option"),it=ae(E,Xe,ke,J(J(J(J({},"".concat(Xe,"-grouped"),fe),"".concat(Xe,"-active"),z===re&&!Ye),"".concat(Xe,"-disabled"),Ye),"".concat(Xe,"-selected"),We)),et=Z(ue),ct=!C||typeof C=="function"||We,He=typeof et=="number"?et:et||ye,he=S4(He)?He.toString():void 0;return Fe!==void 0&&(he=Fe),u.createElement("div",we({},lr(je),x?{}:se(ue,re),{"aria-selected":H(ye),className:it,title:he,onMouseMove:function(){z===re||Ye||U(re)},onClick:function(){Ye||K(ye)},style:Ee}),u.createElement("div",{className:"".concat(Xe,"-content")},typeof S=="function"?S(ue,{index:re}):He),u.isValidElement(C)||We,ct&&u.createElement(ip,{className:"".concat(E,"-option-state"),customizeIcon:C,customizeIconProps:{value:ye,disabled:Ye,isSelected:We}},We?"✓":null))}))},ZB=u.forwardRef(QB);const JB=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var p;return Y(Y({},f),{},{label:(p=a.get(f.value))===null||p===void 0?void 0:p.label})}return f}),d=new Map,c=new Map;return l.forEach(function(f){d.set(f.value,f),c.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=d,n.current.options=c,l},[e,t]),o=u.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function Xh(e,t){return Uw(e).join("").toUpperCase().includes(t)}const ez=function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],d=typeof r=="function",c=n.toUpperCase(),f=d?r:function(m,h){return o?Xh(h[o],c):h[i]?Xh(h[a!=="children"?a:"label"],c):Xh(h[s],c)},p=d?function(m){return v1(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=f(n,p(m));if(h)l.push(m);else{var g=m[i].filter(function(b){return f(n,p(b))});g.length&&l.push(Y(Y({},m),{},J({},i,g)))}return}f(n,p(m))&&l.push(m)}),l},[e,r,o,n,t])};var w4=0,tz=Jn();function nz(){var e;return tz?(e=w4,w4+=1):e="TEST_OR_SSR",e}function Jw(e){var t=u.useState(),n=ge(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(nz()))},[]),e||r}var rz=["children","value"],oz=["children"];function iz(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=gt(r,rz);return Y({key:n,value:i!==void 0?i:n,children:o},a)}function eE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rr(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,d=gt(s,oz);return t||!i?iz(n):Y(Y({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},d),{},{options:eE(l)})}).filter(function(n){return n})}var az=function(t,n,r,o,i){return u.useMemo(function(){var a=t,s=!t;s&&(a=eE(n));var l=new Map,d=new Map,c=function(m,h,g){g&&typeof g=="string"&&m.set(h[g],h)},f=function p(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g<m.length;g+=1){var b=m[g];!b[r.options]||h?(l.set(b[r.value],b),c(d,b,r.label),c(d,b,o),c(d,b,i)):p(b[r.options],!0)}};return f(a),{options:a,valueOptions:l,labelOptions:d}},[t,n,r,o,i])};function E4(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var sz=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],lz=["inputValue"];function uz(e){return!e||nt(e)!=="object"}var cz=u.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,d=e.searchValue,c=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,m=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,b=g===void 0?!0:g,y=e.filterOption,v=e.filterSort,C=e.optionFilterProp,O=e.optionLabelProp,$=e.options,x=e.optionRender,w=e.children,T=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,S=e.virtual,E=e.direction,P=e.listHeight,I=P===void 0?200:P,k=e.listItemHeight,N=k===void 0?20:k,M=e.labelRender,j=e.value,A=e.defaultValue,D=e.labelInValue,L=e.onChange,z=e.maxCount,q=gt(e,sz),U=Jw(n),H=y1(r),K=!!(!$&&w),X=u.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),Z=u.useMemo(function(){return Kw(s,K)},[JSON.stringify(s),K]),se=nn("",{value:d!==void 0?d:l,postState:function(Ve){return Ve||""}}),ie=ge(se,2),me=ie[0],ue=ie[1],re=az($,w,Z,C,O),ce=re.valueOptions,fe=re.labelOptions,de=re.options,ve=u.useCallback(function(Ke){var Ve=Uw(Ke);return Ve.map(function(ot){var ut,st,_e,zt,kt;if(uz(ot))ut=ot;else{var Ft;_e=ot.key,st=ot.label,ut=(Ft=ot.value)!==null&&Ft!==void 0?Ft:_e}var _=ce.get(ut);if(_){var G;st===void 0&&(st=_==null?void 0:_[O||Z.label]),_e===void 0&&(_e=(G=_==null?void 0:_.key)!==null&&G!==void 0?G:ut),zt=_==null?void 0:_.disabled,kt=_==null?void 0:_.title}return{label:st,value:ut,key:_e,disabled:zt,title:kt}})},[Z,O,ce]),ye=nn(A,{value:j}),Se=ge(ye,2),Pe=Se[0],Ie=Se[1],$e=u.useMemo(function(){var Ke,Ve=H&&Pe===null?[]:Pe,ot=ve(Ve);return r==="combobox"&&rB((Ke=ot[0])===null||Ke===void 0?void 0:Ke.value)?[]:ot},[Pe,ve,r,H]),Fe=JB($e,ce),Ee=ge(Fe,2),ke=Ee[0],Be=Ee[1],je=u.useMemo(function(){if(!r&&ke.length===1){var Ke=ke[0];if(Ke.value===null&&(Ke.label===null||Ke.label===void 0))return[]}return ke.map(function(Ve){var ot;return Y(Y({},Ve),{},{label:(ot=typeof M=="function"?M(Ve):Ve.label)!==null&&ot!==void 0?ot:Ve.value})})},[r,ke,M]),We=u.useMemo(function(){return new Set(ke.map(function(Ke){return Ke.value}))},[ke]);u.useEffect(function(){if(r==="combobox"){var Ke,Ve=(Ke=ke[0])===null||Ke===void 0?void 0:Ke.value;ue(nB(Ve)?String(Ve):"")}},[ke]);var Ye=E4(function(Ke,Ve){var ot=Ve??Ke;return J(J({},Z.value,Ke),Z.label,ot)}),Xe=u.useMemo(function(){if(r!=="tags")return de;var Ke=Ne(de),Ve=function(ut){return ce.has(ut)};return Ne(ke).sort(function(ot,ut){return ot.value<ut.value?-1:1}).forEach(function(ot){var ut=ot.value;Ve(ut)||Ke.push(Ye(ut,ot.label))}),Ke},[Ye,de,ce,ke,r]),it=ez(Xe,Z,me,X,C),et=u.useMemo(function(){return r!=="tags"||!me||it.some(function(Ke){return Ke[C||"value"]===me})||it.some(function(Ke){return Ke[Z.value]===me})?it:[Ye(me)].concat(Ne(it))},[Ye,C,r,it,me,Z]),ct=function Ke(Ve){var ot=Ne(Ve).sort(function(ut,st){return v(ut,st,{searchValue:me})});return ot.map(function(ut){return Array.isArray(ut.options)?Y(Y({},ut),{},{options:ut.options.length>0?Ke(ut.options):ut.options}):ut})},He=u.useMemo(function(){return v?ct(et):et},[et,v,me]),he=u.useMemo(function(){return OB(He,{fieldNames:Z,childrenAsData:K})},[He,Z,K]),Q=function(Ve){var ot=ve(Ve);if(Ie(ot),L&&(ot.length!==ke.length||ot.some(function(_e,zt){var kt;return((kt=ke[zt])===null||kt===void 0?void 0:kt.value)!==(_e==null?void 0:_e.value)}))){var ut=D?ot:ot.map(function(_e){return _e.value}),st=ot.map(function(_e){return v1(Be(_e.value))});L(H?ut:ut[0],H?st:st[0])}},ee=u.useState(null),ne=ge(ee,2),xe=ne[0],Re=ne[1],De=u.useState(0),Qe=ge(De,2),rt=Qe[0],dt=Qe[1],pt=T!==void 0?T:r!=="combobox",vt=u.useCallback(function(Ke,Ve){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ut=ot.source,st=ut===void 0?"keyboard":ut;dt(Ve),a&&r==="combobox"&&Ke!==null&&st==="keyboard"&&Re(String(Ke))},[a,r]),at=function(Ve,ot,ut){var st=function(){var te,pe=Be(Ve);return[D?{label:pe==null?void 0:pe[Z.label],value:Ve,key:(te=pe==null?void 0:pe.key)!==null&&te!==void 0?te:Ve}:Ve,v1(pe)]};if(ot&&m){var _e=st(),zt=ge(_e,2),kt=zt[0],Ft=zt[1];m(kt,Ft)}else if(!ot&&h&&ut!=="clear"){var _=st(),G=ge(_,2),F=G[0],W=G[1];h(F,W)}},Ge=E4(function(Ke,Ve){var ot,ut=H?Ve.selected:!0;ut?ot=H?[].concat(Ne(ke),[Ke]):[Ke]:ot=ke.filter(function(st){return st.value!==Ke}),Q(ot),at(Ke,ut),r==="combobox"?Re(""):(!y1||p)&&(ue(""),Re(""))}),ze=function(Ve,ot){Q(Ve);var ut=ot.type,st=ot.values;(ut==="remove"||ut==="clear")&&st.forEach(function(_e){at(_e.value,!1,ut)})},Le=function(Ve,ot){if(ue(Ve),Re(null),ot.source==="submit"){var ut=(Ve||"").trim();if(ut){var st=Array.from(new Set([].concat(Ne(We),[ut])));Q(st),at(ut,!0),ue("")}return}ot.source!=="blur"&&(r==="combobox"&&Q(Ve),c==null||c(Ve))},Je=function(Ve){var ot=Ve;r!=="tags"&&(ot=Ve.map(function(st){var _e=fe.get(st);return _e==null?void 0:_e.value}).filter(function(st){return st!==void 0}));var ut=Array.from(new Set([].concat(Ne(We),Ne(ot))));Q(ut),ut.forEach(function(st){at(st,!0)})},Ct=u.useMemo(function(){var Ke=S!==!1&&b!==!1;return Y(Y({},re),{},{flattenOptions:he,onActiveValue:vt,defaultActiveFirstOption:pt,onSelect:Ge,menuItemSelectedIcon:R,rawValues:We,fieldNames:Z,virtual:Ke,direction:E,listHeight:I,listItemHeight:N,childrenAsData:K,maxCount:z,optionRender:x})},[z,re,he,vt,pt,Ge,R,We,Z,S,b,E,I,N,K,x]);return u.createElement(E2.Provider,{value:Ct},u.createElement(qw,we({},q,{id:U,prefixCls:i,ref:t,omitDomProps:lz,mode:r,displayValues:je,onDisplayValuesChange:ze,direction:E,searchValue:me,onSearch:Le,autoClearSearchValue:p,onSearchSplit:Je,dropdownMatchSelectWidth:b,OptionList:ZB,emptyOptions:!he.length,activeValue:xe,activeDescendantId:"".concat(U,"_list_").concat(rt)})))}),tE=cz;tE.Option=Xw;tE.OptGroup=Gw;function Hf(e,t,n){return ae({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const sp=(e,t)=>t||e,dz=()=>{const[,e]=Tr(),[t]=ei("Empty"),r=new Mt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fz=()=>{const[,e]=Tr(),[t]=ei("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=u.useMemo(()=>({borderColor:new Mt(n).onBackground(i).toHexString(),shadowColor:new Mt(r).onBackground(i).toHexString(),contentColor:new Mt(o).onBackground(i).toHexString()}),[n,r,o,i]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:a},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},pz=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hz=Zt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Pt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[pz(o)]});var mz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nE=u.createElement(dz,null),rE=u.createElement(fz,null),pa=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=nE,description:i,children:a,imageStyle:s,style:l,classNames:d,styles:c}=e,f=mz(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:m,className:h,style:g,classNames:b,styles:y}=vr("empty"),v=p("empty",r),[C,O,$]=hz(v),[x]=ei("Empty"),w=typeof i<"u"?i:x==null?void 0:x.description,T=typeof w=="string"?w:"empty";let R=null;return typeof o=="string"?R=u.createElement("img",{alt:T,src:o}):R=o,C(u.createElement("div",Object.assign({className:ae(O,$,v,h,{[`${v}-normal`]:o===rE,[`${v}-rtl`]:m==="rtl"},t,n,b.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),g),c==null?void 0:c.root),l)},f),u.createElement("div",{className:ae(`${v}-image`,b.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),y.image),c==null?void 0:c.image)},R),w&&u.createElement("div",{className:ae(`${v}-description`,b.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},y.description),c==null?void 0:c.description)},w),a&&u.createElement("div",{className:ae(`${v}-footer`,b.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},y.footer),c==null?void 0:c.footer)},a)))};pa.PRESENTED_IMAGE_DEFAULT=nE;pa.PRESENTED_IMAGE_SIMPLE=rE;const oE=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(bt),r=n("empty");switch(t){case"Table":case"List":return V.createElement(pa,{image:pa.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return V.createElement(pa,{image:pa.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return V.createElement(pa,null)}},lp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=u.useContext(bt),s=u.useContext(yL),l=a==null?void 0:a.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const c=RM.includes(d);return[d,c]},gz=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function vz(e,t){return e||gz(t)}const $4=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},yz=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},$n(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
224
|
+
${o}${s}bottomLeft,
|
|
225
|
+
${i}${s}bottomLeft
|
|
226
|
+
`]:{animationName:K5},[`
|
|
227
|
+
${o}${s}topLeft,
|
|
228
|
+
${i}${s}topLeft,
|
|
229
|
+
${o}${s}topRight,
|
|
230
|
+
${i}${s}topRight
|
|
231
|
+
`]:{animationName:G5},[`${a}${s}bottomLeft`]:{animationName:q5},[`
|
|
232
|
+
${a}${s}topLeft,
|
|
233
|
+
${a}${s}topRight
|
|
234
|
+
`]:{animationName:X5},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},$4(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Qo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},$4(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Df(e,"slide-up"),Df(e,"slide-down"),P3(e,"move-up"),P3(e,"move-down")]},bz=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:be(t),itemLineHeight:be(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Cz=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},xz=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:d,INTERNAL_FIXED_ITEM_MARGIN:c}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:c,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(c).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},cc()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},Sz=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=Cz(e),s=t?`${n}-${t}`:"",l=bz(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},xz(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${be(r)} 0`,lineHeight:be(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:be(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:be(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
235
|
+
${n}-prefix + ${n}-selection-wrap
|
|
236
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:be(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Yh(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
237
|
+
&${n}-show-arrow ${n}-selector,
|
|
238
|
+
&${n}-allow-clear ${n}-selector
|
|
239
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Sz(e,t),o]}const wz=e=>{const{componentCls:t}=e,n=Pt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Pt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Yh(e),Yh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Yh(r,"lg")]};function Qh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},$n(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:be(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
240
|
+
${n}-selection-item,
|
|
241
|
+
${n}-selection-placeholder
|
|
242
|
+
`]:{display:"block",padding:0,lineHeight:be(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
243
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
244
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
245
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
246
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${be(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:be(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${be(r)}`,"&:after":{display:"none"}}}}}}}function Ez(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Qh(e),Qh(Pt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${be(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
247
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
248
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
249
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Qh(Pt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const $z=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:d,colorText:c,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:b,colorTextDisabled:y,colorPrimaryHover:v,colorPrimary:C,controlOutline:O}=e,$=s*2,x=r*2,w=Math.min(o-$,o-x),T=Math.min(i-$,i-x),R=Math.min(a-$,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:d+50,optionSelectedColor:c,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:T,multipleItemHeightLG:R,multipleSelectorBgDisabled:b,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:C,activeOutlineColor:O,selectAffixPadding:s}},iE=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${be(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${be(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},R4=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},iE(e,t))}),Rz=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},iE(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),R4(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),R4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),aE=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${be(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},O4=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},aE(e,t))}),Oz=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},aE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),O4(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),O4(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Pz=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),sE=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${be(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},P4=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sE(e,t))}),Iz=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},sE(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),P4(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),P4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Tz=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Rz(e)),Oz(e)),Pz(e)),Iz(e))}),_z=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},kz=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Mz=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},_z(e)),kz(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Qo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Qo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},cc()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Az=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Mz(e),Ez(e),wz(e),yz(e),{[`${t}-rtl`]:{direction:"rtl"}},np(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Nz=Zt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Pt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Az(r),Tz(r)]},$z,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function jz(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:d,feedbackIcon:c,showArrow:f,componentName:p}=e;const m=n??u.createElement(aa,null),h=v=>t===null&&!s&&!f?null:u.createElement(u.Fragment,null,d!==!1&&v,s&&c);let g=null;if(t!==void 0)g=h(t);else if(i)g=h(u.createElement(Aa,{spin:!0}));else{const v=`${l}-suffix`;g=C=>{let{open:O,showSearch:$}=C;return h(O&&$?u.createElement(qv,{className:v}):u.createElement(_I,{className:v}))}}let b=null;r!==void 0?b=r:a?b=u.createElement(Uv,null):b=null;let y=null;return o!==void 0?y=o:y=u.createElement(Jo,null),{clearIcon:m,suffixIcon:g,itemIcon:b,removeIcon:y}}function Fz(e,t){return t!==void 0?t:e!==null}const Lz=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},Dz=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},tl=["xxl","xl","lg","md","sm","xs"],Bz=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),zz=e=>{const t=e,n=[].concat(tl).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const c=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`)}}),e},Hz=()=>{const[,e]=Tr(),t=Bz(zz(e));return V.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(i=>{let[a,s]=i;const l=c=>{let{matches:f}=c;this.dispatch(Object.assign(Object.assign({},o),{[a]:f}))},d=window.matchMedia(s);Lz(d,l),this.matchHandlers[s]={mql:d,listener:l},l(d)})},unregister(){Object.values(t).forEach(i=>{const a=this.matchHandlers[i];Dz(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[e])};function lE(){const[,e]=u.useReducer(t=>t+1,0);return e}function uE(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=u.useRef(t),r=lE(),o=Hz();return Ut(()=>{const i=o.subscribe(a=>{n.current=a,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}const C1=u.createContext({}),Vz=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:d,textFontSizeLG:c,textFontSizeSM:f,borderRadius:p,borderRadiusLG:m,borderRadiusSM:h,lineWidth:g,lineType:b}=e,y=(v,C,O)=>({width:v,height:v,borderRadius:"50%",[`&${n}-square`]:{borderRadius:O},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${be(g)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,d,p)),{"&-lg":Object.assign({},y(s,c,m)),"&-sm":Object.assign({},y(l,f,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Uz=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},Wz=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:d,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:d,groupOverlapping:-l,groupBorderColor:c}},cE=Zt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Pt(e,{avatarBg:n,avatarColor:t});return[Vz(r),Uz(r)]},Wz);var Kz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dE=u.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:i,srcSet:a,icon:s,className:l,rootClassName:d,style:c,alt:f,draggable:p,children:m,crossOrigin:h,gap:g=4,onError:b}=e,y=Kz(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[v,C]=u.useState(1),[O,$]=u.useState(!1),[x,w]=u.useState(!0),T=u.useRef(null),R=u.useRef(null),S=Xr(t,T),{getPrefixCls:E,avatar:P}=u.useContext(bt),I=u.useContext(C1),k=()=>{if(!R.current||!T.current)return;const ue=R.current.offsetWidth,re=T.current.offsetWidth;ue!==0&&re!==0&&g*2<re&&C(re-g*2<ue?(re-g*2)/ue:1)};u.useEffect(()=>{$(!0)},[]),u.useEffect(()=>{w(!0),C(1)},[i]),u.useEffect(k,[g]);const N=()=>{(b==null?void 0:b())!==!1&&w(!1)},M=Mo(ue=>{var re,ce;return(ce=(re=o??(I==null?void 0:I.size))!==null&&re!==void 0?re:ue)!==null&&ce!==void 0?ce:"default"}),j=Object.keys(typeof M=="object"?M||{}:{}).some(ue=>["xs","sm","md","lg","xl","xxl"].includes(ue)),A=uE(j),D=u.useMemo(()=>{if(typeof M!="object")return{};const ue=tl.find(ce=>A[ce]),re=M[ue];return re?{width:re,height:re,fontSize:re&&(s||m)?re/2:18}:{}},[A,M]),L=E("avatar",n),z=ur(L),[q,U,H]=cE(L,z),K=ae({[`${L}-lg`]:M==="large",[`${L}-sm`]:M==="small"}),X=u.isValidElement(i),Z=r||(I==null?void 0:I.shape)||"circle",se=ae(L,K,P==null?void 0:P.className,`${L}-${Z}`,{[`${L}-image`]:X||i&&x,[`${L}-icon`]:!!s},H,z,l,d,U),ie=typeof M=="number"?{width:M,height:M,fontSize:s?M/2:18}:{};let me;if(typeof i=="string"&&x)me=u.createElement("img",{src:i,draggable:p,srcSet:a,onError:N,alt:f,crossOrigin:h});else if(X)me=i;else if(s)me=s;else if(O||v!==1){const ue=`scale(${v})`,re={msTransform:ue,WebkitTransform:ue,transform:ue};me=u.createElement(zr,{onResize:k},u.createElement("span",{className:`${L}-string`,ref:R,style:Object.assign({},re)},m))}else me=u.createElement("span",{className:`${L}-string`,style:{opacity:0},ref:R},m);return q(u.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),D),P==null?void 0:P.style),c),className:se,ref:S}),me))}),Vf=e=>e?typeof e=="function"?e():e:null;function $2(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return u.createElement("div",{className:ae("".concat(n,"-content"),a),style:s},u.createElement("div",{className:ae("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Qa={shiftX:64,adjustY:1},Za={adjustX:1,shiftY:!0},to=[0,0],qz={left:{points:["cr","cl"],overflow:Za,offset:[-4,0],targetOffset:to},right:{points:["cl","cr"],overflow:Za,offset:[4,0],targetOffset:to},top:{points:["bc","tc"],overflow:Qa,offset:[0,-4],targetOffset:to},bottom:{points:["tc","bc"],overflow:Qa,offset:[0,4],targetOffset:to},topLeft:{points:["bl","tl"],overflow:Qa,offset:[0,-4],targetOffset:to},leftTop:{points:["tr","tl"],overflow:Za,offset:[-4,0],targetOffset:to},topRight:{points:["br","tr"],overflow:Qa,offset:[0,-4],targetOffset:to},rightTop:{points:["tl","tr"],overflow:Za,offset:[4,0],targetOffset:to},bottomRight:{points:["tr","br"],overflow:Qa,offset:[0,4],targetOffset:to},rightBottom:{points:["bl","br"],overflow:Za,offset:[4,0],targetOffset:to},bottomLeft:{points:["tl","bl"],overflow:Qa,offset:[0,4],targetOffset:to},leftBottom:{points:["br","bl"],overflow:Za,offset:[-4,0],targetOffset:to}},Gz=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Xz=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,d=l===void 0?.1:l,c=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,m=t.children,h=t.onVisibleChange,g=t.afterVisibleChange,b=t.transitionName,y=t.animation,v=t.motion,C=t.placement,O=C===void 0?"right":C,$=t.align,x=$===void 0?{}:$,w=t.destroyTooltipOnHide,T=w===void 0?!1:w,R=t.defaultVisible,S=t.getTooltipContainer,E=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,I=t.id,k=t.showArrow,N=k===void 0?!0:k,M=t.classNames,j=t.styles,A=gt(t,Gz),D=y2(I),L=u.useRef(null);u.useImperativeHandle(n,function(){return L.current});var z=Y({},A);"visible"in t&&(z.popupVisible=t.visible);var q=function(){return u.createElement($2,{key:"content",prefixCls:p,id:D,bodyClassName:M==null?void 0:M.body,overlayInnerStyle:Y(Y({},E),j==null?void 0:j.body)},P)},U=function(){var K=u.Children.only(m),X=(K==null?void 0:K.props)||{},Z=Y(Y({},X),{},{"aria-describedby":P?D:null});return u.cloneElement(m,Z)};return u.createElement(ap,we({popupClassName:ae(r,M==null?void 0:M.root),prefixCls:p,popup:q,action:i,builtinPlacements:qz,popupPlacement:O,ref:L,popupAlign:x,getPopupContainer:S,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:b,popupAnimation:y,popupMotion:v,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:d,popupStyle:Y(Y({},c),j==null?void 0:j.root),mouseEnterDelay:s,arrow:N},z),U())};const Yz=u.forwardRef(Xz);function fE(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),d=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-d,p=c,m=2*o-s,h=l,g=2*o-i,b=a,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),C=`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`,O=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${d} ${c} A ${n} ${n} 0 0 1 ${f} ${p} L ${m} ${h} A ${r} ${r} 0 0 0 ${g} ${b} Z')`;return{arrowShadowWidth:y,arrowPath:O,arrowPolygon:C}}const Qz=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${be(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},pE=8;function R2(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?pE:r}}function ud(e,t){return e?t:{}}function hE(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Qz(e,t,o)),{"&:before":{background:t}})]},ud(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ud(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ud(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),ud(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function Zz(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const I4={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Jz={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},eH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function tH(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i}=e,a=t/2,s={};return Object.keys(I4).forEach(l=>{const d=r&&Jz[l]||I4[l],c=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[l]=c,eH.has(l)&&(c.autoArrow=!1),l){case"top":case"topLeft":case"topRight":c.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=a+o;break}const f=R2({contentRadius:i,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":c.offset[0]=-f.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":c.offset[0]=f.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":c.offset[1]=-f.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":c.offset[1]=f.arrowOffsetHorizontal*2-a;break}c.overflow=Zz(l,f,t,n),c.htmlRegion="visibleFirst"}),s}const nH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:d,paddingSM:c,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:m}=e,h=t(a).add(m).add(p).equal(),g=t(a).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${be(e.calc(c).div(2).equal())} ${be(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,pE)}},[`${n}-content`]:{position:"relative"}}),p5(e,(b,y)=>{let{darkColor:v}=y;return{[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:v},[`${n}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},hE(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},R2({contentRadius:e.borderRadius,limitVerticalRadius:!0})),fE(Pt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),mE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Zt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=Pt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[nH(s),X0(r,"zoom-big-fast")]},rH,{resetStyle:!1,injectStyle:t})(e)},oH=ea.map(e=>`${e}-inverse`),iH=["success","processing","error","default","warning"];function gE(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ne(oH),Ne(ea)).includes(e):ea.includes(e)}function aH(e){return iH.includes(e)}function vE(e,t){const n=gE(t),r=ae({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const sH=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=u.useContext(bt),l=s("tooltip",t),[d,c,f]=mE(l),p=vE(l,i),m=p.arrowStyle,h=Object.assign(Object.assign({},a),p.overlayStyle),g=ae(c,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return d(u.createElement("div",{className:g,style:m},u.createElement("div",{className:`${l}-arrow`}),u.createElement($2,Object.assign({},e,{className:c,prefixCls:l,overlayInnerStyle:h}),o)))};var lH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uH=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:d,afterOpenChange:c,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:h=!0,title:g,overlay:b,builtinPlacements:y,arrowPointAtCenter:v=!1,autoAdjustOverflow:C=!0,motion:O,getPopupContainer:$,placement:x="top",mouseEnterDelay:w=.1,mouseLeaveDelay:T=.1,overlayStyle:R,rootClassName:S,overlayClassName:E,styles:P,classNames:I}=e,k=lH(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),N=!!h,[,M]=Tr(),{getPopupContainer:j,getPrefixCls:A,direction:D,className:L,style:z,classNames:q,styles:U}=vr("tooltip"),H=D0(),K=u.useRef(null),X=()=>{var et;(et=K.current)===null||et===void 0||et.forceAlign()};u.useImperativeHandle(t,()=>{var et,ct;return{forceAlign:X,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),X()},nativeElement:(et=K.current)===null||et===void 0?void 0:et.nativeElement,popupElement:(ct=K.current)===null||ct===void 0?void 0:ct.popupElement}});const[Z,se]=nn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ie=!g&&!b&&g!==0,me=et=>{var ct,He;se(ie?!1:et),ie||((ct=e.onOpenChange)===null||ct===void 0||ct.call(e,et),(He=e.onVisibleChange)===null||He===void 0||He.call(e,et))},ue=u.useMemo(()=>{var et,ct;let He=v;return typeof h=="object"&&(He=(ct=(et=h.pointAtCenter)!==null&&et!==void 0?et:h.arrowPointAtCenter)!==null&&ct!==void 0?ct:v),y||tH({arrowPointAtCenter:He,autoAdjustOverflow:C,arrowWidth:N?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS})},[v,h,y,M]),re=u.useMemo(()=>g===0?g:b||g||"",[b,g]),ce=u.createElement(Bu,{space:!0},typeof re=="function"?re():re),fe=A("tooltip",o),de=A(),ve=e["data-popover-inject"];let ye=Z;!("open"in e)&&!("visible"in e)&&ie&&(ye=!1);const Se=u.isValidElement(d)&&!O5(d)?d:u.createElement("span",null,d),Pe=Se.props,Ie=!Pe.className||typeof Pe.className=="string"?ae(Pe.className,i||`${fe}-open`):Pe.className,[$e,Fe,Ee]=mE(fe,!ve),ke=vE(fe,s),Be=ke.arrowStyle,je=ae(E,{[`${fe}-rtl`]:D==="rtl"},ke.className,S,Fe,Ee,L,q.root,I==null?void 0:I.root),We=ae(q.body,I==null?void 0:I.body),[Ye,Xe]=hl("Tooltip",k.zIndex),it=u.createElement(Yz,Object.assign({},k,{zIndex:Ye,showArrow:N,placement:x,mouseEnterDelay:w,mouseLeaveDelay:T,prefixCls:fe,classNames:{root:je,body:We},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Be),U.root),z),R),P==null?void 0:P.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),l),P==null?void 0:P.body),ke.overlayStyle)},getTooltipContainer:$||a||j,ref:K,builtinPlacements:ue,overlay:ce,visible:ye,onVisibleChange:me,afterVisibleChange:c??f,arrowContent:u.createElement("span",{className:`${fe}-arrow-content`}),motion:{motionName:hr(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!p}),ye?Ur(Se,{className:Ie}):Se);return $e(u.createElement(U0.Provider,{value:Xe},it))}),Oo=uH;Oo._InternalPanelDoNotUseOrYouWillBeFired=sH;const cH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:d,titleMarginBottom:c,colorBgElevated:f,popoverBg:p,titleBorderBottom:m,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},$n(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:c,color:s,fontWeight:o,borderBottom:m,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},hE(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},dH=e=>{const{componentCls:t}=e;return{[t]:ea.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},fH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:d,colorSplit:c,paddingSM:f}=e,p=n-r,m=p/2,h=p/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},fE(e)),R2({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${m}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${d} ${c}`:"none",innerContentPadding:i?`${f}px ${g}px`:0})},yE=Zt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Pt(e,{popoverBg:t,popoverColor:n});return[cH(r),dH(r),X0(r,"zoom-big")]},fH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var pH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bE=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:u.createElement(u.Fragment,null,t&&u.createElement("div",{className:`${r}-title`},t),n&&u.createElement("div",{className:`${r}-inner-content`},n))},hH=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,d=Vf(a),c=Vf(s),f=ae(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return u.createElement("div",{className:f,style:o},u.createElement("div",{className:`${n}-arrow`}),u.createElement($2,Object.assign({},e,{className:t,prefixCls:n}),l||u.createElement(bE,{prefixCls:n,title:d,content:c})))},mH=e=>{const{prefixCls:t,className:n}=e,r=pH(e,["prefixCls","className"]),{getPrefixCls:o}=u.useContext(bt),i=o("popover",t),[a,s,l]=yE(i);return a(u.createElement(hH,Object.assign({},r,{prefixCls:i,hashId:s,className:ae(n,l)})))};var gH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vH=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:d="hover",children:c,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:m,overlayStyle:h={},styles:g,classNames:b}=e,y=gH(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:v,className:C,style:O,classNames:$,styles:x}=vr("popover"),w=v("popover",o),[T,R,S]=yE(w),E=v(),P=ae(s,R,S,C,$.root,b==null?void 0:b.root),I=ae($.body,b==null?void 0:b.body),[k,N]=nn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(z,q)=>{N(z,!0),m==null||m(z,q)},j=z=>{z.keyCode===Ze.ESC&&M(!1,z)},A=z=>{M(z)},D=Vf(i),L=Vf(a);return T(u.createElement(Oo,Object.assign({placement:l,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:p},y,{prefixCls:w,classNames:{root:P,body:I},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),O),h),g==null?void 0:g.root),body:Object.assign(Object.assign({},x.body),g==null?void 0:g.body)},ref:t,open:k,onOpenChange:A,overlay:D||L?u.createElement(bE,{prefixCls:w,title:D,content:L}):null,transitionName:hr(E,"zoom-big",y.transitionName),"data-popover-inject":!0}),Ur(c,{onKeyDown:z=>{var q,U;u.isValidElement(c)&&((U=c==null?void 0:(q=c.props).onKeyDown)===null||U===void 0||U.call(q,z)),j(z)}})))}),CE=vH;CE._InternalPanelDoNotUseOrYouWillBeFired=mH;const T4=e=>{const{size:t,shape:n}=u.useContext(C1),r=u.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return u.createElement(C1.Provider,{value:r},e.children)},yH=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=u.useContext(bt),{prefixCls:s,className:l,rootClassName:d,style:c,maxCount:f,maxStyle:p,size:m,shape:h,maxPopoverPlacement:g,maxPopoverTrigger:b,children:y,max:v}=e,C=i("avatar",s),O=`${C}-group`,$=ur(C),[x,w,T]=cE(C,$),R=ae(O,{[`${O}-rtl`]:a==="rtl"},T,$,l,d,w),S=Rr(y).map((I,k)=>Ur(I,{key:`avatar-key-${k}`})),E=(v==null?void 0:v.count)||f,P=S.length;if(E&&E<P){const I=S.slice(0,E),k=S.slice(E,P),N=(v==null?void 0:v.style)||p,M=((t=v==null?void 0:v.popover)===null||t===void 0?void 0:t.trigger)||b||"hover",j=((n=v==null?void 0:v.popover)===null||n===void 0?void 0:n.placement)||g||"top",A=Object.assign(Object.assign({content:k},v==null?void 0:v.popover),{classNames:{root:ae(`${O}-popover`,(o=(r=v==null?void 0:v.popover)===null||r===void 0?void 0:r.classNames)===null||o===void 0?void 0:o.root)},placement:j,trigger:M});return I.push(u.createElement(CE,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},A),u.createElement(dE,{style:N},`+${P-E}`))),x(u.createElement(T4,{shape:h,size:m},u.createElement("div",{className:R,style:c},I)))}return x(u.createElement(T4,{shape:h,size:m},u.createElement("div",{className:R,style:c},S)))},Uf=dE;Uf.Group=yH;var bH=Ze.ESC,CH=Ze.TAB;function xH(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=u.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},l=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},d=function(f){switch(f.keyCode){case bH:s();break;case CH:{var p=!1;a.current||(p=l()),p?f.preventDefault():s();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",d),o&&en(l,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[t])}var SH=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=u.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Xr(t,fl(i));return V.createElement(V.Fragment,null,r&&V.createElement("div",{className:"".concat(o,"-arrow")}),V.cloneElement(i,{ref:Ba(i)?a:void 0}))}),Ja={adjustX:1,adjustY:1},es=[0,0],wH={topLeft:{points:["bl","tl"],overflow:Ja,offset:[0,-4],targetOffset:es},top:{points:["bc","tc"],overflow:Ja,offset:[0,-4],targetOffset:es},topRight:{points:["br","tr"],overflow:Ja,offset:[0,-4],targetOffset:es},bottomLeft:{points:["tl","bl"],overflow:Ja,offset:[0,4],targetOffset:es},bottom:{points:["tc","bc"],overflow:Ja,offset:[0,4],targetOffset:es},bottomRight:{points:["tr","br"],overflow:Ja,offset:[0,4],targetOffset:es}},EH=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function $H(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,d=e.align,c=e.placement,f=c===void 0?"bottomLeft":c,p=e.placements,m=p===void 0?wH:p,h=e.getPopupContainer,g=e.showAction,b=e.hideAction,y=e.overlayClassName,v=e.overlayStyle,C=e.visible,O=e.trigger,$=O===void 0?["hover"]:O,x=e.autoFocus,w=e.overlay,T=e.children,R=e.onVisibleChange,S=gt(e,EH),E=V.useState(),P=ge(E,2),I=P[0],k=P[1],N="visible"in e?C:I,M=V.useRef(null),j=V.useRef(null),A=V.useRef(null);V.useImperativeHandle(t,function(){return M.current});var D=function(se){k(se),R==null||R(se)};xH({visible:N,triggerRef:A,onVisibleChange:D,autoFocus:x,overlayRef:j});var L=function(se){var ie=e.onOverlayClick;k(!1),ie&&ie(se)},z=function(){return V.createElement(SH,{ref:j,overlay:w,prefixCls:a,arrow:o})},q=function(){return typeof w=="function"?z:z()},U=function(){var se=e.minOverlayWidthMatchTrigger,ie=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?se:!ie},H=function(){var se=e.openClassName;return se!==void 0?se:"".concat(a,"-open")},K=V.cloneElement(T,{className:ae((n=T.props)===null||n===void 0?void 0:n.className,N&&H()),ref:Ba(T)?Xr(A,fl(T)):void 0}),X=b;return!X&&$.indexOf("contextMenu")!==-1&&(X=["click"]),V.createElement(ap,we({builtinPlacements:m},S,{prefixCls:a,ref:M,popupClassName:ae(y,J({},"".concat(a,"-show-arrow"),o)),popupStyle:v,action:$,showAction:g,hideAction:X,popupPlacement:f,popupAlign:d,popupTransitionName:s,popupAnimation:l,popupVisible:N,stretch:U()?"minWidth":"",popup:q(),onPopupVisibleChange:D,onPopupClick:L,getPopupContainer:h}),K)}const RH=V.forwardRef($H);var xE=u.createContext(null);function SE(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function wE(e){var t=u.useContext(xE);return SE(t,e)}var OH=["children","locked"],To=u.createContext(null);function PH(e,t){var n=Y({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Hu(e){var t=e.children,n=e.locked,r=gt(e,OH),o=u.useContext(To),i=dl(function(){return PH(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!Ji(a[1],s[1],!0))});return u.createElement(To.Provider,{value:i},t)}var IH=[],EE=u.createContext(null);function up(){return u.useContext(EE)}var $E=u.createContext(IH);function Cc(e){var t=u.useContext($E);return u.useMemo(function(){return e!==void 0?[].concat(Ne(t),[e]):t},[t,e])}var RE=u.createContext(null),O2=u.createContext({});function _4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(h2(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function TH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ne(e.querySelectorAll("*")).filter(function(r){return _4(r,t)});return _4(e,t)&&n.unshift(e),n}var x1=Ze.LEFT,S1=Ze.RIGHT,w1=Ze.UP,Xd=Ze.DOWN,Yd=Ze.ENTER,OE=Ze.ESC,jl=Ze.HOME,Fl=Ze.END,k4=[w1,Xd,x1,S1];function _H(e,t,n,r){var o,i="prev",a="next",s="children",l="parent";if(e==="inline"&&r===Yd)return{inlineTrigger:!0};var d=J(J({},w1,i),Xd,a),c=J(J(J(J({},x1,n?a:i),S1,n?i:a),Xd,s),Yd,s),f=J(J(J(J(J(J({},w1,i),Xd,a),Yd,s),OE,l),x1,n?s:l),S1,n?l:s),p={inline:d,horizontal:c,vertical:f,inlineSub:d,horizontalSub:f,verticalSub:f},m=(o=p["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(m){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function kH(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function MH(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function P2(e,t){var n=TH(e,!0);return n.filter(function(r){return t.has(r)})}function M4(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=P2(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var E1=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(SE(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function AH(e,t,n,r,o,i,a,s,l,d){var c=u.useRef(),f=u.useRef();f.current=t;var p=function(){en.cancel(c.current)};return u.useEffect(function(){return function(){p()}},[]),function(m){var h=m.which;if([].concat(k4,[Yd,OE,jl,Fl]).includes(h)){var g=i(),b=E1(g,r),y=b,v=y.elements,C=y.key2element,O=y.element2key,$=C.get(t),x=MH($,v),w=O.get(x),T=_H(e,a(w,!0).length===1,n,h);if(!T&&h!==jl&&h!==Fl)return;(k4.includes(h)||[jl,Fl].includes(h))&&m.preventDefault();var R=function(j){if(j){var A=j,D=j.querySelector("a");D!=null&&D.getAttribute("href")&&(A=D);var L=O.get(j);s(L),p(),c.current=en(function(){f.current===L&&A.focus()})}};if([jl,Fl].includes(h)||T.sibling||!x){var S;!x||e==="inline"?S=o.current:S=kH(x);var E,P=P2(S,v);h===jl?E=P[0]:h===Fl?E=P[P.length-1]:E=M4(S,v,x,T.offset),R(E)}else if(T.inlineTrigger)l(w);else if(T.offset>0)l(w,!0),p(),c.current=en(function(){b=E1(g,r);var M=x.getAttribute("aria-controls"),j=document.getElementById(M),A=M4(j,b.elements);R(A)},5);else if(T.offset<0){var I=a(w,!0),k=I[I.length-2],N=C.get(k);l(k,!1),R(N)}}d==null||d(m)}}function NH(e){Promise.resolve().then(e)}var I2="__RC_UTIL_PATH_SPLIT__",A4=function(t){return t.join(I2)},jH=function(t){return t.split(I2)},$1="rc-menu-more";function FH(){var e=u.useState({}),t=ge(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),i=u.useState([]),a=ge(i,2),s=a[0],l=a[1],d=u.useRef(0),c=u.useRef(!1),f=function(){c.current||n({})},p=u.useCallback(function(C,O){var $=A4(O);o.current.set($,C),r.current.set(C,$),d.current+=1;var x=d.current;NH(function(){x===d.current&&f()})},[]),m=u.useCallback(function(C,O){var $=A4(O);o.current.delete($),r.current.delete(C)},[]),h=u.useCallback(function(C){l(C)},[]),g=u.useCallback(function(C,O){var $=r.current.get(C)||"",x=jH($);return O&&s.includes(x[0])&&x.unshift($1),x},[s]),b=u.useCallback(function(C,O){return C.filter(function($){return $!==void 0}).some(function($){var x=g($,!0);return x.includes(O)})},[g]),y=function(){var O=Ne(r.current.keys());return s.length&&O.push($1),O},v=u.useCallback(function(C){var O="".concat(r.current.get(C)).concat(I2),$=new Set;return Ne(o.current.keys()).forEach(function(x){x.startsWith(O)&&$.add(o.current.get(x))}),$},[]);return u.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:h,isSubPathKey:b,getKeyPath:g,getKeys:y,getSubPathKeys:v}}function Gl(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var LH=Math.random().toFixed(5).toString().slice(2),N4=0;function DH(e){var t=nn(e,{value:e}),n=ge(t,2),r=n[0],o=n[1];return u.useEffect(function(){N4+=1;var i="".concat(LH,"-").concat(N4);o("rc-menu-uuid-".concat(i))},[]),r}function PE(e,t,n,r){var o=u.useContext(To),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(d){n==null||n({key:e,domEvent:d}),a(e)},l.onMouseLeave=function(d){r==null||r({key:e,domEvent:d}),s(e)}),l}function IE(e){var t=u.useContext(To),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function TE(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=u.createElement(t,Y({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var BH=["item"];function Wf(e){var t=e.item,n=gt(e,BH);return Object.defineProperty(n,"item",{get:function(){return An(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var zH=["title","attribute","elementRef"],HH=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],VH=["active"],UH=function(e){_o(n,e);var t=ko(n);function n(){return xn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=gt(o,zH),d=In(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return An(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(Go.Item,we({},a,{title:typeof i=="string"?i:void 0},d,{ref:s}))}}]),n}(u.Component),WH=u.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,a=e.itemIcon,s=e.children,l=e.role,d=e.onMouseEnter,c=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,m=e.onFocus,h=gt(e,HH),g=wE(o),b=u.useContext(To),y=b.prefixCls,v=b.onItemClick,C=b.disabled,O=b.overflowDisabled,$=b.itemIcon,x=b.selectedKeys,w=b.onActive,T=u.useContext(O2),R=T._internalRenderMenuItem,S="".concat(y,"-item"),E=u.useRef(),P=u.useRef(),I=C||i,k=Ci(t,P),N=Cc(o),M=function(ie){return{key:o,keyPath:Ne(N).reverse(),item:E.current,domEvent:ie}},j=a||$,A=PE(o,I,d,c),D=A.active,L=gt(A,VH),z=x.includes(o),q=IE(N.length),U=function(ie){if(!I){var me=M(ie);f==null||f(Wf(me)),v(me)}},H=function(ie){if(p==null||p(ie),ie.which===Ze.ENTER){var me=M(ie);f==null||f(Wf(me)),v(me)}},K=function(ie){w(o),m==null||m(ie)},X={};e.role==="option"&&(X["aria-selected"]=z);var Z=u.createElement(UH,we({ref:E,elementRef:k,role:l===null?"none":l||"menuitem",tabIndex:i?null:-1,"data-menu-id":O&&g?null:g},In(h,["extra"]),L,X,{component:"li","aria-disabled":i,style:Y(Y({},q),n),className:ae(S,J(J(J({},"".concat(S,"-active"),D),"".concat(S,"-selected"),z),"".concat(S,"-disabled"),I),r),onClick:U,onKeyDown:H,onFocus:K}),s,u.createElement(TE,{props:Y(Y({},e),{},{isSelected:z}),icon:j}));return R&&(Z=R(Z,e,{selected:z})),Z});function KH(e,t){var n=e.eventKey,r=up(),o=Cc(n);return u.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:u.createElement(WH,we({},e,{ref:t}))}const cp=u.forwardRef(KH);var qH=["className","children"],GH=function(t,n){var r=t.className,o=t.children,i=gt(t,qH),a=u.useContext(To),s=a.prefixCls,l=a.mode,d=a.rtl;return u.createElement("ul",we({className:ae(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},T2=u.forwardRef(GH);T2.displayName="SubMenuList";function _2(e,t){return Rr(e).map(function(n,r){if(u.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(Ne(t),[r]).join("-")));var d={key:s,eventKey:s};return u.cloneElement(n,d)}return n})}var rr={adjustX:1,adjustY:1},XH={topLeft:{points:["bl","tl"],overflow:rr},topRight:{points:["br","tr"],overflow:rr},bottomLeft:{points:["tl","bl"],overflow:rr},bottomRight:{points:["tr","br"],overflow:rr},leftTop:{points:["tr","tl"],overflow:rr},leftBottom:{points:["br","bl"],overflow:rr},rightTop:{points:["tl","tr"],overflow:rr},rightBottom:{points:["bl","br"],overflow:rr}},YH={topLeft:{points:["bl","tl"],overflow:rr},topRight:{points:["br","tr"],overflow:rr},bottomLeft:{points:["tl","bl"],overflow:rr},bottomRight:{points:["tr","br"],overflow:rr},rightTop:{points:["tr","tl"],overflow:rr},rightBottom:{points:["br","bl"],overflow:rr},leftTop:{points:["tl","tr"],overflow:rr},leftBottom:{points:["bl","br"],overflow:rr}};function _E(e,t,n){if(t)return t;if(n)return n[e]||n.other}var QH={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ZH(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,d=e.mode,c=e.onVisibleChange,f=u.useContext(To),p=f.getPopupContainer,m=f.rtl,h=f.subMenuOpenDelay,g=f.subMenuCloseDelay,b=f.builtinPlacements,y=f.triggerSubMenuAction,v=f.forceSubMenuRender,C=f.rootClassName,O=f.motion,$=f.defaultMotions,x=u.useState(!1),w=ge(x,2),T=w[0],R=w[1],S=Y(m?Y({},YH):Y({},XH),b),E=QH[d],P=_E(d,O,$),I=u.useRef(P);d!=="inline"&&(I.current=P);var k=Y(Y({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=u.useRef();return u.useEffect(function(){return N.current=en(function(){R(n)}),function(){en.cancel(N.current)}},[n]),u.createElement(ap,{prefixCls:t,popupClassName:ae("".concat(t,"-popup"),J({},"".concat(t,"-rtl"),m),a,C),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:S,popupPlacement:E,popupVisible:T,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[y],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:c,forceRender:v,popupMotion:k,fresh:!0},r)}function JH(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=u.useContext(To),s=a.prefixCls,l=a.forceSubMenuRender,d=a.motion,c=a.defaultMotions,f=a.mode,p=u.useRef(!1);p.current=f===i;var m=u.useState(!p.current),h=ge(m,2),g=h[0],b=h[1],y=p.current?n:!1;u.useEffect(function(){p.current&&b(!1)},[f]);var v=Y({},_E(i,d,c));r.length>1&&(v.motionAppear=!1);var C=v.onVisibleChanged;return v.onVisibleChanged=function(O){return!p.current&&!O&&b(!0),C==null?void 0:C(O)},g?null:u.createElement(Hu,{mode:i,locked:!p.current},u.createElement(sr,we({visible:y},v,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(O){var $=O.className,x=O.style;return u.createElement(T2,{id:t,className:$,style:x},o)}))}var eV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tV=["active"],nV=u.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,d=e.itemIcon,c=e.expandIcon,f=e.popupClassName,p=e.popupOffset,m=e.popupStyle,h=e.onClick,g=e.onMouseEnter,b=e.onMouseLeave,y=e.onTitleClick,v=e.onTitleMouseEnter,C=e.onTitleMouseLeave,O=gt(e,eV),$=wE(i),x=u.useContext(To),w=x.prefixCls,T=x.mode,R=x.openKeys,S=x.disabled,E=x.overflowDisabled,P=x.activeKey,I=x.selectedKeys,k=x.itemIcon,N=x.expandIcon,M=x.onItemClick,j=x.onOpenChange,A=x.onActive,D=u.useContext(O2),L=D._internalRenderSubMenuItem,z=u.useContext(RE),q=z.isSubPathKey,U=Cc(),H="".concat(w,"-submenu"),K=S||a,X=u.useRef(),Z=u.useRef(),se=d??k,ie=c??N,me=R.includes(i),ue=!E&&me,re=q(I,i),ce=PE(i,K,v,C),fe=ce.active,de=gt(ce,tV),ve=u.useState(!1),ye=ge(ve,2),Se=ye[0],Pe=ye[1],Ie=function(ee){K||Pe(ee)},$e=function(ee){Ie(!0),g==null||g({key:i,domEvent:ee})},Fe=function(ee){Ie(!1),b==null||b({key:i,domEvent:ee})},Ee=u.useMemo(function(){return fe||(T!=="inline"?Se||q([P],i):!1)},[T,fe,P,Se,i,q]),ke=IE(U.length),Be=function(ee){K||(y==null||y({key:i,domEvent:ee}),T==="inline"&&j(i,!me))},je=Gl(function(Q){h==null||h(Wf(Q)),M(Q)}),We=function(ee){T!=="inline"&&j(i,ee)},Ye=function(){A(i)},Xe=$&&"".concat($,"-popup"),it=u.useMemo(function(){return u.createElement(TE,{icon:T!=="horizontal"?ie:void 0,props:Y(Y({},e),{},{isOpen:ue,isSubMenu:!0})},u.createElement("i",{className:"".concat(H,"-arrow")}))},[T,ie,e,ue,H]),et=u.createElement("div",we({role:"menuitem",style:ke,className:"".concat(H,"-title"),tabIndex:K?null:-1,ref:X,title:typeof o=="string"?o:null,"data-menu-id":E&&$?null:$,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":K,onClick:Be,onFocus:Ye},de),o,it),ct=u.useRef(T);if(T!=="inline"&&U.length>1?ct.current="vertical":ct.current=T,!E){var He=ct.current;et=u.createElement(ZH,{mode:He,prefixCls:H,visible:!s&&ue&&T!=="inline",popupClassName:f,popupOffset:p,popupStyle:m,popup:u.createElement(Hu,{mode:He==="horizontal"?"vertical":He},u.createElement(T2,{id:Xe,ref:Z},l)),disabled:K,onVisibleChange:We},et)}var he=u.createElement(Go.Item,we({ref:t,role:"none"},O,{component:"li",style:n,className:ae(H,"".concat(H,"-").concat(T),r,J(J(J(J({},"".concat(H,"-open"),ue),"".concat(H,"-active"),Ee),"".concat(H,"-selected"),re),"".concat(H,"-disabled"),K)),onMouseEnter:$e,onMouseLeave:Fe}),et,!E&&u.createElement(JH,{id:Xe,open:ue,keyPath:U},l));return L&&(he=L(he,e,{selected:re,active:Ee,open:ue,disabled:K})),u.createElement(Hu,{onItemClick:je,mode:T==="horizontal"?"vertical":T,itemIcon:se,expandIcon:ie},he)}),k2=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Cc(n),i=_2(r,o),a=up();u.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=u.createElement(nV,we({ref:t},e),i),u.createElement($E.Provider,{value:o},s)});function kE(e){var t=e.className,n=e.style,r=u.useContext(To),o=r.prefixCls,i=up();return i?null:u.createElement("li",{role:"separator",className:ae("".concat(o,"-item-divider"),t),style:n})}var rV=["className","title","eventKey","children"],oV=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=gt(e,rV),a=u.useContext(To),s=a.prefixCls,l="".concat(s,"-item-group");return u.createElement("li",we({ref:t,role:"presentation"},i,{onClick:function(c){return c.stopPropagation()},className:ae(l,n)}),u.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),ME=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Cc(n),i=_2(r,o),a=up();return a?i:u.createElement(oV,we({ref:t},In(e,["warnKey"])),i)}),iV=["label","children","key","type","extra"];function R1(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&nt(s)==="object"){var d=s,c=d.label,f=d.children,p=d.key,m=d.type,h=d.extra,g=gt(d,iV),b=p??"tmp-".concat(l);return f||m==="group"?m==="group"?u.createElement(o,we({key:b},g,{title:c}),R1(f,t,n)):u.createElement(i,we({key:b},g,{title:c}),R1(f,t,n)):m==="divider"?u.createElement(a,we({key:b},g)):u.createElement(r,we({key:b},g,{extra:h}),c,(!!h||h===0)&&u.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function j4(e,t,n,r,o){var i=e,a=Y({divider:kE,item:cp,group:ME,submenu:k2},r);return t&&(i=R1(t,a,o)),_2(i,n)}var aV=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ua=[],sV=u.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,s=r.style,l=r.className,d=r.tabIndex,c=d===void 0?0:d,f=r.items,p=r.children,m=r.direction,h=r.id,g=r.mode,b=g===void 0?"vertical":g,y=r.inlineCollapsed,v=r.disabled,C=r.disabledOverflow,O=r.subMenuOpenDelay,$=O===void 0?.1:O,x=r.subMenuCloseDelay,w=x===void 0?.1:x,T=r.forceSubMenuRender,R=r.defaultOpenKeys,S=r.openKeys,E=r.activeKey,P=r.defaultActiveFirst,I=r.selectable,k=I===void 0?!0:I,N=r.multiple,M=N===void 0?!1:N,j=r.defaultSelectedKeys,A=r.selectedKeys,D=r.onSelect,L=r.onDeselect,z=r.inlineIndent,q=z===void 0?24:z,U=r.motion,H=r.defaultMotions,K=r.triggerSubMenuAction,X=K===void 0?"hover":K,Z=r.builtinPlacements,se=r.itemIcon,ie=r.expandIcon,me=r.overflowedIndicator,ue=me===void 0?"...":me,re=r.overflowedIndicatorPopupClassName,ce=r.getPopupContainer,fe=r.onClick,de=r.onOpenChange,ve=r.onKeyDown;r.openAnimation,r.openTransitionName;var ye=r._internalRenderMenuItem,Se=r._internalRenderSubMenuItem,Pe=r._internalComponents,Ie=gt(r,aV),$e=u.useMemo(function(){return[j4(p,f,ua,Pe,i),j4(p,f,ua,{},i)]},[p,f,Pe]),Fe=ge($e,2),Ee=Fe[0],ke=Fe[1],Be=u.useState(!1),je=ge(Be,2),We=je[0],Ye=je[1],Xe=u.useRef(),it=DH(h),et=m==="rtl",ct=nn(R,{value:S,postState:function(lt){return lt||ua}}),He=ge(ct,2),he=He[0],Q=He[1],ee=function(lt){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Nt(){Q(lt),de==null||de(lt)}tt?fo.flushSync(Nt):Nt()},ne=u.useState(he),xe=ge(ne,2),Re=xe[0],De=xe[1],Qe=u.useRef(!1),rt=u.useMemo(function(){return(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),dt=ge(rt,2),pt=dt[0],vt=dt[1],at=pt==="inline",Ge=u.useState(pt),ze=ge(Ge,2),Le=ze[0],Je=ze[1],Ct=u.useState(vt),Ke=ge(Ct,2),Ve=Ke[0],ot=Ke[1];u.useEffect(function(){Je(pt),ot(vt),Qe.current&&(at?Q(Re):ee(ua))},[pt,vt]);var ut=u.useState(0),st=ge(ut,2),_e=st[0],zt=st[1],kt=_e>=Ee.length-1||Le!=="horizontal"||C;u.useEffect(function(){at&&De(he)},[he]),u.useEffect(function(){return Qe.current=!0,function(){Qe.current=!1}},[]);var Ft=FH(),_=Ft.registerPath,G=Ft.unregisterPath,F=Ft.refreshOverflowKeys,W=Ft.isSubPathKey,oe=Ft.getKeyPath,te=Ft.getKeys,pe=Ft.getSubPathKeys,le=u.useMemo(function(){return{registerPath:_,unregisterPath:G}},[_,G]),Ce=u.useMemo(function(){return{isSubPathKey:W}},[W]);u.useEffect(function(){F(kt?ua:Ee.slice(_e+1).map(function(Wt){return Wt.key}))},[_e,kt]);var Me=nn(E||P&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:E}),Oe=ge(Me,2),Ue=Oe[0],Ae=Oe[1],ht=Gl(function(Wt){Ae(Wt)}),$t=Gl(function(){Ae(void 0)});u.useImperativeHandle(t,function(){return{list:Xe.current,focus:function(lt){var tt,Nt=te(),Ht=E1(Nt,it),qt=Ht.elements,Jt=Ht.key2element,zn=Ht.element2key,cn=P2(Xe.current,qt),Vt=Ue??(cn[0]?zn.get(cn[0]):(tt=Ee.find(function(cr){return!cr.props.disabled}))===null||tt===void 0?void 0:tt.key),vn=Jt.get(Vt);if(Vt&&vn){var jn;vn==null||(jn=vn.focus)===null||jn===void 0||jn.call(vn,lt)}}}});var At=nn(j||[],{value:A,postState:function(lt){return Array.isArray(lt)?lt:lt==null?ua:[lt]}}),_t=ge(At,2),Lt=_t[0],Xt=_t[1],It=function(lt){if(k){var tt=lt.key,Nt=Lt.includes(tt),Ht;M?Nt?Ht=Lt.filter(function(Jt){return Jt!==tt}):Ht=[].concat(Ne(Lt),[tt]):Ht=[tt],Xt(Ht);var qt=Y(Y({},lt),{},{selectedKeys:Ht});Nt?L==null||L(qt):D==null||D(qt)}!M&&he.length&&Le!=="inline"&&ee(ua)},xt=Gl(function(Wt){fe==null||fe(Wf(Wt)),It(Wt)}),Rt=Gl(function(Wt,lt){var tt=he.filter(function(Ht){return Ht!==Wt});if(lt)tt.push(Wt);else if(Le!=="inline"){var Nt=pe(Wt);tt=tt.filter(function(Ht){return!Nt.has(Ht)})}Ji(he,tt,!0)||ee(tt,!0)}),St=function(lt,tt){var Nt=tt??!he.includes(lt);Rt(lt,Nt)},wn=AH(Le,Ue,et,it,Xe,te,oe,Ae,St,ve);u.useEffect(function(){Ye(!0)},[]);var yr=u.useMemo(function(){return{_internalRenderMenuItem:ye,_internalRenderSubMenuItem:Se}},[ye,Se]),Nn=Le!=="horizontal"||C?Ee:Ee.map(function(Wt,lt){return u.createElement(Hu,{key:Wt.key,overflowDisabled:lt>_e},Wt)}),Bn=u.createElement(Go,we({id:h,ref:Xe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:cp,className:ae(i,"".concat(i,"-root"),"".concat(i,"-").concat(Le),l,J(J({},"".concat(i,"-inline-collapsed"),Ve),"".concat(i,"-rtl"),et),a),dir:m,style:s,role:"menu",tabIndex:c,data:Nn,renderRawItem:function(lt){return lt},renderRawRest:function(lt){var tt=lt.length,Nt=tt?Ee.slice(-tt):null;return u.createElement(k2,{eventKey:$1,title:ue,disabled:kt,internalPopupClose:tt===0,popupClassName:re},Nt)},maxCount:Le!=="horizontal"||C?Go.INVALIDATE:Go.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(lt){zt(lt)},onKeyDown:wn},Ie));return u.createElement(O2.Provider,{value:yr},u.createElement(xE.Provider,{value:it},u.createElement(Hu,{prefixCls:i,rootClassName:a,mode:Le,openKeys:he,rtl:et,disabled:v,motion:We?U:null,defaultMotions:We?H:null,activeKey:Ue,onActive:ht,onInactive:$t,selectedKeys:Lt,inlineIndent:q,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:T,builtinPlacements:Z,triggerSubMenuAction:X,getPopupContainer:ce,itemIcon:se,expandIcon:ie,onItemClick:xt,onOpenChange:Rt},u.createElement(RE.Provider,{value:Ce},Bn),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(EE.Provider,{value:le},ke)))))}),xc=sV;xc.Item=cp;xc.SubMenu=k2;xc.ItemGroup=ME;xc.Divider=kE;function dp(e){return Pt(e,{inputAffixPadding:e.paddingXXS})}const fp=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:d,controlPaddingHorizontalSM:c,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:g,controlOutline:b,colorErrorOutline:y,colorWarningOutline:v,colorBgContainer:C,inputFontSize:O,inputFontSizeLG:$,inputFontSizeSM:x}=e,w=O||n,T=x||w,R=$||s,S=Math.round((t-w*r)/2*10)/10-o,E=Math.round((i-T*r)/2*10)/10-o,P=Math.ceil((a-R*l)/2*10)/10-o;return{paddingBlock:Math.max(S,0),paddingBlockSM:Math.max(E,0),paddingBlockLG:Math.max(P,0),paddingInline:d-o,paddingInlineSM:c-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${g}px ${b}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${v}`,hoverBg:C,activeBg:C,inputFontSize:w,inputFontSizeLG:R,inputFontSizeSM:T}},lV=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),M2=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},lV(Pt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),AE=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),F4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},AE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),uV=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},AE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},M2(e))}),F4(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),F4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),L4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cV=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},L4(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),L4(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},M2(e))}})}),dV=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},NE=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},D4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},NE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),fV=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},NE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},M2(e))}),D4(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),D4(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),B4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),pV=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},B4(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),B4(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),jE=(e,t)=>({background:e.colorBgContainer,borderWidth:`${be(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),z4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},jE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),hV=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),z4(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),z4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),mV=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),FE=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${be(t)} ${be(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},LE=e=>({padding:`${be(e.paddingBlockSM)} ${be(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),DE=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${be(e.paddingBlock)} ${be(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},mV(e.colorTextPlaceholder)),{"&-lg":Object.assign({},FE(e)),"&-sm":Object.assign({},LE(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gV=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},FE(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},LE(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${be(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${be(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${be(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${be(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${be(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},sa()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
250
|
+
& > ${t}-affix-wrapper,
|
|
251
|
+
& > ${t}-number-affix-wrapper,
|
|
252
|
+
& > ${n}-picker-range
|
|
253
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
254
|
+
& > ${n}-select-auto-complete ${t},
|
|
255
|
+
& > ${n}-cascader-picker ${t},
|
|
256
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
257
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
258
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
259
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
260
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
261
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
262
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},vV=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),DE(e)),uV(e)),fV(e)),dV(e)),hV(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},yV=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${be(e.inputAffixPadding)}`}}}},bV=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},DE(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),yV(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},CV=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$n(e)),gV(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},cV(e)),pV(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},xV=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
263
|
+
> ${t},
|
|
264
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},SV=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},BE=Zt(["Input","Shared"],e=>{const t=Pt(e,dp(e));return[vV(t),bV(t)]},fp,{resetFont:!1}),zE=Zt(["Input","Component"],e=>{const t=Pt(e,dp(e));return[CV(t),xV(t),SV(t),np(t)]},fp,{resetFont:!1}),pp=u.createContext(null);var wV=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,d=l===void 0?"center":l,c=u.useState(),f=ge(c,2),p=f[0],m=f[1],h=u.useRef(),g=V.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function b(){en.cancel(h.current)}return u.useEffect(function(){var y={};if(n)if(r){y.width=g(n.width);var v=o?"right":"left";d==="start"&&(y[v]=n[v]),d==="center"&&(y[v]=n[v]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),d==="end"&&(y[v]=n[v]+n.width,y.transform="translateX(-100%)")}else y.height=g(n.height),d==="start"&&(y.top=n.top),d==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),d==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return b(),h.current=en(function(){var C=p&&y&&Object.keys(y).every(function(O){var $=y[O],x=p[O];return typeof $=="number"&&typeof x=="number"?Math.round($)===Math.round(x):$===x});C||m(y)}),b},[JSON.stringify(n),r,o,d,g]),{style:p}},H4={width:0,height:0,left:0,top:0};function EV(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||H4,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,d=t.get(l);if(!d){var c;d=t.get((c=e[s-1])===null||c===void 0?void 0:c.key)||H4}var f=o.get(l)||Y({},d);f.right=a-f.left-f.width,o.set(l,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function V4(e,t){var n=u.useRef(e),r=u.useState({}),o=ge(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,a]}var $V=.1,U4=.01,Qd=20,W4=Math.pow(.995,Qd);function RV(e,t){var n=u.useState(),r=ge(n,2),o=r[0],i=r[1],a=u.useState(0),s=ge(a,2),l=s[0],d=s[1],c=u.useState(0),f=ge(c,2),p=f[0],m=f[1],h=u.useState(),g=ge(h,2),b=g[0],y=g[1],v=u.useRef();function C(R){var S=R.touches[0],E=S.screenX,P=S.screenY;i({x:E,y:P}),window.clearInterval(v.current)}function O(R){if(o){var S=R.touches[0],E=S.screenX,P=S.screenY;i({x:E,y:P});var I=E-o.x,k=P-o.y;t(I,k);var N=Date.now();d(N),m(N-l),y({x:I,y:k})}}function $(){if(o&&(i(null),y(null),b)){var R=b.x/p,S=b.y/p,E=Math.abs(R),P=Math.abs(S);if(Math.max(E,P)<$V)return;var I=R,k=S;v.current=window.setInterval(function(){if(Math.abs(I)<U4&&Math.abs(k)<U4){window.clearInterval(v.current);return}I*=W4,k*=W4,t(I*Qd,k*Qd)},Qd)}}var x=u.useRef();function w(R){var S=R.deltaX,E=R.deltaY,P=0,I=Math.abs(S),k=Math.abs(E);I===k?P=x.current==="x"?S:E:I>k?(P=S,x.current="x"):(P=E,x.current="y"),t(-P,-P)&&R.preventDefault()}var T=u.useRef(null);T.current={onTouchStart:C,onTouchMove:O,onTouchEnd:$,onWheel:w},u.useEffect(function(){function R(I){T.current.onTouchStart(I)}function S(I){T.current.onTouchMove(I)}function E(I){T.current.onTouchEnd(I)}function P(I){T.current.onWheel(I)}return document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",E,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E)}},[])}function HE(e){var t=u.useState(0),n=ge(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,Ug(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function OV(e){var t=u.useRef([]),n=u.useState({}),r=ge(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=HE(function(){var l=i.current;t.current.forEach(function(d){l=d(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var K4={width:0,height:0,left:0,top:0,right:0};function PV(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,d=a.rtl,c,f,p;return["top","bottom"].includes(l)?(c="width",f=d?"right":"left",p=Math.abs(n)):(c="height",f="top",p=-n),u.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,h=m,g=0;g<m;g+=1){var b=e.get(s[g].key)||K4;if(Math.floor(b[f]+b[c])>Math.floor(p+t)){h=g-1;break}}for(var y=0,v=m-1;v>=0;v-=1){var C=e.get(s[v].key)||K4;if(C[f]<p){y=v+1;break}}return y>=h?[0,0]:[y,h]},[e,t,r,o,i,p,l,s.map(function(m){return m.key}).join("_"),d])}function q4(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var IV="TABS_DQ";function VE(e){return String(e).replace(/"/g,IV)}function A2(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var UE=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),G4=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return nt(o)==="object"&&!u.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),TV=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,d=e.style,c=e.className,f=e.editable,p=e.tabBarGutter,m=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,v=u.useState(!1),C=ge(v,2),O=C[0],$=C[1],x=u.useState(null),w=ge(x,2),T=w[0],R=w[1],S=l.icon,E=S===void 0?"More":S,P="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),k=T!==null?"".concat(P,"-").concat(T):null,N=i==null?void 0:i.dropdownAriaLabel;function M(U,H){U.preventDefault(),U.stopPropagation(),f.onEdit("remove",{key:H,event:U})}var j=u.createElement(xc,{onClick:function(H){var K=H.key,X=H.domEvent;g(K,X),$(!1)},prefixCls:"".concat(I,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[T],"aria-label":N!==void 0?N:"expanded dropdown"},o.map(function(U){var H=U.closable,K=U.disabled,X=U.closeIcon,Z=U.key,se=U.label,ie=A2(H,X,f,K);return u.createElement(cp,{key:Z,id:"".concat(P,"-").concat(Z),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Z),disabled:K},u.createElement("span",null,se),ie&&u.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(ue){ue.stopPropagation(),M(ue,Z)}},X||f.removeIcon||"×"))}));function A(U){for(var H=o.filter(function(ie){return!ie.disabled}),K=H.findIndex(function(ie){return ie.key===T})||0,X=H.length,Z=0;Z<X;Z+=1){K=(K+U+X)%X;var se=H[K];if(!se.disabled){R(se.key);return}}}function D(U){var H=U.which;if(!O){[Ze.DOWN,Ze.SPACE,Ze.ENTER].includes(H)&&($(!0),U.preventDefault());return}switch(H){case Ze.UP:A(-1),U.preventDefault();break;case Ze.DOWN:A(1),U.preventDefault();break;case Ze.ESC:$(!1);break;case Ze.SPACE:case Ze.ENTER:T!==null&&g(T,U);break}}u.useEffect(function(){var U=document.getElementById(k);U&&U.scrollIntoView&&U.scrollIntoView(!1)},[T]),u.useEffect(function(){O||R(null)},[O]);var L=J({},m?"marginRight":"marginLeft",p);o.length||(L.visibility="hidden",L.order=1);var z=ae(J({},"".concat(I,"-rtl"),m)),q=a?null:u.createElement(RH,we({prefixCls:I,overlay:j,visible:o.length?O:!1,onVisibleChange:$,overlayClassName:ae(z,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},l),u.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,"aria-haspopup":"listbox","aria-controls":P,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:D},E));return u.createElement("div",{className:ae("".concat(n,"-nav-operations"),c),style:d,ref:t},q,u.createElement(UE,{prefixCls:n,locale:i,editable:f}))});const _V=u.memo(TV,function(e,t){return t.tabMoving});var kV=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.focus,a=t.tab,s=a.key,l=a.label,d=a.disabled,c=a.closeIcon,f=a.icon,p=t.closable,m=t.renderWrapper,h=t.removeAriaLabel,g=t.editable,b=t.onClick,y=t.onFocus,v=t.onBlur,C=t.onKeyDown,O=t.onMouseDown,$=t.onMouseUp,x=t.style,w=t.tabCount,T=t.currentPosition,R="".concat(n,"-tab"),S=A2(p,c,g,d);function E(M){d||b(M)}function P(M){M.preventDefault(),M.stopPropagation(),g.onEdit("remove",{key:s,event:M})}var I=u.useMemo(function(){return f&&typeof l=="string"?u.createElement("span",null,l):l},[l,f]),k=u.useRef(null);u.useEffect(function(){i&&k.current&&k.current.focus()},[i]);var N=u.createElement("div",{key:s,"data-node-key":VE(s),className:ae(R,J(J(J(J({},"".concat(R,"-with-remove"),S),"".concat(R,"-active"),o),"".concat(R,"-disabled"),d),"".concat(R,"-focus"),i)),style:x,onClick:E},u.createElement("div",{ref:k,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(R,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":d,tabIndex:d?null:o?0:-1,onClick:function(j){j.stopPropagation(),E(j)},onKeyDown:C,onMouseDown:O,onMouseUp:$,onFocus:y,onBlur:v},i&&u.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(T," of ").concat(w)),f&&u.createElement("span",{className:"".concat(R,"-icon")},f),l&&I),S&&u.createElement("button",{type:"button",role:"tab","aria-label":h||"remove",tabIndex:o?0:-1,className:"".concat(R,"-remove"),onClick:function(j){j.stopPropagation(),P(j)}},c||g.removeIcon||"×"));return m?m(N):N},MV=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,d=s.height,c=s.left,f=s.top;return Math.abs(l-r)<1?[l,d,c-n.left,f-n.top]:[r,o,a,i]},ts=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,d=s.height;if(Math.abs(l-o)<1)return[l,d]}return[o,a]},cd=function(t,n){return t[n?0:1]},X4=u.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,d=e.editable,c=e.locale,f=e.tabPosition,p=e.tabBarGutter,m=e.children,h=e.onTabClick,g=e.onTabScroll,b=e.indicator,y=u.useContext(pp),v=y.prefixCls,C=y.tabs,O=u.useRef(null),$=u.useRef(null),x=u.useRef(null),w=u.useRef(null),T=u.useRef(null),R=u.useRef(null),S=u.useRef(null),E=f==="top"||f==="bottom",P=V4(0,function(Me,Oe){E&&g&&g({direction:Me>Oe?"left":"right"})}),I=ge(P,2),k=I[0],N=I[1],M=V4(0,function(Me,Oe){!E&&g&&g({direction:Me>Oe?"top":"bottom"})}),j=ge(M,2),A=j[0],D=j[1],L=u.useState([0,0]),z=ge(L,2),q=z[0],U=z[1],H=u.useState([0,0]),K=ge(H,2),X=K[0],Z=K[1],se=u.useState([0,0]),ie=ge(se,2),me=ie[0],ue=ie[1],re=u.useState([0,0]),ce=ge(re,2),fe=ce[0],de=ce[1],ve=OV(new Map),ye=ge(ve,2),Se=ye[0],Pe=ye[1],Ie=EV(C,Se,X[0]),$e=cd(q,E),Fe=cd(X,E),Ee=cd(me,E),ke=cd(fe,E),Be=Math.floor($e)<Math.floor(Fe+Ee),je=Be?$e-ke:$e-Ee,We="".concat(v,"-nav-operations-hidden"),Ye=0,Xe=0;E&&s?(Ye=0,Xe=Math.max(0,Fe-je)):(Ye=Math.min(0,je-Fe),Xe=0);function it(Me){return Me<Ye?Ye:Me>Xe?Xe:Me}var et=u.useRef(null),ct=u.useState(),He=ge(ct,2),he=He[0],Q=He[1];function ee(){Q(Date.now())}function ne(){et.current&&clearTimeout(et.current)}RV(w,function(Me,Oe){function Ue(Ae,ht){Ae(function($t){var At=it($t+ht);return At})}return Be?(E?Ue(N,Me):Ue(D,Oe),ne(),ee(),!0):!1}),u.useEffect(function(){return ne(),he&&(et.current=setTimeout(function(){Q(0)},100)),ne},[he]);var xe=PV(Ie,je,E?k:A,Fe,Ee,ke,Y(Y({},e),{},{tabs:C})),Re=ge(xe,2),De=Re[0],Qe=Re[1],rt=Gt(function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Oe=Ie.get(Me)||{width:0,height:0,left:0,right:0,top:0};if(E){var Ue=k;s?Oe.right<k?Ue=Oe.right:Oe.right+Oe.width>k+je&&(Ue=Oe.right+Oe.width-je):Oe.left<-k?Ue=-Oe.left:Oe.left+Oe.width>-k+je&&(Ue=-(Oe.left+Oe.width-je)),D(0),N(it(Ue))}else{var Ae=A;Oe.top<-A?Ae=-Oe.top:Oe.top+Oe.height>-A+je&&(Ae=-(Oe.top+Oe.height-je)),N(0),D(it(Ae))}}),dt=u.useState(),pt=ge(dt,2),vt=pt[0],at=pt[1],Ge=u.useState(!1),ze=ge(Ge,2),Le=ze[0],Je=ze[1],Ct=C.filter(function(Me){return!Me.disabled}).map(function(Me){return Me.key}),Ke=function(Oe){var Ue=Ct.indexOf(vt||a),Ae=Ct.length,ht=(Ue+Oe+Ae)%Ae,$t=Ct[ht];at($t)},Ve=function(Oe){var Ue=Oe.code,Ae=s&&E,ht=Ct[0],$t=Ct[Ct.length-1];switch(Ue){case"ArrowLeft":{E&&Ke(Ae?1:-1);break}case"ArrowRight":{E&&Ke(Ae?-1:1);break}case"ArrowUp":{Oe.preventDefault(),E||Ke(-1);break}case"ArrowDown":{Oe.preventDefault(),E||Ke(1);break}case"Home":{Oe.preventDefault(),at(ht);break}case"End":{Oe.preventDefault(),at($t);break}case"Enter":case"Space":{Oe.preventDefault(),h(vt??a,Oe);break}case"Backspace":case"Delete":{var At=Ct.indexOf(vt),_t=C.find(function(Xt){return Xt.key===vt}),Lt=A2(_t==null?void 0:_t.closable,_t==null?void 0:_t.closeIcon,d,_t==null?void 0:_t.disabled);Lt&&(Oe.preventDefault(),Oe.stopPropagation(),d.onEdit("remove",{key:vt,event:Oe}),At===Ct.length-1?Ke(-1):Ke(1));break}}},ot={};E?ot[s?"marginRight":"marginLeft"]=p:ot.marginTop=p;var ut=C.map(function(Me,Oe){var Ue=Me.key;return u.createElement(kV,{id:o,prefixCls:v,key:Ue,tab:Me,style:Oe===0?void 0:ot,closable:Me.closable,editable:d,active:Ue===a,focus:Ue===vt,renderWrapper:m,removeAriaLabel:c==null?void 0:c.removeAriaLabel,tabCount:Ct.length,currentPosition:Oe+1,onClick:function(ht){h(Ue,ht)},onKeyDown:Ve,onFocus:function(){Le||at(Ue),rt(Ue),ee(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:function(){at(void 0)},onMouseDown:function(){Je(!0)},onMouseUp:function(){Je(!1)}})}),st=function(){return Pe(function(){var Oe,Ue=new Map,Ae=(Oe=T.current)===null||Oe===void 0?void 0:Oe.getBoundingClientRect();return C.forEach(function(ht){var $t,At=ht.key,_t=($t=T.current)===null||$t===void 0?void 0:$t.querySelector('[data-node-key="'.concat(VE(At),'"]'));if(_t){var Lt=MV(_t,Ae),Xt=ge(Lt,4),It=Xt[0],xt=Xt[1],Rt=Xt[2],St=Xt[3];Ue.set(At,{width:It,height:xt,left:Rt,top:St})}}),Ue})};u.useEffect(function(){st()},[C.map(function(Me){return Me.key}).join("_")]);var _e=HE(function(){var Me=ts(O),Oe=ts($),Ue=ts(x);U([Me[0]-Oe[0]-Ue[0],Me[1]-Oe[1]-Ue[1]]);var Ae=ts(S);ue(Ae);var ht=ts(R);de(ht);var $t=ts(T);Z([$t[0]-Ae[0],$t[1]-Ae[1]]),st()}),zt=C.slice(0,De),kt=C.slice(Qe+1),Ft=[].concat(Ne(zt),Ne(kt)),_=Ie.get(a),G=wV({activeTabOffset:_,horizontal:E,indicator:b,rtl:s}),F=G.style;u.useEffect(function(){rt()},[a,Ye,Xe,q4(_),q4(Ie),E]),u.useEffect(function(){_e()},[s]);var W=!!Ft.length,oe="".concat(v,"-nav-wrap"),te,pe,le,Ce;return E?s?(pe=k>0,te=k!==Xe):(te=k<0,pe=k!==Ye):(le=A<0,Ce=A!==Ye),u.createElement(zr,{onResize:_e},u.createElement("div",{ref:Ci(t,O),role:"tablist","aria-orientation":E?"horizontal":"vertical",className:ae("".concat(v,"-nav"),n),style:r,onKeyDown:function(){ee()}},u.createElement(G4,{ref:$,position:"left",extra:l,prefixCls:v}),u.createElement(zr,{onResize:_e},u.createElement("div",{className:ae(oe,J(J(J(J({},"".concat(oe,"-ping-left"),te),"".concat(oe,"-ping-right"),pe),"".concat(oe,"-ping-top"),le),"".concat(oe,"-ping-bottom"),Ce)),ref:w},u.createElement(zr,{onResize:_e},u.createElement("div",{ref:T,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(k,"px, ").concat(A,"px)"),transition:he?"none":void 0}},ut,u.createElement(UE,{ref:S,prefixCls:v,locale:c,editable:d,style:Y(Y({},ut.length===0?void 0:ot),{},{visibility:W?"hidden":null})}),u.createElement("div",{className:ae("".concat(v,"-ink-bar"),J({},"".concat(v,"-ink-bar-animated"),i.inkBar)),style:F}))))),u.createElement(_V,we({},e,{removeAriaLabel:c==null?void 0:c.removeAriaLabel,ref:R,prefixCls:v,tabs:Ft,className:!W&&We,tabMoving:!!he})),u.createElement(G4,{ref:x,position:"right",extra:l,prefixCls:v})))}),WE=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return u.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:ae(n,a&&"".concat(n,"-active"),r),ref:t},l)}),AV=["renderTabBar"],NV=["label","key"],jV=function(t){var n=t.renderTabBar,r=gt(t,AV),o=u.useContext(pp),i=o.tabs;if(n){var a=Y(Y({},r),{},{panes:i.map(function(s){var l=s.label,d=s.key,c=gt(s,NV);return u.createElement(WE,we({tab:l,key:d,tabKey:d},c))})});return n(a,X4)}return u.createElement(X4,r)},FV=["key","forceRender","style","className","destroyInactiveTabPane"],LV=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=u.useContext(pp),l=s.prefixCls,d=s.tabs,c=o.tabPane,f="".concat(l,"-tabpane");return u.createElement("div",{className:ae("".concat(l,"-content-holder"))},u.createElement("div",{className:ae("".concat(l,"-content"),"".concat(l,"-content-").concat(i),J({},"".concat(l,"-content-animated"),c))},d.map(function(p){var m=p.key,h=p.forceRender,g=p.style,b=p.className,y=p.destroyInactiveTabPane,v=gt(p,FV),C=m===r;return u.createElement(sr,we({key:m,visible:C,forceRender:h,removeOnLeave:!!(a||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(O,$){var x=O.style,w=O.className;return u.createElement(WE,we({},v,{prefixCls:f,id:n,tabKey:m,animated:c,active:C,style:Y(Y({},g),x),className:ae(b,w),ref:$}))})})))};function DV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Y({inkBar:!0},nt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var BV=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Y4=0,zV=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,d=e.defaultActiveKey,c=e.editable,f=e.animated,p=e.tabPosition,m=p===void 0?"top":p,h=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,v=e.more,C=e.destroyInactiveTabPane,O=e.renderTabBar,$=e.onChange,x=e.onTabClick,w=e.onTabScroll,T=e.getPopupContainer,R=e.popupClassName,S=e.indicator,E=gt(e,BV),P=u.useMemo(function(){return(a||[]).filter(function(fe){return fe&&nt(fe)==="object"&&"key"in fe})},[a]),I=s==="rtl",k=DV(f),N=u.useState(!1),M=ge(N,2),j=M[0],A=M[1];u.useEffect(function(){A(w2())},[]);var D=nn(function(){var fe;return(fe=P[0])===null||fe===void 0?void 0:fe.key},{value:l,defaultValue:d}),L=ge(D,2),z=L[0],q=L[1],U=u.useState(function(){return P.findIndex(function(fe){return fe.key===z})}),H=ge(U,2),K=H[0],X=H[1];u.useEffect(function(){var fe=P.findIndex(function(ve){return ve.key===z});if(fe===-1){var de;fe=Math.max(0,Math.min(K,P.length-1)),q((de=P[fe])===null||de===void 0?void 0:de.key)}X(fe)},[P.map(function(fe){return fe.key}).join("_"),z,K]);var Z=nn(null,{value:n}),se=ge(Z,2),ie=se[0],me=se[1];u.useEffect(function(){n||(me("rc-tabs-".concat(Y4)),Y4+=1)},[]);function ue(fe,de){x==null||x(fe,de);var ve=fe!==z;q(fe),ve&&($==null||$(fe))}var re={id:ie,activeKey:z,animated:k,tabPosition:m,rtl:I,mobile:j},ce=Y(Y({},re),{},{editable:c,locale:y,more:v,tabBarGutter:h,onTabClick:ue,onTabScroll:w,extra:b,style:g,panes:null,getPopupContainer:T,popupClassName:R,indicator:S});return u.createElement(pp.Provider,{value:{tabs:P,prefixCls:o}},u.createElement("div",we({ref:t,id:n,className:ae(o,"".concat(o,"-").concat(m),J(J(J({},"".concat(o,"-mobile"),j),"".concat(o,"-editable"),c),"".concat(o,"-rtl"),I),i)},E),u.createElement(jV,we({},ce,{renderTabBar:O})),u.createElement(LV,we({destroyInactiveTabPane:C},re,{animated:k}))))});const HV={motionAppear:!1,motionEnter:!0,motionLeave:!0};function VV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},HV),{motionName:hr(e,"switch")})),n}var UV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function WV(e){return e.filter(t=>t)}function KV(e,t){if(e)return e.map(r=>{var o;const i=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=Rr(t).map(r=>{if(u.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=UV(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return WV(n)}const qV=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Df(e,"slide-up"),Df(e,"slide-down")]]},GV=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${be(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},V0(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:be(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:be(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadiusLG)} 0 0 ${be(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},XV=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},$n(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${be(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Qo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${be(e.paddingXXS)} ${be(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},YV=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${be(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
265
|
+
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
266
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:be(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},QV=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${be(e.borderRadius)} ${be(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${be(e.borderRadius)} ${be(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be(e.borderRadius)} ${be(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadius)} 0 0 ${be(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},ZV=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},vi(e)),"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn`]:Object.assign({},V0(e)),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:i}}}},JV=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:be(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:be(e.marginXS)},marginLeft:{_skip_check_:!0,value:be(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},eU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},vi(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ZV(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},vi(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},tU=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,s=n||o,l=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},nU=Zt("Tabs",e=>{const t=Pt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${be(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${be(e.horizontalItemGutter)}`});return[QV(t),JV(t),YV(t),XV(t),GV(t),eU(t),qV(t)]},tU),rU=()=>null;var oU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const N2=e=>{var t,n,r,o,i,a,s,l,d,c,f;const{type:p,className:m,rootClassName:h,size:g,onEdit:b,hideAdd:y,centered:v,addIcon:C,removeIcon:O,moreIcon:$,more:x,popupClassName:w,children:T,items:R,animated:S,style:E,indicatorSize:P,indicator:I,destroyInactiveTabPane:k,destroyOnHidden:N}=e,M=oU(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:j}=M,{direction:A,tabs:D,getPrefixCls:L,getPopupContainer:z}=u.useContext(bt),q=L("tabs",j),U=ur(q),[H,K,X]=nU(q,U);let Z;p==="editable-card"&&(Z={onEdit:(fe,de)=>{let{key:ve,event:ye}=de;b==null||b(fe==="add"?ye:ve,fe)},removeIcon:(t=O??(D==null?void 0:D.removeIcon))!==null&&t!==void 0?t:u.createElement(Jo,null),addIcon:(C??(D==null?void 0:D.addIcon))||u.createElement(g8,null),showAdd:y!==!0});const se=L(),ie=Mo(g),me=KV(R,T),ue=VV(q,S),re=Object.assign(Object.assign({},D==null?void 0:D.style),E),ce={align:(n=I==null?void 0:I.align)!==null&&n!==void 0?n:(r=D==null?void 0:D.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(o=I==null?void 0:I.size)!==null&&o!==void 0?o:P)!==null&&i!==void 0?i:(a=D==null?void 0:D.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:D==null?void 0:D.indicatorSize};return H(u.createElement(zV,Object.assign({direction:A,getPopupContainer:z},M,{items:me,className:ae({[`${q}-${ie}`]:ie,[`${q}-card`]:["card","editable-card"].includes(p),[`${q}-editable-card`]:p==="editable-card",[`${q}-centered`]:v},D==null?void 0:D.className,m,h,K,X,U),popupClassName:ae(w,K,X,U),style:re,editable:Z,more:Object.assign({icon:(f=(c=(d=(l=D==null?void 0:D.more)===null||l===void 0?void 0:l.icon)!==null&&d!==void 0?d:D==null?void 0:D.moreIcon)!==null&&c!==void 0?c:$)!==null&&f!==void 0?f:u.createElement(DI,null),transitionName:`${se}-slide-up`},x),prefixCls:q,animated:ue,indicator:ce,destroyInactiveTabPane:N??k})))};N2.TabPane=rU;var iU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KE=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=iU(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=u.useContext(bt),a=i("card",t),s=ae(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},o,{className:s}))},aU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${be(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`},sa()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Qo),{[`
|
|
267
|
+
> ${n}-typography,
|
|
268
|
+
> ${n}-typography-edit-content
|
|
269
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},sU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
270
|
+
${be(o)} 0 0 0 ${n},
|
|
271
|
+
0 ${be(o)} 0 0 ${n},
|
|
272
|
+
${be(o)} ${be(o)} 0 0 ${n},
|
|
273
|
+
${be(o)} 0 0 0 ${n} inset,
|
|
274
|
+
0 ${be(o)} 0 0 ${n} inset;
|
|
275
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},lU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${be(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`},sa()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:be(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:be(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${i}`}}})},uU=e=>Object.assign(Object.assign({margin:`${be(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},sa()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Qo),"&-description":{color:e.colorTextDescription}}),cU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${be(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${be(e.padding)} ${be(o)}`}}},dU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},fU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:aU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`},sa()),[`${t}-grid`]:sU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:lU(e),[`${t}-meta`]:uU(e)}),[`${t}-bordered`]:{border:`${be(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:cU(e),[`${t}-loading`]:dU(e),[`${t}-rtl`]:{direction:"rtl"}}},pU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${be(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},hU=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},mU=Zt("Card",e=>{const t=Pt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[fU(t),pU(t)]},hU);var Q4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gU=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:a},u.createElement("span",null,o))}))},vU=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:s={},bodyStyle:l={},title:d,loading:c,bordered:f,variant:p,size:m,type:h,cover:g,actions:b,tabList:y,children:v,activeTabKey:C,defaultActiveTabKey:O,tabBarExtraContent:$,hoverable:x,tabProps:w={},classNames:T,styles:R}=e,S=Q4(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:E,direction:P,card:I}=u.useContext(bt),[k]=lp("card",p,f),N=Ie=>{var $e;($e=e.onTabChange)===null||$e===void 0||$e.call(e,Ie)},M=Ie=>{var $e;return ae(($e=I==null?void 0:I.classNames)===null||$e===void 0?void 0:$e[Ie],T==null?void 0:T[Ie])},j=Ie=>{var $e;return Object.assign(Object.assign({},($e=I==null?void 0:I.styles)===null||$e===void 0?void 0:$e[Ie]),R==null?void 0:R[Ie])},A=u.useMemo(()=>{let Ie=!1;return u.Children.forEach(v,$e=>{($e==null?void 0:$e.type)===KE&&(Ie=!0)}),Ie},[v]),D=E("card",n),[L,z,q]=mU(D),U=u.createElement(la,{loading:!0,active:!0,paragraph:{rows:4},title:!1},v),H=C!==void 0,K=Object.assign(Object.assign({},w),{[H?"activeKey":"defaultActiveKey"]:H?C:O,tabBarExtraContent:$});let X;const Z=Mo(m),se=!Z||Z==="default"?"large":Z,ie=y?u.createElement(N2,Object.assign({size:se},K,{className:`${D}-head-tabs`,onChange:N,items:y.map(Ie=>{var{tab:$e}=Ie,Fe=Q4(Ie,["tab"]);return Object.assign({label:$e},Fe)})})):null;if(d||a||ie){const Ie=ae(`${D}-head`,M("header")),$e=ae(`${D}-head-title`,M("title")),Fe=ae(`${D}-extra`,M("extra")),Ee=Object.assign(Object.assign({},s),j("header"));X=u.createElement("div",{className:Ie,style:Ee},u.createElement("div",{className:`${D}-head-wrapper`},d&&u.createElement("div",{className:$e,style:j("title")},d),a&&u.createElement("div",{className:Fe,style:j("extra")},a)),ie)}const me=ae(`${D}-cover`,M("cover")),ue=g?u.createElement("div",{className:me,style:j("cover")},g):null,re=ae(`${D}-body`,M("body")),ce=Object.assign(Object.assign({},l),j("body")),fe=u.createElement("div",{className:re,style:ce},c?U:v),de=ae(`${D}-actions`,M("actions")),ve=b!=null&&b.length?u.createElement(gU,{actionClasses:de,actionStyle:j("actions"),actions:b}):null,ye=In(S,["onTabChange"]),Se=ae(D,I==null?void 0:I.className,{[`${D}-loading`]:c,[`${D}-bordered`]:k!=="borderless",[`${D}-hoverable`]:x,[`${D}-contain-grid`]:A,[`${D}-contain-tabs`]:y==null?void 0:y.length,[`${D}-${Z}`]:Z,[`${D}-type-${h}`]:!!h,[`${D}-rtl`]:P==="rtl"},r,o,z,q),Pe=Object.assign(Object.assign({},I==null?void 0:I.style),i);return L(u.createElement("div",Object.assign({ref:t},ye,{className:Se,style:Pe}),X,ue,fe,ve))});var yU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bU=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=yU(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=u.useContext(bt),l=s("card",t),d=ae(`${l}-meta`,n),c=r?u.createElement("div",{className:`${l}-meta-avatar`},r):null,f=o?u.createElement("div",{className:`${l}-meta-title`},o):null,p=i?u.createElement("div",{className:`${l}-meta-description`},i):null,m=f||p?u.createElement("div",{className:`${l}-meta-detail`},f,p):null;return u.createElement("div",Object.assign({},a,{className:d}),c,m)},ja=vU;ja.Grid=KE;ja.Meta=bU;function CU(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,d=l===void 0?void 0:l,c,f=!1,p=0;function m(){c&&clearTimeout(c)}function h(b){var y=b||{},v=y.upcomingOnly,C=v===void 0?!1:v;m(),f=!C}function g(){for(var b=arguments.length,y=new Array(b),v=0;v<b;v++)y[v]=arguments[v];var C=this,O=Date.now()-p;if(f)return;function $(){p=Date.now(),t.apply(C,y)}function x(){c=void 0}!s&&d&&!c&&$(),m(),d===void 0&&O>e?s?(p=Date.now(),i||(c=setTimeout(d?x:$,e))):$():i!==!0&&(c=setTimeout(d?x:$,d===void 0?e-O:e))}return g.cancel=h,g}function xU(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return CU(e,t,{debounceMode:i!==!1})}var gl=u.createContext({}),Ms="__rc_cascader_search_mark__",SU=function(t,n,r){var o=r.label,i=o===void 0?"":o;return n.some(function(a){return String(a[i]).toLowerCase().includes(t.toLowerCase())})},wU=function(t,n,r,o){return n.map(function(i){return i[o.label]}).join(" / ")},EU=function(t,n,r,o,i,a){var s=i.filter,l=s===void 0?SU:s,d=i.render,c=d===void 0?wU:d,f=i.limit,p=f===void 0?50:f,m=i.sort;return u.useMemo(function(){var h=[];if(!t)return[];function g(b,y){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;b.forEach(function(C){if(!(!m&&p!==!1&&p>0&&h.length>=p)){var O=[].concat(Ne(y),[C]),$=C[r.children],x=v||C.disabled;if((!$||$.length===0||a)&&l(t,O,{label:r.label})){var w;h.push(Y(Y({},C),{},(w={disabled:x},J(w,r.label,c(t,O,o,r)),J(w,Ms,O),J(w,r.children,void 0),w)))}$&&g(C[r.children],O,x)}})}return g(n,[]),m&&h.sort(function(b,y){return m(b[Ms],y[Ms],t,r)}),p!==!1&&p>0?h.slice(0,p):h},[t,n,r,o,c,a,l,m,p])},j2="__RC_CASCADER_SPLIT__",qE="SHOW_PARENT",GE="SHOW_CHILD";function Po(e){return e.join(j2)}function nl(e){return e.map(Po)}function $U(e){return e.split(j2)}function XE(e){var t=e||{},n=t.label,r=t.value,o=t.children,i=r||"value";return{label:n||"label",value:i,key:i,children:o||"children"}}function Xl(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function RU(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function YE(e,t){return e.map(function(n){var r;return(r=n[Ms])===null||r===void 0?void 0:r.map(function(o){return o[t.value]})})}function OU(e){return Array.isArray(e)&&Array.isArray(e[0])}function Kf(e){return e?OU(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function QE(e,t,n){var r=new Set(e),o=t();return e.filter(function(i){var a=o[i],s=a?a.parent:null,l=a?a.children:null;return a&&a.node.disabled?!0:n===GE?!(l&&l.some(function(d){return d.key&&r.has(d.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function rl(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,i=[],a=function(){var d,c,f,p=e[s],m=(d=o)===null||d===void 0?void 0:d.findIndex(function(g){var b=g[n.value];return r?String(b)===String(p):b===p}),h=m!==-1?(c=o)===null||c===void 0?void 0:c[m]:null;i.push({value:(f=h==null?void 0:h[n.value])!==null&&f!==void 0?f:p,index:m,option:h}),o=h==null?void 0:h[n.children]},s=0;s<e.length;s+=1)a();return i}const PU=function(e,t,n,r,o){return u.useMemo(function(){var i=o||function(a){var s=r?a.slice(-1):a,l=" / ";return s.every(function(d){return["string","number"].includes(nt(d))})?s.join(l):s.reduce(function(d,c,f){var p=u.isValidElement(c)?u.cloneElement(c,{key:f}):c;return f===0?[p]:[].concat(Ne(d),[l,p])},[])};return e.map(function(a){var s,l=rl(a,t,n),d=i(l.map(function(f){var p,m=f.option,h=f.value;return(p=m==null?void 0:m[n.label])!==null&&p!==void 0?p:h}),l.map(function(f){var p=f.option;return p})),c=Po(a);return{label:d,value:c,key:c,valueCells:a,disabled:(s=l[l.length-1])===null||s===void 0||(s=s.option)===null||s===void 0?void 0:s.disabled}})},[e,t,n,o,r])};function ZE(e,t){return u.useCallback(function(n){var r=[],o=[];return n.forEach(function(i){var a=rl(i,e,t);a.every(function(s){return s.option})?o.push(i):r.push(i)}),[o,r]},[e,t])}function IU(e,t){return e[t]}function TU(e,t){return"".concat(e,"-").concat(t)}function JE(e,t){return e??t}function _U(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function kU(e,t,n){var r={};nt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,s=o.fieldNames,l=_U(s),d=l.key,c=l.children,f=i||c,p;a?typeof a=="string"?p=function(g){return g[a]}:typeof a=="function"&&(p=function(g){return a(g)}):p=function(g,b){return JE(g[d],b)};function m(h,g,b,y){var v=h?h[f]:e,C=h?TU(b.pos,g):"0",O=h?[].concat(Ne(y),[h]):[];if(h){var $=p(h,C),x={node:h,index:g,pos:C,key:$,parentPos:b.node?b.pos:null,level:b.level+1,nodes:O};t(x)}v&&v.forEach(function(w,T){m(w,T,{node:h,pos:C,level:b?b.level+1:-1},O)})}m(null)}function MU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,d=i||l,c={},f={},p={posEntities:c,keyEntities:f};return n&&(p=n(p)||p),kU(e,function(m){var h=m.node,g=m.index,b=m.pos,y=m.key,v=m.parentPos,C=m.level,O=m.nodes,$={node:h,nodes:O,index:g,key:y,pos:b,level:C},x=JE(y,b);c[b]=$,f[x]=$,$.parent=c[v],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,p)},{externalGetKey:d,childrenPropName:a,fieldNames:s}),o&&o(p),p}const AU=function(e,t){var n=u.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=u.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=MU(e,{fieldNames:t,initWrapper:function(i){return Y(Y({},i),{},{pathKeyEntities:{}})},processEntity:function(i,a){var s=i.nodes.map(function(l){return l[t.value]}).join(j2);a.pathKeyEntities[s]=i,i.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function e7(e,t){var n=u.useMemo(function(){return t||[]},[t]),r=AU(n,e),o=u.useCallback(function(i){var a=r();return i.map(function(s){var l=a[s].nodes;return l.map(function(d){return d[e.value]})})},[r,e]);return[n,r,o]}function NU(e){return u.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&nt(e)==="object"&&(t=Y(Y({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function t7(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function jU(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function FU(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(f){var p=f.key,m=f.node,h=f.children,g=h===void 0?[]:h;o.has(p)&&!r(m)&&g.filter(function(b){return!r(b.node)}).forEach(function(b){o.add(b.key)})})}for(var l=new Set,d=n;d>=0;d-=1){var c=t.get(d)||new Set;c.forEach(function(f){var p=f.parent,m=f.node;if(!(r(m)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(p.key);return}var h=!0,g=!1;(p.children||[]).filter(function(b){return!r(b.node)}).forEach(function(b){var y=b.key,v=o.has(y);h&&!v&&(h=!1),!g&&(v||i.has(y))&&(g=!0)}),h&&o.add(p.key),g&&i.add(p.key),l.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(t7(i,o))}}function LU(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(p){var m=p.key,h=p.node,g=p.children,b=g===void 0?[]:g;!i.has(m)&&!a.has(m)&&!o(h)&&b.filter(function(y){return!o(y.node)}).forEach(function(y){i.delete(y.key)})})}a=new Set;for(var d=new Set,c=r;c>=0;c-=1){var f=n.get(c)||new Set;f.forEach(function(p){var m=p.parent,h=p.node;if(!(o(h)||!p.parent||d.has(p.parent.key))){if(o(p.parent.node)){d.add(m.key);return}var g=!0,b=!1;(m.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var v=y.key,C=i.has(v);g&&!C&&(g=!1),!b&&(C||a.has(v))&&(b=!0)}),g||i.delete(m.key),b&&a.add(m.key),d.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(t7(a,i))}}function O1(e,t,n,r){var o=[],i;i=jU;var a=new Set(e.filter(function(c){var f=!!IU(n,c);return f||o.push(c),f})),s=new Map,l=0;Object.keys(n).forEach(function(c){var f=n[c],p=f.level,m=s.get(p);m||(m=new Set,s.set(p,m)),m.add(f),l=Math.max(l,p)}),An(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var d;return t===!0?d=FU(a,s,l,i):d=LU(a,t.halfCheckedKeys,s,l,i),d}function n7(e,t,n,r,o,i,a,s){return function(l){if(!e)t(l);else{var d=Po(l),c=nl(n),f=nl(r),p=c.includes(d),m=o.some(function(x){return Po(x)===d}),h=n,g=o;if(m&&!p)g=o.filter(function(x){return Po(x)!==d});else{var b=p?c.filter(function(x){return x!==d}):[].concat(Ne(c),[d]),y=i(),v;if(p){var C=O1(b,{halfCheckedKeys:f},y);v=C.checkedKeys}else{var O=O1(b,!0,y);v=O.checkedKeys}var $=QE(v,i,s);h=a($)}t([].concat(Ne(g),Ne(h)))}}}function r7(e,t,n,r,o){return u.useMemo(function(){var i=o(t),a=ge(i,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var d=nl(s),c=n(),f=O1(d,!0,c),p=f.checkedKeys,m=f.halfCheckedKeys;return[r(p),r(m),l]},[e,t,n,r,o])}var DU=u.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function BU(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,i=e.disabled,a=e.onClick,s=e.disableCheckbox,l=u.useContext(gl),d=l.checkable,c=typeof d!="boolean"?d:null;return u.createElement("span",{className:ae("".concat(n),(t={},J(t,"".concat(n,"-checked"),r),J(t,"".concat(n,"-indeterminate"),!r&&o),J(t,"".concat(n,"-disabled"),i||s),t)),onClick:a},c)}var o7="__cascader_fix_label__";function zU(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,i=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,d=e.checkedSet,c=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,m=e.disabled,h="".concat(t,"-menu"),g="".concat(t,"-menu-item"),b=u.useContext(gl),y=b.fieldNames,v=b.changeOnSelect,C=b.expandTrigger,O=b.expandIcon,$=b.loadingIcon,x=b.dropdownMenuColumnStyle,w=b.optionRender,T=C==="hover",R=function(P){return m||P},S=u.useMemo(function(){return r.map(function(E){var P,I=E.disabled,k=E.disableCheckbox,N=E[Ms],M=(P=E[o7])!==null&&P!==void 0?P:E[y.label],j=E[y.value],A=Xl(E,y),D=N?N.map(function(H){return H[y.value]}):[].concat(Ne(i),[j]),L=Po(D),z=f.includes(L),q=d.has(L),U=c.has(L);return{disabled:I,label:M,value:j,isLeaf:A,isLoading:z,checked:q,halfChecked:U,option:E,disableCheckbox:k,fullPath:D,fullPathKey:L}})},[r,d,y,c,f,i]);return u.createElement("ul",{className:h,role:"menu"},S.map(function(E){var P,I=E.disabled,k=E.label,N=E.value,M=E.isLeaf,j=E.isLoading,A=E.checked,D=E.halfChecked,L=E.option,z=E.fullPath,q=E.fullPathKey,U=E.disableCheckbox,H=function(){if(!R(I)){var se=Ne(z);T&&M&&se.pop(),l(se)}},K=function(){p(L)&&!R(I)&&s(z,M)},X;return typeof L.title=="string"?X=L.title:typeof k=="string"&&(X=k),u.createElement("li",{key:q,className:ae(g,(P={},J(P,"".concat(g,"-expand"),!M),J(P,"".concat(g,"-active"),o===N||o===q),J(P,"".concat(g,"-disabled"),R(I)),J(P,"".concat(g,"-loading"),j),P)),style:x,role:"menuitemcheckbox",title:X,"aria-checked":A,"data-path-key":q,onClick:function(){H(),!U&&(!n||M)&&K()},onDoubleClick:function(){v&&a(!1)},onMouseEnter:function(){T&&H()},onMouseDown:function(se){se.preventDefault()}},n&&u.createElement(BU,{prefixCls:"".concat(t,"-checkbox"),checked:A,halfChecked:D,disabled:R(I)||U,disableCheckbox:U,onClick:function(se){U||(se.stopPropagation(),K())}}),u.createElement("div",{className:"".concat(g,"-content")},w?w(L):k),!j&&O&&!M&&u.createElement("div",{className:"".concat(g,"-expand-icon")},O),j&&$&&u.createElement("div",{className:"".concat(g,"-loading-icon")},$))}))}var HU=function(t,n){var r=u.useContext(gl),o=r.values,i=o[0],a=u.useState([]),s=ge(a,2),l=s[0],d=s[1];return u.useEffect(function(){t||d(i||[])},[n,i]),[l,d]};const VU=function(e,t,n,r,o,i,a){var s=a.direction,l=a.searchValue,d=a.toggleOpen,c=a.open,f=s==="rtl",p=u.useMemo(function(){for(var x=-1,w=t,T=[],R=[],S=r.length,E=YE(t,n),P=function(j){var A=w.findIndex(function(D,L){return(E[L]?Po(E[L]):D[n.value])===r[j]});if(A===-1)return 1;x=A,T.push(x),R.push(r[j]),w=w[x][n.children]},I=0;I<S&&w&&!P(I);I+=1);for(var k=t,N=0;N<T.length-1;N+=1)k=k[T[N]][n.children];return[R,x,k,E]},[r,n,t]),m=ge(p,4),h=m[0],g=m[1],b=m[2],y=m[3],v=function(w){o(w)},C=function(w){var T=b.length,R=g;R===-1&&w<0&&(R=T);for(var S=0;S<T;S+=1){R=(R+w+T)%T;var E=b[R];if(E&&!E.disabled){var P=h.slice(0,-1).concat(y[R]?Po(y[R]):E[n.value]);v(P);return}}},O=function(){if(h.length>1){var w=h.slice(0,-1);v(w)}else d(!1)},$=function(){var w,T=((w=b[g])===null||w===void 0?void 0:w[n.children])||[],R=T.find(function(E){return!E.disabled});if(R){var S=[].concat(Ne(h),[R[n.value]]);v(S)}};u.useImperativeHandle(e,function(){return{onKeyDown:function(w){var T=w.which;switch(T){case Ze.UP:case Ze.DOWN:{var R=0;T===Ze.UP?R=-1:T===Ze.DOWN&&(R=1),R!==0&&C(R);break}case Ze.LEFT:{if(l)break;f?$():O();break}case Ze.RIGHT:{if(l)break;f?O():$();break}case Ze.BACKSPACE:{l||O();break}case Ze.ENTER:{if(h.length){var S=b[g],E=(S==null?void 0:S[Ms])||[];E.length?i(E.map(function(P){return P[n.value]}),E[E.length-1]):i(h,b[g])}break}case Ze.ESC:d(!1),c&&w.stopPropagation()}},onKeyUp:function(){}}})};var i7=u.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,a=e.multiple,s=e.searchValue,l=e.toggleOpen,d=e.notFoundContent,c=e.direction,f=e.open,p=e.disabled,m=u.useRef(null),h=c==="rtl",g=u.useContext(gl),b=g.options,y=g.values,v=g.halfValues,C=g.fieldNames,O=g.changeOnSelect,$=g.onSelect,x=g.searchOptions,w=g.dropdownPrefixCls,T=g.loadData,R=g.expandTrigger,S=w||i,E=u.useState([]),P=ge(E,2),I=P[0],k=P[1],N=function(fe){if(!(!T||s)){var de=rl(fe,b,C),ve=de.map(function(Pe){var Ie=Pe.option;return Ie}),ye=ve[ve.length-1];if(ye&&!Xl(ye,C)){var Se=Po(fe);k(function(Pe){return[].concat(Ne(Pe),[Se])}),T(ve)}}};u.useEffect(function(){I.length&&I.forEach(function(ce){var fe=$U(ce),de=rl(fe,b,C,!0).map(function(ye){var Se=ye.option;return Se}),ve=de[de.length-1];(!ve||ve[C.children]||Xl(ve,C))&&k(function(ye){return ye.filter(function(Se){return Se!==ce})})})},[b,I,C]);var M=u.useMemo(function(){return new Set(nl(y))},[y]),j=u.useMemo(function(){return new Set(nl(v))},[v]),A=HU(a,f),D=ge(A,2),L=D[0],z=D[1],q=function(fe){z(fe),N(fe)},U=function(fe){if(p)return!1;var de=fe.disabled,ve=Xl(fe,C);return!de&&(ve||O||a)},H=function(fe,de){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$(fe),!a&&(de||O&&(R==="hover"||ve))&&l(!1)},K=u.useMemo(function(){return s?x:b},[s,x,b]),X=u.useMemo(function(){for(var ce=[{options:K}],fe=K,de=YE(fe,C),ve=function(){var Pe=L[ye],Ie=fe.find(function(Fe,Ee){return(de[Ee]?Po(de[Ee]):Fe[C.value])===Pe}),$e=Ie==null?void 0:Ie[C.children];if(!($e!=null&&$e.length))return 1;fe=$e,ce.push({options:$e})},ye=0;ye<L.length&&!ve();ye+=1);return ce},[K,L,C]),Z=function(fe,de){U(de)&&H(fe,Xl(de,C),!0)};VU(t,K,C,L,q,Z,{direction:c,searchValue:s,toggleOpen:l,open:f}),u.useEffect(function(){if(!s)for(var ce=0;ce<L.length;ce+=1){var fe,de=L.slice(0,ce+1),ve=Po(de),ye=(fe=m.current)===null||fe===void 0?void 0:fe.querySelector('li[data-path-key="'.concat(ve.replace(/\\{0,2}"/g,'\\"'),'"]'));ye&&RU(ye)}},[L,s]);var se=!((n=X[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),ie=[(r={},J(r,C.value,"__EMPTY__"),J(r,o7,d),J(r,"disabled",!0),r)],me=Y(Y({},e),{},{multiple:!se&&a,onSelect:H,onActive:q,onToggleOpen:l,checkedSet:M,halfCheckedSet:j,loadingKeys:I,isSelectable:U}),ue=se?[{options:ie}]:X,re=ue.map(function(ce,fe){var de=L.slice(0,fe),ve=L[fe];return u.createElement(zU,we({key:fe},me,{prefixCls:S,options:ce.options,prevValuePath:de,activeValue:ve}))});return u.createElement(DU,{open:f},u.createElement("div",{className:ae("".concat(S,"-menus"),(o={},J(o,"".concat(S,"-menu-empty"),se),J(o,"".concat(S,"-rtl"),h),o)),ref:m},re))}),UU=u.forwardRef(function(e,t){var n=Lw();return u.createElement(i7,we({},e,n,{ref:t}))});function WU(){}function a7(e){var t,n=e,r=n.prefixCls,o=r===void 0?"rc-cascader":r,i=n.style,a=n.className,s=n.options,l=n.checkable,d=n.defaultValue,c=n.value,f=n.fieldNames,p=n.changeOnSelect,m=n.onChange,h=n.showCheckedStrategy,g=n.loadData,b=n.expandTrigger,y=n.expandIcon,v=y===void 0?">":y,C=n.loadingIcon,O=n.direction,$=n.notFoundContent,x=$===void 0?"Not Found":$,w=n.disabled,T=!!l,R=nn(d,{value:c,postState:Kf}),S=ge(R,2),E=S[0],P=S[1],I=u.useMemo(function(){return XE(f)},[JSON.stringify(f)]),k=e7(I,s),N=ge(k,3),M=N[0],j=N[1],A=N[2],D=ZE(M,I),L=r7(T,E,j,A,D),z=ge(L,3),q=z[0],U=z[1],H=z[2],K=Gt(function(ue){if(P(ue),m){var re=Kf(ue),ce=re.map(function(ve){return rl(ve,M,I).map(function(ye){return ye.option})}),fe=T?re:re[0],de=T?ce:ce[0];m(fe,de)}}),X=n7(T,K,q,U,H,j,A,h),Z=Gt(function(ue){X(ue)}),se=u.useMemo(function(){return{options:M,fieldNames:I,values:q,halfValues:U,changeOnSelect:p,onSelect:Z,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:b,expandIcon:v,loadingIcon:C,dropdownMenuColumnStyle:void 0}},[M,I,q,U,p,Z,l,g,b,v,C]),ie="".concat(o,"-panel"),me=!M.length;return u.createElement(gl.Provider,{value:se},u.createElement("div",{className:ae(ie,(t={},J(t,"".concat(ie,"-rtl"),O==="rtl"),J(t,"".concat(ie,"-empty"),me),t),a),style:i},me?x:u.createElement(i7,{prefixCls:o,searchValue:"",multiple:T,toggleOpen:WU,open:!0,direction:O,disabled:w})))}var KU=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Sc=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-cascader":r,i=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,d=e.onChange,c=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,m=p===void 0?!0:p,h=e.searchValue,g=e.onSearch,b=e.showSearch,y=e.expandTrigger,v=e.options,C=e.dropdownPrefixCls,O=e.loadData,$=e.popupVisible,x=e.open,w=e.popupClassName,T=e.dropdownClassName,R=e.dropdownMenuColumnStyle,S=e.dropdownStyle,E=e.popupPlacement,P=e.placement,I=e.onDropdownVisibleChange,k=e.onPopupVisibleChange,N=e.onOpenChange,M=e.expandIcon,j=M===void 0?">":M,A=e.loadingIcon,D=e.children,L=e.dropdownMatchSelectWidth,z=L===void 0?!1:L,q=e.showCheckedStrategy,U=q===void 0?qE:q,H=e.optionRender,K=gt(e,KU),X=Jw(n),Z=!!f,se=nn(a,{value:s,postState:Kf}),ie=ge(se,2),me=ie[0],ue=ie[1],re=u.useMemo(function(){return XE(i)},[JSON.stringify(i)]),ce=e7(re,v),fe=ge(ce,3),de=fe[0],ve=fe[1],ye=fe[2],Se=nn("",{value:h,postState:function(ze){return ze||""}}),Pe=ge(Se,2),Ie=Pe[0],$e=Pe[1],Fe=function(ze,Le){$e(ze),Le.source!=="blur"&&g&&g(ze)},Ee=NU(b),ke=ge(Ee,2),Be=ke[0],je=ke[1],We=EU(Ie,de,re,C||o,je,l||Z),Ye=ZE(de,re),Xe=r7(Z,me,ve,ye,Ye),it=ge(Xe,3),et=it[0],ct=it[1],He=it[2],he=u.useMemo(function(){var Ge=nl(et),ze=QE(Ge,ve,U);return[].concat(Ne(He),Ne(ye(ze)))},[et,ve,ye,He,U]),Q=PU(he,de,re,Z,c),ee=Gt(function(Ge){if(ue(Ge),d){var ze=Kf(Ge),Le=ze.map(function(Ke){return rl(Ke,de,re).map(function(Ve){return Ve.option})}),Je=Z?ze:ze[0],Ct=Z?Le:Le[0];d(Je,Ct)}}),ne=n7(Z,ee,et,ct,He,ve,ye,U),xe=Gt(function(Ge){(!Z||m)&&$e(""),ne(Ge)}),Re=function(ze,Le){if(Le.type==="clear"){ee([]);return}var Je=Le.values[0],Ct=Je.valueCells;xe(Ct)},De=x!==void 0?x:$,Qe=T||w,rt=P||E,dt=function(ze){N==null||N(ze),I==null||I(ze),k==null||k(ze)},pt=u.useMemo(function(){return{options:de,fieldNames:re,values:et,halfValues:ct,changeOnSelect:l,onSelect:xe,checkable:f,searchOptions:We,dropdownPrefixCls:C,loadData:O,expandTrigger:y,expandIcon:j,loadingIcon:A,dropdownMenuColumnStyle:R,optionRender:H}},[de,re,et,ct,l,xe,f,We,C,O,y,j,A,R,H]),vt=!(Ie?We:de).length,at=Ie&&je.matchInputWidth||vt?{}:{minWidth:"auto"};return u.createElement(gl.Provider,{value:pt},u.createElement(qw,we({},K,{ref:t,id:X,prefixCls:o,autoClearSearchValue:m,dropdownMatchSelectWidth:z,dropdownStyle:Y(Y({},at),S),displayValues:Q,onDisplayValuesChange:Re,mode:Z?"multiple":void 0,searchValue:Ie,onSearch:Fe,showSearch:Be,OptionList:UU,emptyOptions:vt,open:De,dropdownClassName:Qe,placement:rt,onDropdownVisibleChange:dt,getRawInputElement:function(){return D}})))});Sc.SHOW_PARENT=qE;Sc.SHOW_CHILD=GE;Sc.Panel=a7;function s7(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=u.useContext(bt),i=t||r,a=n("select",e),s=n("cascader",e);return[a,s,i,o]}function l7(e,t){return u.useMemo(()=>t?u.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const u7=(e,t,n)=>{let r=n;n||(r=t?u.createElement(Tu,null):u.createElement(di,null));const o=u.createElement("span",{className:`${e}-menu-item-loading-icon`},u.createElement(Aa,{spin:!0}));return u.useMemo(()=>[r,o],[r])},qU=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},$n(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},V0(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${be(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
276
|
+
${n}:not(${n}-disabled),
|
|
277
|
+
${t}:not(${t}-disabled)
|
|
278
|
+
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
279
|
+
${n}-checked:not(${n}-disabled),
|
|
280
|
+
${t}-checked:not(${t}-disabled)
|
|
281
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function c7(e,t){const n=Pt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[qU(n)]}Zt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[c7(n,e)]});const d7=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=`
|
|
282
|
+
&${r}-expand ${r}-expand-icon,
|
|
283
|
+
${r}-loading-icon
|
|
284
|
+
`;return[c7(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Qo),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},GU=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},d7(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},np(e)]},f7=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},p7=Zt("Cascader",e=>[GU(e)],f7),XU=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[d7(e),{display:"inline-flex",border:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},YU=f5(["Cascader","Panel"],e=>XU(e),f7);function QU(e){const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:i,direction:a,expandIcon:s,disabled:l}=e,d=u.useContext(Yo),c=l??d,[f,p,m,h]=s7(t,a),g=ur(p),[b,y,v]=p7(p,g);YU(p);const C=m==="rtl",[O,$]=u7(f,C,s),x=i||(h==null?void 0:h("Cascader"))||u.createElement(oE,{componentName:"Cascader"}),w=l7(p,r);return b(u.createElement(a7,Object.assign({},e,{checkable:w,prefixCls:p,className:ae(n,y,o,v,g),notFoundContent:x,direction:m,expandIcon:O,loadingIcon:$,disabled:c})))}var ZU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{SHOW_CHILD:JU,SHOW_PARENT:eW}=Sc;function tW(e,t,n){const r=e.toLowerCase().split(t).reduce((a,s,l)=>l===0?[s]:[].concat(Ne(a),[t,s]),[]),o=[];let i=0;return r.forEach((a,s)=>{const l=i+a.length;let d=e.slice(i,l);i=l,s%2===1&&(d=u.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},d)),o.push(d)}),o}const nW=(e,t,n,r)=>{const o=[],i=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&o.push(" / ");let l=a[r.label];const d=typeof l;(d==="string"||d==="number")&&(l=tW(String(l),i,n)),o.push(l)}),o},vl=u.forwardRef((e,t)=>{var n,r,o,i;const{prefixCls:a,size:s,disabled:l,className:d,rootClassName:c,multiple:f,bordered:p=!0,transitionName:m,choiceTransitionName:h="",popupClassName:g,dropdownClassName:b,expandIcon:y,placement:v,showSearch:C,allowClear:O=!0,notFoundContent:$,direction:x,getPopupContainer:w,status:T,showArrow:R,builtinPlacements:S,style:E,variant:P,dropdownRender:I,onDropdownVisibleChange:k,dropdownMenuColumnStyle:N,popupRender:M,dropdownStyle:j,popupMenuColumnStyle:A,onOpenChange:D,styles:L,classNames:z}=e,q=ZU(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),U=In(q,["suffixIcon"]),{getPrefixCls:H,getPopupContainer:K,className:X,style:Z,classNames:se,styles:ie}=vr("cascader"),{popupOverflow:me}=u.useContext(bt),{status:ue,hasFeedback:re,isFormItemInput:ce,feedbackIcon:fe}=u.useContext(yi),de=sp(ue,T),[ve,ye,Se,Pe]=s7(a,x),Ie=Se==="rtl",$e=H(),Fe=ur(ve),[Ee,ke,Be]=Nz(ve,Fe),je=ur(ye),[We]=p7(ye,je),{compactSize:Ye,compactItemClassnames:Xe}=pc(ve,x),[it,et]=lp("cascader",P,p),ct=$||(Pe==null?void 0:Pe("Cascader"))||u.createElement(oE,{componentName:"Cascader"}),He=ae(((n=z==null?void 0:z.popup)===null||n===void 0?void 0:n.root)||((r=se.popup)===null||r===void 0?void 0:r.root)||g||b,`${ye}-dropdown`,{[`${ye}-dropdown-rtl`]:Se==="rtl"},c,Fe,se.root,z==null?void 0:z.root,je,ke,Be),he=M||I,Q=A||N,ee=D||k,ne=((o=L==null?void 0:L.popup)===null||o===void 0?void 0:o.root)||((i=ie.popup)===null||i===void 0?void 0:i.root)||j,xe=u.useMemo(()=>{if(!C)return C;let Ve={render:nW};return typeof C=="object"&&(Ve=Object.assign(Object.assign({},Ve),C)),Ve},[C]),Re=Mo(Ve=>{var ot;return(ot=s??Ye)!==null&&ot!==void 0?ot:Ve}),De=u.useContext(Yo),Qe=l??De,[rt,dt]=u7(ve,Ie,y),pt=l7(ye,f),vt=Fz(e.suffixIcon,R),{suffixIcon:at,removeIcon:Ge,clearIcon:ze}=jz(Object.assign(Object.assign({},e),{hasFeedback:re,feedbackIcon:fe,showSuffixIcon:vt,multiple:f,prefixCls:ve,componentName:"Cascader"})),Le=u.useMemo(()=>v!==void 0?v:Ie?"bottomRight":"bottomLeft",[v,Ie]),Je=O===!0?{clearIcon:ze}:O,[Ct]=hl("SelectLike",ne==null?void 0:ne.zIndex),Ke=u.createElement(Sc,Object.assign({prefixCls:ve,className:ae(!a&&ye,{[`${ve}-lg`]:Re==="large",[`${ve}-sm`]:Re==="small",[`${ve}-rtl`]:Ie,[`${ve}-${it}`]:et,[`${ve}-in-form-item`]:ce},Hf(ve,de,re),Xe,X,d,c,z==null?void 0:z.root,se.root,Fe,je,ke,Be),disabled:Qe,style:Object.assign(Object.assign(Object.assign(Object.assign({},ie.root),L==null?void 0:L.root),Z),E)},U,{builtinPlacements:vz(S,me),direction:Se,placement:Le,notFoundContent:ct,allowClear:Je,showSearch:xe,expandIcon:rt,suffixIcon:at,removeIcon:Ge,loadingIcon:dt,checkable:pt,dropdownClassName:He,dropdownPrefixCls:a||ye,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:Ct}),dropdownRender:he,dropdownMenuColumnStyle:Q,onOpenChange:ee,choiceTransitionName:hr($e,"",h),transitionName:hr($e,"slide-up",m),getPopupContainer:w||K,ref:t}));return We(Ee(Ke))}),rW=ND(vl,"dropdownAlign",e=>In(e,["visible"]));vl.SHOW_PARENT=eW;vl.SHOW_CHILD=JU;vl.Panel=QU;vl._InternalPanelDoNotUseOrYouWillBeFired=rW;const h7=u.createContext({});var oW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Z4(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const iW=["xs","sm","md","lg","xl","xxl"],J4=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(bt),{gutter:o,wrap:i}=u.useContext(h7),{prefixCls:a,span:s,order:l,offset:d,push:c,pull:f,className:p,children:m,flex:h,style:g}=e,b=oW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[v,C,O]=YL(y),$={};let x={};iW.forEach(R=>{let S={};const E=e[R];typeof E=="number"?S.span=E:typeof E=="object"&&(S=E||{}),delete b[R],x=Object.assign(Object.assign({},x),{[`${y}-${R}-${S.span}`]:S.span!==void 0,[`${y}-${R}-order-${S.order}`]:S.order||S.order===0,[`${y}-${R}-offset-${S.offset}`]:S.offset||S.offset===0,[`${y}-${R}-push-${S.push}`]:S.push||S.push===0,[`${y}-${R}-pull-${S.pull}`]:S.pull||S.pull===0,[`${y}-rtl`]:r==="rtl"}),S.flex&&(x[`${y}-${R}-flex`]=!0,$[`--${y}-${R}-flex`]=Z4(S.flex))});const w=ae(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${d}`]:d,[`${y}-push-${c}`]:c,[`${y}-pull-${f}`]:f},p,x,C,O),T={};if(o&&o[0]>0){const R=o[0]/2;T.paddingLeft=R,T.paddingRight=R}return h&&(T.flex=Z4(h),i===!1&&!T.minWidth&&(T.minWidth=0)),v(u.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},T),g),$),className:w,ref:t}),m))});function aW(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((i,a)=>{if(typeof i=="object"&&i!==null)for(let s=0;s<tl.length;s++){const l=tl[s];if(o[l]&&i[l]!==void 0){n[a]=i[l];break}}else n[a]=i}),n}var sW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eC(e,t){const[n,r]=u.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<tl.length;i++){const a=tl[i];if(!t||!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return u.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const tC=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:d}=e,c=sW(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=u.useContext(bt),m=uE(!0,null),h=eC(o,m),g=eC(r,m),b=f("row",n),[y,v,C]=XL(b),O=aW(l,m),$=ae(b,{[`${b}-no-wrap`]:d===!1,[`${b}-${g}`]:g,[`${b}-${h}`]:h,[`${b}-rtl`]:p==="rtl"},i,v,C),x={},w=O[0]!=null&&O[0]>0?O[0]/-2:void 0;w&&(x.marginLeft=w,x.marginRight=w);const[T,R]=O;x.rowGap=R;const S=u.useMemo(()=>({gutter:[T,R],wrap:d}),[T,R,d]);return y(u.createElement(h7.Provider,{value:S},u.createElement("div",Object.assign({},c,{className:$,style:Object.assign(Object.assign({},x),a),ref:t}),s)))});function lW(e){return!!(e.addonBefore||e.addonAfter)}function uW(e){return!!(e.prefix||e.suffix||e.allowClear)}function nC(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function qf(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=nC(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=nC(t,e,r),n(o);return}n(o)}}function m7(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var g7=V.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,d=e.suffix,c=e.addonBefore,f=e.addonAfter,p=e.className,m=e.style,h=e.disabled,g=e.readOnly,b=e.focused,y=e.triggerFocus,v=e.allowClear,C=e.value,O=e.handleReset,$=e.hidden,x=e.classes,w=e.classNames,T=e.dataAttrs,R=e.styles,S=e.components,E=e.onClear,P=a??i,I=(S==null?void 0:S.affixWrapper)||"span",k=(S==null?void 0:S.groupWrapper)||"span",N=(S==null?void 0:S.wrapper)||"span",M=(S==null?void 0:S.groupAddon)||"span",j=u.useRef(null),A=function(de){var ve;(ve=j.current)!==null&&ve!==void 0&&ve.contains(de.target)&&(y==null||y())},D=uW(e),L=u.cloneElement(P,{value:C,className:ae((n=P.props)===null||n===void 0?void 0:n.className,!D&&(w==null?void 0:w.variant))||null}),z=u.useRef(null);if(V.useImperativeHandle(t,function(){return{nativeElement:z.current||j.current}}),D){var q=null;if(v){var U=!h&&!g&&C,H="".concat(s,"-clear-icon"),K=nt(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"✖";q=V.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){O==null||O(de),E==null||E()},onMouseDown:function(de){return de.preventDefault()},className:ae(H,J(J({},"".concat(H,"-hidden"),!U),"".concat(H,"-has-suffix"),!!d))},K)}var X="".concat(s,"-affix-wrapper"),Z=ae(X,J(J(J(J(J({},"".concat(s,"-disabled"),h),"".concat(X,"-disabled"),h),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),g),"".concat(X,"-input-with-clear-btn"),d&&v&&C),x==null?void 0:x.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),se=(d||v)&&V.createElement("span",{className:ae("".concat(s,"-suffix"),w==null?void 0:w.suffix),style:R==null?void 0:R.suffix},q,d);L=V.createElement(I,we({className:Z,style:R==null?void 0:R.affixWrapper,onClick:A},T==null?void 0:T.affixWrapper,{ref:j}),l&&V.createElement("span",{className:ae("".concat(s,"-prefix"),w==null?void 0:w.prefix),style:R==null?void 0:R.prefix},l),L,se)}if(lW(e)){var ie="".concat(s,"-group"),me="".concat(ie,"-addon"),ue="".concat(ie,"-wrapper"),re=ae("".concat(s,"-wrapper"),ie,x==null?void 0:x.wrapper,w==null?void 0:w.wrapper),ce=ae(ue,J({},"".concat(ue,"-disabled"),h),x==null?void 0:x.group,w==null?void 0:w.groupWrapper);L=V.createElement(k,{className:ce,ref:z},V.createElement(N,{className:re},c&&V.createElement(M,{className:me},c),L,f&&V.createElement(M,{className:me},f)))}return V.cloneElement(L,{className:ae((r=L.props)===null||r===void 0?void 0:r.className,p)||null,style:Y(Y({},(o=L.props)===null||o===void 0?void 0:o.style),m),hidden:$})}),cW=["show"];function v7(e,t){return u.useMemo(function(){var n={};t&&(n.show=nt(t)==="object"&&t.formatter?t.formatter:!!t),n=Y(Y({},n),e);var r=n,o=r.show,i=gt(r,cW);return Y(Y({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var dW=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fW=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,d=e.prefixCls,c=d===void 0?"rc-input":d,f=e.disabled,p=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,b=e.showCount,y=e.count,v=e.type,C=v===void 0?"text":v,O=e.classes,$=e.classNames,x=e.styles,w=e.onCompositionStart,T=e.onCompositionEnd,R=gt(e,dW),S=u.useState(!1),E=ge(S,2),P=E[0],I=E[1],k=u.useRef(!1),N=u.useRef(!1),M=u.useRef(null),j=u.useRef(null),A=function(ke){M.current&&m7(M.current,ke)},D=nn(e.defaultValue,{value:e.value}),L=ge(D,2),z=L[0],q=L[1],U=z==null?"":String(z),H=u.useState(null),K=ge(H,2),X=K[0],Z=K[1],se=v7(y,b),ie=se.max||h,me=se.strategy(U),ue=!!ie&&me>ie;u.useImperativeHandle(t,function(){var Ee;return{focus:A,blur:function(){var Be;(Be=M.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,je,We){var Ye;(Ye=M.current)===null||Ye===void 0||Ye.setSelectionRange(Be,je,We)},select:function(){var Be;(Be=M.current)===null||Be===void 0||Be.select()},input:M.current,nativeElement:((Ee=j.current)===null||Ee===void 0?void 0:Ee.nativeElement)||M.current}}),u.useEffect(function(){N.current&&(N.current=!1),I(function(Ee){return Ee&&f?!1:Ee})},[f]);var re=function(ke,Be,je){var We=Be;if(!k.current&&se.exceedFormatter&&se.max&&se.strategy(Be)>se.max){if(We=se.exceedFormatter(Be,{max:se.max}),Be!==We){var Ye,Xe;Z([((Ye=M.current)===null||Ye===void 0?void 0:Ye.selectionStart)||0,((Xe=M.current)===null||Xe===void 0?void 0:Xe.selectionEnd)||0])}}else if(je.source==="compositionEnd")return;q(We),M.current&&qf(M.current,ke,r,We)};u.useEffect(function(){if(X){var Ee;(Ee=M.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,Ne(X))}},[X]);var ce=function(ke){re(ke,ke.target.value,{source:"change"})},fe=function(ke){k.current=!1,re(ke,ke.currentTarget.value,{source:"compositionEnd"}),T==null||T(ke)},de=function(ke){a&&ke.key==="Enter"&&!N.current&&(N.current=!0,a(ke)),s==null||s(ke)},ve=function(ke){ke.key==="Enter"&&(N.current=!1),l==null||l(ke)},ye=function(ke){I(!0),o==null||o(ke)},Se=function(ke){N.current&&(N.current=!1),I(!1),i==null||i(ke)},Pe=function(ke){q(""),A(),M.current&&qf(M.current,ke,r)},Ie=ue&&"".concat(c,"-out-of-range"),$e=function(){var ke=In(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return V.createElement("input",we({autoComplete:n},ke,{onChange:ce,onFocus:ye,onBlur:Se,onKeyDown:de,onKeyUp:ve,className:ae(c,J({},"".concat(c,"-disabled"),f),$==null?void 0:$.input),style:x==null?void 0:x.input,ref:M,size:p,type:C,onCompositionStart:function(je){k.current=!0,w==null||w(je)},onCompositionEnd:fe}))},Fe=function(){var ke=Number(ie)>0;if(g||se.show){var Be=se.showFormatter?se.showFormatter({value:U,count:me,maxLength:ie}):"".concat(me).concat(ke?" / ".concat(ie):"");return V.createElement(V.Fragment,null,se.show&&V.createElement("span",{className:ae("".concat(c,"-show-count-suffix"),J({},"".concat(c,"-show-count-has-suffix"),!!g),$==null?void 0:$.count),style:Y({},x==null?void 0:x.count)},Be),g)}return null};return V.createElement(g7,we({},R,{prefixCls:c,className:ae(m,Ie),handleReset:Pe,value:U,focused:P,triggerFocus:A,suffix:Fe(),disabled:f,classes:O,classNames:$,styles:x,ref:j}),$e())});const y7=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:V.createElement(aa,null)}),t};function b7(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function pW(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var hW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hp=u.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:d,allowClear:c,addonAfter:f,addonBefore:p,className:m,style:h,styles:g,rootClassName:b,onChange:y,classNames:v,variant:C}=e,O=hW(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$,direction:x,allowClear:w,autoComplete:T,className:R,style:S,classNames:E,styles:P}=vr("input"),I=$("input",n),k=u.useRef(null),N=ur(I),[M,j,A]=BE(I,b),[D]=zE(I,N),{compactSize:L,compactItemClassnames:z}=pc(I,x),q=Mo(Se=>{var Pe;return(Pe=i??L)!==null&&Pe!==void 0?Pe:Se}),U=V.useContext(Yo),H=a??U,{status:K,hasFeedback:X,feedbackIcon:Z}=u.useContext(yi),se=sp(K,o),ie=pW(e)||!!X;u.useRef(ie);const me=b7(k,!0),ue=Se=>{me(),s==null||s(Se)},re=Se=>{me(),l==null||l(Se)},ce=Se=>{me(),y==null||y(Se)},fe=(X||d)&&V.createElement(V.Fragment,null,d,X&&Z),de=y7(c??w),[ve,ye]=lp("input",C,r);return M(D(V.createElement(fW,Object.assign({ref:Xr(t,k),prefixCls:I,autoComplete:T},O,{disabled:H,onBlur:ue,onFocus:re,style:Object.assign(Object.assign({},S),h),styles:Object.assign(Object.assign({},P),g),suffix:fe,allowClear:de,className:ae(m,b,A,N,z,R),onChange:ce,addonBefore:p&&V.createElement(Bu,{form:!0,space:!0},p),addonAfter:f&&V.createElement(Bu,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},v),E),{input:ae({[`${I}-sm`]:q==="small",[`${I}-lg`]:q==="large",[`${I}-rtl`]:x==="rtl"},v==null?void 0:v.input,E.input,j),variant:ae({[`${I}-${ve}`]:ye},Hf(I,se)),affixWrapper:ae({[`${I}-affix-wrapper-sm`]:q==="small",[`${I}-affix-wrapper-lg`]:q==="large",[`${I}-affix-wrapper-rtl`]:x==="rtl"},j),wrapper:ae({[`${I}-group-rtl`]:x==="rtl"},j),groupWrapper:ae({[`${I}-group-wrapper-sm`]:q==="small",[`${I}-group-wrapper-lg`]:q==="large",[`${I}-group-wrapper-rtl`]:x==="rtl",[`${I}-group-wrapper-${ve}`]:ye},Hf(`${I}-group-wrapper`,se,X),j)})}))))});var rC=u.createContext(null),C7=u.createContext({}),mW=["prefixCls","className","containerRef"],gW=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,i=gt(t,mW),a=u.useContext(C7),s=a.panel,l=Ci(s,o);return u.createElement("div",we({className:ae("".concat(n,"-content"),r),role:"dialog",ref:l},lr(t,{aria:!0}),{"aria-modal":"true"},i))};function oC(e){return typeof e=="string"&&String(Number(e))===e?(An(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var iC={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function vW(e,t){var n,r,o,i=e.prefixCls,a=e.open,s=e.placement,l=e.inline,d=e.push,c=e.forceRender,f=e.autoFocus,p=e.keyboard,m=e.classNames,h=e.rootClassName,g=e.rootStyle,b=e.zIndex,y=e.className,v=e.id,C=e.style,O=e.motion,$=e.width,x=e.height,w=e.children,T=e.mask,R=e.maskClosable,S=e.maskMotion,E=e.maskClassName,P=e.maskStyle,I=e.afterOpenChange,k=e.onClose,N=e.onMouseEnter,M=e.onMouseOver,j=e.onMouseLeave,A=e.onClick,D=e.onKeyDown,L=e.onKeyUp,z=e.styles,q=e.drawerRender,U=u.useRef(),H=u.useRef(),K=u.useRef();u.useImperativeHandle(t,function(){return U.current});var X=function(Fe){var Ee=Fe.keyCode,ke=Fe.shiftKey;switch(Ee){case Ze.TAB:{if(Ee===Ze.TAB){if(!ke&&document.activeElement===K.current){var Be;(Be=H.current)===null||Be===void 0||Be.focus({preventScroll:!0})}else if(ke&&document.activeElement===H.current){var je;(je=K.current)===null||je===void 0||je.focus({preventScroll:!0})}}break}case Ze.ESC:{k&&p&&(Fe.stopPropagation(),k(Fe));break}}};u.useEffect(function(){if(a&&f){var $e;($e=U.current)===null||$e===void 0||$e.focus({preventScroll:!0})}},[a]);var Z=u.useState(!1),se=ge(Z,2),ie=se[0],me=se[1],ue=u.useContext(rC),re;typeof d=="boolean"?re=d?{}:{distance:0}:re=d||{};var ce=(n=(r=(o=re)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:ue==null?void 0:ue.pushDistance)!==null&&n!==void 0?n:180,fe=u.useMemo(function(){return{pushDistance:ce,push:function(){me(!0)},pull:function(){me(!1)}}},[ce]);u.useEffect(function(){if(a){var $e;ue==null||($e=ue.push)===null||$e===void 0||$e.call(ue)}else{var Fe;ue==null||(Fe=ue.pull)===null||Fe===void 0||Fe.call(ue)}},[a]),u.useEffect(function(){return function(){var $e;ue==null||($e=ue.pull)===null||$e===void 0||$e.call(ue)}},[]);var de=T&&u.createElement(sr,we({key:"mask"},S,{visible:a}),function($e,Fe){var Ee=$e.className,ke=$e.style;return u.createElement("div",{className:ae("".concat(i,"-mask"),Ee,m==null?void 0:m.mask,E),style:Y(Y(Y({},ke),P),z==null?void 0:z.mask),onClick:R&&a?k:void 0,ref:Fe})}),ve=typeof O=="function"?O(s):O,ye={};if(ie&&ce)switch(s){case"top":ye.transform="translateY(".concat(ce,"px)");break;case"bottom":ye.transform="translateY(".concat(-ce,"px)");break;case"left":ye.transform="translateX(".concat(ce,"px)");break;default:ye.transform="translateX(".concat(-ce,"px)");break}s==="left"||s==="right"?ye.width=oC($):ye.height=oC(x);var Se={onMouseEnter:N,onMouseOver:M,onMouseLeave:j,onClick:A,onKeyDown:D,onKeyUp:L},Pe=u.createElement(sr,we({key:"panel"},ve,{visible:a,forceRender:c,onVisibleChanged:function(Fe){I==null||I(Fe)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function($e,Fe){var Ee=$e.className,ke=$e.style,Be=u.createElement(gW,we({id:v,containerRef:Fe,prefixCls:i,className:ae(y,m==null?void 0:m.content),style:Y(Y({},C),z==null?void 0:z.content)},lr(e,{aria:!0}),Se),w);return u.createElement("div",we({className:ae("".concat(i,"-content-wrapper"),m==null?void 0:m.wrapper,Ee),style:Y(Y(Y({},ye),ke),z==null?void 0:z.wrapper)},lr(e,{data:!0})),q?q(Be):Be)}),Ie=Y({},g);return b&&(Ie.zIndex=b),u.createElement(rC.Provider,{value:fe},u.createElement("div",{className:ae(i,"".concat(i,"-").concat(s),h,J(J({},"".concat(i,"-open"),a),"".concat(i,"-inline"),l)),style:Ie,tabIndex:-1,ref:U,onKeyDown:X},de,u.createElement("div",{tabIndex:0,ref:H,style:iC,"aria-hidden":"true","data-sentinel":"start"}),Pe,u.createElement("div",{tabIndex:0,ref:K,style:iC,"aria-hidden":"true","data-sentinel":"end"})))}var yW=u.forwardRef(vW),bW=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,i=o===void 0?"rc-drawer":o,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,d=l===void 0?!0:l,c=t.keyboard,f=c===void 0?!0:c,p=t.width,m=p===void 0?378:p,h=t.mask,g=h===void 0?!0:h,b=t.maskClosable,y=b===void 0?!0:b,v=t.getContainer,C=t.forceRender,O=t.afterOpenChange,$=t.destroyOnClose,x=t.onMouseEnter,w=t.onMouseOver,T=t.onMouseLeave,R=t.onClick,S=t.onKeyDown,E=t.onKeyUp,P=t.panelRef,I=u.useState(!1),k=ge(I,2),N=k[0],M=k[1],j=u.useState(!1),A=ge(j,2),D=A[0],L=A[1];Ut(function(){L(!0)},[]);var z=D?r:!1,q=u.useRef(),U=u.useRef();Ut(function(){z&&(U.current=document.activeElement)},[z]);var H=function(ie){var me;if(M(ie),O==null||O(ie),!ie&&U.current&&!((me=q.current)!==null&&me!==void 0&&me.contains(U.current))){var ue;(ue=U.current)===null||ue===void 0||ue.focus({preventScroll:!0})}},K=u.useMemo(function(){return{panel:P}},[P]);if(!C&&!N&&!z&&$)return null;var X={onMouseEnter:x,onMouseOver:w,onMouseLeave:T,onClick:R,onKeyDown:S,onKeyUp:E},Z=Y(Y({},t),{},{open:z,prefixCls:i,placement:s,autoFocus:d,keyboard:f,width:m,mask:g,maskClosable:y,inline:v===!1,afterOpenChange:H,ref:q},X);return u.createElement(C7.Provider,{value:K},u.createElement(mc,{open:z||C||N,autoDestroy:!1,getContainer:v,autoLock:g&&(z||N)},u.createElement(yW,Z)))};const x7=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,loading:s,onClose:l,headerStyle:d,bodyStyle:c,footerStyle:f,children:p,classNames:m,styles:h}=e,g=vr("drawer"),b=u.useCallback($=>u.createElement("button",{type:"button",onClick:l,className:`${r}-close`},$),[l]),[y,v]=x2(el(e),el(g),{closable:!0,closeIconRender:b}),C=u.useMemo(()=>{var $,x;return!o&&!y?null:u.createElement("div",{style:Object.assign(Object.assign(Object.assign({},($=g.styles)===null||$===void 0?void 0:$.header),d),h==null?void 0:h.header),className:ae(`${r}-header`,{[`${r}-header-close-only`]:y&&!o&&!a},(x=g.classNames)===null||x===void 0?void 0:x.header,m==null?void 0:m.header)},u.createElement("div",{className:`${r}-header-title`},v,o&&u.createElement("div",{className:`${r}-title`},o)),a&&u.createElement("div",{className:`${r}-extra`},a))},[y,v,a,d,r,o]),O=u.useMemo(()=>{var $,x;if(!i)return null;const w=`${r}-footer`;return u.createElement("div",{className:ae(w,($=g.classNames)===null||$===void 0?void 0:$.footer,m==null?void 0:m.footer),style:Object.assign(Object.assign(Object.assign({},(x=g.styles)===null||x===void 0?void 0:x.footer),f),h==null?void 0:h.footer)},i)},[i,f,r]);return u.createElement(u.Fragment,null,C,u.createElement("div",{className:ae(`${r}-body`,m==null?void 0:m.body,(t=g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g.styles)===null||n===void 0?void 0:n.body),c),h==null?void 0:h.body)},s?u.createElement(la,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),O)},CW=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},S7=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),w7=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},S7({opacity:e},{opacity:1})),xW=(e,t)=>[w7(.7,t),S7({transform:CW(e)},{transform:"none"})],SW=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:w7(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:xW(o,n)}),{})}}},wW=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:d,paddingLG:c,fontSizeLG:f,lineHeightLG:p,lineWidth:m,lineType:h,colorSplit:g,marginXS:b,colorIcon:y,colorIconHover:v,colorBgTextHover:C,colorBgTextActive:O,colorText:$,fontWeightStrong:x,footerPaddingBlock:w,footerPaddingInline:T,calc:R}=e,S=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:$,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[S]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${S}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${S}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${S}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${S}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${be(d)} ${be(c)}`,fontSize:f,lineHeight:p,borderBottom:`${be(m)} ${h} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:R(f).add(l).equal(),height:R(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:b,color:y,fontWeight:x,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:v,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:O}},vi(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:c,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${be(w)} ${be(T)}`,borderTop:`${be(m)} ${h} ${g}`},"&-rtl":{direction:"rtl"}}}},EW=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),E7=Zt("Drawer",e=>{const t=Pt(e,{});return[wW(t),SW(t)]},EW);var $7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $W={distance:180},R7=e=>{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=$W,open:s,afterOpenChange:l,onClose:d,prefixCls:c,getContainer:f,style:p,className:m,visible:h,afterVisibleChange:g,maskStyle:b,drawerStyle:y,contentWrapperStyle:v,destroyOnClose:C,destroyOnHidden:O}=e,$=$7(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:x,getPrefixCls:w,direction:T,className:R,style:S,classNames:E,styles:P}=vr("drawer"),I=w("drawer",c),[k,N,M]=E7(I),j=f===void 0&&x?()=>x(document.body):f,A=ae({"no-mask":!i,[`${I}-rtl`]:T==="rtl"},t,N,M),D=u.useMemo(()=>n??(o==="large"?736:378),[n,o]),L=u.useMemo(()=>r??(o==="large"?736:378),[r,o]),z={motionName:hr(I,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},q=se=>({motionName:hr(I,`panel-motion-${se}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),U=dw(),[H,K]=hl("Drawer",$.zIndex),{classNames:X={},styles:Z={}}=$;return k(u.createElement(Bu,{form:!0,space:!0},u.createElement(U0.Provider,{value:K},u.createElement(bW,Object.assign({prefixCls:I,onClose:d,maskMotion:z,motion:q},$,{classNames:{mask:ae(X.mask,E.mask),content:ae(X.content,E.content),wrapper:ae(X.wrapper,E.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Z.mask),b),P.mask),content:Object.assign(Object.assign(Object.assign({},Z.content),y),P.content),wrapper:Object.assign(Object.assign(Object.assign({},Z.wrapper),v),P.wrapper)},open:s??h,mask:i,push:a,width:D,height:L,style:Object.assign(Object.assign({},S),p),className:ae(R,m),rootClassName:A,getContainer:j,afterOpenChange:l??g,panelRef:U,zIndex:H,destroyOnClose:O??C}),u.createElement(x7,Object.assign({prefixCls:I},$,{onClose:d}))))))},RW=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=$7(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=u.useContext(bt),s=a("drawer",t),[l,d,c]=E7(s),f=ae(s,`${s}-pure`,`${s}-${o}`,d,c,r);return l(u.createElement("div",{className:f,style:n},u.createElement(x7,Object.assign({prefixCls:s},i))))};R7._InternalPanelDoNotUseOrYouWillBeFired=RW;function Gf(e){return["small","middle","large"].includes(e)}function aC(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const O7=V.createContext({latestIndex:0}),OW=O7.Provider,PW=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=u.useContext(O7);return r==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:i},r),n<a&&o&&u.createElement("span",{className:`${t}-split`},o))};var IW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TW=u.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:s,classNames:l,styles:d}=vr("space"),{size:c=i??"small",align:f,className:p,rootClassName:m,children:h,direction:g="horizontal",prefixCls:b,split:y,style:v,wrap:C=!1,classNames:O,styles:$}=e,x=IW(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,T]=Array.isArray(c)?c:[c,c],R=Gf(T),S=Gf(w),E=aC(T),P=aC(w),I=Rr(h,{keepEmpty:!0}),k=f===void 0&&g==="horizontal"?"center":f,N=r("space",b),[M,j,A]=D5(N),D=ae(N,a,j,`${N}-${g}`,{[`${N}-rtl`]:o==="rtl",[`${N}-align-${k}`]:k,[`${N}-gap-row-${T}`]:R,[`${N}-gap-col-${w}`]:S},p,m,A),L=ae(`${N}-item`,(n=O==null?void 0:O.item)!==null&&n!==void 0?n:l.item);let z=0;const q=I.map((K,X)=>{var Z;K!=null&&(z=X);const se=(K==null?void 0:K.key)||`${L}-${X}`;return u.createElement(PW,{className:L,key:se,index:X,split:y,style:(Z=$==null?void 0:$.item)!==null&&Z!==void 0?Z:d.item},K)}),U=u.useMemo(()=>({latestIndex:z}),[z]);if(I.length===0)return null;const H={};return C&&(H.flexWrap="wrap"),!S&&P&&(H.columnGap=w),!R&&E&&(H.rowGap=T),M(u.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},H),s),v)},x),u.createElement(OW,{value:U},q)))}),Ca=TW;Ca.Compact=ON;const P7=["wrap","nowrap","wrap-reverse"],I7=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],T7=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],_W=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&P7.includes(n)}},kW=(e,t)=>{const n={};return T7.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},MW=(e,t)=>{const n={};return I7.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function AW(e,t){return ae(Object.assign(Object.assign(Object.assign({},_W(e,t)),kW(e,t)),MW(e,t)))}const NW=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},jW=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},FW=e=>{const{componentCls:t}=e,n={};return P7.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},LW=e=>{const{componentCls:t}=e,n={};return T7.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},DW=e=>{const{componentCls:t}=e,n={};return I7.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},BW=()=>({}),zW=Zt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Pt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[NW(o),jW(o),FW(o),LW(o),DW(o)]},BW,{resetStyle:!1});var HW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const F2=V.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:a,gap:s,children:l,vertical:d=!1,component:c="div"}=e,f=HW(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:m,getPrefixCls:h}=V.useContext(bt),g=h("flex",n),[b,y,v]=zW(g),C=d??(p==null?void 0:p.vertical),O=ae(o,r,p==null?void 0:p.className,g,y,v,AW(g,e),{[`${g}-rtl`]:m==="rtl",[`${g}-gap-${s}`]:Gf(s),[`${g}-vertical`]:C}),$=Object.assign(Object.assign({},p==null?void 0:p.style),i);return a&&($.flex=a),s&&!Gf(s)&&($.gap=s),b(V.createElement(c,Object.assign({ref:t,className:O,style:$},In(f,["justify","wrap","align"])),l))});function _7(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function VW(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function bs(e,t,n,r){var o=Pu.unstable_batchedUpdates?function(a){Pu.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var wc=u.createContext(null),UW=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,i=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,d=t.showSwitch,c=t.showProgress,f=t.current,p=t.transform,m=t.count,h=t.scale,g=t.minScale,b=t.maxScale,y=t.closeIcon,v=t.onActive,C=t.onClose,O=t.onZoomIn,$=t.onZoomOut,x=t.onRotateRight,w=t.onRotateLeft,T=t.onFlipX,R=t.onFlipY,S=t.onReset,E=t.toolbarRender,P=t.zIndex,I=t.image,k=u.useContext(wc),N=s.rotateLeft,M=s.rotateRight,j=s.zoomIn,A=s.zoomOut,D=s.close,L=s.left,z=s.right,q=s.flipX,U=s.flipY,H="".concat(i,"-operations-operation");u.useEffect(function(){var ve=function(Se){Se.keyCode===Ze.ESC&&C()};return n&&window.addEventListener("keydown",ve),function(){window.removeEventListener("keydown",ve)}},[n]);var K=function(ye,Se){ye.preventDefault(),ye.stopPropagation(),v(Se)},X=u.useCallback(function(ve){var ye=ve.type,Se=ve.disabled,Pe=ve.onClick,Ie=ve.icon;return u.createElement("div",{key:ye,className:ae(H,"".concat(i,"-operations-operation-").concat(ye),J({},"".concat(i,"-operations-operation-disabled"),!!Se)),onClick:Pe},Ie)},[H,i]),Z=d?X({icon:L,onClick:function(ye){return K(ye,-1)},type:"prev",disabled:f===0}):void 0,se=d?X({icon:z,onClick:function(ye){return K(ye,1)},type:"next",disabled:f===m-1}):void 0,ie=X({icon:U,onClick:R,type:"flipY"}),me=X({icon:q,onClick:T,type:"flipX"}),ue=X({icon:N,onClick:w,type:"rotateLeft"}),re=X({icon:M,onClick:x,type:"rotateRight"}),ce=X({icon:A,onClick:$,type:"zoomOut",disabled:h<=g}),fe=X({icon:j,onClick:O,type:"zoomIn",disabled:h===b}),de=u.createElement("div",{className:"".concat(i,"-operations")},ie,me,ue,re,ce,fe);return u.createElement(sr,{visible:n,motionName:r},function(ve){var ye=ve.className,Se=ve.style;return u.createElement(mc,{open:!0,getContainer:o??document.body},u.createElement("div",{className:ae("".concat(i,"-operations-wrapper"),ye,a),style:Y(Y({},Se),{},{zIndex:P})},y===null?null:u.createElement("button",{className:"".concat(i,"-close"),onClick:C},y||D),d&&u.createElement(u.Fragment,null,u.createElement("div",{className:ae("".concat(i,"-switch-left"),J({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(Ie){return K(Ie,-1)}},L),u.createElement("div",{className:ae("".concat(i,"-switch-right"),J({},"".concat(i,"-switch-right-disabled"),f===m-1)),onClick:function(Ie){return K(Ie,1)}},z)),u.createElement("div",{className:"".concat(i,"-footer")},c&&u.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,m):u.createElement("bdi",null,"".concat(f+1," / ").concat(m))),E?E(de,Y(Y({icons:{prevIcon:Z,nextIcon:se,flipYIcon:ie,flipXIcon:me,rotateLeftIcon:ue,rotateRightIcon:re,zoomOutIcon:ce,zoomInIcon:fe},actions:{onActive:v,onFlipY:R,onFlipX:T,onRotateLeft:w,onRotateRight:x,onZoomOut:$,onZoomIn:O,onReset:S,onClose:C},transform:p},k?{current:f,total:m}:{}),{},{image:I})):de)))})},dd={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function WW(e,t,n,r){var o=u.useRef(null),i=u.useRef([]),a=u.useState(dd),s=ge(a,2),l=s[0],d=s[1],c=function(h){d(dd),Ji(dd,l)||r==null||r({transform:dd,action:h})},f=function(h,g){o.current===null&&(i.current=[],o.current=en(function(){d(function(b){var y=b;return i.current.forEach(function(v){y=Y(Y({},y),v)}),o.current=null,r==null||r({transform:y,action:g}),y})})),i.current.push(Y(Y({},l),h))},p=function(h,g,b,y,v){var C=e.current,O=C.width,$=C.height,x=C.offsetWidth,w=C.offsetHeight,T=C.offsetLeft,R=C.offsetTop,S=h,E=l.scale*h;E>n?(E=n,S=n/l.scale):E<t&&(E=v?E:t,S=E/l.scale);var P=b??innerWidth/2,I=y??innerHeight/2,k=S-1,N=k*O*.5,M=k*$*.5,j=k*(P-l.x-T),A=k*(I-l.y-R),D=l.x-(j-N),L=l.y-(A-M);if(h<1&&E===1){var z=x*E,q=w*E,U=_7(),H=U.width,K=U.height;z<=H&&q<=K&&(D=0,L=0)}f({x:D,y:L,scale:E},g)};return{transform:l,resetTransform:c,updateTransform:f,dispatchZoomChange:p}}function sC(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return J({},e,i);if(t<0&&o<r)return J({},e,-i)}else if(t<0||o>r)return J({},e,t<0?i:-i);return{}}function k7(e,t,n,r){var o=_7(),i=o.width,a=o.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=Y(Y({},sC("x",n,e,i)),sC("y",r,t,a))),s}var Cs=1,KW=1;function qW(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,d=o.x,c=o.y,f=u.useState(!1),p=ge(f,2),m=p[0],h=p[1],g=u.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),b=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),g.current={diffX:$.pageX-d,diffY:$.pageY-c,transformX:d,transformY:c},h(!0))},y=function($){n&&m&&i({x:$.pageX-g.current.diffX,y:$.pageY-g.current.diffY},"move")},v=function(){if(n&&m){h(!1);var $=g.current,x=$.transformX,w=$.transformY,T=d!==x&&c!==w;if(!T)return;var R=e.current.offsetWidth*l,S=e.current.offsetHeight*l,E=e.current.getBoundingClientRect(),P=E.left,I=E.top,k=s%180!==0,N=k7(k?S:R,k?R:S,P,I);N&&i(Y({},N),"dragRebound")}},C=function($){if(!(!n||$.deltaY==0)){var x=Math.abs($.deltaY/100),w=Math.min(x,KW),T=Cs+w*r;$.deltaY>0&&(T=Cs/T),a(T,"wheel",$.clientX,$.clientY)}};return u.useEffect(function(){var O,$,x,w;if(t){x=bs(window,"mouseup",v,!1),w=bs(window,"mousemove",y,!1);try{window.top!==window.self&&(O=bs(window.top,"mouseup",v,!1),$=bs(window.top,"mousemove",y,!1))}catch{}}return function(){var T,R,S,E;(T=x)===null||T===void 0||T.remove(),(R=w)===null||R===void 0||R.remove(),(S=O)===null||S===void 0||S.remove(),(E=$)===null||E===void 0||E.remove()}},[n,m,d,c,s,t]),{isMoving:m,onMouseDown:b,onMouseMove:y,onMouseUp:v,onWheel:C}}function GW(e){return new Promise(function(t){if(!e){t(!1);return}var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function M7(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=u.useState(n?"loading":"normal"),i=ge(o,2),a=i[0],s=i[1],l=u.useRef(!1),d=a==="error";u.useEffect(function(){var m=!0;return GW(t).then(function(h){!h&&m&&s("error")}),function(){m=!1}},[t]),u.useEffect(function(){n&&!l.current?s("loading"):d&&s("normal")},[t]);var c=function(){s("normal")},f=function(h){l.current=!1,a==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,c())},p=d&&r?{src:r}:{onLoad:c,src:t};return[f,p,a]}function Xf(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function XW(e,t,n,r){var o=Xf(e,n),i=Xf(t,r);if(o===0&&i===0)return[e.x,e.y];var a=o/(o+i),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function YW(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,d=o.x,c=o.y,f=u.useState(!1),p=ge(f,2),m=p[0],h=p[1],g=u.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function($){g.current=Y(Y({},g.current),$)},y=function($){if(t){$.stopPropagation(),h(!0);var x=$.touches,w=x===void 0?[]:x;w.length>1?b({point1:{x:w[0].clientX,y:w[0].clientY},point2:{x:w[1].clientX,y:w[1].clientY},eventType:"touchZoom"}):b({point1:{x:w[0].clientX-d,y:w[0].clientY-c},eventType:"move"})}},v=function($){var x=$.touches,w=x===void 0?[]:x,T=g.current,R=T.point1,S=T.point2,E=T.eventType;if(w.length>1&&E==="touchZoom"){var P={x:w[0].clientX,y:w[0].clientY},I={x:w[1].clientX,y:w[1].clientY},k=XW(R,S,P,I),N=ge(k,2),M=N[0],j=N[1],A=Xf(P,I)/Xf(R,S);a(A,"touchZoom",M,j,!0),b({point1:P,point2:I,eventType:"touchZoom"})}else E==="move"&&(i({x:w[0].clientX-R.x,y:w[0].clientY-R.y},"move"),b({eventType:"move"}))},C=function(){if(n){if(m&&h(!1),b({eventType:"none"}),r>l)return i({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*l,x=e.current.offsetHeight*l,w=e.current.getBoundingClientRect(),T=w.left,R=w.top,S=s%180!==0,E=k7(S?x:$,S?$:x,T,R);E&&i(Y({},E),"dragRebound")}};return u.useEffect(function(){var O;return n&&t&&(O=bs(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=O)===null||$===void 0||$.remove()}},[n,t]),{isTouching:m,onTouchStart:y,onTouchMove:v,onTouchEnd:C}}var QW=["fallback","src","imgRef"],ZW=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],JW=function(t){var n=t.fallback,r=t.src,o=t.imgRef,i=gt(t,QW),a=M7({src:r,fallback:n}),s=ge(a,2),l=s[0],d=s[1];return V.createElement("img",we({ref:function(f){o.current=f,l(f)}},i,d))},A7=function(t){var n=t.prefixCls,r=t.src,o=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,d=t.onClose,c=t.visible,f=t.icons,p=f===void 0?{}:f,m=t.rootClassName,h=t.closeIcon,g=t.getContainer,b=t.current,y=b===void 0?0:b,v=t.count,C=v===void 0?1:v,O=t.countRender,$=t.scaleStep,x=$===void 0?.5:$,w=t.minScale,T=w===void 0?1:w,R=t.maxScale,S=R===void 0?50:R,E=t.transitionName,P=E===void 0?"zoom":E,I=t.maskTransitionName,k=I===void 0?"fade":I,N=t.imageRender,M=t.imgCommonProps,j=t.toolbarRender,A=t.onTransform,D=t.onChange,L=gt(t,ZW),z=u.useRef(),q=u.useContext(wc),U=q&&C>1,H=q&&C>=1,K=u.useState(!0),X=ge(K,2),Z=X[0],se=X[1],ie=WW(z,T,S,A),me=ie.transform,ue=ie.resetTransform,re=ie.updateTransform,ce=ie.dispatchZoomChange,fe=qW(z,l,c,x,me,re,ce),de=fe.isMoving,ve=fe.onMouseDown,ye=fe.onWheel,Se=YW(z,l,c,T,me,re,ce),Pe=Se.isTouching,Ie=Se.onTouchStart,$e=Se.onTouchMove,Fe=Se.onTouchEnd,Ee=me.rotate,ke=me.scale,Be=ae(J({},"".concat(n,"-moving"),de));u.useEffect(function(){Z||se(!0)},[Z]);var je=function(){ue("close")},We=function(){ce(Cs+x,"zoomIn")},Ye=function(){ce(Cs/(Cs+x),"zoomOut")},Xe=function(){re({rotate:Ee+90},"rotateRight")},it=function(){re({rotate:Ee-90},"rotateLeft")},et=function(){re({flipX:!me.flipX},"flipX")},ct=function(){re({flipY:!me.flipY},"flipY")},He=function(){ue("reset")},he=function(De){var Qe=y+De;!Number.isInteger(Qe)||Qe<0||Qe>C-1||(se(!1),ue(De<0?"prev":"next"),D==null||D(Qe,y))},Q=function(De){!c||!U||(De.keyCode===Ze.LEFT?he(-1):De.keyCode===Ze.RIGHT&&he(1))},ee=function(De){c&&(ke!==1?re({x:0,y:0,scale:1},"doubleClick"):ce(Cs+x,"doubleClick",De.clientX,De.clientY))};u.useEffect(function(){var Re=bs(window,"keydown",Q,!1);return function(){Re.remove()}},[c,U,y]);var ne=V.createElement(JW,we({},M,{width:t.width,height:t.height,imgRef:z,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(me.x,"px, ").concat(me.y,"px, 0) scale3d(").concat(me.flipX?"-":"").concat(ke,", ").concat(me.flipY?"-":"").concat(ke,", 1) rotate(").concat(Ee,"deg)"),transitionDuration:(!Z||Pe)&&"0s"},fallback:a,src:r,onWheel:ye,onMouseDown:ve,onDoubleClick:ee,onTouchStart:Ie,onTouchMove:$e,onTouchEnd:Fe,onTouchCancel:Fe})),xe=Y({url:r,alt:o},i);return V.createElement(V.Fragment,null,V.createElement(b2,we({transitionName:P,maskTransitionName:k,closable:!1,keyboard:!0,prefixCls:n,onClose:d,visible:c,classNames:{wrapper:Be},rootClassName:m,getContainer:g},L,{afterClose:je}),V.createElement("div",{className:"".concat(n,"-img-wrapper")},N?N(ne,Y({transform:me,image:xe},q?{current:y}:{})):ne)),V.createElement(UW,{visible:c,transform:me,maskTransitionName:k,closeIcon:h,getContainer:g,prefixCls:n,rootClassName:m,icons:p,countRender:O,showSwitch:U,showProgress:H,current:y,count:C,scale:ke,minScale:T,maxScale:S,toolbarRender:j,onActive:he,onZoomIn:We,onZoomOut:Ye,onRotateRight:Xe,onRotateLeft:it,onFlipX:et,onFlipY:ct,onClose:d,onReset:He,zIndex:L.zIndex!==void 0?L.zIndex+1:void 0,image:xe}))},P1=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function eK(e){var t=u.useState({}),n=ge(t,2),r=n[0],o=n[1],i=u.useCallback(function(s,l){return o(function(d){return Y(Y({},d),{},J({},s,l))}),function(){o(function(d){var c=Y({},d);return delete c[s],c})}},[]),a=u.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(d){["src"].concat(Ne(P1)).includes(d)&&(l[d]=s[d])}),{data:l}}):Object.keys(r).reduce(function(s,l){var d=r[l],c=d.canPreview,f=d.data;return c&&s.push({data:f,id:l}),s},[])},[e,r]);return[a,i,!!e]}var tK=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],nK=["src"],rK=function(t){var n,r=t.previewPrefixCls,o=r===void 0?"rc-image-preview":r,i=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,d=t.preview,c=t.fallback,f=nt(d)==="object"?d:{},p=f.visible,m=f.onVisibleChange,h=f.getContainer,g=f.current,b=f.movable,y=f.minScale,v=f.maxScale,C=f.countRender,O=f.closeIcon,$=f.onChange,x=f.onTransform,w=f.toolbarRender,T=f.imageRender,R=gt(f,tK),S=eK(l),E=ge(S,3),P=E[0],I=E[1],k=E[2],N=nn(0,{value:g}),M=ge(N,2),j=M[0],A=M[1],D=u.useState(!1),L=ge(D,2),z=L[0],q=L[1],U=((n=P[j])===null||n===void 0?void 0:n.data)||{},H=U.src,K=gt(U,nK),X=nn(!!p,{value:p,onChange:function(Pe,Ie){m==null||m(Pe,Ie,j)}}),Z=ge(X,2),se=Z[0],ie=Z[1],me=u.useState(null),ue=ge(me,2),re=ue[0],ce=ue[1],fe=u.useCallback(function(Se,Pe,Ie,$e){var Fe=k?P.findIndex(function(Ee){return Ee.data.src===Pe}):P.findIndex(function(Ee){return Ee.id===Se});A(Fe<0?0:Fe),ie(!0),ce({x:Ie,y:$e}),q(!0)},[P,k]);u.useEffect(function(){se?z||A(0):q(!1)},[se]);var de=function(Pe,Ie){A(Pe),$==null||$(Pe,Ie)},ve=function(){ie(!1),ce(null)},ye=u.useMemo(function(){return{register:I,onPreview:fe}},[I,fe]);return u.createElement(wc.Provider,{value:ye},i,u.createElement(A7,we({"aria-hidden":!se,movable:b,visible:se,prefixCls:o,closeIcon:O,onClose:ve,mousePosition:re,imgCommonProps:K,src:H,fallback:c,icons:s,minScale:y,maxScale:v,getContainer:h,current:j,count:P.length,countRender:C,onTransform:x,toolbarRender:w,imageRender:T,onChange:de},R)))},lC=0;function oK(e,t){var n=u.useState(function(){return lC+=1,String(lC)}),r=ge(n,1),o=r[0],i=u.useContext(wc),a={data:t,canPreview:e};return u.useEffect(function(){if(i)return i.register(o,a)},[]),u.useEffect(function(){i&&i.register(o,a)},[e,t]),o}var iK=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],aK=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],L2=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,i=t.prefixCls,a=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,d=t.placeholder,c=t.fallback,f=t.width,p=t.height,m=t.style,h=t.preview,g=h===void 0?!0:h,b=t.className,y=t.onClick,v=t.onError,C=t.wrapperClassName,O=t.wrapperStyle,$=t.rootClassName,x=gt(t,iK),w=d&&d!==!0,T=nt(g)==="object"?g:{},R=T.src,S=T.visible,E=S===void 0?void 0:S,P=T.onVisibleChange,I=P===void 0?o:P,k=T.getContainer,N=k===void 0?void 0:k,M=T.mask,j=T.maskClassName,A=T.movable,D=T.icons,L=T.scaleStep,z=T.minScale,q=T.maxScale,U=T.imageRender,H=T.toolbarRender,K=gt(T,aK),X=R??n,Z=nn(!!E,{value:E,onChange:I}),se=ge(Z,2),ie=se[0],me=se[1],ue=M7({src:n,isCustomPlaceholder:w,fallback:c}),re=ge(ue,3),ce=re[0],fe=re[1],de=re[2],ve=u.useState(null),ye=ge(ve,2),Se=ye[0],Pe=ye[1],Ie=u.useContext(wc),$e=!!g,Fe=function(){me(!1),Pe(null)},Ee=ae(a,C,$,J({},"".concat(a,"-error"),de==="error")),ke=u.useMemo(function(){var Ye={};return P1.forEach(function(Xe){t[Xe]!==void 0&&(Ye[Xe]=t[Xe])}),Ye},P1.map(function(Ye){return t[Ye]})),Be=u.useMemo(function(){return Y(Y({},ke),{},{src:X})},[X,ke]),je=oK($e,Be),We=function(Xe){var it=VW(Xe.target),et=it.left,ct=it.top;Ie?Ie.onPreview(je,X,et,ct):(Pe({x:et,y:ct}),me(!0)),y==null||y(Xe)};return u.createElement(u.Fragment,null,u.createElement("div",we({},x,{className:Ee,onClick:$e?We:y,style:Y({width:f,height:p},O)}),u.createElement("img",we({},ke,{className:ae("".concat(a,"-img"),J({},"".concat(a,"-img-placeholder"),d===!0),b),style:Y({height:p},m),ref:ce},fe,{width:f,height:p,onError:v})),de==="loading"&&u.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},d),M&&$e&&u.createElement("div",{className:ae("".concat(a,"-mask"),j),style:{display:(m==null?void 0:m.display)==="none"?"none":void 0}},M)),!Ie&&$e&&u.createElement(A7,we({"aria-hidden":!ie,visible:ie,prefixCls:l,onClose:Fe,mousePosition:Se,src:X,alt:r,imageInfo:{width:f,height:p},fallback:c,getContainer:N,icons:D,movable:A,scaleStep:L,minScale:z,maxScale:q,rootClassName:$,imageRender:U,imgCommonProps:ke,toolbarRender:H},K)))};L2.PreviewGroup=rK;const I1=e=>({position:e||"absolute",inset:0}),sK=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Mt("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Qo),{padding:`0 ${be(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},lK=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:d,iconCls:c,colorTextLightSolid:f}=e,p=new Mt(n).setA(.1),m=p.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${d}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${c}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${be(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${d}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${c}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${c}`]:{fontSize:e.previewOperationSize}}}}},uK=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new Mt(t).setA(.1),l=s.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},cK=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},I1()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},I1()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[lK(e),uK(e)]}]},dK=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},sK(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},I1())}}},fK=e=>{const{previewCls:t}=e;return{[`${t}-root`]:X0(e,"zoom"),"&":g2(e,!0)}},pK=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Mt(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Mt(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Mt(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),N7=Zt("Image",e=>{const t=`${e.componentCls}-preview`,n=Pt(e,{previewCls:t,modalMaskBg:new Mt("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[dK(n),cK(n),mw(Pt(n,{componentCls:t})),fK(n)]},pK);var hK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const j7={rotateLeft:u.createElement(o_,null),rotateRight:u.createElement(s_,null),zoomIn:u.createElement(S_,null),zoomOut:u.createElement($_,null),close:u.createElement(Jo,null),left:u.createElement(Tu,null),right:u.createElement(di,null),flipX:u.createElement(Db,null),flipY:u.createElement(Db,{rotate:90})},mK=e=>{var{previewPrefixCls:t,preview:n}=e,r=hK(e,["previewPrefixCls","preview"]);const{getPrefixCls:o,direction:i}=u.useContext(bt),a=o("image",t),s=`${a}-preview`,l=o(),d=ur(a),[c,f,p]=N7(a,d),[m]=hl("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=u.useMemo(()=>Object.assign(Object.assign({},j7),{left:i==="rtl"?u.createElement(di,null):u.createElement(Tu,null),right:i==="rtl"?u.createElement(Tu,null):u.createElement(di,null)}),[i]),g=u.useMemo(()=>{var b;if(n===!1)return n;const y=typeof n=="object"?n:{},v=ae(f,p,d,(b=y.rootClassName)!==null&&b!==void 0?b:"");return Object.assign(Object.assign({},y),{transitionName:hr(l,"zoom",y.transitionName),maskTransitionName:hr(l,"fade",y.maskTransitionName),rootClassName:v,zIndex:m})},[n]);return c(u.createElement(L2.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:h},r)))};var uC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vu=e=>{const{prefixCls:t,preview:n,className:r,rootClassName:o,style:i}=e,a=uC(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:l,className:d,style:c,preview:f}=vr("image"),[p]=ei("Image"),m=s("image",t),h=s(),g=ur(m),[b,y,v]=N7(m,g),C=ae(o,y,v,g),O=ae(r,y,d),[$]=hl("ImagePreview",typeof n=="object"?n.zIndex:void 0),x=u.useMemo(()=>{if(n===!1)return n;const T=typeof n=="object"?n:{},{getContainer:R,closeIcon:S,rootClassName:E,destroyOnClose:P,destroyOnHidden:I}=T,k=uC(T,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:u.createElement("div",{className:`${m}-mask-info`},u.createElement($a,null),p==null?void 0:p.preview),icons:j7},k),{destroyOnClose:I??P,rootClassName:ae(C,E),getContainer:R??l,transitionName:hr(h,"zoom",T.transitionName),maskTransitionName:hr(h,"fade",T.maskTransitionName),zIndex:$,closeIcon:S??(f==null?void 0:f.closeIcon)})},[n,p,f==null?void 0:f.closeIcon]),w=Object.assign(Object.assign({},c),i);return b(u.createElement(L2,Object.assign({prefixCls:m,preview:x,rootClassName:C,className:O,style:w},a)))};Vu.PreviewGroup=mK;const gK=e=>{const{getPrefixCls:t,direction:n}=u.useContext(bt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l,d]=zE(a),c=ae(i,d,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),f=u.useContext(yi),p=u.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(u.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(yi.Provider,{value:p},e.children)))},vK=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},yK=Zt(["Input","OTP"],e=>{const t=Pt(e,dp(e));return[vK(t)]},fp);var bK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CK=u.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=bK(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=u.useContext(bt),c=d("otp"),f=typeof s=="string"?s:r,p=u.useRef(null);u.useImperativeHandle(t,()=>p.current);const m=y=>{o(a,y.target.value)},h=()=>{en(()=>{var y;const v=(y=p.current)===null||y===void 0?void 0:y.input;document.activeElement===v&&v&&v.select()})},g=y=>{const{key:v,ctrlKey:C,metaKey:O}=y;v==="ArrowLeft"?i(a-1):v==="ArrowRight"?i(a+1):v==="z"&&(C||O)&&y.preventDefault(),h()},b=y=>{y.key==="Backspace"&&!r&&i(a-1),h()};return u.createElement("span",{className:`${c}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&u.createElement("span",{className:`${c}-mask-icon`,"aria-hidden":"true"},f),u.createElement(hp,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:p,value:r,onInput:m,onFocus:h,onKeyDown:g,onKeyUp:b,onMouseDown:h,onMouseUp:h,className:ae(n,{[`${c}-mask-input`]:s})})))});var xK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fd(e){return(e||"").split("")}const SK=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?u.createElement("span",{className:`${n}-separator`},o):null},wK=u.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:d,variant:c,disabled:f,status:p,autoFocus:m,mask:h,type:g,onInput:b,inputMode:y}=e,v=xK(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:O}=u.useContext(bt),$=C("otp",n),x=lr(v,{aria:!0,data:!0,attr:!0}),[w,T,R]=yK($),S=Mo(H=>o??H),E=u.useContext(yi),P=sp(E.status,p),I=u.useMemo(()=>Object.assign(Object.assign({},E),{status:P,hasFeedback:!1,feedbackIcon:null}),[E,P]),k=u.useRef(null),N=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var H;(H=N.current[0])===null||H===void 0||H.focus()},blur:()=>{var H;for(let K=0;K<r;K+=1)(H=N.current[K])===null||H===void 0||H.blur()},nativeElement:k.current}));const M=H=>l?l(H):H,[j,A]=u.useState(()=>fd(M(i||"")));u.useEffect(()=>{a!==void 0&&A(fd(a))},[a]);const D=Gt(H=>{A(H),b&&b(H),s&&H.length===r&&H.every(K=>K)&&H.some((K,X)=>j[X]!==K)&&s(H.join(""))}),L=Gt((H,K)=>{let X=Ne(j);for(let se=0;se<H;se+=1)X[se]||(X[se]="");K.length<=1?X[H]=K:X=X.slice(0,H).concat(fd(K)),X=X.slice(0,r);for(let se=X.length-1;se>=0&&!X[se];se-=1)X.pop();const Z=M(X.map(se=>se||" ").join(""));return X=fd(Z).map((se,ie)=>se===" "&&!X[ie]?X[ie]:se),X}),z=(H,K)=>{var X;const Z=L(H,K),se=Math.min(H+K.length,r-1);se!==H&&Z[H]!==void 0&&((X=N.current[se])===null||X===void 0||X.focus()),D(Z)},q=H=>{var K;(K=N.current[H])===null||K===void 0||K.focus()},U={variant:c,disabled:f,status:P,mask:h,type:g,inputMode:y};return w(u.createElement("div",Object.assign({},x,{ref:k,className:ae($,{[`${$}-sm`]:S==="small",[`${$}-lg`]:S==="large",[`${$}-rtl`]:O==="rtl"},R,T),role:"group"}),u.createElement(yi.Provider,{value:I},Array.from({length:r}).map((H,K)=>{const X=`otp-${K}`,Z=j[K]||"";return u.createElement(u.Fragment,{key:X},u.createElement(CK,Object.assign({ref:se=>{N.current[K]=se},index:K,size:S,htmlSize:1,className:`${$}-input`,onChange:z,value:Z,onActiveChange:q,autoFocus:K===0&&m},U)),K<r-1&&u.createElement(SK,{separator:d,index:K,prefixCls:$}))}))))});var EK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $K=e=>e?u.createElement($a,null):u.createElement(YI,null),RK={click:"onClick",hover:"onMouseOver"},OK=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=$K}=e,a=u.useContext(Yo),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[d,c]=u.useState(()=>l?o.visible:!1),f=u.useRef(null);u.useEffect(()=>{l&&c(o.visible)},[l,o]);const p=b7(f),m=()=>{var S;if(s)return;d&&p();const E=!d;c(E),typeof o=="object"&&((S=o.onVisibleChange)===null||S===void 0||S.call(o,E))},h=S=>{const E=RK[r]||"",P=i(d),I={[E]:m,className:`${S}-icon`,key:"passwordIcon",onMouseDown:k=>{k.preventDefault()},onMouseUp:k=>{k.preventDefault()}};return u.cloneElement(u.isValidElement(P)?P:u.createElement("span",null,P),I)},{className:g,prefixCls:b,inputPrefixCls:y,size:v}=e,C=EK(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=u.useContext(bt),$=O("input",y),x=O("input-password",b),w=o&&h(x),T=ae(x,g,{[`${x}-${v}`]:!!v}),R=Object.assign(Object.assign({},In(C,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:T,prefixCls:$,suffix:w});return v&&(R.size=v),u.createElement(hp,Object.assign({ref:Xr(t,f)},R))});var PK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IK=u.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:d,disabled:c,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:h}=e,g=PK(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=u.useContext(bt),v=u.useRef(!1),C=b("input-search",n),O=b("input",r),{compactSize:$}=pc(C,y),x=Mo(z=>{var q;return(q=i??$)!==null&&q!==void 0?q:z}),w=u.useRef(null),T=z=>{z!=null&&z.target&&z.type==="click"&&f&&f(z.target.value,z,{source:"clear"}),p==null||p(z)},R=z=>{var q;document.activeElement===((q=w.current)===null||q===void 0?void 0:q.input)&&z.preventDefault()},S=z=>{var q,U;f&&f((U=(q=w.current)===null||q===void 0?void 0:q.input)===null||U===void 0?void 0:U.value,z,{source:"input"})},E=z=>{v.current||d||S(z)},P=typeof s=="boolean"?u.createElement(qv,null):null,I=`${C}-button`;let k;const N=s||{},M=N.type&&N.type.__ANT_BUTTON===!0;M||N.type==="button"?k=Ur(N,Object.assign({onMouseDown:R,onClick:z=>{var q,U;(U=(q=N==null?void 0:N.props)===null||q===void 0?void 0:q.onClick)===null||U===void 0||U.call(q,z),S(z)},key:"enterButton"},M?{className:I,size:x}:{})):k=u.createElement(Dt,{className:I,type:s?"primary":void 0,size:x,disabled:c,key:"enterButton",onMouseDown:R,onClick:S,loading:d,icon:P},s),l&&(k=[k,Ur(l,{key:"addonAfter"})]);const j=ae(C,{[`${C}-rtl`]:y==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!s},o),A=Object.assign(Object.assign({},g),{className:j,prefixCls:O,type:"search"}),D=z=>{v.current=!0,m==null||m(z)},L=z=>{v.current=!1,h==null||h(z)};return u.createElement(hp,Object.assign({ref:Xr(w,t),onPressEnter:E},A,{size:x,onCompositionStart:D,onCompositionEnd:L,addonAfter:k,suffix:a,onChange:T,disabled:c}))});var TK=`
|
|
285
|
+
min-height:0 !important;
|
|
286
|
+
max-height:none !important;
|
|
287
|
+
height:0 !important;
|
|
288
|
+
visibility:hidden !important;
|
|
289
|
+
overflow:hidden !important;
|
|
290
|
+
position:absolute !important;
|
|
291
|
+
z-index:-1000 !important;
|
|
292
|
+
top:0 !important;
|
|
293
|
+
right:0 !important;
|
|
294
|
+
pointer-events: none !important;
|
|
295
|
+
`,_K=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Zh={},Ar;function kK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Zh[n])return Zh[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=_K.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Zh[n]=l),l}function MK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ar||(Ar=document.createElement("textarea"),Ar.setAttribute("tab-index","-1"),Ar.setAttribute("aria-hidden","true"),Ar.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ar)),e.getAttribute("wrap")?Ar.setAttribute("wrap",e.getAttribute("wrap")):Ar.removeAttribute("wrap");var o=kK(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Ar.setAttribute("style","".concat(l,";").concat(TK)),Ar.value=e.value||e.placeholder||"";var d=void 0,c=void 0,f,p=Ar.scrollHeight;if(s==="border-box"?p+=a:s==="content-box"&&(p-=i),n!==null||r!==null){Ar.value=" ";var m=Ar.scrollHeight-i;n!==null&&(d=m*n,s==="border-box"&&(d=d+i+a),p=Math.max(d,p)),r!==null&&(c=m*r,s==="border-box"&&(c=c+i+a),f=p>c?"":"hidden",p=Math.min(c,p))}var h={height:p,overflowY:f,resize:"none"};return d&&(h.minHeight=d),c&&(h.maxHeight=c),h}var AK=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Jh=0,em=1,tm=2,NK=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,d=n.style,c=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=gt(n,AK),m=nn(o,{value:i,postState:function(H){return H??""}}),h=ge(m,2),g=h[0],b=h[1],y=function(H){b(H.target.value),f==null||f(H)},v=u.useRef();u.useImperativeHandle(t,function(){return{textArea:v.current}});var C=u.useMemo(function(){return a&&nt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),O=ge(C,2),$=O[0],x=O[1],w=!!a,T=function(){try{if(document.activeElement===v.current){var H=v.current,K=H.selectionStart,X=H.selectionEnd,Z=H.scrollTop;v.current.setSelectionRange(K,X),v.current.scrollTop=Z}}catch{}},R=u.useState(tm),S=ge(R,2),E=S[0],P=S[1],I=u.useState(),k=ge(I,2),N=k[0],M=k[1],j=function(){P(Jh)};Ut(function(){w&&j()},[i,$,x,w]),Ut(function(){if(E===Jh)P(em);else if(E===em){var U=MK(v.current,!1,$,x);P(tm),M(U)}else T()},[E]);var A=u.useRef(),D=function(){en.cancel(A.current)},L=function(H){E===tm&&(s==null||s(H),a&&(D(),A.current=en(function(){j()})))};u.useEffect(function(){return D},[]);var z=w?N:null,q=Y(Y({},d),z);return(E===Jh||E===em)&&(q.overflowY="hidden",q.overflowX="hidden"),u.createElement(zr,{onResize:L,disabled:!(a||s)},u.createElement("textarea",we({},p,{ref:v,style:q,className:ae(r,l,J({},"".concat(r,"-disabled"),c)),disabled:c,value:g,onChange:y})))}),jK=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],FK=V.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,d=e.maxLength,c=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,g=e.showCount,b=e.count,y=e.className,v=e.style,C=e.disabled,O=e.hidden,$=e.classNames,x=e.styles,w=e.onResize,T=e.onClear,R=e.onPressEnter,S=e.readOnly,E=e.autoSize,P=e.onKeyDown,I=gt(e,jK),k=nn(r,{value:o,defaultValue:r}),N=ge(k,2),M=N[0],j=N[1],A=M==null?"":String(M),D=V.useState(!1),L=ge(D,2),z=L[0],q=L[1],U=V.useRef(!1),H=V.useState(null),K=ge(H,2),X=K[0],Z=K[1],se=u.useRef(null),ie=u.useRef(null),me=function(){var he;return(he=ie.current)===null||he===void 0?void 0:he.textArea},ue=function(){me().focus()};u.useImperativeHandle(t,function(){var He;return{resizableTextArea:ie.current,focus:ue,blur:function(){me().blur()},nativeElement:((He=se.current)===null||He===void 0?void 0:He.nativeElement)||me()}}),u.useEffect(function(){q(function(He){return!C&&He})},[C]);var re=V.useState(null),ce=ge(re,2),fe=ce[0],de=ce[1];V.useEffect(function(){if(fe){var He;(He=me()).setSelectionRange.apply(He,Ne(fe))}},[fe]);var ve=v7(b,g),ye=(n=ve.max)!==null&&n!==void 0?n:d,Se=Number(ye)>0,Pe=ve.strategy(A),Ie=!!ye&&Pe>ye,$e=function(he,Q){var ee=Q;!U.current&&ve.exceedFormatter&&ve.max&&ve.strategy(Q)>ve.max&&(ee=ve.exceedFormatter(Q,{max:ve.max}),Q!==ee&&de([me().selectionStart||0,me().selectionEnd||0])),j(ee),qf(he.currentTarget,he,s,ee)},Fe=function(he){U.current=!0,c==null||c(he)},Ee=function(he){U.current=!1,$e(he,he.currentTarget.value),f==null||f(he)},ke=function(he){$e(he,he.target.value)},Be=function(he){he.key==="Enter"&&R&&R(he),P==null||P(he)},je=function(he){q(!0),i==null||i(he)},We=function(he){q(!1),a==null||a(he)},Ye=function(he){j(""),ue(),qf(me(),he,s)},Xe=p,it;ve.show&&(ve.showFormatter?it=ve.showFormatter({value:A,count:Pe,maxLength:ye}):it="".concat(Pe).concat(Se?" / ".concat(ye):""),Xe=V.createElement(V.Fragment,null,Xe,V.createElement("span",{className:ae("".concat(h,"-data-count"),$==null?void 0:$.count),style:x==null?void 0:x.count},it)));var et=function(he){var Q;w==null||w(he),(Q=me())!==null&&Q!==void 0&&Q.style.height&&Z(!0)},ct=!E&&!g&&!l;return V.createElement(g7,{ref:se,value:A,allowClear:l,handleReset:Ye,suffix:Xe,prefixCls:h,classNames:Y(Y({},$),{},{affixWrapper:ae($==null?void 0:$.affixWrapper,J(J({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:C,focused:z,className:ae(y,Ie&&"".concat(h,"-out-of-range")),style:Y(Y({},v),X&&!ct?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof it=="string"?it:void 0}},hidden:O,readOnly:S,onClear:T},V.createElement(NK,we({},I,{autoSize:E,maxLength:d,onKeyDown:Be,onChange:ke,onFocus:je,onBlur:We,onCompositionStart:Fe,onCompositionEnd:Ee,className:ae($==null?void 0:$.textarea),style:Y(Y({},x==null?void 0:x.textarea),{},{resize:v==null?void 0:v.resize}),disabled:C,prefixCls:h,onResize:et,ref:ie,readOnly:S})))});const LK=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
296
|
+
&-allow-clear > ${t},
|
|
297
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
298
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},DK=Zt(["Input","TextArea"],e=>{const t=Pt(e,dp(e));return[LK(t)]},fp,{resetFont:!1});var BK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const F7=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:d,rootClassName:c,className:f,style:p,styles:m,variant:h,showCount:g,onMouseDown:b,onResize:y}=e,v=BK(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:O,allowClear:$,autoComplete:x,className:w,style:T,classNames:R,styles:S}=vr("textArea"),E=u.useContext(Yo),P=a??E,{status:I,hasFeedback:k,feedbackIcon:N}=u.useContext(yi),M=sp(I,s),j=u.useRef(null);u.useImperativeHandle(t,()=>{var ve;return{resizableTextArea:(ve=j.current)===null||ve===void 0?void 0:ve.resizableTextArea,focus:ye=>{var Se,Pe;m7((Pe=(Se=j.current)===null||Se===void 0?void 0:Se.resizableTextArea)===null||Pe===void 0?void 0:Pe.textArea,ye)},blur:()=>{var ye;return(ye=j.current)===null||ye===void 0?void 0:ye.blur()}}});const A=C("input",r),D=ur(A),[L,z,q]=BE(A,c),[U]=DK(A,D),{compactSize:H,compactItemClassnames:K}=pc(A,O),X=Mo(ve=>{var ye;return(ye=i??H)!==null&&ye!==void 0?ye:ve}),[Z,se]=lp("textArea",h,o),ie=y7(l??$),[me,ue]=u.useState(!1),[re,ce]=u.useState(!1),fe=ve=>{ue(!0),b==null||b(ve);const ye=()=>{ue(!1),document.removeEventListener("mouseup",ye)};document.addEventListener("mouseup",ye)},de=ve=>{var ye,Se;if(y==null||y(ve),me&&typeof getComputedStyle=="function"){const Pe=(Se=(ye=j.current)===null||ye===void 0?void 0:ye.nativeElement)===null||Se===void 0?void 0:Se.querySelector("textarea");Pe&&getComputedStyle(Pe).resize==="both"&&ce(!0)}};return L(U(u.createElement(FK,Object.assign({autoComplete:x},v,{style:Object.assign(Object.assign({},T),p),styles:Object.assign(Object.assign({},S),m),disabled:P,allowClear:ie,className:ae(q,D,f,c,K,w,re&&`${A}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),R),{textarea:ae({[`${A}-sm`]:X==="small",[`${A}-lg`]:X==="large"},z,d==null?void 0:d.textarea,R.textarea,me&&`${A}-mouse-active`),variant:ae({[`${A}-${Z}`]:se},Hf(A,M)),affixWrapper:ae(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:O==="rtl",[`${A}-affix-wrapper-sm`]:X==="small",[`${A}-affix-wrapper-lg`]:X==="large",[`${A}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:A,suffix:k&&u.createElement("span",{className:`${A}-textarea-suffix`},N),showCount:g,ref:j,onResize:de,onMouseDown:fe}))))}),yl=hp;yl.Group=gK;yl.Search=IK;yl.TextArea=F7;yl.Password=OK;yl.OTP=wK;const Yf=100,L7=Yf/5,D7=Yf/2-L7/2,nm=D7*2*Math.PI,cC=50,dC=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return u.createElement("circle",{className:ae(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:D7,cx:cC,cy:cC,strokeWidth:L7,style:n})},zK=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,s]=u.useState(!1);Ut(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const d={strokeDashoffset:`${nm/4}`,strokeDasharray:`${nm*l/100} ${nm*(100-l)/100}`};return u.createElement("span",{className:ae(o,`${r}-progress`,l<=0&&i)},u.createElement("svg",{viewBox:`0 0 ${Yf} ${Yf}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},u.createElement(dC,{dotClassName:r,hasCircleCls:!0}),u.createElement(dC,{dotClassName:r,style:d})))};function HK(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return u.createElement(u.Fragment,null,u.createElement("span",{className:ae(o,n>0&&i)},u.createElement("span",{className:ae(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>u.createElement("i",{className:`${t}-dot-item`,key:a})))),u.createElement(zK,{prefixCls:t,percent:n}))}function VK(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&u.isValidElement(n)?Ur(n,{className:ae(n.props.className,o),percent:r}):u.createElement(HK,{prefixCls:t,percent:r})}const UK=new Ot("antSpinMove",{to:{opacity:1}}),WK=new Ot("antRotate",{to:{transform:"rotate(405deg)"}}),KK=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:UK,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:WK,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},qK=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},GK=Zt("Spin",e=>{const t=Pt(e,{spinDotDefault:e.colorTextDescription});return[KK(t)]},qK),XK=200,fC=[[30,.05],[70,.03],[96,.01]];function YK(e,t){const[n,r]=u.useState(0),o=u.useRef(null),i=t==="auto";return u.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<fC.length;l+=1){const[d,c]=fC[l];if(a<=d)return a+s*c}return a})},XK)),()=>{clearInterval(o.current)}),[i,e]),i?n:t}var QK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let B7;function ZK(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const z7=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:s="default",tip:l,wrapperClassName:d,style:c,children:f,fullscreen:p=!1,indicator:m,percent:h}=e,g=QK(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:y,className:v,style:C,indicator:O}=vr("spin"),$=b("spin",n),[x,w,T]=GK($),[R,S]=u.useState(()=>r&&!ZK(r,o)),E=YK(R,h);u.useEffect(()=>{if(r){const A=xU(o,()=>{S(!0)});return A(),()=>{var D;(D=A==null?void 0:A.cancel)===null||D===void 0||D.call(A)}}S(!1)},[o,r]);const P=u.useMemo(()=>typeof f<"u"&&!p,[f,p]),I=ae($,v,{[`${$}-sm`]:s==="small",[`${$}-lg`]:s==="large",[`${$}-spinning`]:R,[`${$}-show-text`]:!!l,[`${$}-rtl`]:y==="rtl"},i,!p&&a,w,T),k=ae(`${$}-container`,{[`${$}-blur`]:R}),N=(t=m??O)!==null&&t!==void 0?t:B7,M=Object.assign(Object.assign({},C),c),j=u.createElement("div",Object.assign({},g,{style:M,className:I,"aria-live":"polite","aria-busy":R}),u.createElement(VK,{prefixCls:$,indicator:N,percent:E}),l&&(P||p)?u.createElement("div",{className:`${$}-text`},l):null);return x(P?u.createElement("div",Object.assign({},g,{className:ae(`${$}-nested-loading`,d,w,T)}),R&&u.createElement("div",{key:"loading"},j),u.createElement("div",{className:k,key:"container"},f)):p?u.createElement("div",{className:ae(`${$}-fullscreen`,{[`${$}-fullscreen-show`]:R},a,w,T)},j):j)};z7.setDefaultIndicator=e=>{B7=e};const JK=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]};let ro=null,xa=e=>e(),Uu=[],Wu={};function pC(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Wu,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const eq=V.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=u.useContext(bt),i=Wu.prefixCls||o("message"),a=u.useContext(Nw),[s,l]=N5(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return V.useImperativeHandle(t,()=>{const d=Object.assign({},s);return Object.keys(d).forEach(c=>{d[c]=function(){return r(),s[c].apply(s,arguments)}}),{instance:d,sync:r}}),l}),tq=V.forwardRef((e,t)=>{const[n,r]=V.useState(pC),o=()=>{r(pC)};V.useEffect(o,[]);const i=c2(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),d=V.createElement(eq,{ref:t,sync:o,messageConfig:n});return V.createElement(_r,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(d):d)});function mp(){if(!ro){const e=document.createDocumentFragment(),t={fragment:e};ro=t,xa(()=>{K0()(V.createElement(tq,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,mp())})}}),e)});return}ro.instance&&(Uu.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{xa(()=>{const r=ro.instance.open(Object.assign(Object.assign({},Wu),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":xa(()=>{ro==null||ro.instance.destroy(e.key)});break;default:xa(()=>{var r;const o=(r=ro.instance)[t].apply(r,Ne(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Uu=[])}function nq(e){Wu=Object.assign(Object.assign({},Wu),e),xa(()=>{var t;(t=ro==null?void 0:ro.sync)===null||t===void 0||t.call(ro)})}function rq(e){const t=p2(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Uu.push(o),()=>{r?xa(()=>{r()}):o.skipped=!0}});return mp(),t}function oq(e,t){const n=p2(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Uu.push(i),()=>{o?xa(()=>{o()}):i.skipped=!0}});return mp(),n}const iq=e=>{Uu.push({type:"destroy",key:e}),mp()},aq=["success","info","warning","error","loading"],sq={open:rq,destroy:iq,config:nq,useMessage:nN,_InternalPanelDoNotUseOrYouWillBeFired:GA},mn=sq;aq.forEach(e=>{mn[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return oq(e,n)}});var lq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uq=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,d=lq(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:c}=u.useContext(bt),f=c(),p=t||c("modal"),m=ur(f),[h,g,b]=yw(p,m),y=`${p}-confirm`;let v={};return i?v={closable:o??!1,title:"",footer:"",children:u.createElement(Cw,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:v={closable:o??!0,title:a,footer:l!==null&&u.createElement(pw,Object.assign({},e)),children:s},h(u.createElement(rw,Object.assign({prefixCls:p,className:ae(g,`${p}-pure-panel`,i&&y,i&&`${y}-${i}`,n,b,m)},d,{closeIcon:fw(p,r),closable:o},v)))},cq=jw(uq);function H7(e){return yc(Ew(e))}const Yr=bw;Yr.useModal=fD;Yr.info=function(t){return yc($w(t))};Yr.success=function(t){return yc(Rw(t))};Yr.error=function(t){return yc(Ow(t))};Yr.warning=H7;Yr.warn=H7;Yr.confirm=function(t){return yc(Pw(t))};Yr.destroyAll=function(){for(;ba.length;){const t=ba.pop();t&&t()}};Yr.config=sD;Yr._InternalPanelDoNotUseOrYouWillBeFired=cq;let Co=null,Zd=e=>e(),Qf=[],Ku={};function hC(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=Ku,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const dq=V.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=u.useContext(bt),i=Ku.prefixCls||o("notification"),a=u.useContext(Nw),[s,l]=Aw(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return V.useEffect(r,[]),V.useImperativeHandle(t,()=>{const d=Object.assign({},s);return Object.keys(d).forEach(c=>{d[c]=function(){return r(),s[c].apply(s,arguments)}}),{instance:d,sync:r}}),l}),fq=V.forwardRef((e,t)=>{const[n,r]=V.useState(hC),o=()=>{r(hC)};V.useEffect(o,[]);const i=c2(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),d=V.createElement(dq,{ref:t,sync:o,notificationConfig:n});return V.createElement(_r,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(d):d)});function D2(){if(!Co){const e=document.createDocumentFragment(),t={fragment:e};Co=t,Zd(()=>{K0()(V.createElement(fq,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,D2())})}}),e)});return}Co.instance&&(Qf.forEach(e=>{switch(e.type){case"open":{Zd(()=>{Co.instance.open(Object.assign(Object.assign({},Ku),e.config))});break}case"destroy":Zd(()=>{Co==null||Co.instance.destroy(e.key)});break}}),Qf=[])}function pq(e){Ku=Object.assign(Object.assign({},Ku),e),Zd(()=>{var t;(t=Co==null?void 0:Co.sync)===null||t===void 0||t.call(Co)})}function V7(e){Qf.push({type:"open",config:e}),D2()}const hq=e=>{Qf.push({type:"destroy",key:e}),D2()},mq=["success","info","warning","error"],gq={open:V7,destroy:hq,config:pq,useNotification:AD,_InternalPanelDoNotUseOrYouWillBeFired:ED},U7=gq;mq.forEach(e=>{U7[e]=t=>V7(Object.assign(Object.assign({},t),{type:e}))});var vq={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},yq=function(){var t=u.useRef([]),n=u.useRef(null);return u.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},mC=0,bq=Jn();function Cq(){var e;return bq?(e=mC,mC+=1):e="TEST_OR_SSR",e}const xq=function(e){var t=u.useState(),n=ge(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_progress_".concat(Cq()))},[]),e||r};var gC=function(t){var n=t.bg,r=t.children;return u.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function vC(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var Sq=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,d=e.strokeWidth,c=e.size,f=e.gapDegree,p=r&&nt(r)==="object",m=p?"#FFF":void 0,h=c/2,g=u.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:d,opacity:s===0?0:1,style:a,ref:t});if(!p)return g;var b="".concat(o,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",v=vC(r,(360-f)/360),C=vC(r,1),O="conic-gradient(from ".concat(y,", ").concat(v.join(", "),")"),$="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(C.join(", "),")");return u.createElement(u.Fragment,null,u.createElement("mask",{id:b},g),u.createElement("foreignObject",{x:0,y:0,width:c,height:c,mask:"url(#".concat(b,")")},u.createElement(gC,{bg:$},u.createElement(gC,{bg:O}))))}),Yl=100,rm=function(t,n,r,o,i,a,s,l,d,c){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*n;d==="round"&&o!==100&&(h+=c/2,h>=n&&(h=n-.01));var g=Yl/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+p+m,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},wq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function yC(e){var t=e??[];return Array.isArray(t)?t:[t]}var Eq=function(t){var n=Y(Y({},vq),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,d=l===void 0?0:l,c=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,m=n.style,h=n.className,g=n.strokeColor,b=n.percent,y=gt(n,wq),v=Yl/2,C=xq(r),O="".concat(C,"-gradient"),$=v-a/2,x=Math.PI*2*$,w=d>0?90+d/2:-90,T=x*((360-d)/360),R=nt(i)==="object"?i:{count:i,gap:2},S=R.count,E=R.gap,P=yC(b),I=yC(g),k=I.find(function(z){return z&&nt(z)==="object"}),N=k&&nt(k)==="object",M=N?"butt":p,j=rm(x,T,0,100,w,d,c,f,M,a),A=yq(),D=function(){var q=0;return P.map(function(U,H){var K=I[H]||I[I.length-1],X=rm(x,T,q,U,w,d,c,K,M,a);return q+=U,u.createElement(Sq,{key:H,color:K,ptg:U,radius:$,prefixCls:o,gradientId:O,style:X,strokeLinecap:M,strokeWidth:a,gapDegree:d,ref:function(se){A[H]=se},size:Yl})}).reverse()},L=function(){var q=Math.round(S*(P[0]/100)),U=100/S,H=0;return new Array(S).fill(null).map(function(K,X){var Z=X<=q-1?I[0]:f,se=Z&&nt(Z)==="object"?"url(#".concat(O,")"):void 0,ie=rm(x,T,H,U,w,d,c,Z,"butt",a,E);return H+=(T-ie.strokeDashoffset+E)*100/T,u.createElement("circle",{key:X,className:"".concat(o,"-circle-path"),r:$,cx:v,cy:v,stroke:se,strokeWidth:a,opacity:1,style:ie,ref:function(ue){A[X]=ue}})})};return u.createElement("svg",we({className:ae("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Yl," ").concat(Yl),style:m,id:r,role:"presentation"},y),!S&&u.createElement("circle",{className:"".concat(o,"-circle-trail"),r:$,cx:v,cy:v,stroke:f,strokeLinecap:M,strokeWidth:s||a,style:j}),S?L():D())};function Xi(e){return!e||e<0?0:e>100?100:e}function Zf(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const $q=e=>{let{percent:t,success:n,successPercent:r}=e;const o=Xi(Zf({success:n,successPercent:r}));return[o,Xi(Xi(t)-o)]},Rq=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ps.green,n||null]},gp=(e,t,n)=>{var r,o,i,a;let s=-1,l=-1;if(t==="step"){const d=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=c??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=d}else if(t==="line"){const d=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=d||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},Oq=3,Pq=e=>Oq/e*100,Iq=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:d,size:c=a,steps:f}=e,[p,m]=gp(c,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(Pq(p),6));const g={width:p,height:m,fontSize:p*.15+6},b=u.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),y=$q(e),v=o||s==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",O=Rq({success:d,strokeColor:e.strokeColor}),$=ae(`${t}-inner`,{[`${t}-circle-gradient`]:C}),x=u.createElement(Eq,{steps:f,percent:f?y[1]:y,strokeWidth:h,trailWidth:h,strokeColor:f?O[1]:O,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:v}),w=p<=20,T=u.createElement("div",{className:$,style:g},x,!w&&l);return w?u.createElement(Oo,{title:l},T):T},Jf="--progress-line-stroke-color",W7="--progress-percent",bC=e=>{const t=e?"100%":"-100%";return new Ot(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Tq=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Jf})`]},height:"100%",width:`calc(1 / var(${W7}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${be(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:bC(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:bC(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},_q=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},kq=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Mq=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Aq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Nq=Zt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Pt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Tq(n),_q(n),kq(n),Mq(n)]},Aq);var jq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Fq=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},Lq=(e,t)=>{const{from:n=Ps.blue,to:r=Ps.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=jq(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=Fq(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Jf]:l}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[Jf]:a}},Dq=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:d=null,percentPosition:c,success:f}=e,{align:p,type:m}=c,h=a&&typeof a!="string"?Lq(a,n):{[Jf]:a,background:a},g=s==="square"||s==="butt"?0:void 0,b=o??[-1,i||(o==="small"?6:8)],[y,v]=gp(b,"line",{strokeWidth:i}),C={backgroundColor:d||void 0,borderRadius:g},O=Object.assign(Object.assign({width:`${Xi(r)}%`,height:v,borderRadius:g},h),{[W7]:Xi(r)/100}),$=Zf(e),x={width:`${Xi($)}%`,height:v,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},w={width:y<0?"100%":y},T=u.createElement("div",{className:`${t}-inner`,style:C},u.createElement("div",{className:ae(`${t}-bg`,`${t}-bg-${m}`),style:O},m==="inner"&&l),$!==void 0&&u.createElement("div",{className:`${t}-success-bg`,style:x})),R=m==="outer"&&p==="start",S=m==="outer"&&p==="end";return m==="outer"&&p==="center"?u.createElement("div",{className:`${t}-layout-bottom`},T,l):u.createElement("div",{className:`${t}-outer`,style:w},R&&l,T,S&&l)},Bq=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:d}=e,c=r(n*(o/100)),p=t??[t==="small"?2:14,i],[m,h]=gp(p,"step",{steps:n,strokeWidth:i}),g=m/n,b=Array.from({length:n});for(let y=0;y<n;y++){const v=Array.isArray(a)?a[y]:a;b[y]=u.createElement("div",{key:y,className:ae(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=c-1}),style:{backgroundColor:y<=c-1?v:s,width:g,height:h}})}return u.createElement("div",{className:`${l}-steps-outer`},b,d)};var zq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hq=["normal","exception","active","success"],B2=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:d=!0,type:c="line",status:f,format:p,style:m,percentPosition:h={}}=e,g=zq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:y="outer"}=h,v=Array.isArray(a)?a[0]:a,C=typeof a=="string"||Array.isArray(a)?a:void 0,O=u.useMemo(()=>{if(v){const D=typeof v=="string"?v:Object.values(v)[0];return new Mt(D).isLight()}return!1},[a]),$=u.useMemo(()=>{var D,L;const z=Zf(e);return parseInt(z!==void 0?(D=z??0)===null||D===void 0?void 0:D.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),x=u.useMemo(()=>!Hq.includes(f)&&$>=100?"success":f||"normal",[f,$]),{getPrefixCls:w,direction:T,progress:R}=u.useContext(bt),S=w("progress",n),[E,P,I]=Nq(S),k=c==="line",N=k&&!i,M=u.useMemo(()=>{if(!d)return null;const D=Zf(e);let L;const z=p||(U=>`${U}%`),q=k&&O&&y==="inner";return y==="inner"||p||x!=="exception"&&x!=="success"?L=z(Xi(s),Xi(D)):x==="exception"?L=k?u.createElement(aa,null):u.createElement(Jo,null):x==="success"&&(L=k?u.createElement(uc,null):u.createElement(Uv,null)),u.createElement("span",{className:ae(`${S}-text`,{[`${S}-text-bright`]:q,[`${S}-text-${b}`]:N,[`${S}-text-${y}`]:N}),title:typeof L=="string"?L:void 0},L)},[d,s,$,x,c,S,p]);let j;c==="line"?j=i?u.createElement(Bq,Object.assign({},e,{strokeColor:C,prefixCls:S,steps:typeof i=="object"?i.count:i}),M):u.createElement(Dq,Object.assign({},e,{strokeColor:v,prefixCls:S,direction:T,percentPosition:{align:b,type:y}}),M):(c==="circle"||c==="dashboard")&&(j=u.createElement(Iq,Object.assign({},e,{strokeColor:v,prefixCls:S,progressStatus:x}),M));const A=ae(S,`${S}-status-${x}`,{[`${S}-${c==="dashboard"&&"circle"||c}`]:c!=="line",[`${S}-inline-circle`]:c==="circle"&&gp(l,"circle")[0]<=20,[`${S}-line`]:N,[`${S}-line-align-${b}`]:N,[`${S}-line-position-${y}`]:N,[`${S}-steps`]:i,[`${S}-show-info`]:d,[`${S}-${l}`]:typeof l=="string",[`${S}-rtl`]:T==="rtl"},R==null?void 0:R.className,r,o,P,I);return E(u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},R==null?void 0:R.style),m),className:A,role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100},In(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))}),Vq=()=>u.createElement("svg",{width:"252",height:"294"},u.createElement("title",null,"No Found"),u.createElement("defs",null,u.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .012)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),u.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),u.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),u.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),u.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),u.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),u.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),u.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),u.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),u.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),u.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),u.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),u.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),u.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),u.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),u.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),u.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),u.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),u.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),u.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),u.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),u.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),u.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),u.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),u.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),u.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),u.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),u.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),u.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),u.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),u.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),u.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),u.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),u.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),u.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Uq=()=>u.createElement("svg",{width:"254",height:"294"},u.createElement("title",null,"Server Error"),u.createElement("defs",null,u.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),u.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .067)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),u.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),u.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),u.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),u.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),u.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),u.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),u.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),u.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),u.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),u.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),u.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),u.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),u.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),u.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),u.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),u.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),u.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),u.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),u.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),u.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),u.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),u.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),u.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),u.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),u.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),u.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),u.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),u.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),u.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),u.createElement("mask",{fill:"#fff"}),u.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),u.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),u.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),u.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Wq=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:d}=e;return{[t]:{padding:`${be(e.calc(s).mul(2).equal())} ${be(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:d,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${be(s)} ${be(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},Kq=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},qq=e=>[Wq(e),Kq(e)],Gq=e=>qq(e),Xq=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Yq=Zt("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,i=Pt(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[Gq(i)]},Xq),Qq=()=>u.createElement("svg",{width:"251",height:"294"},u.createElement("title",null,"Unauthorized"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),u.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),u.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),u.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),u.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),u.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),u.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),u.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),u.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),u.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),u.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),u.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),u.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),u.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),u.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),u.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),u.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),u.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),u.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),u.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),u.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),u.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),u.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),u.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),u.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),u.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),u.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),u.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),u.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),u.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),u.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),u.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),u.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Zq={success:uc,error:aa,info:E0,warning:b_},Ec={404:Vq,500:Uq,403:Qq},Jq=Object.keys(Ec),eG=e=>{let{prefixCls:t,icon:n,status:r}=e;const o=ae(`${t}-icon`);if(Jq.includes(`${r}`)){const a=Ec[r];return u.createElement("div",{className:`${o} ${t}-image`},u.createElement(a,null))}const i=u.createElement(Zq[r]);return n===null||n===!1?null:u.createElement("div",{className:o},n||i)},tG=e=>{let{prefixCls:t,extra:n}=e;return n?u.createElement("div",{className:`${t}-extra`},n):null},vp=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:o,title:i,style:a,children:s,status:l="info",icon:d,extra:c}=e;const{getPrefixCls:f,direction:p,result:m}=u.useContext(bt),h=f("result",t),[g,b,y]=Yq(h),v=ae(h,`${h}-${l}`,n,m==null?void 0:m.className,r,{[`${h}-rtl`]:p==="rtl"},b,y),C=Object.assign(Object.assign({},m==null?void 0:m.style),a);return g(u.createElement("div",{className:v,style:C},u.createElement(eG,{prefixCls:h,status:l,icon:d}),u.createElement("div",{className:`${h}-title`},i),o&&u.createElement("div",{className:`${h}-subtitle`},o),u.createElement(tG,{prefixCls:h,extra:c}),s&&u.createElement("div",{className:`${h}-content`},s)))};vp.PRESENTED_IMAGE_403=Ec[403];vp.PRESENTED_IMAGE_404=Ec[404];vp.PRESENTED_IMAGE_500=Ec[500];const nG=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},$n(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},z2=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Pt(e,{tagFontSize:o,tagLineHeight:be(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},H2=e=>({defaultBg:new Mt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),K7=Zt("Tag",e=>{const t=z2(e);return nG(t)},H2);var rG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oG=u.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=rG(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:c}=u.useContext(bt),f=y=>{a==null||a(!i),s==null||s(y)},p=d("tag",n),[m,h,g]=K7(p),b=ae(p,`${p}-checkable`,{[`${p}-checkable-checked`]:i},c==null?void 0:c.className,o,h,g);return m(u.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),c==null?void 0:c.style),className:b,onClick:f})))}),iG=e=>p5(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),aG=dc(["Tag","preset"],e=>{const t=z2(e);return iG(t)},H2);function sG(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const pd=(e,t,n)=>{const r=sG(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},lG=dc(["Tag","status"],e=>{const t=z2(e);return[pd(t,"success","Success"),pd(t,"processing","Info"),pd(t,"error","Error"),pd(t,"warning","Warning")]},H2);var uG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cG=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:d,bordered:c=!0,visible:f}=e,p=uG(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:h,tag:g}=u.useContext(bt),[b,y]=u.useState(!0),v=In(p,["closeIcon","closable"]);u.useEffect(()=>{f!==void 0&&y(f)},[f]);const C=gE(l),O=aH(l),$=C||O,x=Object.assign(Object.assign({backgroundColor:l&&!$?l:void 0},g==null?void 0:g.style),i),w=m("tag",n),[T,R,S]=K7(w),E=ae(w,g==null?void 0:g.className,{[`${w}-${l}`]:$,[`${w}-has-color`]:l&&!$,[`${w}-hidden`]:!b,[`${w}-rtl`]:h==="rtl",[`${w}-borderless`]:!c},r,o,R,S),P=A=>{A.stopPropagation(),d==null||d(A),!A.defaultPrevented&&y(!1)},[,I]=x2(el(e),el(g),{closable:!1,closeIconRender:A=>{const D=u.createElement("span",{className:`${w}-close-icon`,onClick:P},A);return P5(A,D,L=>({onClick:z=>{var q;(q=L==null?void 0:L.onClick)===null||q===void 0||q.call(L,z),P(z)},className:ae(L==null?void 0:L.className,`${w}-close-icon`)}))}}),k=typeof p.onClick=="function"||a&&a.type==="a",N=s||null,M=N?u.createElement(u.Fragment,null,N,a&&u.createElement("span",null,a)):a,j=u.createElement("span",Object.assign({},v,{ref:t,className:E,style:x}),M,I,C&&u.createElement(aG,{key:"preset",prefixCls:w}),O&&u.createElement(lG,{key:"status",prefixCls:w}));return T(k?u.createElement(L5,{component:"Tag"},j):j)}),V2=cG;V2.CheckableTag=oG;const dG=e=>{const t=e!=null&&e.algorithm?Nu(e.algorithm):i2,n=Object.assign(Object.assign({},Ys),e==null?void 0:e.token);return N8(n,{override:e==null?void 0:e.token},t,H0)};function fG(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const pG=(e,t)=>{const n=t??B0(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),fG(t??e)),n5(r)),{controlHeight:o}),t5(Object.assign(Object.assign({},n),{controlHeight:o})))},no=(e,t)=>new Mt(e).setA(t).toRgbString(),ns=(e,t)=>new Mt(e).lighten(t).toHexString(),hG=e=>{const t=Ma(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},mG=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:no(r,.85),colorTextSecondary:no(r,.65),colorTextTertiary:no(r,.45),colorTextQuaternary:no(r,.25),colorFill:no(r,.18),colorFillSecondary:no(r,.12),colorFillTertiary:no(r,.08),colorFillQuaternary:no(r,.04),colorBgSolid:no(r,.95),colorBgSolidHover:no(r,1),colorBgSolidActive:no(r,.9),colorBgElevated:ns(n,12),colorBgContainer:ns(n,8),colorBgLayout:ns(n,0),colorBgSpotlight:ns(n,26),colorBgBlur:no(r,.04),colorBorder:ns(n,26),colorBorderSecondary:ns(n,19)}},gG=(e,t)=>{const n=Object.keys(o2).map(o=>{const i=Ma(e[o],{theme:"dark"});return Array.from({length:10},()=>1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??B0(e);return Object.assign(Object.assign(Object.assign({},r),n),e5(e,{generateColorPalettes:hG,generateNeutralColorPalettes:mG}))};function vG(){const[e,t,n]=Tr();return{theme:e,token:t,hashId:n}}const Or={defaultSeed:Fu.token,useToken:vG,defaultAlgorithm:B0,darkAlgorithm:gG,compactAlgorithm:pG,getDesignToken:dG,defaultConfig:Fu,_internalContext:a2},yG=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},bG=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
299
|
+
h${r}&,
|
|
300
|
+
div&-h${r},
|
|
301
|
+
div&-h${r} > textarea,
|
|
302
|
+
h${r}
|
|
303
|
+
`]=yG(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},CG=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},d5(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},xG=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:_f[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),SG=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${be(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},wG=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),EG=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),$G=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},bG(e)),{[`
|
|
304
|
+
& + h1${t},
|
|
305
|
+
& + h2${t},
|
|
306
|
+
& + h3${t},
|
|
307
|
+
& + h4${t},
|
|
308
|
+
& + h5${t}
|
|
309
|
+
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),xG(e)),CG(e)),{[`
|
|
310
|
+
${t}-expand,
|
|
311
|
+
${t}-collapse,
|
|
312
|
+
${t}-edit,
|
|
313
|
+
${t}-copy
|
|
314
|
+
`]:Object.assign(Object.assign({},d5(e)),{marginInlineStart:e.marginXXS})}),SG(e)),wG(e)),EG()),{"&-rtl":{direction:"rtl"}})}},RG=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),q7=Zt("Typography",e=>[$G(e)],RG),OG=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:d,onCancel:c,onEnd:f,component:p,enterIcon:m=u.createElement(HI,null)}=e,h=u.useRef(null),g=u.useRef(!1),b=u.useRef(null),[y,v]=u.useState(l);u.useEffect(()=>{v(l)},[l]),u.useEffect(()=>{var k;if(!((k=h.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:M}=N.value;N.setSelectionRange(M,M)}},[]);const C=k=>{let{target:N}=k;v(N.value.replace(/[\n\r]/g,""))},O=()=>{g.current=!0},$=()=>{g.current=!1},x=k=>{let{keyCode:N}=k;g.current||(b.current=N)},w=()=>{d(y.trim())},T=k=>{let{keyCode:N,ctrlKey:M,altKey:j,metaKey:A,shiftKey:D}=k;b.current!==N||g.current||M||j||A||D||(N===Ze.ENTER?(w(),f==null||f()):N===Ze.ESC&&c())},R=()=>{w()},[S,E,P]=q7(t),I=ae(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${p}`]:!!p},r,E,P);return S(u.createElement("div",{className:I,style:o},u.createElement(F7,{ref:h,maxLength:a,value:y,onChange:C,onKeyDown:x,onKeyUp:T,onCompositionStart:O,onCompositionEnd:$,onBlur:R,"aria-label":n,rows:1,autoSize:s}),m!==null?Ur(m,{className:`${t}-edit-content-confirm`}):null))};var PG=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},IG=PG,CC={"text/plain":"Text","text/html":"Url",default:"Text"},TG="Copy to clipboard: #{key}, Enter";function _G(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function kG(e,t){var n,r,o,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{o=IG(),i=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=CC[t.format]||CC.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");l=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=_G("message"in t?t.message:TG),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}var MG=kG;const AG=rc(MG);var NG=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{d(r.next(c))}catch(f){a(f)}}function l(c){try{d(r.throw(c))}catch(f){a(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,l)}d((r=r.apply(e,t||[])).next())})};const jG=e=>{let{copyConfig:t,children:n}=e;const[r,o]=u.useState(!1),[i,a]=u.useState(!1),s=u.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},d={};t.format&&(d.format=t.format),u.useEffect(()=>l,[]);const c=Gt(f=>NG(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),a(!0);try{const m=typeof t.text=="function"?yield t.text():t.text;AG(m||JK(n,!0).join("")||"",d),a(!1),o(!0),l(),s.current=setTimeout(()=>{o(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(m){throw a(!1),m}}));return{copied:r,copyLoading:i,onClick:c}};function om(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const FG=e=>{const t=u.useRef(void 0);return u.useEffect(()=>{t.current=e}),t.current},LG=(e,t,n)=>u.useMemo(()=>e===!0?{title:t??n}:u.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var DG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const G7=u.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:l,style:d}=e,c=DG(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,className:m,style:h}=vr("typography"),g=l??p,b=a?Xr(t,a):t,y=f("typography",n),[v,C,O]=q7(y),$=ae(y,m,{[`${y}-rtl`]:g==="rtl"},o,i,C,O),x=Object.assign(Object.assign({},h),d);return v(u.createElement(r,Object.assign({className:$,style:x,ref:b},c),s))});function xC(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function im(e,t,n){return e===!0||e===void 0?t:e||n&&t}function BG(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const U2=e=>["string","number"].includes(typeof e),zG=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:a,tabIndex:s,onCopy:l,loading:d}=e;const c=xC(i),f=xC(a),{copied:p,copy:m}=r??{},h=n?p:m,g=im(c[n?1:0],h),b=typeof g=="string"?g:h;return u.createElement(Oo,{title:g},u.createElement("button",{type:"button",className:ae(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:l,"aria-label":b,tabIndex:s},n?im(f[1],u.createElement(Uv,null),!0):im(f[0],d?u.createElement(Aa,null):u.createElement(h8,null),!0)))},hd=u.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=u.useRef(null);return u.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),HG=e=>e.reduce((t,n)=>t+(U2(n)?String(n).length:1),0);function SC(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],s=U2(i)?String(i).length:1,l=n+s;if(l>t){const d=t-n;return r.push(String(i).slice(0,d)),r}r.push(i),n=l}return e}const am=0,sm=1,lm=2,um=3,wC=4,md={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function VG(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,d=u.useMemo(()=>Rr(r),[r]),c=u.useMemo(()=>HG(d),[r]),f=u.useMemo(()=>o(d,!1),[r]),[p,m]=u.useState(null),h=u.useRef(null),g=u.useRef(null),b=u.useRef(null),y=u.useRef(null),v=u.useRef(null),[C,O]=u.useState(!1),[$,x]=u.useState(am),[w,T]=u.useState(0),[R,S]=u.useState(null);Ut(()=>{x(t&&n&&c?sm:am)},[n,r,i,t,d]),Ut(()=>{var k,N,M,j;if($===sm){x(lm);const A=g.current&&getComputedStyle(g.current).whiteSpace;S(A)}else if($===lm){const A=!!(!((k=b.current)===null||k===void 0)&&k.isExceed());x(A?um:wC),m(A?[0,c]:null),O(A);const D=((N=b.current)===null||N===void 0?void 0:N.getHeight())||0,L=i===1?0:((M=y.current)===null||M===void 0?void 0:M.getHeight())||0,z=((j=v.current)===null||j===void 0?void 0:j.getHeight())||0,q=Math.max(D,L+z);T(q+1),l(A)}},[$]);const E=p?Math.ceil((p[0]+p[1])/2):0;Ut(()=>{var k;const[N,M]=p||[0,0];if(N!==M){const A=(((k=h.current)===null||k===void 0?void 0:k.getHeight())||0)>w;let D=E;M-N===1&&(D=A?N:M),m(A?[N,D]:[D,M])}},[p,E]);const P=u.useMemo(()=>{if(!t)return o(d,!1);if($!==um||!p||p[0]!==p[1]){const k=o(d,!1);return[wC,am].includes($)?k:u.createElement("span",{style:Object.assign(Object.assign({},md),{WebkitLineClamp:i})},k)}return o(a?d:SC(d,p[0]),C)},[a,$,p,d].concat(Ne(s))),I={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,P,$===lm&&u.createElement(u.Fragment,null,u.createElement(hd,{style:Object.assign(Object.assign(Object.assign({},I),md),{WebkitLineClamp:i}),ref:b},f),u.createElement(hd,{style:Object.assign(Object.assign(Object.assign({},I),md),{WebkitLineClamp:i-1}),ref:y},f),u.createElement(hd,{style:Object.assign(Object.assign(Object.assign({},I),md),{WebkitLineClamp:1}),ref:v},o([],!0))),$===um&&p&&p[0]!==p[1]&&u.createElement(hd,{style:Object.assign(Object.assign({},I),{top:400}),ref:h},o(SC(d,E),!0)),$===sm&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const UG=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:u.createElement(Oo,Object.assign({open:n?void 0:!1},o),r)};var WG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function KG(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:s,italic:l}=e,d=t;function c(f,p){p&&(d=u.createElement(f,{},d))}return c("strong",a),c("u",o),c("del",i),c("code",r),c("mark",n),c("kbd",s),c("i",l),d}const qG="...",yp=u.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:s,children:l,ellipsis:d,editable:c,copyable:f,component:p,title:m}=e,h=WG(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:b}=u.useContext(bt),[y]=ei("Text"),v=u.useRef(null),C=u.useRef(null),O=g("typography",r),$=In(h,["mark","code","delete","underline","strong","keyboard","italic"]),[x,w]=om(c),[T,R]=nn(!1,{value:w.editing}),{triggerType:S=["icon"]}=w,E=ee=>{var ne;ee&&((ne=w.onStart)===null||ne===void 0||ne.call(w)),R(ee)},P=FG(T);Ut(()=>{var ee;!T&&P&&((ee=C.current)===null||ee===void 0||ee.focus())},[T]);const I=ee=>{ee==null||ee.preventDefault(),E(!0)},k=ee=>{var ne;(ne=w.onChange)===null||ne===void 0||ne.call(w,ee),E(!1)},N=()=>{var ee;(ee=w.onCancel)===null||ee===void 0||ee.call(w),E(!1)},[M,j]=om(f),{copied:A,copyLoading:D,onClick:L}=jG({copyConfig:j,children:l}),[z,q]=u.useState(!1),[U,H]=u.useState(!1),[K,X]=u.useState(!1),[Z,se]=u.useState(!1),[ie,me]=u.useState(!0),[ue,re]=om(d,{expandable:!1,symbol:ee=>ee?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ce,fe]=nn(re.defaultExpanded||!1,{value:re.expanded}),de=ue&&(!ce||re.expandable==="collapsible"),{rows:ve=1}=re,ye=u.useMemo(()=>de&&(re.suffix!==void 0||re.onEllipsis||re.expandable||x||M),[de,re,x,M]);Ut(()=>{ue&&!ye&&(q(Z3("webkitLineClamp")),H(Z3("textOverflow")))},[ye,ue]);const[Se,Pe]=u.useState(de),Ie=u.useMemo(()=>ye?!1:ve===1?U:z,[ye,U,z]);Ut(()=>{Pe(Ie&&de)},[Ie,de]);const $e=de&&(Se?Z:K),Fe=de&&ve===1&&Se,Ee=de&&ve>1&&Se,ke=(ee,ne)=>{var xe;fe(ne.expanded),(xe=re.onExpand)===null||xe===void 0||xe.call(re,ee,ne)},[Be,je]=u.useState(0),We=ee=>{let{offsetWidth:ne}=ee;je(ne)},Ye=ee=>{var ne;X(ee),K!==ee&&((ne=re.onEllipsis)===null||ne===void 0||ne.call(re,ee))};u.useEffect(()=>{const ee=v.current;if(ue&&Se&&ee){const ne=BG(ee);Z!==ne&&se(ne)}},[ue,Se,l,Ee,ie,Be]),u.useEffect(()=>{const ee=v.current;if(typeof IntersectionObserver>"u"||!ee||!Se||!de)return;const ne=new IntersectionObserver(()=>{me(!!ee.offsetParent)});return ne.observe(ee),()=>{ne.disconnect()}},[Se,de]);const Xe=LG(re.tooltip,w.text,l),it=u.useMemo(()=>{if(!(!ue||Se))return[w.text,l,m,Xe.title].find(U2)},[ue,Se,m,Xe.title,$e]);if(T)return u.createElement(OG,{value:(n=w.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:k,onCancel:N,onEnd:w.onEnd,prefixCls:O,className:o,style:i,direction:b,component:p,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const et=()=>{const{expandable:ee,symbol:ne}=re;return ee?u.createElement("button",{type:"button",key:"expand",className:`${O}-${ce?"collapse":"expand"}`,onClick:xe=>ke(xe,{expanded:!ce}),"aria-label":ce?y.collapse:y==null?void 0:y.expand},typeof ne=="function"?ne(ce):ne):null},ct=()=>{if(!x)return;const{icon:ee,tooltip:ne,tabIndex:xe}=w,Re=Rr(ne)[0]||(y==null?void 0:y.edit),De=typeof Re=="string"?Re:"";return S.includes("icon")?u.createElement(Oo,{key:"edit",title:ne===!1?"":Re},u.createElement("button",{type:"button",ref:C,className:`${O}-edit`,onClick:I,"aria-label":De,tabIndex:xe},ee||u.createElement(jI,{role:"button"}))):null},He=()=>M?u.createElement(zG,Object.assign({key:"copy"},j,{prefixCls:O,copied:A,locale:y,onCopy:L,loading:D,iconOnly:l==null})):null,he=ee=>[ee&&et(),ct(),He()],Q=ee=>[ee&&!ce&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},qG),re.suffix,he(ee)];return u.createElement(zr,{onResize:We,disabled:!de},ee=>u.createElement(UG,{tooltipProps:Xe,enableEllipsis:de,isEllipsis:$e},u.createElement(G7,Object.assign({className:ae({[`${O}-${a}`]:a,[`${O}-disabled`]:s,[`${O}-ellipsis`]:ue,[`${O}-ellipsis-single-line`]:Fe,[`${O}-ellipsis-multiple-line`]:Ee},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:Ee?ve:void 0}),component:p,ref:Xr(ee,v,t),direction:b,onClick:S.includes("text")?I:void 0,"aria-label":it==null?void 0:it.toString(),title:m},$),u.createElement(VG,{enableMeasure:de&&!Se,text:l,rows:ve,width:Be,onEllipsis:Ye,expanded:ce,miscDeps:[A,ce,D,x,M,y]},(ne,xe)=>KG(e,u.createElement(u.Fragment,null,ne.length>0&&xe&&!ce&&it?u.createElement("span",{key:"show-content","aria-hidden":!0},ne):ne,Q(xe)))))))});var GG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XG=u.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=GG(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,u.createElement(yp,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),YG=u.forwardRef((e,t)=>u.createElement(yp,Object.assign({ref:t},e,{component:"div"})));var QG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZG=(e,t)=>{var{ellipsis:n}=e,r=QG(e,["ellipsis"]);const o=u.useMemo(()=>n&&typeof n=="object"?In(n,["expandable","rows"]):n,[n]);return u.createElement(yp,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},JG=u.forwardRef(ZG);var eX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tX=[1,2,3,4,5],nX=u.forwardRef((e,t)=>{const{level:n=1}=e,r=eX(e,["level"]),o=tX.includes(n)?`h${n}`:"h1";return u.createElement(yp,Object.assign({ref:t},r,{component:o}))}),lo=G7;lo.Text=JG;lo.Link=XG;lo.Title=nX;lo.Paragraph=YG;const cm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),d=s.toLowerCase(),c=[d];return(d===".jpg"||d===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(An(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function rX(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function EC(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function oX(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(rX(e,t),EC(t)):e.onSuccess(EC(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var iX=function(){var e=Lr(sn().mark(function t(n,r){var o,i,a,s,l,d,c,f;return sn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:d=function(){return d=Lr(sn().mark(function g(b){return sn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",new Promise(function(C){b.file(function(O){r(O)?(b.fullPath&&!O.webkitRelativePath&&(Object.defineProperties(O,{webkitRelativePath:{writable:!0}}),O.webkitRelativePath=b.fullPath.replace(/^\//,""),Object.defineProperties(O,{webkitRelativePath:{writable:!1}})),C(O)):C(null)})}));case 1:case"end":return v.stop()}},g)})),d.apply(this,arguments)},l=function(g){return d.apply(this,arguments)},s=function(){return s=Lr(sn().mark(function g(b){var y,v,C,O,$;return sn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:y=b.createReader(),v=[];case 2:return w.next=5,new Promise(function(T){y.readEntries(T,function(){return T([])})});case 5:if(C=w.sent,O=C.length,O){w.next=9;break}return w.abrupt("break",12);case 9:for($=0;$<O;$++)v.push(C[$]);w.next=2;break;case 12:return w.abrupt("return",v);case 13:case"end":return w.stop()}},g)})),s.apply(this,arguments)},a=function(g){return s.apply(this,arguments)},o=[],i=[],n.forEach(function(h){return i.push(h.webkitGetAsEntry())}),c=function(){var h=Lr(sn().mark(function g(b,y){var v,C;return sn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(b){$.next=2;break}return $.abrupt("return");case 2:if(b.path=y||"",!b.isFile){$.next=10;break}return $.next=6,l(b);case 6:v=$.sent,v&&o.push(v),$.next=15;break;case 10:if(!b.isDirectory){$.next=15;break}return $.next=13,a(b);case 13:C=$.sent,i.push.apply(i,Ne(C));case 15:case"end":return $.stop()}},g)}));return function(b,y){return h.apply(this,arguments)}}(),f=0;case 9:if(!(f<i.length)){m.next=15;break}return m.next=12,c(i[f]);case 12:f++,m.next=9;break;case 15:return m.abrupt("return",o);case 16:case"end":return m.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),aX=+new Date,sX=0;function dm(){return"rc-upload-".concat(aX,"-").concat(++sX)}var lX=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],uX=function(e){_o(n,e);var t=ko(n);function n(){var r;xn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),J(wt(r),"state",{uid:dm()}),J(wt(r),"reqs",{}),J(wt(r),"fileInput",void 0),J(wt(r),"_isMounted",void 0),J(wt(r),"onChange",function(s){var l=r.props,d=l.accept,c=l.directory,f=s.target.files,p=Ne(f).filter(function(m){return!c||cm(m,d)});r.uploadFiles(p),r.reset()}),J(wt(r),"onClick",function(s){var l=r.fileInput;if(l){var d=s.target,c=r.props.onClick;if(d&&d.tagName==="BUTTON"){var f=l.parentNode;f.focus(),d.blur()}l.click(),c&&c(s)}}),J(wt(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),J(wt(r),"onFileDropOrPaste",function(){var s=Lr(sn().mark(function l(d){var c,f,p,m,h,g,b,y,v;return sn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(d.preventDefault(),d.type!=="dragover"){O.next=3;break}return O.abrupt("return");case 3:if(c=r.props,f=c.multiple,p=c.accept,m=c.directory,h=[],g=[],d.type==="drop"?(b=d.dataTransfer,h=Ne(b.items||[]),g=Ne(b.files||[])):d.type==="paste"&&(y=d.clipboardData,h=Ne(y.items||[]),g=Ne(y.files||[])),!m){O.next=14;break}return O.next=10,iX(Array.prototype.slice.call(h),function($){return cm($,r.props.accept)});case 10:g=O.sent,r.uploadFiles(g),O.next=17;break;case 14:v=Ne(g).filter(function($){return cm($,p)}),f===!1&&(v=g.slice(0,1)),r.uploadFiles(v);case 17:case"end":return O.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),J(wt(r),"onPrePaste",function(s){var l=r.props.pastable;l&&r.onFileDropOrPaste(s)}),J(wt(r),"uploadFiles",function(s){var l=Ne(s),d=l.map(function(c){return c.uid=dm(),r.processFile(c,l)});Promise.all(d).then(function(c){var f=r.props.onBatchStart;f==null||f(c.map(function(p){var m=p.origin,h=p.parsedFile;return{file:m,parsedFile:h}})),c.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),J(wt(r),"processFile",function(){var s=Lr(sn().mark(function l(d,c){var f,p,m,h,g,b,y,v,C;return sn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(f=r.props.beforeUpload,p=d,!f){$.next=14;break}return $.prev=3,$.next=6,f(d,c);case 6:p=$.sent,$.next=12;break;case 9:$.prev=9,$.t0=$.catch(3),p=!1;case 12:if(p!==!1){$.next=14;break}return $.abrupt("return",{origin:d,parsedFile:null,action:null,data:null});case 14:if(m=r.props.action,typeof m!="function"){$.next=21;break}return $.next=18,m(d);case 18:h=$.sent,$.next=22;break;case 21:h=m;case 22:if(g=r.props.data,typeof g!="function"){$.next=29;break}return $.next=26,g(d);case 26:b=$.sent,$.next=30;break;case 29:b=g;case 30:return y=(nt(p)==="object"||typeof p=="string")&&p?p:d,y instanceof File?v=y:v=new File([y],d.name,{type:d.type}),C=v,C.uid=d.uid,$.abrupt("return",{origin:d,data:b,parsedFile:C,action:h});case 35:case"end":return $.stop()}},l,null,[[3,9]])}));return function(l,d){return s.apply(this,arguments)}}()),J(wt(r),"saveFileInput",function(s){r.fileInput=s}),r}return Sn(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onPrePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onPrePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onPrePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onPrePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,d=o.parsedFile;if(this._isMounted){var c=this.props,f=c.onStart,p=c.customRequest,m=c.name,h=c.headers,g=c.withCredentials,b=c.method,y=s.uid,v=p||oX,C={action:l,filename:m,data:a,file:d,headers:h,withCredentials:g,method:b||"post",onProgress:function($){var x=i.props.onProgress;x==null||x($,d)},onSuccess:function($,x){var w=i.props.onSuccess;w==null||w($,d,x),delete i.reqs[y]},onError:function($,x){var w=i.props.onError;w==null||w($,x,d),delete i.reqs[y]}};f(s),this.reqs[y]=v(C)}}},{key:"reset",value:function(){this.setState({uid:dm()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,d=l===void 0?{}:l,c=o.disabled,f=o.id,p=o.name,m=o.style,h=o.styles,g=h===void 0?{}:h,b=o.multiple,y=o.accept,v=o.capture,C=o.children,O=o.directory,$=o.openFileDialogOnClick,x=o.onMouseEnter,w=o.onMouseLeave,T=o.hasControlInside,R=gt(o,lX),S=ae(J(J(J({},a,!0),"".concat(a,"-disabled"),c),s,s)),E=O?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},P=c?{}:{onClick:$?this.onClick:function(){},onKeyDown:$?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:w,onDrop:this.onFileDropOrPaste,onDragOver:this.onFileDropOrPaste,tabIndex:T?void 0:"0"};return V.createElement(i,we({},P,{className:S,role:T?void 0:"button",style:m}),V.createElement("input",we({},lr(R,{aria:!0,data:!0}),{id:f,name:p,disabled:c,type:"file",ref:this.saveFileInput,onClick:function(k){return k.stopPropagation()},key:this.state.uid,style:Y({display:"none"},g.input),className:d.input,accept:y},E,{multiple:b,onChange:this.onChange},v!=null?{capture:v}:{})),C)}}]),n}(u.Component);function fm(){}var T1=function(e){_o(n,e);var t=ko(n);function n(){var r;xn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),J(wt(r),"uploader",void 0),J(wt(r),"saveUploader",function(s){r.uploader=s}),r}return Sn(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return V.createElement(uX,we({},this.props,{ref:this.saveUploader}))}}]),n}(u.Component);J(T1,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:fm,onError:fm,onSuccess:fm,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const cX=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${be(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
315
|
+
&:not(${t}-disabled):hover,
|
|
316
|
+
&-hover:not(${t}-disabled)
|
|
317
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${be(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
318
|
+
p${t}-text,
|
|
319
|
+
p${t}-hint
|
|
320
|
+
`]:{color:e.colorTextDisabled}}}}}},dX=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},sa()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Qo),{padding:`0 ${be(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
321
|
+
${l}:focus-visible,
|
|
322
|
+
&.picture ${l}
|
|
323
|
+
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},fX=e=>{const{componentCls:t}=e,n=new Ot("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Ot("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:g2(e)},n,r]},pX=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
|
|
324
|
+
${a}${a}-picture,
|
|
325
|
+
${a}${a}-picture-card,
|
|
326
|
+
${a}${a}-picture-circle
|
|
327
|
+
`]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Qo),{width:r,height:r,lineHeight:be(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${be(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Ws[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ws.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},hX=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
|
|
328
|
+
${t}-wrapper${t}-picture-card-wrapper,
|
|
329
|
+
${t}-wrapper${t}-picture-circle-wrapper
|
|
330
|
+
`]:Object.assign(Object.assign({},sa()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${be(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${be(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${be(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
331
|
+
${n}-eye,
|
|
332
|
+
${n}-download,
|
|
333
|
+
${n}-delete
|
|
334
|
+
`]:{zIndex:10,width:r,margin:`0 ${be(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${be(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${be(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},mX=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},gX=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},$n(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},vX=e=>({actionsColor:e.colorIcon}),yX=Zt("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=Pt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[gX(a),cX(a),pX(a),hX(a),dX(a),fX(a),mX(a),W5(a)]},vX);function gd(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function vd(e,t){const n=Ne(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function pm(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function bX(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const CX=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},X7=e=>e.indexOf("image/")===0,xX=e=>{if(e.type&&!e.thumbUrl)return X7(e.type);const t=e.thumbUrl||e.url||"",n=CX(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Ei=200;function SX(e){return new Promise(t=>{if(!e.type||!X7(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ei,n.height=Ei,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ei}px; height: ${Ei}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Ei,l=Ei,d=0,c=0;i>a?(l=a*(Ei/i),c=-(l-s)/2):(s=i*(Ei/a),d=-(s-l)/2),r.drawImage(o,d,c,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const wX=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:s,items:l,progress:d,iconRender:c,actionIconRender:f,itemRender:p,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:b,previewIcon:y,removeIcon:v,downloadIcon:C,extra:O,onPreview:$,onDownload:x,onClose:w}=e;var T,R;const{status:S}=s,[E,P]=u.useState(S);u.useEffect(()=>{S!=="removed"&&P(S)},[S]);const[I,k]=u.useState(!1);u.useEffect(()=>{const ce=setTimeout(()=>{k(!0)},300);return()=>{clearTimeout(ce)}},[]);const N=c(s);let M=u.createElement("div",{className:`${n}-icon`},N);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(E==="uploading"||!s.thumbUrl&&!s.url){const ce=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:E!=="uploading"});M=u.createElement("div",{className:ce},N)}else{const ce=m!=null&&m(s)?u.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):N,fe=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:m&&!m(s)});M=u.createElement("a",{className:fe,onClick:de=>$(s,de),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ce)}const j=ae(`${n}-list-item`,`${n}-list-item-${E}`),A=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,D=(typeof g=="function"?g(s):g)?f((typeof v=="function"?v(s):v)||u.createElement(PI,null),()=>w(s),n,i.removeFile,!0):null,L=(typeof b=="function"?b(s):b)&&E==="done"?f((typeof C=="function"?C(s):C)||u.createElement(Is,null),()=>x(s),n,i.downloadFile):null,z=a!=="picture-card"&&a!=="picture-circle"&&u.createElement("span",{key:"download-delete",className:ae(`${n}-list-item-actions`,{picture:a==="picture"})},L,D),q=typeof O=="function"?O(s):O,U=q&&u.createElement("span",{className:`${n}-list-item-extra`},q),H=ae(`${n}-list-item-name`),K=s.url?u.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},A,{href:s.url,onClick:ce=>$(s,ce)}),s.name,U):u.createElement("span",{key:"view",className:H,onClick:ce=>$(s,ce),title:s.name},s.name,U),X=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?u.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ce=>$(s,ce),title:i.previewFile},typeof y=="function"?y(s):y||u.createElement($a,null)):null,Z=(a==="picture-card"||a==="picture-circle")&&E!=="uploading"&&u.createElement("span",{className:`${n}-list-item-actions`},X,E==="done"&&L,D),{getPrefixCls:se}=u.useContext(bt),ie=se(),me=u.createElement("div",{className:j},M,K,z,Z,I&&u.createElement(sr,{motionName:`${ie}-fade`,visible:E==="uploading",motionDeadline:2e3},ce=>{let{className:fe}=ce;const de="percent"in s?u.createElement(B2,Object.assign({},d,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return u.createElement("div",{className:ae(`${n}-list-item-progress`,fe)},de)})),ue=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((R=s.error)===null||R===void 0?void 0:R.message)||i.uploadError,re=E==="error"?u.createElement(Oo,{title:ue,getPopupContainer:ce=>ce.parentNode},me):me;return u.createElement("div",{className:ae(`${n}-list-item-container`,r),style:o,ref:t},p?p(re,s,l,{download:x.bind(null,s),preview:$.bind(null,s),remove:w.bind(null,s)}):re)}),EX=(e,t)=>{const{listType:n="text",previewFile:r=SX,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:d=xX,prefixCls:c,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:g,previewIcon:b,downloadIcon:y,extra:v,progress:C={size:[-1,2],showInfo:!1},appendAction:O,appendActionVisible:$=!0,itemRender:x,disabled:w}=e,T=lE(),[R,S]=u.useState(!1),E=["picture-card","picture-circle"].includes(n);u.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(H=>{U.thumbUrl=H||"",T()}))})},[n,f,r]),u.useEffect(()=>{S(!0)},[]);const P=(U,H)=>{if(o)return H==null||H.preventDefault(),o(U)},I=U=>{typeof i=="function"?i(U):U.url&&window.open(U.url)},k=U=>{a==null||a(U)},N=U=>{if(l)return l(U,n);const H=U.status==="uploading";if(n.startsWith("picture")){const K=n==="picture"?u.createElement(Aa,null):s.uploading,X=d!=null&&d(U)?u.createElement(KT,null):u.createElement(xT,null);return H?K:X}return H?u.createElement(Aa,null):u.createElement(m8,null)},M=(U,H,K,X,Z)=>{const se={type:"text",size:"small",title:X,onClick:ie=>{var me,ue;H(),u.isValidElement(U)&&((ue=(me=U.props).onClick)===null||ue===void 0||ue.call(me,ie))},className:`${K}-list-item-action`,disabled:Z?w:!1};return u.isValidElement(U)?u.createElement(Dt,Object.assign({},se,{icon:Ur(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):u.createElement(Dt,Object.assign({},se),u.createElement("span",null,U))};u.useImperativeHandle(t,()=>({handlePreview:P,handleDownload:I}));const{getPrefixCls:j}=u.useContext(bt),A=j("upload",c),D=j(),L=ae(`${A}-list`,`${A}-list-${n}`),z=u.useMemo(()=>In(j5(D),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[D]),q=Object.assign(Object.assign({},E?{}:z),{motionDeadline:2e3,motionName:`${A}-${E?"animate-inline":"animate"}`,keys:Ne(f.map(U=>({key:U.uid,file:U}))),motionAppear:R});return u.createElement("div",{className:L},u.createElement(u2,Object.assign({},q,{component:!1}),U=>{let{key:H,file:K,className:X,style:Z}=U;return u.createElement(wX,{key:H,locale:s,prefixCls:A,className:X,style:Z,file:K,items:f,progress:C,listType:n,isImgUrl:d,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:h,removeIcon:g,previewIcon:b,downloadIcon:y,extra:v,iconRender:N,actionIconRender:M,itemRender:x,onPreview:P,onDownload:I,onClose:k})}),O&&u.createElement(sr,Object.assign({},q,{visible:$,forceRender:!0}),U=>{let{className:H,style:K}=U;return Ur(O,X=>({className:ae(X.className,H),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:H?"none":void 0}),X.style)}))}))},$X=u.forwardRef(EX);var RX=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{d(r.next(c))}catch(f){a(f)}}function l(c){try{d(r.throw(c))}catch(f){a(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,l)}d((r=r.apply(e,[])).next())})};const Ql=`__LIST_IGNORE_${Date.now()}__`,OX=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:d,onDrop:c,previewFile:f,disabled:p,locale:m,iconRender:h,isImageUrl:g,progress:b,prefixCls:y,className:v,type:C="select",children:O,style:$,itemRender:x,maxCount:w,data:T={},multiple:R=!1,hasControlInside:S=!0,action:E="",accept:P="",supportServerRender:I=!0,rootClassName:k}=e,N=u.useContext(Yo),M=p??N,[j,A]=nn(r||[],{value:n,postState:he=>he??[]}),[D,L]=u.useState("drop"),z=u.useRef(null),q=u.useRef(null);u.useMemo(()=>{const he=Date.now();(n||[]).forEach((Q,ee)=>{!Q.uid&&!Object.isFrozen(Q)&&(Q.uid=`__AUTO__${he}_${ee}__`)})},[n]);const U=(he,Q,ee)=>{let ne=Ne(Q),xe=!1;w===1?ne=ne.slice(-1):w&&(xe=ne.length>w,ne=ne.slice(0,w)),fo.flushSync(()=>{A(ne)});const Re={file:he,fileList:ne};ee&&(Re.event=ee),(!xe||he.status==="removed"||ne.some(De=>De.uid===he.uid))&&fo.flushSync(()=>{d==null||d(Re)})},H=(he,Q)=>RX(void 0,void 0,void 0,function*(){const{beforeUpload:ee,transformFile:ne}=e;let xe=he;if(ee){const Re=yield ee(he,Q);if(Re===!1)return!1;if(delete he[Ql],Re===Ql)return Object.defineProperty(he,Ql,{value:!0,configurable:!0}),!1;typeof Re=="object"&&Re&&(xe=Re)}return ne&&(xe=yield ne(xe)),xe}),K=he=>{const Q=he.filter(xe=>!xe.file[Ql]);if(!Q.length)return;const ee=Q.map(xe=>gd(xe.file));let ne=Ne(j);ee.forEach(xe=>{ne=vd(xe,ne)}),ee.forEach((xe,Re)=>{let De=xe;if(Q[Re].parsedFile)xe.status="uploading";else{const{originFileObj:Qe}=xe;let rt;try{rt=new File([Qe],Qe.name,{type:Qe.type})}catch{rt=new Blob([Qe],{type:Qe.type}),rt.name=Qe.name,rt.lastModifiedDate=new Date,rt.lastModified=new Date().getTime()}rt.uid=xe.uid,De=rt}U(De,ne)})},X=(he,Q,ee)=>{try{typeof he=="string"&&(he=JSON.parse(he))}catch{}if(!pm(Q,j))return;const ne=gd(Q);ne.status="done",ne.percent=100,ne.response=he,ne.xhr=ee;const xe=vd(ne,j);U(ne,xe)},Z=(he,Q)=>{if(!pm(Q,j))return;const ee=gd(Q);ee.status="uploading",ee.percent=he.percent;const ne=vd(ee,j);U(ee,ne,he)},se=(he,Q,ee)=>{if(!pm(ee,j))return;const ne=gd(ee);ne.error=he,ne.response=Q,ne.status="error";const xe=vd(ne,j);U(ne,xe)},ie=he=>{let Q;Promise.resolve(typeof o=="function"?o(he):o).then(ee=>{var ne;if(ee===!1)return;const xe=bX(he,j);xe&&(Q=Object.assign(Object.assign({},he),{status:"removed"}),j==null||j.forEach(Re=>{const De=Q.uid!==void 0?"uid":"name";Re[De]===Q[De]&&!Object.isFrozen(Re)&&(Re.status="removed")}),(ne=z.current)===null||ne===void 0||ne.abort(Q),U(Q,xe))})},me=he=>{L(he.type),he.type==="drop"&&(c==null||c(he))};u.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:X,onProgress:Z,onError:se,fileList:j,upload:z.current,nativeElement:q.current}));const{getPrefixCls:ue,direction:re,upload:ce}=u.useContext(bt),fe=ue("upload",y),de=Object.assign(Object.assign({onBatchStart:K,onError:se,onProgress:Z,onSuccess:X},e),{data:T,multiple:R,action:E,accept:P,supportServerRender:I,prefixCls:fe,disabled:M,beforeUpload:H,onChange:void 0,hasControlInside:S});delete de.className,delete de.style,(!O||M)&&delete de.id;const ve=`${fe}-wrapper`,[ye,Se,Pe]=yX(fe,ve),[Ie]=ei("Upload",gi.Upload),{showRemoveIcon:$e,showPreviewIcon:Fe,showDownloadIcon:Ee,removeIcon:ke,previewIcon:Be,downloadIcon:je,extra:We}=typeof i=="boolean"?{}:i,Ye=typeof $e>"u"?!M:$e,Xe=(he,Q)=>i?u.createElement($X,{prefixCls:fe,listType:a,items:j,previewFile:f,onPreview:s,onDownload:l,onRemove:ie,showRemoveIcon:Ye,showPreviewIcon:Fe,showDownloadIcon:Ee,removeIcon:ke,previewIcon:Be,downloadIcon:je,iconRender:h,extra:We,locale:Object.assign(Object.assign({},Ie),m),isImageUrl:g,progress:b,appendAction:he,appendActionVisible:Q,itemRender:x,disabled:M}):he,it=ae(ve,v,k,Se,Pe,ce==null?void 0:ce.className,{[`${fe}-rtl`]:re==="rtl",[`${fe}-picture-card-wrapper`]:a==="picture-card",[`${fe}-picture-circle-wrapper`]:a==="picture-circle"}),et=Object.assign(Object.assign({},ce==null?void 0:ce.style),$);if(C==="drag"){const he=ae(Se,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:j.some(Q=>Q.status==="uploading"),[`${fe}-drag-hover`]:D==="dragover",[`${fe}-disabled`]:M,[`${fe}-rtl`]:re==="rtl"});return ye(u.createElement("span",{className:it,ref:q},u.createElement("div",{className:he,style:et,onDrop:me,onDragOver:me,onDragLeave:me},u.createElement(T1,Object.assign({},de,{ref:z,className:`${fe}-btn`}),u.createElement("div",{className:`${fe}-drag-container`},O))),Xe()))}const ct=ae(fe,`${fe}-select`,{[`${fe}-disabled`]:M,[`${fe}-hidden`]:!O}),He=u.createElement("div",{className:ct},u.createElement(T1,Object.assign({},de,{ref:z})));return ye(a==="picture-card"||a==="picture-circle"?u.createElement("span",{className:it,ref:q},Xe(He,!!O)):u.createElement("span",{className:it,ref:q},He,Xe()))},Y7=u.forwardRef(OX);var PX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IX=u.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=PX(e,["style","height","hasControlInside"]);return u.createElement(Y7,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Di=Y7;Di.Dragger=IX;Di.LIST_IGNORE=Ql;function ta(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:o}=V.useContext(_r.ConfigContext);return{theme:o,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}const $c=V.createContext(null);function $C(e){const{getDropContainer:t,className:n,prefixCls:r,children:o}=e,{disabled:i}=V.useContext($c),[a,s]=V.useState(),[l,d]=V.useState(null);if(V.useEffect(()=>{const p=t==null?void 0:t();a!==p&&s(p)},[t]),V.useEffect(()=>{if(a){const p=()=>{d(!0)},m=b=>{b.preventDefault()},h=b=>{b.relatedTarget||d(!1)},g=b=>{d(!1),b.preventDefault()};return document.addEventListener("dragenter",p),document.addEventListener("dragover",m),document.addEventListener("dragleave",h),document.addEventListener("drop",g),()=>{document.removeEventListener("dragenter",p),document.removeEventListener("dragover",m),document.removeEventListener("dragleave",h),document.removeEventListener("drop",g)}}},[!!a]),!(t&&a&&!i))return null;const f=`${r}-drop-area`;return fo.createPortal(V.createElement("div",{className:ae(f,n,{[`${f}-on-body`]:a.tagName==="BODY"}),style:{display:l?"block":"none"}},o),a)}function TX(e,t){const{children:n,upload:r,rootClassName:o}=e,i=V.useRef(null);return V.useImperativeHandle(t,()=>i.current),V.createElement(Di,we({},r,{showUploadList:!1,rootClassName:o,ref:i}),n)}const Q7=V.forwardRef(TX),_X=Nu(Or.defaultAlgorithm),kX={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Z7=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let a={...r,override:o};return a=H0(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:d,...c}=l;let f=c;d&&(f=Z7({...a,...c},{override:c},d)),a[s]=f}),a};function MX(){const{token:e,hashed:t,theme:n=_X,override:r,cssVar:o}=V.useContext(Or._internalContext),[i,a,s]=F8(n,[Or.defaultSeed,e],{salt:`${k_}-${t||""}`,override:r,getComputedToken:Z7,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:s2,ignore:l5,preserve:kX}});return[n,s,t?a:"",i,o]}const{genStyleHooks:bp}=s5({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ta();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,o]=MX();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=ta();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),AX=e=>{const{componentCls:t,antCls:n,calc:r}=e,o=`${t}-list-card`,i=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[o]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${o}-name,${o}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${o}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${o}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:r(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:r(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${o}-icon`]:{fontSize:r(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:r(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${o}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${o}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:i,height:i,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${o}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",objectFit:"cover",borderRadius:"inherit"}},[`${o}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${o}-status-error`]:{[`img, ${o}-img-mask`]:{borderRadius:r(e.borderRadius).sub(e.lineWidth).equal()},[`${o}-desc`]:{paddingInline:e.paddingXXS}},[`${o}-progress`]:{}},[`${o}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${o}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${o}-desc`]:{color:e.colorError}},"&-motion":{transition:["opacity","width","margin","padding"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:r(e.paddingSM).mul(-1).equal()}}}}},_1={"&, *":{boxSizing:"border-box"}},NX=e=>{const{componentCls:t,calc:n,antCls:r}=e,o=`${t}-drop-area`,i=`${t}-placeholder`;return{[o]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,..._1,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,..._1,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},jX=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",..._1,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(o).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:o,height:o,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},FX=e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new Mt(t).setA(.85).toRgbString()}},J7=bp("Attachments",e=>{const t=Pt(e,{});return[NX(t),jX(t),AX(t)]},FX),LX=e=>e.indexOf("image/")===0,yd=200;function DX(e){return new Promise(t=>{if(!e||!e.type||!LX(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:o}=n,i=r/o,a=i>1?yd:yd*i,s=i>1?yd/i:yd,l=document.createElement("canvas");l.width=a,l.height=s,l.style.cssText=`position: fixed; left: 0; top: 0; width: ${a}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(l),l.getContext("2d").drawImage(n,0,0,a,s);const c=l.toDataURL();document.body.removeChild(l),window.URL.revokeObjectURL(n.src),t(c)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function BX(){return V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},V.createElement("title",null,"audio"),V.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},V.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})))}function zX(e){const{percent:t}=e,{token:n}=Or.useToken();return V.createElement(B2,{type:"circle",percent:t,size:n.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:r=>V.createElement("span",{style:{color:"#FFF"}},(r||0).toFixed(0),"%")})}function HX(){return V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},V.createElement("title",null,"video"),V.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},V.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})))}const hm=" ",k1="#8c8c8c",e9=["png","jpg","jpeg","gif","bmp","webp","svg"],VX=[{icon:V.createElement(tT,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:V.createElement(oT,null),color:k1,ext:e9},{icon:V.createElement(sT,null),color:k1,ext:["md","mdx"]},{icon:V.createElement(cT,null),color:"#ff4d4f",ext:["pdf"]},{icon:V.createElement(pT,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:V.createElement(ET,null),color:"#1677ff",ext:["doc","docx"]},{icon:V.createElement(OT,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:V.createElement(HX,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:V.createElement(BX,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function RC(e,t){return t.some(n=>e.toLowerCase()===`.${n}`)}function UX(e){let t=e;const n=["B","KB","MB","GB","TB","PB","EB"];let r=0;for(;t>=1024&&r<n.length-1;)t/=1024,r++;return`${t.toFixed(0)} ${n[r]}`}function WX(e,t){const{prefixCls:n,item:r,onRemove:o,className:i,style:a,imageProps:s}=e,l=V.useContext($c),{disabled:d}=l||{},{name:c,size:f,percent:p,status:m="done",description:h}=r,{getPrefixCls:g}=ta(),b=g("attachment",n),y=`${b}-list-card`,[v,C,O]=J7(b),[$,x]=V.useMemo(()=>{const M=c||"",j=M.match(/^(.*)\.[^.]+$/);return j?[j[1],M.slice(j[1].length)]:[M,""]},[c]),w=V.useMemo(()=>RC(x,e9),[x]),T=V.useMemo(()=>h||(m==="uploading"?`${p||0}%`:m==="error"?r.response||hm:f?UX(f):hm),[m,p]),[R,S]=V.useMemo(()=>{for(const{ext:M,icon:j,color:A}of VX)if(RC(x,M))return[j,A];return[V.createElement(gT,{key:"defaultIcon"}),k1]},[x]),[E,P]=V.useState();V.useEffect(()=>{if(r.originFileObj){let M=!0;return DX(r.originFileObj).then(j=>{M&&P(j)}),()=>{M=!1}}P(void 0)},[r.originFileObj]);let I=null;const k=r.thumbUrl||r.url||E,N=w&&(r.originFileObj||k);return N?I=V.createElement(V.Fragment,null,k&&V.createElement(Vu,we({alt:"preview",src:k},s)),m!=="done"&&V.createElement("div",{className:`${y}-img-mask`},m==="uploading"&&p!==void 0&&V.createElement(zX,{percent:p,prefixCls:y}),m==="error"&&V.createElement("div",{className:`${y}-desc`},V.createElement("div",{className:`${y}-ellipsis-prefix`},T)))):I=V.createElement(V.Fragment,null,V.createElement("div",{className:`${y}-icon`,style:{color:S}},R),V.createElement("div",{className:`${y}-content`},V.createElement("div",{className:`${y}-name`},V.createElement("div",{className:`${y}-ellipsis-prefix`},$??hm),V.createElement("div",{className:`${y}-ellipsis-suffix`},x)),V.createElement("div",{className:`${y}-desc`},V.createElement("div",{className:`${y}-ellipsis-prefix`},T)))),v(V.createElement("div",{className:ae(y,{[`${y}-status-${m}`]:m,[`${y}-type-preview`]:N,[`${y}-type-overview`]:!N},i,C,O),style:a,ref:t},I,!d&&o&&V.createElement("button",{type:"button",className:`${y}-remove`,onClick:()=>{o(r)}},V.createElement(aa,null))))}const t9=V.forwardRef(WX),OC=1;function KX(e){const{prefixCls:t,items:n,onRemove:r,overflow:o,upload:i,listClassName:a,listStyle:s,itemClassName:l,itemStyle:d,imageProps:c}=e,f=`${t}-list`,p=V.useRef(null),[m,h]=V.useState(!1),{disabled:g}=V.useContext($c);V.useEffect(()=>(h(!0),()=>{h(!1)}),[]);const[b,y]=V.useState(!1),[v,C]=V.useState(!1),O=()=>{const T=p.current;T&&(o==="scrollX"?(y(Math.abs(T.scrollLeft)>=OC),C(T.scrollWidth-T.clientWidth-Math.abs(T.scrollLeft)>=OC)):o==="scrollY"&&(y(T.scrollTop!==0),C(T.scrollHeight-T.clientHeight!==T.scrollTop)))};V.useEffect(()=>{O()},[o,n.length]);const $=T=>{const R=p.current;R&&R.scrollTo({left:R.scrollLeft+T*R.clientWidth,behavior:"smooth"})},x=()=>{$(-1)},w=()=>{$(1)};return V.createElement("div",{className:ae(f,{[`${f}-overflow-${e.overflow}`]:o,[`${f}-overflow-ping-start`]:b,[`${f}-overflow-ping-end`]:v},a),ref:p,onScroll:O,style:s},V.createElement(u2,{keys:n.map(T=>({key:T.uid,item:T})),motionName:`${f}-card-motion`,component:!1,motionAppear:m,motionLeave:!0,motionEnter:!0},({key:T,item:R,className:S,style:E})=>V.createElement(t9,{key:T,prefixCls:t,item:R,onRemove:r,className:ae(S,l),imageProps:c,style:{...E,...d}})),!g&&V.createElement(Q7,{upload:i},V.createElement(Dt,{className:`${f}-upload-btn`,type:"dashed"},V.createElement(g8,{className:`${f}-upload-btn-icon`}))),o==="scrollX"&&V.createElement(V.Fragment,null,V.createElement(Dt,{size:"small",shape:"circle",className:`${f}-prev-btn`,icon:V.createElement(Tu,null),onClick:x}),V.createElement(Dt,{size:"small",shape:"circle",className:`${f}-next-btn`,icon:V.createElement(di,null),onClick:w})))}function qX(e,t){const{prefixCls:n,placeholder:r={},upload:o,className:i,style:a}=e,s=`${n}-placeholder`,l=r||{},{disabled:d}=V.useContext($c),[c,f]=V.useState(!1),p=()=>{f(!0)},m=b=>{b.currentTarget.contains(b.relatedTarget)||f(!1)},h=()=>{f(!1)},g=V.isValidElement(r)?r:V.createElement(F2,{align:"center",justify:"center",vertical:!0,className:`${s}-inner`},V.createElement(lo.Text,{className:`${s}-icon`},l.icon),V.createElement(lo.Title,{className:`${s}-title`,level:5},l.title),V.createElement(lo.Text,{className:`${s}-description`,type:"secondary"},l.description));return V.createElement("div",{className:ae(s,{[`${s}-drag-in`]:c,[`${s}-disabled`]:d},i),onDragEnter:p,onDragLeave:m,onDrop:h,"aria-hidden":d,style:a},V.createElement(Di.Dragger,we({showUploadList:!1},o,{ref:t,style:{padding:0,border:0,background:"transparent"}}),g))}const GX=V.forwardRef(qX);function XX(e,t){const{prefixCls:n,rootClassName:r,rootStyle:o,className:i,style:a,items:s,children:l,getDropContainer:d,placeholder:c,onChange:f,onRemove:p,overflow:m,imageProps:h,disabled:g,classNames:b={},styles:y={},...v}=e,{getPrefixCls:C,direction:O}=ta(),$=C("attachment",n),x=N0("attachments"),{classNames:w,styles:T}=x,R=V.useRef(null),S=V.useRef(null);V.useImperativeHandle(t,()=>({nativeElement:R.current,upload:q=>{var H,K;const U=(K=(H=S.current)==null?void 0:H.nativeElement)==null?void 0:K.querySelector('input[type="file"]');if(U){const X=new DataTransfer;X.items.add(q),U.files=X.files,U.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[E,P,I]=J7($),k=ae(P,I),[N,M]=nn([],{value:s}),j=Gt(q=>{M(q.fileList),f==null||f(q)}),A={...v,fileList:N,onChange:j},D=q=>Promise.resolve(typeof p=="function"?p(q):p).then(U=>{if(U===!1)return;const H=N.filter(K=>K.uid!==q.uid);j({file:{...q,status:"removed"},fileList:H})});let L;const z=(q,U,H)=>{const K=typeof c=="function"?c(q):c;return V.createElement(GX,{placeholder:K,upload:A,prefixCls:$,className:ae(w.placeholder,b.placeholder),style:{...T.placeholder,...y.placeholder,...U==null?void 0:U.style},ref:H})};if(l)L=V.createElement(V.Fragment,null,V.createElement(Q7,{upload:A,rootClassName:r,ref:S},l),V.createElement($C,{getDropContainer:d,prefixCls:$,className:ae(k,r)},z("drop")));else{const q=N.length>0;L=V.createElement("div",{className:ae($,k,{[`${$}-rtl`]:O==="rtl"},i,r),style:{...o,...a},dir:O||"ltr",ref:R},V.createElement(KX,{prefixCls:$,items:N,onRemove:D,overflow:m,upload:A,listClassName:ae(w.list,b.list),listStyle:{...T.list,...y.list,...!q&&{display:"none"}},itemClassName:ae(w.item,b.item),itemStyle:{...T.item,...y.item},imageProps:h}),z("inline",q?{style:{display:"none"}}:{},S),V.createElement($C,{getDropContainer:d||(()=>R.current),prefixCls:$,className:k},z("drop")))}return E(V.createElement($c.Provider,{value:{disabled:g}},L))}const n9=V.forwardRef(XX);n9.FileCard=t9;function YX(e,t){return u.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}})})}const r9=u.createContext({}),PC=()=>({height:0}),IC=e=>({height:e.scrollHeight});function QX(e){const{title:t,onOpenChange:n,open:r,children:o,className:i,style:a,classNames:s={},styles:l={},closable:d,forceRender:c}=e,{prefixCls:f}=u.useContext(r9),p=`${f}-header`;return u.createElement(sr,{motionEnter:!0,motionLeave:!0,motionName:`${p}-motion`,leavedClassName:`${p}-motion-hidden`,onEnterStart:PC,onEnterActive:IC,onLeaveStart:IC,onLeaveActive:PC,visible:r,forceRender:c},({className:m,style:h})=>u.createElement("div",{className:ae(p,m,i),style:{...h,...a}},(d!==!1||t)&&u.createElement("div",{className:ae(`${p}-header`,s.header),style:{...l.header}},u.createElement("div",{className:`${p}-title`},t),d!==!1&&u.createElement("div",{className:`${p}-close`},u.createElement(Dt,{type:"text",icon:u.createElement(Jo,null),size:"small",onClick:()=>{n==null||n(!r)}}))),o&&u.createElement("div",{className:ae(`${p}-content`,s.content),style:{...l.content}},o)))}const Cp=u.createContext(null);function ZX(e,t){const{className:n,action:r,onClick:o,...i}=e,a=u.useContext(Cp),{prefixCls:s,disabled:l}=a,d=i.disabled??l??a[`${r}Disabled`];return u.createElement(Dt,we({type:"text"},i,{ref:t,onClick:c=>{var f;d||((f=a[r])==null||f.call(a),o==null||o(c))},className:ae(s,n,{[`${s}-disabled`]:d})}))}const xp=u.forwardRef(ZX);function JX(e,t){return u.createElement(xp,we({icon:u.createElement(p8,null)},e,{action:"onClear",ref:t}))}const eY=u.forwardRef(JX),tY=u.memo(e=>{const{className:t}=e;return V.createElement("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",className:t},V.createElement("title",null,"Stop Loading"),V.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),V.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),V.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},V.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function nY(e,t){const{prefixCls:n}=u.useContext(Cp),{className:r}=e;return u.createElement(xp,we({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:ae(r,`${n}-loading-button`),action:"onCancel",ref:t}),u.createElement(tY,{className:`${n}-loading-icon`}))}const o9=u.forwardRef(nY);function rY(e,t){return u.createElement(xp,we({icon:u.createElement(qP,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const i9=u.forwardRef(rY),Ll=1e3,Dl=4,Jd=140,TC=Jd/2,bd=250,_C=500,Cd=.8;function oY({className:e}){return V.createElement("svg",{color:"currentColor",viewBox:`0 0 ${Ll} ${Ll}`,xmlns:"http://www.w3.org/2000/svg",className:e},V.createElement("title",null,"Speech Recording"),Array.from({length:Dl}).map((t,n)=>{const r=(Ll-Jd*Dl)/(Dl-1),o=n*(r+Jd),i=Ll/2-bd/2,a=Ll/2-_C/2;return V.createElement("rect",{fill:"currentColor",rx:TC,ry:TC,height:bd,width:Jd,x:o,y:i,key:n},V.createElement("animate",{attributeName:"height",values:`${bd}; ${_C}; ${bd}`,keyTimes:"0; 0.5; 1",dur:`${Cd}s`,begin:`${Cd/Dl*n}s`,repeatCount:"indefinite"}),V.createElement("animate",{attributeName:"y",values:`${i}; ${a}; ${i}`,keyTimes:"0; 0.5; 1",dur:`${Cd}s`,begin:`${Cd/Dl*n}s`,repeatCount:"indefinite"}))}))}function iY(e,t){const{speechRecording:n,onSpeechDisabled:r,prefixCls:o}=u.useContext(Cp);let i=null;return n?i=u.createElement(oY,{className:`${o}-recording-icon`}):r?i=u.createElement(YP,null):i=u.createElement(f8,null),u.createElement(xp,we({icon:i,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const a9=u.forwardRef(iY),aY=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",borderRadius:{_skip_check_:!0,value:n(e.borderRadius).mul(2).equal()},borderEndStartRadius:0,borderEndEndRadius:0,[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(o=>`${o} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},sY=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:o,paddingXXS:i,lineWidth:a,lineWidthBold:s,calc:l}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:l(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:a},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:o,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:r,paddingBlockEnd:r,paddingBlockStart:i,boxSizing:"border-box"}}}},lY=()=>({}),uY=bp("Sender",e=>{const{paddingXS:t,calc:n}=e,r=Pt(e,{SenderContentMaxWidth:`calc(100% - ${be(n(t).add(32).equal())})`});return[sY(r),aY(r)]},lY);let e0;!e0&&typeof window<"u"&&(e0=window.SpeechRecognition||window.webkitSpeechRecognition);function cY(e,t){const n=Gt(e),[r,o,i]=V.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[a,s]=V.useState(null);V.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let g=null;return navigator.permissions.query({name:"microphone"}).then(b=>{s(b.state),b.onchange=function(){s(this.state)},g=b}),()=>{g&&(g.onchange=null)}}},[]);const l=e0&&a!=="denied",d=V.useRef(null),[c,f]=nn(!1,{value:r}),p=V.useRef(!1),m=()=>{if(l&&!d.current){const g=new e0;g.onstart=()=>{f(!0)},g.onend=()=>{f(!1)},g.onresult=b=>{var y,v,C;if(!p.current){const O=(C=(v=(y=b.results)==null?void 0:y[0])==null?void 0:v[0])==null?void 0:C.transcript;n(O)}p.current=!1},d.current=g}},h=Gt(g=>{g&&!c||(p.current=g,i?o==null||o(!c):(m(),d.current&&(c?(d.current.stop(),o==null||o(!1)):(d.current.start(),o==null||o(!0)))))});return[l,h,c]}function dY(e,t,n){return So(e,t)||n}const kC={SendButton:i9,ClearButton:eY,LoadingButton:o9,SpeechButton:a9},fY=V.forwardRef((e,t)=>{const{prefixCls:n,styles:r={},classNames:o={},className:i,rootClassName:a,style:s,defaultValue:l,value:d,readOnly:c,submitType:f="enter",onSubmit:p,loading:m,components:h,onCancel:g,onChange:b,actions:y,onKeyPress:v,onKeyDown:C,disabled:O,allowSpeech:$,prefix:x,footer:w,header:T,onPaste:R,onPasteFile:S,autoSize:E={maxRows:8},...P}=e,{direction:I,getPrefixCls:k}=ta(),N=k("sender",n),M=V.useRef(null),j=V.useRef(null);YX(t,()=>{var je,We;return{nativeElement:M.current,focus:(je=j.current)==null?void 0:je.focus,blur:(We=j.current)==null?void 0:We.blur}});const A=N0("sender"),D=`${N}-input`,[L,z,q]=uY(N),U=ae(N,A.className,i,a,z,q,{[`${N}-rtl`]:I==="rtl",[`${N}-disabled`]:O}),H=`${N}-actions-btn`,K=`${N}-actions-list`,[X,Z]=nn(l||"",{value:d}),se=(je,We)=>{Z(je),b&&b(je,We)},[ie,me,ue]=cY(je=>{se(`${X} ${je}`)},$),re=dY(h,["input"],yl.TextArea),fe={...lr(P,{attr:!0,aria:!0,data:!0}),ref:j},de=()=>{X&&p&&!m&&p(X)},ve=()=>{se("")},ye=V.useRef(!1),Se=()=>{ye.current=!0},Pe=()=>{ye.current=!1},Ie=je=>{const We=je.key==="Enter"&&!ye.current;switch(f){case"enter":We&&!je.shiftKey&&(je.preventDefault(),de());break;case"shiftEnter":We&&je.shiftKey&&(je.preventDefault(),de());break}v==null||v(je)},$e=je=>{var Ye;const We=(Ye=je.clipboardData)==null?void 0:Ye.files;We!=null&&We.length&&S&&(S(We[0],We),je.preventDefault()),R==null||R(je)},Fe=je=>{var We,Ye;je.target!==((We=M.current)==null?void 0:We.querySelector(`.${D}`))&&je.preventDefault(),(Ye=j.current)==null||Ye.focus()};let Ee=V.createElement(F2,{className:`${K}-presets`},$&&V.createElement(a9,null),m?V.createElement(o9,null):V.createElement(i9,null));typeof y=="function"?Ee=y(Ee,{components:kC}):(y||y===!1)&&(Ee=y);const ke={prefixCls:H,onSend:de,onSendDisabled:!X,onClear:ve,onClearDisabled:!X,onCancel:g,onCancelDisabled:!m,onSpeech:()=>me(!1),onSpeechDisabled:!ie,speechRecording:ue,disabled:O},Be=typeof w=="function"?w({components:kC}):w||null;return L(V.createElement("div",{ref:M,className:U,style:{...A.style,...s}},T&&V.createElement(r9.Provider,{value:{prefixCls:N}},T),V.createElement(Cp.Provider,{value:ke},V.createElement("div",{className:`${N}-content`,onMouseDown:Fe},x&&V.createElement("div",{className:ae(`${N}-prefix`,A.classNames.prefix,o.prefix),style:{...A.styles.prefix,...r.prefix}},x),V.createElement(re,we({},fe,{disabled:O,style:{...A.styles.input,...r.input},className:ae(D,A.classNames.input,o.input),autoSize:E,value:X,onChange:je=>{se(je.target.value,je),me(!0)},onPressEnter:Ie,onCompositionStart:Se,onCompositionEnd:Pe,onKeyDown:C,onPaste:$e,variant:"borderless",readOnly:c})),Ee&&V.createElement("div",{className:ae(K,A.classNames.actions,o.actions),style:{...A.styles.actions,...r.actions}},Ee)),Be&&V.createElement("div",{className:ae(`${N}-footer`,A.classNames.footer,o.footer),style:{...A.styles.footer,...r.footer}},Be))))}),M1=fY;M1.Header=QX;function xd(e){return typeof e=="string"}const pY=(e,t,n,r)=>{const o=u.useRef(""),[i,a]=u.useState(1),s=t&&xd(e);return Ut(()=>{!s&&xd(e)?a(e.length):xd(e)&&xd(o.current)&&e.indexOf(o.current)!==0&&a(1),o.current=e},[e]),u.useEffect(()=>{if(s&&i<e.length){const d=setTimeout(()=>{a(c=>c+n)},r);return()=>{clearTimeout(d)}}},[i,t,e]),[s?e.slice(0,i):e,s&&i<e.length]};function hY(e){return u.useMemo(()=>{if(!e)return[!1,0,0,null];let t={step:1,interval:50,suffix:null};return typeof e=="object"&&(t={...t,...e}),[!0,t.step,t.interval,t.suffix]},[e])}const mY=({prefixCls:e})=>V.createElement("span",{className:`${e}-dot`},V.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),V.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),V.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),gY=e=>{const{componentCls:t,paddingSM:n,padding:r}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${be(n)} ${be(r)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},vY=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:o,padding:i,calc:a}=e,s=a(n).mul(r).div(2).add(o).equal(),l=`${t}-content`;return{[t]:{[l]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:a(i).mul(1.25).equal()}},[`&-start ${l}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${l}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},yY=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`}}}},bY=new Ot("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),CY=new Ot("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),xY=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:o,colorText:i,calc:a}=e;return{[t]:{display:"flex",columnGap:o,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:CY,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:r,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:o},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:a(o).mul(2).add(a(r).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${be(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:bY,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},SY=()=>({}),s9=bp("Bubble",e=>{const t=Pt(e,{});return[xY(t),yY(t),gY(t),vY(t)]},SY),l9=V.createContext({}),wY=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,classNames:a={},styles:s={},avatar:l,placement:d="start",loading:c=!1,loadingRender:f,typing:p,content:m="",messageRender:h,variant:g="filled",shape:b,onTypingComplete:y,header:v,footer:C,...O}=e,{onUpdate:$}=V.useContext(l9),x=V.useRef(null);V.useImperativeHandle(t,()=>({nativeElement:x.current}));const{direction:w,getPrefixCls:T}=ta(),R=T("bubble",n),S=N0("bubble"),[E,P,I,k]=hY(p),[N,M]=pY(m,E,P,I);V.useEffect(()=>{$==null||$()},[N]);const j=V.useRef(!1);V.useEffect(()=>{!M&&!c?j.current||(j.current=!0,y==null||y()):j.current=!1},[M,c]);const[A,D,L]=s9(R),z=ae(R,o,S.className,r,D,L,`${R}-${d}`,{[`${R}-rtl`]:w==="rtl",[`${R}-typing`]:M&&!c&&!h&&!k}),q=V.useMemo(()=>V.isValidElement(l)?l:V.createElement(Uf,l),[l]),U=V.useMemo(()=>h?h(N):N,[N,h]);let H;c?H=f?f():V.createElement(mY,{prefixCls:R}):H=V.createElement(V.Fragment,null,U,M&&k);let K=V.createElement("div",{style:{...S.styles.content,...s.content},className:ae(`${R}-content`,`${R}-content-${g}`,b&&`${R}-content-${b}`,S.classNames.content,a.content)},H);return(v||C)&&(K=V.createElement("div",{className:`${R}-content-wrapper`},v&&V.createElement("div",{className:ae(`${R}-header`,S.classNames.header,a.header),style:{...S.styles.header,...s.header}},v),K,C&&V.createElement("div",{className:ae(`${R}-footer`,S.classNames.footer,a.footer),style:{...S.styles.footer,...s.footer}},typeof C=="function"?C(U):C))),A(V.createElement("div",we({style:{...S.style,...i},className:z},O,{ref:x}),l&&V.createElement("div",{style:{...S.styles.avatar,...s.avatar},className:ae(`${R}-avatar`,S.classNames.avatar,a.avatar)},q),K))},W2=V.forwardRef(wY);function EY(e,t){const n=u.useCallback((r,o)=>typeof t=="function"?t(r,o):t?t[r.role]||{}:{},[t]);return u.useMemo(()=>(e||[]).map((r,o)=>{const i=r.key??`preset_${o}`;return{...n(r,o),...r,key:i}}),[e,n])}const $Y=({_key:e,...t},n)=>u.createElement(W2,we({},t,{ref:r=>{var o;r?n.current[e]=r:(o=n.current)==null||delete o[e]}})),RY=u.memo(u.forwardRef($Y)),OY=1,PY=(e,t)=>{const{prefixCls:n,rootClassName:r,className:o,items:i,autoScroll:a=!0,roles:s,...l}=e,d=lr(l,{attr:!0,aria:!0}),c=u.useRef(null),f=u.useRef({}),{getPrefixCls:p}=ta(),m=p("bubble",n),h=`${m}-list`,[g,b,y]=s9(m),[v,C]=u.useState(!1);u.useEffect(()=>(C(!0),()=>{C(!1)}),[]);const O=EY(i,s),[$,x]=u.useState(!0),[w,T]=u.useState(0),R=P=>{const I=P.target;x(I.scrollHeight-Math.abs(I.scrollTop)-I.clientHeight<=OY)};u.useEffect(()=>{a&&c.current&&$&&c.current.scrollTo({top:c.current.scrollHeight})},[w]),u.useEffect(()=>{var P;if(a){const I=(P=O[O.length-2])==null?void 0:P.key,k=f.current[I];if(k){const{nativeElement:N}=k,{top:M,bottom:j}=N.getBoundingClientRect(),{top:A,bottom:D}=c.current.getBoundingClientRect();M<D&&j>A&&(T(z=>z+1),x(!0))}}},[O.length]),u.useImperativeHandle(t,()=>({nativeElement:c.current,scrollTo:({key:P,offset:I,behavior:k="smooth",block:N})=>{if(typeof I=="number")c.current.scrollTo({top:I,behavior:k});else if(P!==void 0){const M=f.current[P];if(M){const j=O.findIndex(A=>A.key===P);x(j===O.length-1),M.nativeElement.scrollIntoView({behavior:k,block:N})}}}}));const S=Gt(()=>{a&&T(P=>P+1)}),E=u.useMemo(()=>({onUpdate:S}),[]);return g(u.createElement(l9.Provider,{value:E},u.createElement("div",we({},d,{className:ae(h,r,o,b,y,{[`${h}-reach-end`]:$}),ref:c,onScroll:R}),O.map(({key:P,...I})=>u.createElement(RY,we({},I,{key:P,_key:P,ref:f,typing:v?I.typing:!1}))))))},IY=u.forwardRef(PY);W2.List=IY;const TY=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}},_Y=()=>({}),kY=bp("Suggestion",e=>{const t=Pt(e,{});return TY(t)},_Y);function MY(e,t,n,r,o){const[i,a]=V.useState([]),s=(m,h=i)=>{let g=e;for(let b=0;b<m-1;b+=1){const y=h[b],v=g.find(C=>C.value===y);if(!v)break;g=v.children||[]}return g},l=m=>m.map((h,g)=>{const y=s(g+1,m).find(v=>v.value===h);return y==null?void 0:y.value}),d=m=>{const h=i.length||1,g=s(h),b=g.findIndex(C=>C.value===i[h-1]),y=g.length,v=g[(b+m+y)%y];a([...i.slice(0,h-1),v.value])},c=()=>{i.length>1&&a(i.slice(0,i.length-1))},f=()=>{const m=s(i.length+1);m.length&&a([...i,m[0].value])},p=Gt(m=>{if(t)switch(m.key){case"ArrowDown":d(1),m.preventDefault();break;case"ArrowUp":d(-1),m.preventDefault();break;case"ArrowRight":n?c():f(),m.preventDefault();break;case"ArrowLeft":n?f():c(),m.preventDefault();break;case"Enter":s(i.length+1).length||r(l(i)),m.preventDefault();break;case"Escape":o(),m.preventDefault();break}});return V.useEffect(()=>{t&&a([e[0].value])},[t]),[i,p]}function AY(e){const{prefixCls:t,className:n,rootClassName:r,style:o,children:i,open:a,onOpenChange:s,items:l,onSelect:d,block:c}=e,{direction:f,getPrefixCls:p}=ta(),m=p("suggestion",t),h=`${m}-item`,g=f==="rtl",b=N0("suggestion"),[y,v,C]=kY(m),[O,$]=nn(!1,{value:a}),[x,w]=u.useState(),T=j=>{$(j),s==null||s(j)},R=Gt(j=>{j===!1?T(!1):(w(j),T(!0))}),S=()=>{T(!1)},E=V.useMemo(()=>typeof l=="function"?l(x):l,[l,x]),P=j=>V.createElement(F2,{className:h},j.icon&&V.createElement("div",{className:`${h}-icon`},j.icon),j.label,j.extra&&V.createElement("div",{className:`${h}-extra`},j.extra)),I=j=>{d&&d(j[j.length-1]),T(!1)},[k,N]=MY(E,O,g,I,S),M=i==null?void 0:i({onTrigger:R,onKeyDown:N});return y(V.createElement(vl,{options:E,open:O,value:k,placement:g?"topRight":"topLeft",onDropdownVisibleChange:j=>{j||S()},optionRender:P,rootClassName:ae(r,m,v,C,{[`${m}-block`]:c}),onChange:I,dropdownMatchSelectWidth:c},V.createElement("div",{className:ae(m,b.className,r,n,`${m}-wrapper`,v,C),style:{...b.style,...o}},M)))}const NY=`
|
|
335
|
+
|
|
336
|
+
`,jY=`
|
|
337
|
+
`,MC=":",A1=e=>(e??"").trim()!=="";function FY(){let e="";return new TransformStream({transform(t,n){e+=t;const r=e.split(NY);r.slice(0,-1).forEach(o=>{A1(o)&&n.enqueue(o)}),e=r[r.length-1]},flush(t){A1(e)&&t.enqueue(e)}})}function LY(){return new TransformStream({transform(e,t){const r=e.split(jY).reduce((o,i)=>{const a=i.indexOf(MC);if(a===-1)throw new Error(`The key-value separator "${MC}" is not found in the sse line chunk!`);const s=i.slice(0,a);if(!A1(s))return o;const l=i.slice(a+1);return{...o,[s]:l}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function AC(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,o=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(FY()).pipeThrough(LY());return o[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:a,value:s}=await i.read();if(a)break;s&&(yield s)}},o}const DY=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...o}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,o];typeof r.onRequest=="function"&&(i=await r.onRequest(...i));let a=await n(...i);if(typeof r.onResponse=="function"){const s=await r.onResponse(a);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");a=s}if(!a.ok)throw new Error(`Fetch failed with status ${a.status}`);if(!a.body)throw new Error("The response body is empty.");return a};class K2{constructor(t){Zr(this,"baseURL");Zr(this,"model");Zr(this,"defaultHeaders");Zr(this,"customOptions");Zr(this,"create",async(t,n,r)=>{var a,s;const o=new AbortController,i={method:"POST",body:JSON.stringify({model:this.model,...t}),headers:this.defaultHeaders,signal:o.signal};(a=n==null?void 0:n.onStream)==null||a.call(n,o);try{const l=await DY(this.baseURL,{fetch:this.customOptions.fetch,...i});if(r){await this.customResponseHandler(l,n,r);return}const d=l.headers.get("content-type")||"";switch(d.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(l,n);break;case"application/json":await this.jsonResponseHandler(l,n);break;default:throw new Error(`The response content-type: ${d} is not support!`)}}catch(l){const d=l instanceof Error?l:new Error("Unknown error!");throw(s=n==null?void 0:n.onError)==null||s.call(n,d),d}});Zr(this,"customResponseHandler",async(t,n,r)=>{var i,a;const o=[];for await(const s of AC({readableStream:t.body,transformStream:r}))o.push(s),(i=n==null?void 0:n.onUpdate)==null||i.call(n,s);(a=n==null?void 0:n.onSuccess)==null||a.call(n,o)});Zr(this,"sseResponseHandler",async(t,n)=>{var i,a;const r=[],o=AC({readableStream:t.body});for await(const s of o)r.push(s),(i=n==null?void 0:n.onUpdate)==null||i.call(n,s);(a=n==null?void 0:n.onSuccess)==null||a.call(n,r)});Zr(this,"jsonResponseHandler",async(t,n)=>{var o,i;const r=await t.json();(o=n==null?void 0:n.onUpdate)==null||o.call(n,r),(i=n==null?void 0:n.onSuccess)==null||i.call(n,[r])});const{baseURL:n,model:r,dangerouslyApiKey:o,...i}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=i}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");return new K2(t)}}const BY=K2.init;let NC=0;class zY{constructor(t){Zr(this,"config");Zr(this,"requestingMap",{});Zr(this,"request",(t,n,r)=>{const{request:o}=this.config,{onUpdate:i,onSuccess:a,onError:s,onStream:l}=n,d=NC;NC+=1,this.requestingMap[d]=!0,o==null||o(t,{onStream:c=>{this.requestingMap[d]&&(l==null||l(c))},onUpdate:c=>{this.requestingMap[d]&&i(c)},onSuccess:c=>{this.requestingMap[d]&&(a(c),this.finishRequest(d))},onError:c=>{this.requestingMap[d]&&(s(c),this.finishRequest(d))}},r)});this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function HY(e){const{request:t,...n}=e;return V.useMemo(()=>[new zY({request:t||BY({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).create,...n})],[e==null?void 0:e.baseURL,e==null?void 0:e.dangerouslyApiKey,e==null?void 0:e.model])}const Sd={bizName:"sns",scene:"chatbox_img"};function VY(e){if(!e)throw new Error("agentSimulatorInfo is not set");return`${e.agentServerUrl}/send-message`}function UY(e,t){if(!e)throw new Error("agentSimulatorInfo is not set");return`${e.agentServerUrl}/query-tasks${t?`/${t}`:""}`}const{useToken:WY}=Or,{Paragraph:jC,Text:FC}=lo;function KY({error:e}){const{token:t}=WY();return B.jsx("div",{style:{padding:"20px",minHeight:"100vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:t.colorBgContainer},children:B.jsx(vp,{status:"error",title:"智能体模拟器加载失败",subTitle:"请检查以下错误信息,然后重试",extra:[B.jsx(Dt,{type:"primary",icon:B.jsx(v8,{}),onClick:()=>window.location.reload(),children:"重试"},"reload")],children:B.jsxs("div",{className:"desc",children:[B.jsx(jC,{children:B.jsx(FC,{strong:!0,style:{fontSize:16,color:t.colorText},children:"发生了以下错误:"})}),e&&B.jsxs(jC,{children:[B.jsx(mI,{style:{color:t.colorError,marginRight:8}}),B.jsx(FC,{code:!0,style:{color:t.colorTextSecondary},children:(e==null?void 0:e.message)||`${e}`||"错误信息为空"})]})]})})})}class qY extends V.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error:",t,n)}render(){return this.state.hasError?B.jsx(KY,{error:this.state.error}):this.props.children}}function GY(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function XY(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var YY=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(XY(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=GY(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),nr="-ms-",t0="-moz-",Yt="-webkit-",u9="comm",q2="rule",G2="decl",QY="@import",c9="@keyframes",ZY="@layer",JY=Math.abs,Sp=String.fromCharCode,eQ=Object.assign;function tQ(e,t){return Yn(e,0)^45?(((t<<2^Yn(e,0))<<2^Yn(e,1))<<2^Yn(e,2))<<2^Yn(e,3):0}function d9(e){return e.trim()}function nQ(e,t){return(e=t.exec(e))?e[0]:e}function Qt(e,t,n){return e.replace(t,n)}function N1(e,t){return e.indexOf(t)}function Yn(e,t){return e.charCodeAt(t)|0}function qu(e,t,n){return e.slice(t,n)}function zo(e){return e.length}function X2(e){return e.length}function wd(e,t){return t.push(e),e}function rQ(e,t){return e.map(t).join("")}var wp=1,ol=1,f9=0,Pr=0,kn=0,bl="";function Ep(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:wp,column:ol,length:a,return:""}}function Bl(e,t){return eQ(Ep("",null,null,"",null,null,0),e,{length:-e.length},t)}function oQ(){return kn}function iQ(){return kn=Pr>0?Yn(bl,--Pr):0,ol--,kn===10&&(ol=1,wp--),kn}function Hr(){return kn=Pr<f9?Yn(bl,Pr++):0,ol++,kn===10&&(ol=1,wp++),kn}function Xo(){return Yn(bl,Pr)}function ef(){return Pr}function Rc(e,t){return qu(bl,e,t)}function Gu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function p9(e){return wp=ol=1,f9=zo(bl=e),Pr=0,[]}function h9(e){return bl="",e}function tf(e){return d9(Rc(Pr-1,j1(e===91?e+2:e===40?e+1:e)))}function aQ(e){for(;(kn=Xo())&&kn<33;)Hr();return Gu(e)>2||Gu(kn)>3?"":" "}function sQ(e,t){for(;--t&&Hr()&&!(kn<48||kn>102||kn>57&&kn<65||kn>70&&kn<97););return Rc(e,ef()+(t<6&&Xo()==32&&Hr()==32))}function j1(e){for(;Hr();)switch(kn){case e:return Pr;case 34:case 39:e!==34&&e!==39&&j1(kn);break;case 40:e===41&&j1(e);break;case 92:Hr();break}return Pr}function lQ(e,t){for(;Hr()&&e+kn!==57;)if(e+kn===84&&Xo()===47)break;return"/*"+Rc(t,Pr-1)+"*"+Sp(e===47?e:Hr())}function uQ(e){for(;!Gu(Xo());)Hr();return Rc(e,Pr)}function cQ(e){return h9(nf("",null,null,null,[""],e=p9(e),0,[0],e))}function nf(e,t,n,r,o,i,a,s,l){for(var d=0,c=0,f=a,p=0,m=0,h=0,g=1,b=1,y=1,v=0,C="",O=o,$=i,x=r,w=C;b;)switch(h=v,v=Hr()){case 40:if(h!=108&&Yn(w,f-1)==58){N1(w+=Qt(tf(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:w+=tf(v);break;case 9:case 10:case 13:case 32:w+=aQ(h);break;case 92:w+=sQ(ef()-1,7);continue;case 47:switch(Xo()){case 42:case 47:wd(dQ(lQ(Hr(),ef()),t,n),l);break;default:w+="/"}break;case 123*g:s[d++]=zo(w)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:y==-1&&(w=Qt(w,/\f/g,"")),m>0&&zo(w)-f&&wd(m>32?DC(w+";",r,n,f-1):DC(Qt(w," ","")+";",r,n,f-2),l);break;case 59:w+=";";default:if(wd(x=LC(w,t,n,d,c,o,s,C,O=[],$=[],f),i),v===123)if(c===0)nf(w,t,x,x,O,i,f,s,$);else switch(p===99&&Yn(w,3)===110?100:p){case 100:case 108:case 109:case 115:nf(e,x,x,r&&wd(LC(e,x,x,0,0,o,s,C,o,O=[],f),$),o,$,f,s,r?O:$);break;default:nf(w,x,x,x,[""],$,0,s,$)}}d=c=m=0,g=y=1,C=w="",f=a;break;case 58:f=1+zo(w),m=h;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&iQ()==125)continue}switch(w+=Sp(v),v*g){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[d++]=(zo(w)-1)*y,y=1;break;case 64:Xo()===45&&(w+=tf(Hr())),p=Xo(),c=f=zo(C=w+=uQ(ef())),v++;break;case 45:h===45&&zo(w)==2&&(g=0)}}return i}function LC(e,t,n,r,o,i,a,s,l,d,c){for(var f=o-1,p=o===0?i:[""],m=X2(p),h=0,g=0,b=0;h<r;++h)for(var y=0,v=qu(e,f+1,f=JY(g=a[h])),C=e;y<m;++y)(C=d9(g>0?p[y]+" "+v:Qt(v,/&\f/g,p[y])))&&(l[b++]=C);return Ep(e,t,n,o===0?q2:s,l,d,c)}function dQ(e,t,n){return Ep(e,t,n,u9,Sp(oQ()),qu(e,2,-2),0)}function DC(e,t,n,r){return Ep(e,t,n,G2,qu(e,0,r),qu(e,r+1,-1),r)}function As(e,t){for(var n="",r=X2(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fQ(e,t,n,r){switch(e.type){case ZY:if(e.children.length)break;case QY:case G2:return e.return=e.return||e.value;case u9:return"";case c9:return e.return=e.value+"{"+As(e.children,r)+"}";case q2:e.value=e.props.join(",")}return zo(n=As(e.children,r))?e.return=e.value+"{"+n+"}":""}function pQ(e){var t=X2(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function hQ(e){return function(t){t.root||(t=t.return)&&e(t)}}var BC=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function mQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var gQ=function(t,n,r){for(var o=0,i=0;o=i,i=Xo(),o===38&&i===12&&(n[r]=1),!Gu(i);)Hr();return Rc(t,Pr)},vQ=function(t,n){var r=-1,o=44;do switch(Gu(o)){case 0:o===38&&Xo()===12&&(n[r]=1),t[r]+=gQ(Pr-1,n,r);break;case 2:t[r]+=tf(o);break;case 4:if(o===44){t[++r]=Xo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Sp(o)}while(o=Hr());return t},yQ=function(t,n){return h9(vQ(p9(t),n))},zC=new WeakMap,bQ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!zC.get(r))&&!o){zC.set(t,!0);for(var i=[],a=yQ(n,i),s=r.props,l=0,d=0;l<a.length;l++)for(var c=0;c<s.length;c++,d++)t.props[d]=i[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},CQ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function m9(e,t){switch(tQ(e,t)){case 5103:return Yt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+e+t0+e+nr+e+e;case 6828:case 4268:return Yt+e+nr+e+e;case 6165:return Yt+e+nr+"flex-"+e+e;case 5187:return Yt+e+Qt(e,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+nr+"flex-$1$2")+e;case 5443:return Yt+e+nr+"flex-item-"+Qt(e,/flex-|-self/,"")+e;case 4675:return Yt+e+nr+"flex-line-pack"+Qt(e,/align-content|flex-|-self/,"")+e;case 5548:return Yt+e+nr+Qt(e,"shrink","negative")+e;case 5292:return Yt+e+nr+Qt(e,"basis","preferred-size")+e;case 6060:return Yt+"box-"+Qt(e,"-grow","")+Yt+e+nr+Qt(e,"grow","positive")+e;case 4554:return Yt+Qt(e,/([^-])(transform)/g,"$1"+Yt+"$2")+e;case 6187:return Qt(Qt(Qt(e,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),e,"")+e;case 5495:case 3959:return Qt(e,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Qt(Qt(e,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+nr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+e+e;case 4095:case 3583:case 4068:case 2532:return Qt(e,/(.+)-inline(.+)/,Yt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zo(e)-1-t>6)switch(Yn(e,t+1)){case 109:if(Yn(e,t+4)!==45)break;case 102:return Qt(e,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+t0+(Yn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~N1(e,"stretch")?m9(Qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yn(e,t+1)!==115)break;case 6444:switch(Yn(e,zo(e)-3-(~N1(e,"!important")&&10))){case 107:return Qt(e,":",":"+Yt)+e;case 101:return Qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(Yn(e,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+nr+"$2box$3")+e}break;case 5936:switch(Yn(e,t+11)){case 114:return Yt+e+nr+Qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yt+e+nr+Qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yt+e+nr+Qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yt+e+nr+e+e}return e}var xQ=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case G2:t.return=m9(t.value,t.length);break;case c9:return As([Bl(t,{value:Qt(t.value,"@","@"+Yt)})],o);case q2:if(t.length)return rQ(t.props,function(i){switch(nQ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return As([Bl(t,{props:[Qt(i,/:(read-\w+)/,":"+t0+"$1")]})],o);case"::placeholder":return As([Bl(t,{props:[Qt(i,/:(plac\w+)/,":"+Yt+"input-$1")]}),Bl(t,{props:[Qt(i,/:(plac\w+)/,":"+t0+"$1")]}),Bl(t,{props:[Qt(i,/:(plac\w+)/,nr+"input-$1")]})],o)}return""})}},SQ=[xQ],g9=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||SQ,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(g)});var l,d=[bQ,CQ];{var c,f=[fQ,hQ(function(g){c.insert(g)})],p=pQ(d.concat(o,f)),m=function(b){return As(cQ(b),p)};l=function(b,y,v,C){c=v,m(b?b+"{"+y.styles+"}":y.styles),C&&(h.inserted[y.name]=!0)}}var h={key:n,sheet:new YY({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h};function wQ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var EQ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$Q=/[A-Z]|^ms/g,RQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v9=function(t){return t.charCodeAt(1)===45},HC=function(t){return t!=null&&typeof t!="boolean"},mm=mQ(function(e){return v9(e)?e:e.replace($Q,"-$&").toLowerCase()}),VC=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(RQ,function(r,o,i){return Ho={name:o,styles:i,next:Ho},o})}return EQ[t]!==1&&!v9(t)&&typeof n=="number"&&n!==0?n+"px":n};function Xu(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ho={name:o.name,styles:o.styles,next:Ho},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Ho={name:a.name,styles:a.styles,next:Ho},a=a.next;var s=i.styles+";";return s}return OQ(e,t,n)}case"function":{if(e!==void 0){var l=Ho,d=n(e);return Ho=l,Xu(e,t,d)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function OQ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Xu(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":HC(s)&&(r+=mm(i)+":"+VC(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)HC(a[l])&&(r+=mm(i)+":"+VC(i,a[l])+";");else{var d=Xu(e,t,a);switch(i){case"animation":case"animationName":{r+=mm(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var UC=/label:\s*([^\s;{]+)\s*(;|$)/g,Ho;function Yi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ho=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Xu(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Xu(n,t,e[s]),r){var l=i;o+=l[s]}UC.lastIndex=0;for(var d="",c;(c=UC.exec(o))!==null;)d+="-"+c[1];var f=wQ(o)+d;return{name:f,styles:o,next:Ho}}var PQ=!0;function $p(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Y2=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||PQ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Q2=function(t,n,r){Y2(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function WC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function KC(e,t,n){var r=[],o=$p(e,r,n);return r.length<2?n:o+t(r)}var Z2=function(t){var n=g9(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var l=arguments.length,d=new Array(l),c=0;c<l;c++)d[c]=arguments[c];var f=Yi(d,n.registered,void 0);return Q2(n,f,!1),n.key+"-"+f.name},o=function(){for(var l=arguments.length,d=new Array(l),c=0;c<l;c++)d[c]=arguments[c];var f=Yi(d,n.registered),p="animation-"+f.name;return WC(n,{name:f.name,styles:"@keyframes "+p+"{"+f.styles+"}"}),p},i=function(){for(var l=arguments.length,d=new Array(l),c=0;c<l;c++)d[c]=arguments[c];var f=Yi(d,n.registered);WC(n,f)},a=function(){for(var l=arguments.length,d=new Array(l),c=0;c<l;c++)d[c]=arguments[c];return KC(n.registered,r,IQ(d))};return{css:r,cx:a,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:$p.bind(null,n.registered),merge:KC.bind(null,n.registered,r)}},IQ=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},ti=Z2({key:"css"});ti.flush;ti.hydrate;ti.cx;ti.merge;ti.getRegisteredStyles;ti.injectGlobal;ti.keyframes;ti.css;ti.sheet;var TQ=ti.cache,_Q=function(){function e(){xn(this,e),J(this,"_cacheList",[TQ])}return Sn(e,[{key:"add",value:function(n){var r=this.getCache(n.key);return r||(this._cacheList.push(n),n)}},{key:"delete",value:function(n){this._cacheList=this._cacheList.filter(function(r){return r.key!==n.key})}},{key:"hasCache",value:function(n){return this._cacheList.some(function(r){return r.key===n.key})}},{key:"getCache",value:function(n){return this._cacheList.find(function(r){return r.key===n})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e}(),qC=typeof document<"u",y9=function(t,n){return"".concat(t,"-").concat(n)},kQ=function(t,n,r,o){var i=o.hashPriority;Y2(t,n,r);var a=".".concat(y9(t.key,n.name)),s=i==="low"?":where(".concat(a,")"):a;if(t.inserted[n.name]===void 0){var l="",d=n;do{var c=t.insert(n===d?s:"",d,t.sheet,!0);!qC&&c!==void 0&&(l+=c),d=d.next}while(d!==void 0);if(!qC&&l.length!==0)return l}},J2=function(t){return nt(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},MQ=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!==null){var i=void 0;switch(nt(o)){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},AQ=function(t,n,r){var o=[],i=$p(t,o,r);return o.length<2?r:i+n(o)},NQ=function(t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=Yi(o,t.registered,void 0);return kQ(t,a,!1,n),y9(t.key,a.name)}},jQ=function(t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.map(function(s){return J2(s)?n(s):s});return AQ(t.registered,n,MQ(a))}},b9=function(t,n){var r=NQ(t,{hashPriority:n.hashPriority||"high",label:n.label}),o=jQ(t,r);return{css:r,cx:o}},Oc=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yi(n)},FQ="acss",LQ=function(t){return u.createContext(t)},C9={exports:{}},on={};/** @license React v16.13.1
|
|
338
|
+
* react-is.production.min.js
|
|
339
|
+
*
|
|
340
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the MIT license found in the
|
|
343
|
+
* LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/var qn=typeof Symbol=="function"&&Symbol.for,ey=qn?Symbol.for("react.element"):60103,ty=qn?Symbol.for("react.portal"):60106,Rp=qn?Symbol.for("react.fragment"):60107,Op=qn?Symbol.for("react.strict_mode"):60108,Pp=qn?Symbol.for("react.profiler"):60114,Ip=qn?Symbol.for("react.provider"):60109,Tp=qn?Symbol.for("react.context"):60110,ny=qn?Symbol.for("react.async_mode"):60111,_p=qn?Symbol.for("react.concurrent_mode"):60111,kp=qn?Symbol.for("react.forward_ref"):60112,Mp=qn?Symbol.for("react.suspense"):60113,DQ=qn?Symbol.for("react.suspense_list"):60120,Ap=qn?Symbol.for("react.memo"):60115,Np=qn?Symbol.for("react.lazy"):60116,BQ=qn?Symbol.for("react.block"):60121,zQ=qn?Symbol.for("react.fundamental"):60117,HQ=qn?Symbol.for("react.responder"):60118,VQ=qn?Symbol.for("react.scope"):60119;function Qr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ey:switch(e=e.type,e){case ny:case _p:case Rp:case Pp:case Op:case Mp:return e;default:switch(e=e&&e.$$typeof,e){case Tp:case kp:case Np:case Ap:case Ip:return e;default:return t}}case ty:return t}}}function x9(e){return Qr(e)===_p}on.AsyncMode=ny;on.ConcurrentMode=_p;on.ContextConsumer=Tp;on.ContextProvider=Ip;on.Element=ey;on.ForwardRef=kp;on.Fragment=Rp;on.Lazy=Np;on.Memo=Ap;on.Portal=ty;on.Profiler=Pp;on.StrictMode=Op;on.Suspense=Mp;on.isAsyncMode=function(e){return x9(e)||Qr(e)===ny};on.isConcurrentMode=x9;on.isContextConsumer=function(e){return Qr(e)===Tp};on.isContextProvider=function(e){return Qr(e)===Ip};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ey};on.isForwardRef=function(e){return Qr(e)===kp};on.isFragment=function(e){return Qr(e)===Rp};on.isLazy=function(e){return Qr(e)===Np};on.isMemo=function(e){return Qr(e)===Ap};on.isPortal=function(e){return Qr(e)===ty};on.isProfiler=function(e){return Qr(e)===Pp};on.isStrictMode=function(e){return Qr(e)===Op};on.isSuspense=function(e){return Qr(e)===Mp};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Rp||e===_p||e===Pp||e===Op||e===Mp||e===DQ||typeof e=="object"&&e!==null&&(e.$$typeof===Np||e.$$typeof===Ap||e.$$typeof===Ip||e.$$typeof===Tp||e.$$typeof===kp||e.$$typeof===zQ||e.$$typeof===HQ||e.$$typeof===VQ||e.$$typeof===BQ)};on.typeOf=Qr;C9.exports=on;var UQ=C9.exports,S9=UQ,WQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w9={};w9[S9.ForwardRef]=WQ;w9[S9.Memo]=KQ;var qQ=function(t){return t()},E9=Fs.useInsertionEffect?Fs.useInsertionEffect:!1,GQ=E9||qQ,GC=E9||u.useLayoutEffect,$9=u.createContext(typeof HTMLElement<"u"?g9({key:"css"}):null);$9.Provider;var R9=function(t){return u.forwardRef(function(n,r){var o=u.useContext($9);return t(n,o,r)})},Yu=u.createContext({}),XQ=function(t,n){if(typeof n=="function"){var r=n(t);return r}return we({},t,n)},YQ=BC(function(e){return BC(function(t){return XQ(e,t)})}),QQ=function(t){var n=u.useContext(Yu);return t.theme!==n&&(n=YQ(n)(t.theme)),u.createElement(Yu.Provider,{value:n},t.children)},ry={}.hasOwnProperty,F1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ZQ=function(t,n){var r={};for(var o in n)ry.call(n,o)&&(r[o]=n[o]);return r[F1]=t,r},JQ=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Y2(n,r,o),GQ(function(){return Q2(n,r,o)}),null},eZ=R9(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[F1],i=[r],a="";typeof e.className=="string"?a=$p(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Yi(i,void 0,u.useContext(Yu));a+=t.key+"-"+s.name;var l={};for(var d in e)ry.call(e,d)&&d!=="css"&&d!==F1&&(l[d]=e[d]);return l.className=a,n&&(l.ref=n),u.createElement(u.Fragment,null,u.createElement(JQ,{cache:t,serialized:s,isStringTag:typeof o=="string"}),u.createElement(o,l))}),tZ=eZ,XC=function(t,n){var r=arguments;if(n==null||!ry.call(n,"css"))return u.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=tZ,i[1]=ZQ(t,n);for(var a=2;a<o;a++)i[a]=r[a];return u.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(XC||(XC={}));var nZ=R9(function(e,t){var n=e.styles,r=Yi([n],void 0,u.useContext(Yu)),o=u.useRef();return GC(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),GC(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&Q2(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null}),rZ=function(t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u.memo(function(i){var a=t();return B.jsx(nZ,{styles:Yi(r,void 0,Y(Y({},i),{},{theme:a}))})})}},oZ=function(t){return function(n){var r=t(n);return function(o){var i=r(o),a=i.styles;return a}}},iZ=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],aZ=function(t){return u.memo(function(n){var r=n.children,o=n.prefix,i=n.speedy,a=n.getStyleManager,s=n.container,l=n.nonce,d=n.insertionPoint,c=n.stylisPlugins,f=n.linters,p=gt(n,iZ),m=u.useContext(t),h=o??m.sheet.key,g=s??m.sheet.container,b=i??m.sheet.isSpeedy,y=u.useMemo(function(){var C=!1,O=Z2({speedy:b??C,key:h,container:g,nonce:l,insertionPoint:d,stylisPlugins:c});if(typeof global<"u"){var $=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;$&&(O.cache=$.add(O.cache))}return O},[h,b,g,l,d,c]);u.useEffect(function(){a==null||a(y)},[y]);var v=B.jsx(t.Provider,{value:y,children:r});return Object.keys(p).length||g?B.jsx(mk,Y(Y({linters:f,container:g},p),{},{children:v})):v})},sZ=function(t){var n=t.css,r=t.token;return{buttonDefaultHover:n({backgroundColor:r.colorBgContainer,border:"1px solid ".concat(r.colorBorder),cursor:"pointer",":hover":{color:r.colorPrimaryHover,borderColor:r.colorPrimaryHover},":active":{color:r.colorPrimaryActive,borderColor:r.colorPrimaryActive}})}},lZ=function(t){return Object.fromEntries(Object.entries(t).map(function(n){var r=ge(n,2),o=r[0],i=r[1];return[o,i.styles]}))},oy=function(){var t=Or.useToken(),n=t.token;return n},xs=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},gm,O9=u.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(gm=xs("dark"))!==null&&gm!==void 0&&gm.matches?"dark":"light"}),jp=function(){return u.useContext(O9)},uZ=function(){var t=oy(),n=jp(),r=n.appearance,o=n.isDarkMode;return u.useMemo(function(){return lZ(sZ({token:t,css:Oc}))},[t,r,o])},P9=function(){var t=oy(),n=uZ();return u.useMemo(function(){return Y(Y({},t),{},{stylish:n})},[t,n])},cZ=function(t){return Y(Y({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})},dZ=function(){var t=oy(),n={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return u.useMemo(function(){return cZ(n)},[t])},fZ=function(t,n){return Object.entries(t).map(function(r){var o=ge(r,2),i=o[0],a=o[1],s=a;return J2(a)||(s=Oc(a)),n[i]?"".concat(n[i]," {").concat(s.styles,"}"):""}).join("")},pZ=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],hZ=["prefixCls","iconPrefixCls"],mZ=function(t){var n=t.hashPriority,r=t.useTheme,o=t.EmotionContext;return function(i,a){var s=a==null?void 0:a.__BABEL_FILE_NAME__,l=!!s;return function(d){var c=r(),f=u.useContext(o),p=f.cache,m=b9(p,{hashPriority:(a==null?void 0:a.hashPriority)||n,label:a==null?void 0:a.label}),h=m.cx,g=m.css,b=dZ(),y=u.useMemo(function(){var v;if(i instanceof Function){var C=c.stylish,O=c.appearance,$=c.isDarkMode,x=c.prefixCls,w=c.iconPrefixCls,T=gt(c,pZ),R=function(E){return fZ(E,b)};Object.assign(R,b),v=i({token:T,stylish:C,appearance:O,isDarkMode:$,prefixCls:x,iconPrefixCls:w,cx:h,css:Oc,responsive:R},d)}else v=i;return nt(v)==="object"&&(J2(v)?v=g(v):v=Object.fromEntries(Object.entries(v).map(function(S){var E=ge(S,2),P=E[0],I=E[1],k=l?"".concat(s,"-").concat(P):void 0;return nt(I)==="object"?l?[P,g(I,"label:".concat(k))]:[P,g(I)]:[P,I]}))),v},[d,c]);return u.useMemo(function(){var v=c.prefixCls,C=c.iconPrefixCls,O=gt(c,hZ);return{styles:y,cx:h,theme:O,prefixCls:v,iconPrefixCls:C}},[y,c])}}},YC=function(t){if(t.ThemeProvider)return t.ThemeProvider;var n=t.ThemeContext;return function(r){return B.jsx(n.Provider,{value:r.theme,children:r.children})}},gZ=QQ,I9=Yu,T9=u.memo(function(e){var t=e.children,n=e.theme,r=e.prefixCls,o=e.getStaticInstance,i=e.staticInstanceConfig,a=jp(),s=a.appearance,l=a.isDarkMode,d=mn.useMessage(i==null?void 0:i.message),c=ge(d,2),f=c[0],p=c[1],m=U7.useNotification(i==null?void 0:i.notification),h=ge(m,2),g=h[0],b=h[1],y=Yr.useModal(),v=ge(y,2),C=v[0],O=v[1];u.useEffect(function(){o==null||o({message:f,modal:C,notification:g})},[]);var $=u.useMemo(function(){var x=l?Or.darkAlgorithm:Or.defaultAlgorithm,w=n;if(typeof n=="function"&&(w=n(s)),!w)return{algorithm:x};var T=w.algorithm?w.algorithm instanceof Array?w.algorithm:[w.algorithm]:[];return Y(Y({},w),{},{algorithm:w.algorithm?[x].concat(Ne(T)):x})},[n,l]);return B.jsxs(_r,{prefixCls:r,theme:$,children:[p,b,O,t]})});T9.displayName="AntdProvider";function vZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){d=!0,o=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}function yZ(e,t){return bZ(e)||vZ(e,t)||CZ(e,t)||xZ()}function bZ(e){if(Array.isArray(e))return e}function CZ(e,t){if(e){if(typeof e=="string")return QC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QC(e,t)}}function QC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
345
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZC(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=V.useState(function(){return o!==void 0?o:r!==void 0?typeof r=="function"?r():r:e}),l=yZ(s,2),d=l[0],c=l[1],f=o!==void 0?o:d;a&&(f=a(f));function p(m){c(m),f!==m&&i&&i(m,f)}return[f,p]}var vm=function(t){typeof u.startTransition=="function"?u.startTransition(t):t()},$i,SZ=function(t){var n=t.themeMode,r=t.setAppearance,o=t.setBrowserPrefers,i=function(){vm(function(){xs("dark").matches?r("dark"):r("light")})},a=function(){vm(function(){xs("dark").matches?o("dark"):o("light")})};return u.useLayoutEffect(function(){if(n!=="auto"){vm(function(){r(n)});return}return setTimeout(i,1),$i||($i=xs("dark")),$i.addEventListener("change",i),function(){$i.removeEventListener("change",i)}},[n]),u.useLayoutEffect(function(){return $i||($i=xs("dark")),$i.addEventListener("change",a),function(){$i.removeEventListener("change",a)}},[]),null},_9=u.memo(function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,d=e.useTheme,c=d(),f=c.appearance,p=c.themeMode,m=ZC("light",{value:a,defaultValue:s??p,onChange:function(S){return l==null?void 0:l(S)}}),h=ge(m,2),g=h[0],b=h[1],y=ZC("light",{value:r,defaultValue:o??f,onChange:function(S){return i==null?void 0:i(S)}}),v=ge(y,2),C=v[0],O=v[1],$=u.useState((t=xs("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),x=ge($,2),w=x[0],T=x[1];return B.jsxs(O9.Provider,{value:{themeMode:g,setThemeMode:b,appearance:C,setAppearance:O,isDarkMode:C==="dark",browserPrefers:w},children:[typeof window<"u"&&B.jsx(SZ,{themeMode:g,setAppearance:O,setBrowserPrefers:T}),n]})});_9.displayName="ThemeSwitcher";var wZ=["stylish"],EZ=function(t){var n=t.children,r=t.customToken,o=t.defaultCustomToken,i=t.customStylish,a=t.prefixCls,s=t.StyledThemeProvider,l=jp(),d=l.appearance,c=l.isDarkMode,f=P9(),p=f.stylish,m=gt(f,wZ),h=u.useMemo(function(){return o?o instanceof Function?o({token:m,appearance:d,isDarkMode:c}):o:{}},[o,m,d]),g=u.useMemo(function(){return r instanceof Function?Y(Y({},h),r({token:m,appearance:d,isDarkMode:c})):Y(Y({},h),r)},[h,r,m,d]),b=u.useMemo(function(){return i?i({token:Y(Y({},m),g),stylish:p,appearance:d,isDarkMode:c,css:Oc}):{}},[i,m,g,p,d]),y=u.useMemo(function(){return Y(Y({},b),p)},[b,p]),v=Y(Y(Y(Y({},m),g),{},{stylish:y},l),{},{prefixCls:a});return B.jsx(s,{theme:v,children:n})},$Z=function(t){var n=t.styledConfig?YC(t.styledConfig):void 0,r=t.StyleEngineContext;return u.memo(function(o){var i=o.children,a=o.customToken,s=o.customStylish,l=o.theme,d=o.getStaticInstance,c=o.prefixCls,f=o.staticInstanceConfig,p=o.appearance,m=o.defaultAppearance,h=o.onAppearanceChange,g=o.themeMode,b=o.defaultThemeMode,y=o.onThemeModeChange,v=o.styled,C=u.useContext(r),O=C.prefixCls,$=C.StyledThemeContext,x=C.CustomThemeContext,w=u.useContext(x),T=v?YC(v):n||gZ,R=c||O;return B.jsx(r.Provider,{value:{prefixCls:R,StyledThemeContext:(v==null?void 0:v.ThemeContext)||$||I9,CustomThemeContext:x},children:B.jsx(_9,{themeMode:g,defaultThemeMode:b,onThemeModeChange:y,defaultAppearance:m,appearance:p,onAppearanceChange:h,useTheme:t.useTheme,children:B.jsx(T9,{prefixCls:R,staticInstanceConfig:f,theme:l,getStaticInstance:d,children:B.jsx(EZ,{prefixCls:R,customToken:a,defaultCustomToken:w,customStylish:s,StyledThemeProvider:T,children:i})})})})})},RZ=function(t){return function(){var n=t.StyleEngineContext,r=u.useContext(n),o=r.StyledThemeContext,i=r.CustomThemeContext,a=r.prefixCls,s=P9(),l=jp(),d=u.useContext(i),c=u.useContext(o??I9)||{},f=u.useContext(_r.ConfigContext),p=f.iconPrefixCls,m=f.getPrefixCls,h=m(),g=a&&a!=="ant"?a:h,b=u.useMemo(function(){return Y(Y(Y(Y({},s),l),d),{},{prefixCls:g,iconPrefixCls:p})},[s,l,d,g,p]);return!c||Object.keys(c).length===0?b:Y(Y({},c),{},{prefixCls:g,iconPrefixCls:p})}},k9=new _Q;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=k9);var OZ=function(t){var n,r,o,i=Y(Y({},t),{},{key:(n=t.key)!==null&&n!==void 0?n:"zcss",speedy:(r=t.speedy)!==null&&r!==void 0?r:!1}),a=Z2({key:i.key,speedy:i.speedy,container:i.container}),s=LQ(a),l=aZ(s);a.cache=k9.add(a.cache);var d=u.createContext(i.customToken?i.customToken:{}),c=(o=i.styled)===null||o===void 0?void 0:o.ThemeContext,f=u.createContext({CustomThemeContext:d,StyledThemeContext:c,prefixCls:i==null?void 0:i.prefixCls,iconPrefixCls:i==null?void 0:i.iconPrefixCls}),p=RZ({StyleEngineContext:f}),m=mZ({hashPriority:i.hashPriority,useTheme:p,EmotionContext:s}),h=rZ(p),g=oZ(m),b=$Z({styledConfig:i.styled,StyleEngineContext:f,useTheme:p});b.displayName="AntdStyleThemeProvider";var y=b9(a.cache,{hashPriority:i.hashPriority}),v=y.cx,C=a.injectGlobal,O=a.keyframes;return{createStyles:m,createGlobalStyle:h,createStylish:g,css:Oc,cx:v,keyframes:O,injectGlobal:C,styleManager:a,useTheme:p,StyleProvider:l,ThemeProvider:b}},PZ=OZ({key:FQ,speedy:!1}),za=PZ.createStyles;const IZ=za(({token:e,css:t})=>({thinkingContainer:t`
|
|
346
|
+
border: 1px solid ${e.colorBorder};
|
|
347
|
+
border-radius: 8px;
|
|
348
|
+
overflow: hidden;
|
|
349
|
+
background: ${e.colorBgElevated};
|
|
350
|
+
margin-bottom: 12px;
|
|
351
|
+
width: 100%;
|
|
352
|
+
`,transparentCollapse:t`
|
|
353
|
+
background: transparent;
|
|
354
|
+
border: none;
|
|
355
|
+
`,labelContainer:t`
|
|
356
|
+
display: flex;
|
|
357
|
+
align-items: center;
|
|
358
|
+
gap: 8px;
|
|
359
|
+
font-size: 13px;
|
|
360
|
+
font-weight: 500;
|
|
361
|
+
color: ${e.colorTextSecondary};
|
|
362
|
+
`,contentContainer:t`
|
|
363
|
+
font-size: 12px;
|
|
364
|
+
line-height: 1.6;
|
|
365
|
+
color: ${e.colorTextSecondary};
|
|
366
|
+
`})),TZ=({message:e})=>{const{styles:t}=IZ(),[n,r]=u.useState(0),o=u.useRef(null);u.useEffect(()=>{if(e.isThinking&&e.timestamp){const s=e.timestamp;o.current=setInterval(()=>{const l=(Date.now()-s)/1e3;r(l)},50)}else o.current&&clearInterval(o.current);return()=>{o.current&&clearInterval(o.current)}},[e.isThinking,e.timestamp]);const i=e.isThinking?`思考中... (用时 ${n.toFixed(2)} 秒)`:`已完成思考 (总用时 ${n.toFixed(2)} 秒)`,a=[{key:"1",label:B.jsxs("div",{className:t.labelContainer,children:[B.jsx("span",{children:e.isThinking?"🤔":"✅"}),i]}),children:B.jsx("div",{className:t.contentContainer,children:e.reasoningContent||"..."})}];return B.jsx("div",{className:t.thinkingContainer,children:B.jsx(_j,{items:a,size:"small",defaultActiveKey:["1"],ghost:!0,expandIconPosition:"end",className:t.transparentCollapse})})},_Z=za(({token:e,css:t})=>({block:t`
|
|
367
|
+
border: 1px solid ${e.colorBorderSecondary};
|
|
368
|
+
border-radius: 8px;
|
|
369
|
+
background: ${e.colorBgLayout};
|
|
370
|
+
overflow: hidden;
|
|
371
|
+
`,body:t`
|
|
372
|
+
padding: 12px;
|
|
373
|
+
font-size: 13px;
|
|
374
|
+
`,query:t`
|
|
375
|
+
color: ${e.colorText};
|
|
376
|
+
margin-bottom: 4px;
|
|
377
|
+
`,kbId:t`
|
|
378
|
+
color: ${e.colorTextTertiary};
|
|
379
|
+
font-family: ${e.fontFamilyCode};
|
|
380
|
+
`,param:t`
|
|
381
|
+
margin-top: 4px;
|
|
382
|
+
color: ${e.colorTextTertiary};
|
|
383
|
+
font-family: ${e.fontFamilyCode};
|
|
384
|
+
`,noResult:t`
|
|
385
|
+
color: ${e.colorTextSecondary};
|
|
386
|
+
`})),JC=({query:e,knowledge_base_id:t,score_threshold:n,knowledge_search_mode:r,chunks:o,isResponse:i,reason_msg:a,has_result:s})=>{const[l,d]=u.useState(!0),{styles:c}=_Z(),f=i?"知识库检索结果(检索到 "+((o==null?void 0:o.length)||0)+" 条)":"知识库检索",p=B.jsx(qv,{});return B.jsxs("div",{className:c.block,style:{width:"100%"},children:[B.jsx(i$,{toolName:f,isExpanded:l,onToggleExpand:()=>d(!l),icon:p}),l&&B.jsx("div",{className:c.body,children:i?B.jsx("div",{children:s&&(o!=null&&o.length)?o.map((m,h)=>B.jsx(Ete,{...m},m.id||h)):B.jsx("div",{className:c.noResult,children:a||"未找到相关内容"})}):B.jsxs("div",{children:[B.jsxs("div",{className:c.query,children:['查询: "',e,'"']}),B.jsxs("div",{className:c.kbId,children:["知识库ID: ",t||"N/A"]}),r&&B.jsxs("div",{className:c.param,children:["检索模式: ",r]}),n!==void 0&&B.jsxs("div",{className:c.param,children:["阈值: ",n]})]})})]})},e6=({tool_name:e,tool_args:t,result:n,isResponse:r})=>{const[o,i]=u.useState(!0),a=r?`工具调用结果: ${e}`:`工具调用: ${e}`,s=r?n:t;return B.jsxs("div",{className:"tool-use-block",children:[B.jsx(i$,{toolName:a,isExpanded:o,onToggleExpand:()=>i(!o)}),o&&B.jsx("div",{className:"tool-use-body",children:B.jsx("pre",{children:B.jsx("code",{children:JSON.stringify(s,null,2)})})})]})},t6={};function kZ(e){let t=t6[e];if(t)return t;t=t6[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function il(e,t){typeof t!="string"&&(t=il.defaultChars);const n=kZ(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let i=0,a=r.length;i<a;i+=3){const s=parseInt(r.slice(i+1,i+3),16);if(s<128){o+=n[s];continue}if((s&224)===192&&i+3<a){const l=parseInt(r.slice(i+4,i+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?o+="��":o+=String.fromCharCode(d),i+=3;continue}}if((s&240)===224&&i+6<a){const l=parseInt(r.slice(i+4,i+6),16),d=parseInt(r.slice(i+7,i+9),16);if((l&192)===128&&(d&192)===128){const c=s<<12&61440|l<<6&4032|d&63;c<2048||c>=55296&&c<=57343?o+="���":o+=String.fromCharCode(c),i+=6;continue}}if((s&248)===240&&i+9<a){const l=parseInt(r.slice(i+4,i+6),16),d=parseInt(r.slice(i+7,i+9),16),c=parseInt(r.slice(i+10,i+12),16);if((l&192)===128&&(d&192)===128&&(c&192)===128){let f=s<<18&1835008|l<<12&258048|d<<6&4032|c&63;f<65536||f>1114111?o+="����":(f-=65536,o+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),i+=9;continue}}o+="�"}return o})}il.defaultChars=";/?:@&=+$,#";il.componentChars="";const n6={};function MZ(e){let t=n6[e];if(t)return t;t=n6[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Pc(e,t,n){typeof t!="string"&&(n=t,t=Pc.defaultChars),typeof n>"u"&&(n=!0);const r=MZ(t);let o="";for(let i=0,a=e.length;i<a;i++){const s=e.charCodeAt(i);if(n&&s===37&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){o+=e.slice(i,i+3),i+=2;continue}if(s<128){o+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a){const l=e.charCodeAt(i+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[i])}return o}Pc.defaultChars=";/?:@&=+$,-_.!~*'()#";Pc.componentChars="-_.!~*'()";function iy(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function n0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const AZ=/^([a-z0-9.+-]+:)/i,NZ=/:[0-9]*$/,jZ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,FZ=["<",">",'"',"`"," ","\r",`
|
|
387
|
+
`," "],LZ=["{","}","|","\\","^","`"].concat(FZ),DZ=["'"].concat(LZ),r6=["%","/","?",";","#"].concat(DZ),o6=["/","?","#"],BZ=255,i6=/^[+a-z0-9A-Z_-]{0,63}$/,zZ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,a6={javascript:!0,"javascript:":!0},s6={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ay(e,t){if(e&&e instanceof n0)return e;const n=new n0;return n.parse(e,t),n}n0.prototype.parse=function(e,t){let n,r,o,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const d=jZ.exec(i);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=AZ.exec(i);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,i=i.substr(a.length)),(t||a||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=i.substr(0,2)==="//",o&&!(a&&a6[a])&&(i=i.substr(2),this.slashes=!0)),!a6[a]&&(o||a&&!s6[a])){let d=-1;for(let h=0;h<o6.length;h++)r=i.indexOf(o6[h]),r!==-1&&(d===-1||r<d)&&(d=r);let c,f;d===-1?f=i.lastIndexOf("@"):f=i.lastIndexOf("@",d),f!==-1&&(c=i.slice(0,f),i=i.slice(f+1),this.auth=c),d=-1;for(let h=0;h<r6.length;h++)r=i.indexOf(r6[h]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=i.length),i[d-1]===":"&&d--;const p=i.slice(0,d);i=i.slice(d),this.parseHost(p),this.hostname=this.hostname||"";const m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){const h=this.hostname.split(/\./);for(let g=0,b=h.length;g<b;g++){const y=h[g];if(y&&!y.match(i6)){let v="";for(let C=0,O=y.length;C<O;C++)y.charCodeAt(C)>127?v+="x":v+=y[C];if(!v.match(i6)){const C=h.slice(0,g),O=h.slice(g+1),$=y.match(zZ);$&&(C.push($[1]),O.unshift($[2])),O.length&&(i=O.join(".")+i),this.hostname=C.join(".");break}}}}this.hostname.length>BZ&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));const l=i.indexOf("?");return l!==-1&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),s6[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};n0.prototype.parseHost=function(e){let t=NZ.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const HZ=Object.freeze(Object.defineProperty({__proto__:null,decode:il,encode:Pc,format:iy,parse:ay},Symbol.toStringTag,{value:"Module"})),M9=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,A9=/[\0-\x1F\x7F-\x9F]/,VZ=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,sy=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,N9=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,j9=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,UZ=Object.freeze(Object.defineProperty({__proto__:null,Any:M9,Cc:A9,Cf:VZ,P:sy,S:N9,Z:j9},Symbol.toStringTag,{value:"Module"})),WZ=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),KZ=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var ym;const qZ=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),GZ=(ym=String.fromCodePoint)!==null&&ym!==void 0?ym:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function XZ(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=qZ.get(e))!==null&&t!==void 0?t:e}var Wn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Wn||(Wn={}));const YZ=32;var Bi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Bi||(Bi={}));function L1(e){return e>=Wn.ZERO&&e<=Wn.NINE}function QZ(e){return e>=Wn.UPPER_A&&e<=Wn.UPPER_F||e>=Wn.LOWER_A&&e<=Wn.LOWER_F}function ZZ(e){return e>=Wn.UPPER_A&&e<=Wn.UPPER_Z||e>=Wn.LOWER_A&&e<=Wn.LOWER_Z||L1(e)}function JZ(e){return e===Wn.EQUALS||ZZ(e)}var Vn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Vn||(Vn={}));var Mi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mi||(Mi={}));class eJ{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Vn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mi.Strict}startEntity(t){this.decodeMode=t,this.state=Vn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Vn.EntityStart:return t.charCodeAt(n)===Wn.NUM?(this.state=Vn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Vn.NamedEntity,this.stateNamedEntity(t,n));case Vn.NumericStart:return this.stateNumericStart(t,n);case Vn.NumericDecimal:return this.stateNumericDecimal(t,n);case Vn.NumericHex:return this.stateNumericHex(t,n);case Vn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|YZ)===Wn.LOWER_X?(this.state=Vn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Vn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const i=r-n;this.result=this.result*Math.pow(o,i)+parseInt(t.substr(n,i),o),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(L1(o)||QZ(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(L1(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Wn.SEMI)this.consumed+=1;else if(this.decodeMode===Mi.Strict)return 0;return this.emitCodePoint(XZ(this.result),this.consumed),this.errors&&(t!==Wn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],i=(o&Bi.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=tJ(r,o,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===Mi.Attribute&&(i===0||JZ(a))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],i=(o&Bi.VALUE_LENGTH)>>14,i!==0){if(a===Wn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Mi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Bi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Bi.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Vn.NamedEntity:return this.result!==0&&(this.decodeMode!==Mi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Vn.NumericDecimal:return this.emitNumericEntity(0,2);case Vn.NumericHex:return this.emitNumericEntity(0,3);case Vn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Vn.EntityStart:return 0}}}function F9(e){let t="";const n=new eJ(e,r=>t+=GZ(r));return function(o,i){let a=0,s=0;for(;(s=o.indexOf("&",s))>=0;){t+=o.slice(a,s),n.startEntity(i);const d=n.write(o,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+o.slice(a);return t="",l}}function tJ(e,t,n,r){const o=(t&Bi.BRANCH_LENGTH)>>7,i=t&Bi.JUMP_TABLE;if(o===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=o?-1:e[n+l]-1}let a=n,s=a+o-1;for(;a<=s;){const l=a+s>>>1,d=e[l];if(d<r)a=l+1;else if(d>r)s=l-1;else return e[l+o]}return-1}const nJ=F9(WZ);F9(KZ);function L9(e,t=Mi.Legacy){return nJ(e,t)}function rJ(e){return Object.prototype.toString.call(e)}function ly(e){return rJ(e)==="[object String]"}const oJ=Object.prototype.hasOwnProperty;function iJ(e,t){return oJ.call(e,t)}function Fp(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function D9(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function uy(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function r0(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const B9=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,aJ=/&([a-z#][a-z0-9]{1,31});/gi,sJ=new RegExp(B9.source+"|"+aJ.source,"gi"),lJ=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function uJ(e,t){if(t.charCodeAt(0)===35&&lJ.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return uy(r)?r0(r):e}const n=L9(e);return n!==e?n:e}function cJ(e){return e.indexOf("\\")<0?e:e.replace(B9,"$1")}function al(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(sJ,function(t,n,r){return n||uJ(t,r)})}const dJ=/[&<>"]/,fJ=/[&<>"]/g,pJ={"&":"&","<":"<",">":">",'"':"""};function hJ(e){return pJ[e]}function na(e){return dJ.test(e)?e.replace(fJ,hJ):e}const mJ=/[.?*+^$[\]\\(){}|-]/g;function gJ(e){return e.replace(mJ,"\\$&")}function un(e){switch(e){case 9:case 32:return!0}return!1}function Qu(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Zu(e){return sy.test(e)||N9.test(e)}function Ju(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Lp(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const vJ={mdurl:HZ,ucmicro:UZ},yJ=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:D9,assign:Fp,escapeHtml:na,escapeRE:gJ,fromCodePoint:r0,has:iJ,isMdAsciiPunct:Ju,isPunctChar:Zu,isSpace:un,isString:ly,isValidEntityCode:uy,isWhiteSpace:Qu,lib:vJ,normalizeReference:Lp,unescapeAll:al,unescapeMd:cJ},Symbol.toStringTag,{value:"Module"}));function bJ(e,t,n){let r,o,i,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(i=e.src.charCodeAt(e.pos),i===93&&(r--,r===0)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),i===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let d=-1;return o&&(d=e.pos),e.pos=l,d}function CJ(e,t,n){let r,o=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(r=e.charCodeAt(o),r===10||r===60)return i;if(r===62)return i.pos=o+1,i.str=al(e.slice(t+1,o)),i.ok=!0,i;if(r===92&&o+1<n){o+=2;continue}o++}return i}let a=0;for(;o<n&&(r=e.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(a++,a>32))return i;if(r===41){if(a===0)break;a--}o++}return t===o||a!==0||(i.str=al(e.slice(t,o)),i.pos=o,i.ok=!0),i}function xJ(e,t,n,r){let o,i=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(i>=n)return a;let s=e.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return a;t++,i++,s===40&&(s=41),a.marker=s}for(;i<n;){if(o=e.charCodeAt(i),o===a.marker)return a.pos=i+1,a.str+=al(e.slice(t,i)),a.ok=!0,a;if(o===40&&a.marker===41)return a;o===92&&i+1<n&&i++,i++}return a.can_continue=!0,a.str+=al(e.slice(t,i)),a}const SJ=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:CJ,parseLinkLabel:bJ,parseLinkTitle:xJ},Symbol.toStringTag,{value:"Module"})),ni={};ni.code_inline=function(e,t,n,r,o){const i=e[t];return"<code"+o.renderAttrs(i)+">"+na(i.content)+"</code>"};ni.code_block=function(e,t,n,r,o){const i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+na(e[t].content)+`</code></pre>
|
|
388
|
+
`};ni.fence=function(e,t,n,r,o){const i=e[t],a=i.info?al(i.info).trim():"";let s="",l="";if(a){const c=a.split(/(\s+)/g);s=c[0],l=c.slice(2).join("")}let d;if(n.highlight?d=n.highlight(i.content,s,l)||na(i.content):d=na(i.content),d.indexOf("<pre")===0)return d+`
|
|
389
|
+
`;if(a){const c=i.attrIndex("class"),f=i.attrs?i.attrs.slice():[];c<0?f.push(["class",n.langPrefix+s]):(f[c]=f[c].slice(),f[c][1]+=" "+n.langPrefix+s);const p={attrs:f};return`<pre><code${o.renderAttrs(p)}>${d}</code></pre>
|
|
390
|
+
`}return`<pre><code${o.renderAttrs(i)}>${d}</code></pre>
|
|
391
|
+
`};ni.image=function(e,t,n,r,o){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)};ni.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
392
|
+
`:`<br>
|
|
393
|
+
`};ni.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
394
|
+
`:`<br>
|
|
395
|
+
`:`
|
|
396
|
+
`};ni.text=function(e,t){return na(e[t].content)};ni.html_block=function(e,t){return e[t].content};ni.html_inline=function(e,t){return e[t].content};function Cl(){this.rules=Fp({},ni)}Cl.prototype.renderAttrs=function(t){let n,r,o;if(!t.attrs)return"";for(o="",n=0,r=t.attrs.length;n<r;n++)o+=" "+na(t.attrs[n][0])+'="'+na(t.attrs[n][1])+'"';return o};Cl.prototype.renderToken=function(t,n,r){const o=t[n];let i="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
|
|
397
|
+
`),i+=(o.nesting===-1?"</":"<")+o.tag,i+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(i+=" /");let a=!1;if(o.block&&(a=!0,o.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===o.tag)&&(a=!1)}return i+=a?`>
|
|
398
|
+
`:">",i};Cl.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let i=0,a=e.length;i<a;i++){const s=e[i].type;typeof o[s]<"u"?r+=o[s](e,i,t,n,this):r+=this.renderToken(e,i,t)}return r};Cl.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,i=e.length;o<i;o++)switch(e[o].type){case"text":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":r+=e[o].content;break;case"softbreak":case"hardbreak":r+=`
|
|
399
|
+
`;break}return r};Cl.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let i=0,a=e.length;i<a;i++){const s=e[i].type;s==="inline"?r+=this.renderInline(e[i].children,t,n):typeof o[s]<"u"?r+=o[s](e,i,t,n,this):r+=this.renderToken(e,i,t,n)}return r};function Ir(){this.__rules__=[],this.__cache__=null}Ir.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ir.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Ir.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null};Ir.prototype.before=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Ir.prototype.after=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Ir.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Ir.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};Ir.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Ir.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};Ir.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Ao(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ao.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===t)return r;return-1};Ao.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Ao.prototype.attrSet=function(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o};Ao.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Ao.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function z9(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}z9.prototype.Token=Ao;const wJ=/\r\n?|\n/g,EJ=/\0/g;function $J(e){let t;t=e.src.replace(wJ,`
|
|
400
|
+
`),t=t.replace(EJ,"�"),e.src=t}function RJ(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function OJ(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function PJ(e){return/^<a[>\s]/i.test(e)}function IJ(e){return/^<\/a\s*>/i.test(e)}function TJ(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,i=0;for(let a=o.length-1;a>=0;a--){const s=o[a];if(s.type==="link_close"){for(a--;o[a].level!==s.level&&o[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(PJ(s.content)&&i>0&&i--,IJ(s.content)&&i++),!(i>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let d=e.md.linkify.match(l);const c=[];let f=s.level,p=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let m=0;m<d.length;m++){const h=d[m].url,g=e.md.normalizeLink(h);if(!e.md.validateLink(g))continue;let b=d[m].text;d[m].schema?d[m].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,"");const y=d[m].index;if(y>p){const $=new e.Token("text","",0);$.content=l.slice(p,y),$.level=f,c.push($)}const v=new e.Token("link_open","a",1);v.attrs=[["href",g]],v.level=f++,v.markup="linkify",v.info="auto",c.push(v);const C=new e.Token("text","",0);C.content=b,C.level=f,c.push(C);const O=new e.Token("link_close","a",-1);O.level=--f,O.markup="linkify",O.info="auto",c.push(O),p=d[m].lastIndex}if(p<l.length){const m=new e.Token("text","",0);m.content=l.slice(p),m.level=f,c.push(m)}t[n].children=o=D9(o,a,c)}}}}const H9=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,_J=/\((c|tm|r)\)/i,kJ=/\((c|tm|r)\)/ig,MJ={c:"©",r:"®",tm:"™"};function AJ(e,t){return MJ[t.toLowerCase()]}function NJ(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(kJ,AJ)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function jJ(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&H9.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function FJ(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(_J.test(e.tokens[t].content)&&NJ(e.tokens[t].children),H9.test(e.tokens[t].content)&&jJ(e.tokens[t].children))}const LJ=/['"]/,l6=/['"]/g,u6="’";function Ed(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function DJ(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const i=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,i.type!=="text")continue;let s=i.content,l=0,d=s.length;e:for(;l<d;){l6.lastIndex=l;const c=l6.exec(s);if(!c)break;let f=!0,p=!0;l=c.index+1;const m=c[0]==="'";let h=32;if(c.index-1>=0)h=s.charCodeAt(c.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(l<d)g=s.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}const b=Ju(h)||Zu(String.fromCharCode(h)),y=Ju(g)||Zu(String.fromCharCode(g)),v=Qu(h),C=Qu(g);if(C?f=!1:y&&(v||b||(f=!1)),v?p=!1:b&&(C||y||(p=!1)),g===34&&c[0]==='"'&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=b,p=y),!f&&!p){m&&(i.content=Ed(i.content,c.index,u6));continue}if(p)for(n=r.length-1;n>=0;n--){let O=r[n];if(r[n].level<a)break;if(O.single===m&&r[n].level===a){O=r[n];let $,x;m?($=t.md.options.quotes[2],x=t.md.options.quotes[3]):($=t.md.options.quotes[0],x=t.md.options.quotes[1]),i.content=Ed(i.content,c.index,x),e[O.token].content=Ed(e[O.token].content,O.pos,$),l+=x.length-1,O.token===o&&(l+=$.length-1),s=i.content,d=s.length,r.length=n;continue e}}f?r.push({token:o,pos:c.index,single:m,level:a}):p&&m&&(i.content=Ed(i.content,c.index,u6))}}}function BJ(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!LJ.test(e.tokens[t].content)||DJ(e.tokens[t].children,e)}function zJ(e){let t,n;const r=e.tokens,o=r.length;for(let i=0;i<o;i++){if(r[i].type!=="inline")continue;const a=r[i].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const bm=[["normalize",$J],["block",RJ],["inline",OJ],["linkify",TJ],["replacements",FJ],["smartquotes",BJ],["text_join",zJ]];function cy(){this.ruler=new Ir;for(let e=0;e<bm.length;e++)this.ruler.push(bm[e][0],bm[e][1])}cy.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};cy.prototype.State=z9;function ri(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let i=0,a=0,s=0,l=0,d=o.length,c=!1;a<d;a++){const f=o.charCodeAt(a);if(!c)if(un(f)){s++,f===9?l+=4-l%4:l++;continue}else c=!0;(f===10||a===d-1)&&(f!==10&&a++,this.bMarks.push(i),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),c=!1,s=0,l=0,i=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ri.prototype.push=function(e,t,n){const r=new Ao(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};ri.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};ri.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};ri.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!un(r))break}return t};ri.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!un(this.src.charCodeAt(--t)))return t+1;return t};ri.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};ri.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};ri.prototype.getLines=function(t,n,r,o){if(t>=n)return"";const i=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const d=this.bMarks[s];let c=d,f;for(s+1<n||o?f=this.eMarks[s]+1:f=this.eMarks[s];c<f&&l<r;){const p=this.src.charCodeAt(c);if(un(p))p===9?l+=4-(l+this.bsCount[s])%4:l++;else if(c-d<this.tShift[s])l++;else break;c++}l>r?i[a]=new Array(l-r+1).join(" ")+this.src.slice(c,f):i[a]=this.src.slice(c,f)}return i.join("")};ri.prototype.Token=Ao;const HJ=65536;function Cm(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function c6(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),i=!1,a=0,s="";for(;r<n;)o===124&&(i?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),i=o===92,r++,o=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function VJ(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58||i>=e.eMarks[o])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!un(s)||a===45&&un(s))return!1;for(;i<e.eMarks[o];){const O=e.src.charCodeAt(i);if(O!==124&&O!==45&&O!==58&&!un(O))return!1;i++}let l=Cm(e,t+1),d=l.split("|");const c=[];for(let O=0;O<d.length;O++){const $=d[O].trim();if(!$){if(O===0||O===d.length-1)continue;return!1}if(!/^:?-+:?$/.test($))return!1;$.charCodeAt($.length-1)===58?c.push($.charCodeAt(0)===58?"center":"right"):$.charCodeAt(0)===58?c.push("left"):c.push("")}if(l=Cm(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=c6(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const f=d.length;if(f===0||f!==c.length)return!1;if(r)return!0;const p=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),g=[t,0];h.map=g;const b=e.push("thead_open","thead",1);b.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let O=0;O<d.length;O++){const $=e.push("th_open","th",1);c[O]&&($.attrs=[["style","text-align:"+c[O]]]);const x=e.push("inline","",0);x.content=d[O].trim(),x.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,C=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let O=!1;for(let x=0,w=m.length;x<w;x++)if(m[x](e,o,n,!0)){O=!0;break}if(O||(l=Cm(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(d=c6(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),C+=f-d.length,C>HJ))break;if(o===t+2){const x=e.push("tbody_open","tbody",1);x.map=v=[t+2,0]}const $=e.push("tr_open","tr",1);$.map=[o,o+1];for(let x=0;x<f;x++){const w=e.push("td_open","td",1);c[x]&&(w.attrs=[["style","text-align:"+c[x]]]);const T=e.push("inline","",0);T.content=d[x]?d[x].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=o),e.push("table_close","table",-1),g[1]=o,e.parentType=p,e.line=o,!0}function UJ(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;const i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+`
|
|
401
|
+
`,i.map=[t,e.line],!0}function WJ(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>i)return!1;const a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let s=o;o=e.skipChars(o,a);let l=o-s;if(l<3)return!1;const d=e.src.slice(s,o),c=e.src.slice(o,i);if(a===96&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let f=t,p=!1;for(;f++,!(f>=n||(o=s=e.bMarks[f]+e.tShift[f],i=e.eMarks[f],o<i&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[f]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-s<l)&&(o=e.skipSpaces(o),!(o<i)))){p=!0;break}l=e.sCount[t],e.line=f+(p?1:0);const m=e.push("fence","code",0);return m.info=c,m.content=e.getLines(t+1,f,l,!0),m.markup=d,m.map=[t,e.line],!0}function KJ(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const s=[],l=[],d=[],c=[],f=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let m=!1,h;for(h=t;h<n;h++){const C=e.sCount[h]<e.blkIndent;if(o=e.bMarks[h]+e.tShift[h],i=e.eMarks[h],o>=i)break;if(e.src.charCodeAt(o++)===62&&!C){let $=e.sCount[h]+1,x,w;e.src.charCodeAt(o)===32?(o++,$++,w=!1,x=!0):e.src.charCodeAt(o)===9?(x=!0,(e.bsCount[h]+$)%4===3?(o++,$++,w=!1):w=!0):x=!1;let T=$;for(s.push(e.bMarks[h]),e.bMarks[h]=o;o<i;){const R=e.src.charCodeAt(o);if(un(R))R===9?T+=4-(T+e.bsCount[h]+(w?1:0))%4:T++;else break;o++}m=o>=i,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(x?1:0),d.push(e.sCount[h]),e.sCount[h]=T-$,c.push(e.tShift[h]),e.tShift[h]=o-e.bMarks[h];continue}if(m)break;let O=!1;for(let $=0,x=f.length;$<x;$++)if(f[$](e,h,n,!0)){O=!0;break}if(O){e.lineMax=h,e.blkIndent!==0&&(s.push(e.bMarks[h]),l.push(e.bsCount[h]),c.push(e.tShift[h]),d.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),l.push(e.bsCount[h]),c.push(e.tShift[h]),d.push(e.sCount[h]),e.sCount[h]=-1}const g=e.blkIndent;e.blkIndent=0;const b=e.push("blockquote_open","blockquote",1);b.markup=">";const y=[t,0];b.map=y,e.md.block.tokenize(e,t,h);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=a,e.parentType=p,y[1]=e.line;for(let C=0;C<c.length;C++)e.bMarks[C+t]=s[C],e.tShift[C+t]=c[C],e.sCount[C+t]=d[C],e.bsCount[C+t]=l[C];return e.blkIndent=g,!0}function qJ(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(i++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;i<o;){const d=e.src.charCodeAt(i++);if(d!==a&&!un(d))return!1;d===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function d6(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){const i=e.src.charCodeAt(r);if(!un(i))return-1}return r}function f6(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),i>=48&&i<=57){if(o-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return o<r&&(i=e.src.charCodeAt(o),!un(i))?-1:o}function GJ(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function XJ(e,t,n,r){let o,i,a,s,l=t,d=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let c=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(c=!0);let f,p,m;if((m=f6(e,l))>=0){if(f=!0,a=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(a,m-1)),c&&p!==1)return!1}else if((m=d6(e,l))>=0)f=!1;else return!1;if(c&&e.skipSpaces(m)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(m-1),g=e.tokens.length;f?(s=e.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);const b=[l,0];s.map=b,s.markup=String.fromCharCode(h);let y=!1;const v=e.md.block.ruler.getRules("list"),C=e.parentType;for(e.parentType="list";l<n;){i=m,o=e.eMarks[l];const O=e.sCount[l]+m-(e.bMarks[l]+e.tShift[l]);let $=O;for(;i<o;){const N=e.src.charCodeAt(i);if(N===9)$+=4-($+e.bsCount[l])%4;else if(N===32)$++;else break;i++}const x=i;let w;x>=o?w=1:w=$-O,w>4&&(w=1);const T=O+w;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const R=[l,0];s.map=R,f&&(s.info=e.src.slice(a,m-1));const S=e.tight,E=e.tShift[l],P=e.sCount[l],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[l]=x-e.bMarks[l],e.sCount[l]=$,x>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||y)&&(d=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[l]=E,e.sCount[l]=P,e.tight=S,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),l=e.line,R[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let k=!1;for(let N=0,M=v.length;N<M;N++)if(v[N](e,l,n,!0)){k=!0;break}if(k)break;if(f){if(m=f6(e,l),m<0)break;a=e.bMarks[l]+e.tShift[l]}else if(m=d6(e,l),m<0)break;if(h!==e.src.charCodeAt(m-1))break}return f?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(h),b[1]=l,e.line=l,e.parentType=C,d&&GJ(e,g),!0}function YJ(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function s(v){const C=e.lineMax;if(v>=C||e.isEmpty(v))return null;let O=!1;if(e.sCount[v]-e.blkIndent>3&&(O=!0),e.sCount[v]<0&&(O=!0),!O){const w=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let R=!1;for(let S=0,E=w.length;S<E;S++)if(w[S](e,v,C,!0)){R=!0;break}if(e.parentType=T,R)return null}const $=e.bMarks[v]+e.tShift[v],x=e.eMarks[v];return e.src.slice($,x+1)}let l=e.src.slice(o,i+1);i=l.length;let d=-1;for(o=1;o<i;o++){const v=l.charCodeAt(o);if(v===91)return!1;if(v===93){d=o;break}else if(v===10){const C=s(a);C!==null&&(l+=C,i=l.length,a++)}else if(v===92&&(o++,o<i&&l.charCodeAt(o)===10)){const C=s(a);C!==null&&(l+=C,i=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(o=d+2;o<i;o++){const v=l.charCodeAt(o);if(v===10){const C=s(a);C!==null&&(l+=C,i=l.length,a++)}else if(!un(v))break}const c=e.md.helpers.parseLinkDestination(l,o,i);if(!c.ok)return!1;const f=e.md.normalizeLink(c.str);if(!e.md.validateLink(f))return!1;o=c.pos;const p=o,m=a,h=o;for(;o<i;o++){const v=l.charCodeAt(o);if(v===10){const C=s(a);C!==null&&(l+=C,i=l.length,a++)}else if(!un(v))break}let g=e.md.helpers.parseLinkTitle(l,o,i);for(;g.can_continue;){const v=s(a);if(v===null)break;l+=v,o=i,i=l.length,a++,g=e.md.helpers.parseLinkTitle(l,o,i,g)}let b;for(o<i&&h!==o&&g.ok?(b=g.str,o=g.pos):(b="",o=p,a=m);o<i;){const v=l.charCodeAt(o);if(!un(v))break;o++}if(o<i&&l.charCodeAt(o)!==10&&b)for(b="",o=p,a=m;o<i;){const v=l.charCodeAt(o);if(!un(v))break;o++}if(o<i&&l.charCodeAt(o)!==10)return!1;const y=Lp(l.slice(1,d));return y?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:b,href:f}),e.line=a),!0):!1}const QJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ZJ="[a-zA-Z_:][a-zA-Z0-9:._-]*",JJ="[^\"'=<>`\\x00-\\x20]+",eee="'[^']*'",tee='"[^"]*"',nee="(?:"+JJ+"|"+eee+"|"+tee+")",ree="(?:\\s+"+ZJ+"(?:\\s*=\\s*"+nee+")?)",V9="<[A-Za-z][A-Za-z0-9\\-]*"+ree+"*\\s*\\/?>",U9="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",oee="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",iee="<[?][\\s\\S]*?[?]>",aee="<![A-Za-z][^>]*>",see="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",lee=new RegExp("^(?:"+V9+"|"+U9+"|"+oee+"|"+iee+"|"+aee+"|"+see+")"),uee=new RegExp("^(?:"+V9+"|"+U9+")"),rs=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+QJ.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(uee.source+"\\s*$"),/^$/,!1]];function cee(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,i),s=0;for(;s<rs.length&&!rs[s][0].test(a);s++);if(s===rs.length)return!1;if(r)return rs[s][2];let l=t+1;if(!rs[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],i=e.eMarks[l],a=e.src.slice(o,i),rs[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}function dee(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=i)return!1;let s=1;for(a=e.src.charCodeAt(++o);a===35&&o<i&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<i&&!un(a))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);const l=e.skipCharsBack(i,35,o);l>o&&un(e.src.charCodeAt(l-1))&&(i=l),e.line=t+1;const d=e.push("heading_open","h"+String(s),1);d.markup="########".slice(0,s),d.map=[t,e.line];const c=e.push("inline","",0);c.content=e.src.slice(o,i).trim(),c.map=[t,e.line],c.children=[];const f=e.push("heading_close","h"+String(s),-1);return f.markup="########".slice(0,s),!0}function fee(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let i=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let m=e.bMarks[s]+e.tShift[s];const h=e.eMarks[s];if(m<h&&(a=e.src.charCodeAt(m),(a===45||a===61)&&(m=e.skipChars(m,a),m=e.skipSpaces(m),m>=h))){i=a===61?1:2;break}}if(e.sCount[s]<0)continue;let p=!1;for(let m=0,h=r.length;m<h;m++)if(r[m](e,s,n,!0)){p=!0;break}if(p)break}if(!i)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(i),1);d.markup=String.fromCharCode(a),d.map=[t,e.line];const c=e.push("inline","",0);c.content=l,c.map=[t,e.line-1],c.children=[];const f=e.push("heading_close","h"+String(i),-1);return f.markup=String.fromCharCode(a),e.parentType=o,!0}function pee(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let d=!1;for(let c=0,f=r.length;c<f;c++)if(r[c](e,i,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const $d=[["table",VJ,["paragraph","reference"]],["code",UJ],["fence",WJ,["paragraph","reference","blockquote","list"]],["blockquote",KJ,["paragraph","reference","blockquote","list"]],["hr",qJ,["paragraph","reference","blockquote","list"]],["list",XJ,["paragraph","reference","blockquote"]],["reference",YJ],["html_block",cee,["paragraph","reference","blockquote"]],["heading",dee,["paragraph","reference","blockquote"]],["lheading",fee],["paragraph",pee]];function Dp(){this.ruler=new Ir;for(let e=0;e<$d.length;e++)this.ruler.push($d[e][0],$d[e][1],{alt:($d[e][2]||[]).slice()})}Dp.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,i=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=i){e.line=n;break}const l=e.line;let d=!1;for(let c=0;c<o;c++)if(d=r[c](e,a,n,!1),d){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!d)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}};Dp.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)};Dp.prototype.State=ri;function Ic(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Ic.prototype.pushPending=function(){const e=new Ao("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Ic.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Ao(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};Ic.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;const a=i-e,s=i<n?this.src.charCodeAt(i):32,l=Ju(o)||Zu(String.fromCharCode(o)),d=Ju(s)||Zu(String.fromCharCode(s)),c=Qu(o),f=Qu(s),p=!f&&(!d||c||l),m=!c&&(!l||f||d);return{can_open:p&&(t||!m||l),can_close:m&&(t||!p||d),length:a}};Ic.prototype.Token=Ao;function hee(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function mee(e,t){let n=e.pos;for(;n<e.posMax&&!hee(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const gee=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function vee(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(gee);if(!o)return!1;const i=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!a)return!1;let s=a.url;if(s.length<=i.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const d=e.push("link_open","a",1);d.attrs=[["href",l]],d.markup="linkify",d.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=s.length-i.length,!0}function yee(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let i=r-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&un(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const dy=[];for(let e=0;e<256;e++)dy.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){dy[e.charCodeAt(0)]=1});function bee(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!un(o));)n++;return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(i+=e.src[n+1],n++)}const a="\\"+i;if(!t){const s=e.push("text_special","",0);o<256&&dy[o]!==0?s.content=i:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function Cee(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(o,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=a),e.pos+=s,!0;let l=n,d;for(;(d=e.src.indexOf("`",l))!==-1;){for(l=d+1;l<i&&e.src.charCodeAt(l)===96;)l++;const c=l-d;if(c===s){if(!t){const f=e.push("code_inline","code",0);f.markup=a,f.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[c]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function xee(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const o=e.scanDelims(e.pos,!0);let i=o.length;const a=String.fromCharCode(r);if(i<2)return!1;let s;i%2&&(s=e.push("text","",0),s.content=a,i--);for(let l=0;l<i;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function p6(e,t){let n;const r=[],o=t.length;for(let i=0;i<o;i++){const a=t[i];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const i=r.pop();let a=i+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,i!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[i],e.tokens[i]=n)}}function See(e){const t=e.tokens_meta,n=e.tokens_meta.length;p6(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&p6(e,t[r].delimiters)}const W9={tokenize:xee,postProcess:See};function wee(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const o=e.scanDelims(e.pos,r===42);for(let i=0;i<o.length;i++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function h6(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const i=t[o.end],a=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===i.token+1,s=String.fromCharCode(o.marker),l=e.tokens[o.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const d=e.tokens[i.token];d.type=a?"strong_close":"em_close",d.tag=a?"strong":"em",d.nesting=-1,d.markup=a?s+s:s,d.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function Eee(e){const t=e.tokens_meta,n=e.tokens_meta.length;h6(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&h6(e,t[r].delimiters)}const K9={tokenize:wee,postProcess:Eee};function $ee(e,t){let n,r,o,i,a="",s="",l=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const c=e.pos,f=e.posMax,p=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let h=m+1;if(h<f&&e.src.charCodeAt(h)===40){for(d=!1,h++;h<f&&(n=e.src.charCodeAt(h),!(!un(n)&&n!==10));h++);if(h>=f)return!1;if(l=h,o=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?h=o.pos:a="",l=h;h<f&&(n=e.src.charCodeAt(h),!(!un(n)&&n!==10));h++);if(o=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<f&&l!==h&&o.ok)for(s=o.str,h=o.pos;h<f&&(n=e.src.charCodeAt(h),!(!un(n)&&n!==10));h++);}(h>=f||e.src.charCodeAt(h)!==41)&&(d=!0),h++}if(d){if(typeof e.env.references>"u")return!1;if(h<f&&e.src.charCodeAt(h)===91?(l=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?r=e.src.slice(l,h++):h=m+1):h=m+1,r||(r=e.src.slice(p,m)),i=e.env.references[Lp(r)],!i)return e.pos=c,!1;a=i.href,s=i.title}if(!t){e.pos=p,e.posMax=m;const g=e.push("link_open","a",1),b=[["href",a]];g.attrs=b,s&&b.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=f,!0}function Ree(e,t){let n,r,o,i,a,s,l,d,c="";const f=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(i=h+1,i<p&&e.src.charCodeAt(i)===40){for(i++;i<p&&(n=e.src.charCodeAt(i),!(!un(n)&&n!==10));i++);if(i>=p)return!1;for(d=i,s=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?i=s.pos:c=""),d=i;i<p&&(n=e.src.charCodeAt(i),!(!un(n)&&n!==10));i++);if(s=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<p&&d!==i&&s.ok)for(l=s.str,i=s.pos;i<p&&(n=e.src.charCodeAt(i),!(!un(n)&&n!==10));i++);else l="";if(i>=p||e.src.charCodeAt(i)!==41)return e.pos=f,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<p&&e.src.charCodeAt(i)===91?(d=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(d,i++):i=h+1):i=h+1,o||(o=e.src.slice(m,h)),a=e.env.references[Lp(o)],!a)return e.pos=f,!1;c=a.href,l=a.title}if(!t){r=e.src.slice(m,h);const g=[];e.md.inline.parse(r,e.md,e.env,g);const b=e.push("image","img",0),y=[["src",c],["alt",""]];b.attrs=y,b.children=g,b.content=r,l&&y.push(["title",l])}return e.pos=i,e.posMax=p,!0}const Oee=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Pee=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Iee(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const i=e.src.slice(r+1,n);if(Pee.test(i)){const a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(i);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=i.length+2,!0}if(Oee.test(i)){const a=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(i);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=i.length+2,!0}return!1}function Tee(e){return/^<a[>\s]/i.test(e)}function _ee(e){return/^<\/a\s*>/i.test(e)}function kee(e){const t=e|32;return t>=97&&t<=122}function Mee(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!kee(o))return!1;const i=e.src.slice(r).match(lee);if(!i)return!1;if(!t){const a=e.push("html_inline","",0);a.content=i[0],Tee(a.content)&&e.linkLevel++,_ee(a.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const Aee=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Nee=/^&([a-z][a-z0-9]{1,31});/i;function jee(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(Aee);if(i){if(!t){const a=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0);s.content=uy(a)?r0(a):r0(65533),s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(Nee);if(i){const a=L9(i[0]);if(a!==i[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function m6(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const i=[];for(let a=0;a<n;a++){const s=e[a];if(i.push(0),(e[r].marker!==s.marker||o!==s.token-1)&&(r=a),o=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let d=r-i[r]-1,c=d;for(;d>l;d-=i[d]+1){const f=e[d];if(f.marker===s.marker&&f.open&&f.end<0){let p=!1;if((f.close||s.open)&&(f.length+s.length)%3===0&&(f.length%3!==0||s.length%3!==0)&&(p=!0),!p){const m=d>0&&!e[d-1].open?i[d-1]+1:0;i[a]=a-d+m,i[d]=m,s.open=!1,f.end=a,f.close=!1,c=-1,o=-2;break}}}c!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}function Fee(e){const t=e.tokens_meta,n=e.tokens_meta.length;m6(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&m6(t[r].delimiters)}function Lee(e){let t,n,r=0;const o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<i&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const xm=[["text",mee],["linkify",vee],["newline",yee],["escape",bee],["backticks",Cee],["strikethrough",W9.tokenize],["emphasis",K9.tokenize],["link",$ee],["image",Ree],["autolink",Iee],["html_inline",Mee],["entity",jee]],Sm=[["balance_pairs",Fee],["strikethrough",W9.postProcess],["emphasis",K9.postProcess],["fragments_join",Lee]];function Tc(){this.ruler=new Ir;for(let e=0;e<xm.length;e++)this.ruler.push(xm[e][0],xm[e][1]);this.ruler2=new Ir;for(let e=0;e<Sm.length;e++)this.ruler2.push(Sm[e][0],Sm[e][1])}Tc.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let a=!1;if(e.level<o){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,i[t]=e.pos};Tc.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const i=e.pos;let a=!1;if(e.level<o){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Tc.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const i=this.ruler2.getRules(""),a=i.length;for(let s=0;s<a;s++)i[s](o)};Tc.prototype.State=Ic;function Dee(e){const t={};e=e||{},t.src_Any=M9.source,t.src_Cc=A9.source,t.src_Z=j9.source,t.src_P=sy.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function D1(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Bp(e){return Object.prototype.toString.call(e)}function Bee(e){return Bp(e)==="[object String]"}function zee(e){return Bp(e)==="[object Object]"}function Hee(e){return Bp(e)==="[object RegExp]"}function g6(e){return Bp(e)==="[object Function]"}function Vee(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const q9={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Uee(e){return Object.keys(e||{}).reduce(function(t,n){return t||q9.hasOwnProperty(n)},!1)}const Wee={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Kee="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",qee="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Gee(e){e.__index__=-1,e.__text_cache__=""}function Xee(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function v6(){return function(e,t){t.normalize(e)}}function o0(e){const t=e.re=Dee(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Kee),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function i(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,zee(l)){Hee(l.validate)?d.validate=Xee(l.validate):g6(l.validate)?d.validate=l.validate:i(s,l),g6(l.normalize)?d.normalize=l.normalize:l.normalize?i(s,l):d.normalize=v6();return}if(Bee(l)){o.push(s);return}i(s,l)}),o.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:v6()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(Vee).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Gee(e)}function Yee(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function B1(e,t){const n=new Yee(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Wr(e,t){if(!(this instanceof Wr))return new Wr(e,t);t||Uee(e)&&(t=e,e={}),this.__opts__=D1({},q9,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=D1({},Wee,e),this.__compiled__={},this.__tlds__=qee,this.__tlds_replaced__=!1,this.re={},o0(this)}Wr.prototype.add=function(t,n){return this.__schemas__[t]=n,o0(this),this};Wr.prototype.set=function(t){return this.__opts__=D1(this.__opts__,t),this};Wr.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,o,i,a,s,l,d,c;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],l.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=t.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=t.indexOf("@"),c>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(a=o.index+o[1].length,s=o.index+o[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};Wr.prototype.pretest=function(t){return this.re.pretest.test(t)};Wr.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};Wr.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(B1(this,r)),r=this.__last_index__);let o=r?t.slice(r):t;for(;this.test(o);)n.push(B1(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Wr.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,B1(this,0)):null};Wr.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),o0(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,o0(this),this)};Wr.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Wr.prototype.onCompile=function(){};const Ns=2147483647,Uo=36,fy=1,ec=26,Qee=38,Zee=700,G9=72,X9=128,Y9="-",Jee=/^xn--/,ete=/[^\0-\x7F]/,tte=/[\x2E\u3002\uFF0E\uFF61]/g,nte={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wm=Uo-fy,Wo=Math.floor,Em=String.fromCharCode;function Ti(e){throw new RangeError(nte[e])}function rte(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Q9(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(tte,".");const o=e.split("."),i=rte(o,t).join(".");return r+i}function Z9(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const ote=e=>String.fromCodePoint(...e),ite=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Uo},y6=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},J9=function(e,t,n){let r=0;for(e=n?Wo(e/Zee):e>>1,e+=Wo(e/t);e>wm*ec>>1;r+=Uo)e=Wo(e/wm);return Wo(r+(wm+1)*e/(e+Qee))},e$=function(e){const t=[],n=e.length;let r=0,o=X9,i=G9,a=e.lastIndexOf(Y9);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ti("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let c=1,f=Uo;;f+=Uo){s>=n&&Ti("invalid-input");const p=ite(e.charCodeAt(s++));p>=Uo&&Ti("invalid-input"),p>Wo((Ns-r)/c)&&Ti("overflow"),r+=p*c;const m=f<=i?fy:f>=i+ec?ec:f-i;if(p<m)break;const h=Uo-m;c>Wo(Ns/h)&&Ti("overflow"),c*=h}const d=t.length+1;i=J9(r-l,d,l==0),Wo(r/d)>Ns-o&&Ti("overflow"),o+=Wo(r/d),r%=d,t.splice(r++,0,o)}return String.fromCodePoint(...t)},t$=function(e){const t=[];e=Z9(e);const n=e.length;let r=X9,o=0,i=G9;for(const l of e)l<128&&t.push(Em(l));const a=t.length;let s=a;for(a&&t.push(Y9);s<n;){let l=Ns;for(const c of e)c>=r&&c<l&&(l=c);const d=s+1;l-r>Wo((Ns-o)/d)&&Ti("overflow"),o+=(l-r)*d,r=l;for(const c of e)if(c<r&&++o>Ns&&Ti("overflow"),c===r){let f=o;for(let p=Uo;;p+=Uo){const m=p<=i?fy:p>=i+ec?ec:p-i;if(f<m)break;const h=f-m,g=Uo-m;t.push(Em(y6(m+h%g,0))),f=Wo(h/g)}t.push(Em(y6(f,0))),i=J9(o,d,s===a),o=0,++s}++o,++r}return t.join("")},ate=function(e){return Q9(e,function(t){return Jee.test(t)?e$(t.slice(4).toLowerCase()):t})},ste=function(e){return Q9(e,function(t){return ete.test(t)?"xn--"+t$(t):t})},n$={version:"2.3.1",ucs2:{decode:Z9,encode:ote},decode:e$,encode:t$,toASCII:ste,toUnicode:ate},lte={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},ute={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},cte={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},dte={default:lte,zero:ute,commonmark:cte},fte=/^(vbscript|javascript|file|data):/,pte=/^data:image\/(gif|png|jpeg|webp);/;function hte(e){const t=e.trim().toLowerCase();return fte.test(t)?pte.test(t):!0}const r$=["http:","https:","mailto:"];function mte(e){const t=ay(e,!0);if(t.hostname&&(!t.protocol||r$.indexOf(t.protocol)>=0))try{t.hostname=n$.toASCII(t.hostname)}catch{}return Pc(iy(t))}function gte(e){const t=ay(e,!0);if(t.hostname&&(!t.protocol||r$.indexOf(t.protocol)>=0))try{t.hostname=n$.toUnicode(t.hostname)}catch{}return il(iy(t),il.defaultChars+"%")}function Kr(e,t){if(!(this instanceof Kr))return new Kr(e,t);t||ly(e)||(t=e||{},e="default"),this.inline=new Tc,this.block=new Dp,this.core=new cy,this.renderer=new Cl,this.linkify=new Wr,this.validateLink=hte,this.normalizeLink=mte,this.normalizeLinkText=gte,this.utils=yJ,this.helpers=Fp({},SJ),this.options={},this.configure(e),t&&this.set(t)}Kr.prototype.set=function(e){return Fp(this.options,e),this};Kr.prototype.configure=function(e){const t=this;if(ly(e)){const n=e;if(e=dte[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Kr.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Kr.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Kr.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Kr.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Kr.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Kr.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Kr.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const o$=za(({token:e,css:t})=>({copilotChat:t`
|
|
402
|
+
width: 100%;
|
|
403
|
+
display: flex;
|
|
404
|
+
flex-direction: column;
|
|
405
|
+
background: ${e.colorBgContainer};
|
|
406
|
+
color: ${e.colorText};
|
|
407
|
+
`,headerTitle:t`
|
|
408
|
+
font-weight: 600;
|
|
409
|
+
font-size: 15px;
|
|
410
|
+
`,headerButton:t`
|
|
411
|
+
font-size: 18px;
|
|
412
|
+
`,conversations:t`
|
|
413
|
+
width: 300px;
|
|
414
|
+
.ant-conversations-list {
|
|
415
|
+
padding-inline-start: 0;
|
|
416
|
+
}
|
|
417
|
+
`,chatList:t`
|
|
418
|
+
overflow: auto;
|
|
419
|
+
padding-block: 16px;
|
|
420
|
+
flex: 1;
|
|
421
|
+
`,chatWelcome:t`
|
|
422
|
+
margin-inline: 16px;
|
|
423
|
+
padding: 12px 16px;
|
|
424
|
+
border-radius: 12px;
|
|
425
|
+
margin-bottom: 16px;
|
|
426
|
+
`,loadingMessage:t`
|
|
427
|
+
background-image: linear-gradient(90deg, #ff6b23 0%, #af3cb8 31%, #53b6ff 89%);
|
|
428
|
+
background-size: 100% 2px;
|
|
429
|
+
background-repeat: no-repeat;
|
|
430
|
+
background-position: bottom;
|
|
431
|
+
`,chatSend:t`
|
|
432
|
+
padding: 12px;
|
|
433
|
+
`,sendAction:t`
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
margin-bottom: 12px;
|
|
437
|
+
gap: 8px;
|
|
438
|
+
`,speechButton:t`
|
|
439
|
+
font-size: 18px;
|
|
440
|
+
color: ${e.colorText} !important;
|
|
441
|
+
`,markdownContent:t`
|
|
442
|
+
.markdown-content {
|
|
443
|
+
will-change: contents;
|
|
444
|
+
contain: content;
|
|
445
|
+
|
|
446
|
+
/* 优化代码块样式 */
|
|
447
|
+
pre {
|
|
448
|
+
background: ${e.colorBgTextHover};
|
|
449
|
+
padding: 12px;
|
|
450
|
+
border-radius: 6px;
|
|
451
|
+
margin: 8px 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* 优化列表样式 */
|
|
455
|
+
ul, ol {
|
|
456
|
+
padding-left: 20px;
|
|
457
|
+
margin: 8px 0;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* 优化引用样式 */
|
|
461
|
+
blockquote {
|
|
462
|
+
border-left: 4px solid ${e.colorPrimary};
|
|
463
|
+
margin: 8px 0;
|
|
464
|
+
padding: 4px 12px;
|
|
465
|
+
background: ${e.colorBgTextHover};
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* 优化链接样式 */
|
|
469
|
+
a {
|
|
470
|
+
color: ${e.colorPrimary};
|
|
471
|
+
text-decoration: none;
|
|
472
|
+
|
|
473
|
+
&:hover {
|
|
474
|
+
text-decoration: underline;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* 优化标题样式 */
|
|
479
|
+
h1, h2, h3, h4, h5, h6 {
|
|
480
|
+
margin: 16px 0 8px;
|
|
481
|
+
font-weight: 600;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* 优化表格样式 */
|
|
485
|
+
table {
|
|
486
|
+
border-collapse: collapse;
|
|
487
|
+
width: 100%;
|
|
488
|
+
margin: 8px 0;
|
|
489
|
+
|
|
490
|
+
th, td {
|
|
491
|
+
border: 1px solid ${e.colorBorder};
|
|
492
|
+
padding: 8px;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
th {
|
|
496
|
+
background: ${e.colorBgTextHover};
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
`})),vte=Kr({html:!0,breaks:!0}),yte=za(({token:e,css:t})=>({markdownContent:t`
|
|
501
|
+
transition: opacity 0.2s ease-in-out;
|
|
502
|
+
opacity: 1;
|
|
503
|
+
`})),bte=({content:e})=>{const{styles:t}=yte(),{styles:n}=o$(),r=u.useMemo(()=>vte.render(e),[e]);return B.jsx(lo,{children:B.jsx("div",{className:`markdown-content ${n.markdownContent} ${t.markdownContent}`,dangerouslySetInnerHTML:{__html:r}})})},Cte={knowledge_base_search:JC,knowledge_base_search_response:e=>B.jsx(JC,{...e,isResponse:!0}),function_call:e6,function_call_response:e=>B.jsx(e6,{...e,isResponse:!0}),async_task:e=>B.jsx(fre,{...e}),error_card:e=>B.jsx(hre,{...e})},xte=({message:e})=>{const{cards:t,reasoningContent:n,content:r,files:o,type:i}=e;return B.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[t==null?void 0:t.map((a,s)=>{const l=Cte[a.type];if(!l)return console.warn(`No component found for card type: ${a.type}`),null;let d;try{d=JSON.parse(a.content)}catch{d={content:a.content}}return B.jsx(l,{...d},s)}),n&&B.jsx(TZ,{message:e}),i==="error"?null:i==="image"?B.jsx($m,{files:o||[],primaryMedia:r?{url:r,type:"image"}:void 0}):r?B.jsxs(B.Fragment,{children:[B.jsx(bte,{content:r}),B.jsx($m,{files:o||[]})]}):B.jsx($m,{files:o||[]})]})},Ste=za(({token:e,css:t})=>({header:t`
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
cursor: pointer;
|
|
507
|
+
user-select: none;
|
|
508
|
+
color: ${e.colorTextSecondary};
|
|
509
|
+
font-weight: 500;
|
|
510
|
+
font-size: 13px;
|
|
511
|
+
padding: 4px 8px;
|
|
512
|
+
border-radius: 4px;
|
|
513
|
+
&:hover {
|
|
514
|
+
background: ${e.colorBgLayout};
|
|
515
|
+
}
|
|
516
|
+
`,icon:t`
|
|
517
|
+
margin-right: 6px;
|
|
518
|
+
`})),i$=({toolName:e,isExpanded:t,onToggleExpand:n,icon:r,className:o,...i})=>{const{styles:a,cx:s}=Ste();return B.jsxs("div",{className:s(a.header,o),onClick:n,...i,children:[t?B.jsx(tI,{className:a.icon}):B.jsx(oI,{className:a.icon}),r&&B.jsx("span",{className:a.icon,children:r}),e]})},wte=za(({token:e,css:t})=>({result:t`
|
|
519
|
+
border: 1px solid ${e.colorBorderSecondary};
|
|
520
|
+
border-radius: 6px;
|
|
521
|
+
padding: 12px;
|
|
522
|
+
background: ${e.colorBgContainer};
|
|
523
|
+
margin-bottom: 8px;
|
|
524
|
+
font-size: 13px;
|
|
525
|
+
`,detail:t`
|
|
526
|
+
color: ${e.colorTextSecondary};
|
|
527
|
+
white-space: pre-wrap;
|
|
528
|
+
word-break: break-word;
|
|
529
|
+
margin-bottom: 8px;
|
|
530
|
+
`,score:t`
|
|
531
|
+
color: ${e.colorTextTertiary};
|
|
532
|
+
font-size: 12px;
|
|
533
|
+
`})),Ete=({score:e,detail:t})=>{const{styles:n}=wte();return B.jsxs("div",{className:n.result,children:[B.jsx("div",{className:n.detail,children:t}),B.jsxs("div",{className:n.score,children:["相关性分数: ",e.toFixed(4)]})]})},{Text:Nr}=lo,b6={image:B.jsx(Kv,{}),pdf:B.jsx(Mf,{}),document:B.jsx(Mf,{}),video:B.jsx(XT,{}),audio:B.jsx(f8,{})},C6={image:"图片",pdf:"PDF文档",document:"文档",video:"视频",audio:"音频"},x6=e=>{if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return Number.parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+n[r]},$te=({file:e,onDownload:t})=>{const[n,r]=u.useState(!1),[o,i]=u.useState(!1),a=()=>{if(t)t();else{if(e.fileSource==="openai"&&!e.url){mn.info("OpenAI 文件无法直接下载,文件 ID: "+(e.fileId||e.id));return}if(e.url){const c=document.createElement("a");c.href=e.url,c.download=e.name,document.body.appendChild(c),c.click(),document.body.removeChild(c),mn.success("开始下载文件")}else mn.warning("文件下载链接不可用")}},s=()=>{e.type==="image"?i(!0):r(!0)},l=()=>{switch(e.type){case"image":return e.fileSource==="openai"&&!e.url?B.jsxs(ja,{size:"small",style:{width:"240px",height:"140px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",cursor:"default",border:"1px solid #d9d9d9",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:[B.jsx("div",{style:{fontSize:"36px",color:"#10a37f",marginBottom:"12px"},children:B.jsx(Kv,{})}),B.jsx(Nr,{style:{fontSize:"13px",textAlign:"center",fontWeight:500,marginBottom:"4px",maxWidth:"200px"},ellipsis:{tooltip:e.name},children:e.name}),B.jsxs(Nr,{type:"secondary",style:{fontSize:"11px"},children:["OpenAI 文件 • ",e.fileId?`ID: ${e.fileId.slice(0,8)}...`:"文件"]})]}):B.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[B.jsx(Vu,{src:e.thumbnail||e.url,alt:e.name,style:{maxWidth:"100%",maxHeight:"200px",borderRadius:"8px",cursor:"pointer"},onClick:()=>i(!0),preview:!1}),B.jsx(Oo,{title:"预览",children:B.jsx(Dt,{type:"text",icon:B.jsx($a,{}),size:"small",style:{position:"absolute",top:"8px",right:"8px",background:"rgba(0,0,0,0.6)",color:"white",border:"none"},onClick:s})})]});case"video":return B.jsx("div",{style:{maxWidth:"100%",maxHeight:"200px",borderRadius:"8px"},children:"您的浏览器不支持视频播放"});case"audio":return B.jsx("div",{style:{width:"100%"},children:"您的浏览器不支持音频播放"});case"pdf":case"document":return B.jsxs(ja,{size:"small",style:{width:"240px",height:"140px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",cursor:e.fileSource==="openai"&&!e.url?"default":"pointer",border:"1px solid #d9d9d9",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",transition:"all 0.3s ease"},hoverable:!(e.fileSource==="openai"&&!e.url),onClick:e.fileSource==="openai"&&!e.url?void 0:s,children:[B.jsx("div",{style:{fontSize:"36px",color:e.type==="pdf"?"#ff4d4f":"#1890ff",marginBottom:"12px"},children:b6[e.type]}),B.jsx(Nr,{style:{fontSize:"13px",textAlign:"center",fontWeight:500,marginBottom:"4px",maxWidth:"200px"},ellipsis:{tooltip:e.name},children:e.name}),B.jsx(Nr,{type:"secondary",style:{fontSize:"11px"},children:e.fileSource==="openai"&&e.fileId?`OpenAI 文件 • ID: ${e.fileId.slice(0,8)}...`:e.size>0?x6(e.size):C6[e.type]})]});default:return null}},d=()=>{switch(e.status){case"uploading":return B.jsxs("div",{style:{marginTop:"8px"},children:[B.jsx(B2,{percent:0,size:"small",status:"active"}),B.jsx(Nr,{type:"secondary",style:{fontSize:"12px"},children:"上传中..."})]});case"error":return B.jsxs("div",{style:{marginTop:"8px",color:"#ff4d4f"},children:[B.jsx(qI,{style:{marginRight:"4px"}}),B.jsx(Nr,{type:"danger",style:{fontSize:"12px"},children:e.errorMessage||"上传失败"})]});case"success":return B.jsx("div",{style:{marginTop:"8px"},children:B.jsxs(Ca,{size:"small",children:[B.jsxs(Nr,{type:"secondary",style:{fontSize:"12px"},children:[e.fileSource==="openai"?"OpenAI ":"",C6[e.type]," • ",x6(e.size),e.fileSource==="openai"&&e.fileId?` • ID: ${e.fileId.slice(0,8)}...`:""]}),B.jsxs(Ca,{size:"small",children:[!(e.fileSource==="openai"&&!e.url)&&B.jsx(Oo,{title:"预览",children:B.jsx(Dt,{type:"text",icon:B.jsx($a,{}),size:"small",onClick:s})}),B.jsx(Oo,{title:e.fileSource==="openai"&&!e.url?"OpenAI 文件无法直接下载":"下载",children:B.jsx(Dt,{type:"text",icon:B.jsx(Is,{}),size:"small",onClick:a,disabled:e.fileSource==="openai"&&!e.url})})]})]})});default:return null}};return B.jsxs("div",{style:{marginBottom:"16px"},children:[l(),d(),e.url&&B.jsx(Vu,{style:{display:"none"},src:e.url,alt:e.name,preview:{visible:o,onVisibleChange:i}}),B.jsxs(Yr,{title:B.jsxs(Ca,{children:[b6[e.type],B.jsx("span",{children:e.name})]}),open:n,onCancel:()=>r(!1),footer:[B.jsx(Dt,{type:"primary",icon:B.jsx(Is,{}),onClick:a,children:"下载文件"},"download"),B.jsx(Dt,{onClick:()=>r(!1),children:"关闭"},"close")],width:"90%",style:{top:20},destroyOnClose:!0,children:[e.type==="pdf"&&e.url&&B.jsx("div",{style:{height:"75vh",border:"1px solid #d9d9d9",borderRadius:"4px"},children:B.jsx("iframe",{src:`${e.url}#toolbar=1&navpanes=1&scrollbar=1`,style:{width:"100%",height:"100%",border:"none",borderRadius:"4px"},title:e.name,onError:()=>{mn.warning("PDF 预览失败,请尝试下载文件查看")}})}),e.type==="pdf"&&e.fileSource==="openai"&&!e.url&&B.jsxs("div",{style:{textAlign:"center",padding:"60px 20px",background:"#fafafa",borderRadius:"8px",border:"1px dashed #d9d9d9"},children:[B.jsx(Mf,{style:{fontSize:"72px",color:"#10a37f",marginBottom:"16px"}}),B.jsx("div",{style:{marginBottom:"8px"},children:B.jsx(Nr,{style:{fontSize:"16px",fontWeight:500},children:"OpenAI 文件"})}),B.jsx("div",{style:{marginBottom:"8px"},children:B.jsxs(Nr,{type:"secondary",style:{fontSize:"14px"},children:["文件 ID: ",e.fileId||e.id]})}),B.jsx("div",{style:{marginBottom:"24px"},children:B.jsx(Nr,{type:"secondary",children:"OpenAI 文件无法在线预览,文件已上传到服务器"})})]}),e.type==="document"&&B.jsxs("div",{style:{textAlign:"center",padding:"60px 20px",background:"#fafafa",borderRadius:"8px",border:"1px dashed #d9d9d9"},children:[B.jsx(Mf,{style:{fontSize:"72px",color:e.fileSource==="openai"?"#10a37f":"#1890ff",marginBottom:"16px"}}),B.jsx("div",{style:{marginBottom:"8px"},children:B.jsx(Nr,{style:{fontSize:"16px",fontWeight:500},children:e.fileSource==="openai"?"OpenAI 文件":"文档预览"})}),e.fileSource==="openai"&&e.fileId&&B.jsx("div",{style:{marginBottom:"8px"},children:B.jsxs(Nr,{type:"secondary",style:{fontSize:"14px"},children:["文件 ID: ",e.fileId]})}),B.jsx("div",{style:{marginBottom:"24px"},children:B.jsx(Nr,{type:"secondary",children:e.fileSource==="openai"?"OpenAI 文件无法在线预览,文件已上传到服务器":"暂不支持此类型文档的在线预览,请下载后查看"})}),B.jsxs(Ca,{children:[!(e.fileSource==="openai"&&!e.url)&&B.jsxs(B.Fragment,{children:[B.jsx(Dt,{type:"primary",icon:B.jsx(Is,{}),onClick:a,children:"下载文档"}),e.url&&B.jsx(Dt,{icon:B.jsx($a,{}),onClick:()=>window.open(e.url,"_blank"),children:"新窗口打开"})]}),e.fileSource==="openai"&&!e.url&&B.jsx(Dt,{disabled:!0,children:"OpenAI 文件无法直接下载"})]})]})]})]})},$m=({files:e,primaryMedia:t,maxPreviewCount:n=4,showDownload:r=!0})=>{const[o,i]=u.useState(!1),a=t?{id:`primary_${Date.now()}`,name:t.name||"模型输出",url:t.url,type:t.type,size:0,mimeType:"",uploadTime:Date.now(),status:"success",thumbnail:t.thumbnail}:null,s=a?[a,...e||[]]:e||[];if(!s||s.length===0)return null;const l=o?s:s.slice(0,n),d=s.length>n;return B.jsxs("div",{style:{marginTop:"12px"},children:[B.jsx("div",{className:"multimodal-file-grid",children:l.map(c=>B.jsx($te,{file:c,onDownload:void 0},c.id))}),d&&!o&&B.jsxs(Dt,{type:"link",size:"small",onClick:()=>i(!0),style:{padding:0},children:["显示全部 ",s.length," 个文件"]}),d&&o&&B.jsx(Dt,{type:"link",size:"small",onClick:()=>i(!1),style:{padding:0},children:"收起"})]})};function a$(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rte}=Object.prototype,{getPrototypeOf:py}=Object,{iterator:zp,toStringTag:s$}=Symbol,Hp=(e=>t=>{const n=Rte.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),No=e=>(e=e.toLowerCase(),t=>Hp(t)===e),Vp=e=>t=>typeof t===e,{isArray:xl}=Array,tc=Vp("undefined");function _c(e){return e!==null&&!tc(e)&&e.constructor!==null&&!tc(e.constructor)&&Er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const l$=No("ArrayBuffer");function Ote(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&l$(e.buffer),t}const Pte=Vp("string"),Er=Vp("function"),u$=Vp("number"),kc=e=>e!==null&&typeof e=="object",Ite=e=>e===!0||e===!1,rf=e=>{if(Hp(e)!=="object")return!1;const t=py(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(s$ in e)&&!(zp in e)},Tte=e=>{if(!kc(e)||_c(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_te=No("Date"),kte=No("File"),Mte=No("Blob"),Ate=No("FileList"),Nte=e=>kc(e)&&Er(e.pipe),jte=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Er(e.append)&&((t=Hp(e))==="formdata"||t==="object"&&Er(e.toString)&&e.toString()==="[object FormData]"))},Fte=No("URLSearchParams"),[Lte,Dte,Bte,zte]=["ReadableStream","Request","Response","Headers"].map(No),Hte=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),xl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(_c(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function c$(e,t){if(_c(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,d$=e=>!tc(e)&&e!==Sa;function z1(){const{caseless:e}=d$(this)&&this||{},t={},n=(r,o)=>{const i=e&&c$(t,o)||o;rf(t[i])&&rf(r)?t[i]=z1(t[i],r):rf(r)?t[i]=z1({},r):xl(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Mc(arguments[r],n);return t}const Vte=(e,t,n,{allOwnKeys:r}={})=>(Mc(t,(o,i)=>{n&&Er(o)?e[i]=a$(o,n):e[i]=o},{allOwnKeys:r}),e),Ute=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wte=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Kte=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&py(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qte=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Gte=e=>{if(!e)return null;if(xl(e))return e;let t=e.length;if(!u$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xte=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&py(Uint8Array)),Yte=(e,t)=>{const r=(e&&e[zp]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Qte=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Zte=No("HTMLFormElement"),Jte=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),S6=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ene=No("RegExp"),f$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mc(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},tne=e=>{f$(e,(t,n)=>{if(Er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Er(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nne=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return xl(e)?r(e):r(String(e).split(t)),n},rne=()=>{},one=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ine(e){return!!(e&&Er(e.append)&&e[s$]==="FormData"&&e[zp])}const ane=e=>{const t=new Array(10),n=(r,o)=>{if(kc(r)){if(t.indexOf(r)>=0)return;if(_c(r))return r;if(!("toJSON"in r)){t[o]=r;const i=xl(r)?[]:{};return Mc(r,(a,s)=>{const l=n(a,o+1);!tc(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},sne=No("AsyncFunction"),lne=e=>e&&(kc(e)||Er(e))&&Er(e.then)&&Er(e.catch),p$=((e,t)=>e?setImmediate:t?((n,r)=>(Sa.addEventListener("message",({source:o,data:i})=>{o===Sa&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Sa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Er(Sa.postMessage)),une=typeof queueMicrotask<"u"?queueMicrotask.bind(Sa):typeof process<"u"&&process.nextTick||p$,cne=e=>e!=null&&Er(e[zp]),Te={isArray:xl,isArrayBuffer:l$,isBuffer:_c,isFormData:jte,isArrayBufferView:Ote,isString:Pte,isNumber:u$,isBoolean:Ite,isObject:kc,isPlainObject:rf,isEmptyObject:Tte,isReadableStream:Lte,isRequest:Dte,isResponse:Bte,isHeaders:zte,isUndefined:tc,isDate:_te,isFile:kte,isBlob:Mte,isRegExp:ene,isFunction:Er,isStream:Nte,isURLSearchParams:Fte,isTypedArray:Xte,isFileList:Ate,forEach:Mc,merge:z1,extend:Vte,trim:Hte,stripBOM:Ute,inherits:Wte,toFlatObject:Kte,kindOf:Hp,kindOfTest:No,endsWith:qte,toArray:Gte,forEachEntry:Yte,matchAll:Qte,isHTMLForm:Zte,hasOwnProperty:S6,hasOwnProp:S6,reduceDescriptors:f$,freezeMethods:tne,toObjectSet:nne,toCamelCase:Jte,noop:rne,toFiniteNumber:one,findKey:c$,global:Sa,isContextDefined:d$,isSpecCompliantForm:ine,toJSONObject:ane,isAsyncFn:sne,isThenable:lne,setImmediate:p$,asap:une,isIterable:cne};function Tt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Te.inherits(Tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Te.toJSONObject(this.config),code:this.code,status:this.status}}});const h$=Tt.prototype,m$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{m$[e]={value:e}});Object.defineProperties(Tt,m$);Object.defineProperty(h$,"isAxiosError",{value:!0});Tt.from=(e,t,n,r,o,i)=>{const a=Object.create(h$);return Te.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Tt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const dne=null;function H1(e){return Te.isPlainObject(e)||Te.isArray(e)}function g$(e){return Te.endsWith(e,"[]")?e.slice(0,-2):e}function w6(e,t,n){return e?e.concat(t).map(function(o,i){return o=g$(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function fne(e){return Te.isArray(e)&&!e.some(H1)}const pne=Te.toFlatObject(Te,{},null,function(t){return/^is[A-Z]/.test(t)});function Up(e,t,n){if(!Te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!Te.isUndefined(b[g])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Te.isSpecCompliantForm(t);if(!Te.isFunction(o))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(Te.isDate(h))return h.toISOString();if(Te.isBoolean(h))return h.toString();if(!l&&Te.isBlob(h))throw new Tt("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(h)||Te.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,g,b){let y=h;if(h&&!b&&typeof h=="object"){if(Te.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(Te.isArray(h)&&fne(h)||(Te.isFileList(h)||Te.endsWith(g,"[]"))&&(y=Te.toArray(h)))return g=g$(g),y.forEach(function(C,O){!(Te.isUndefined(C)||C===null)&&t.append(a===!0?w6([g],O,i):a===null?g:g+"[]",d(C))}),!1}return H1(h)?!0:(t.append(w6(b,g,i),d(h)),!1)}const f=[],p=Object.assign(pne,{defaultVisitor:c,convertValue:d,isVisitable:H1});function m(h,g){if(!Te.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(h),Te.forEach(h,function(y,v){(!(Te.isUndefined(y)||y===null)&&o.call(t,y,Te.isString(v)?v.trim():v,g,p))===!0&&m(y,g?g.concat(v):[v])}),f.pop()}}if(!Te.isObject(e))throw new TypeError("data must be an object");return m(e),t}function E6(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function hy(e,t){this._pairs=[],e&&Up(e,this,t)}const v$=hy.prototype;v$.append=function(t,n){this._pairs.push([t,n])};v$.toString=function(t){const n=t?function(r){return t.call(this,r,E6)}:E6;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function hne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function y$(e,t,n){if(!t)return e;const r=n&&n.encode||hne;Te.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Te.isURLSearchParams(t)?t.toString():new hy(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class $6{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Te.forEach(this.handlers,function(r){r!==null&&t(r)})}}const b$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mne=typeof URLSearchParams<"u"?URLSearchParams:hy,gne=typeof FormData<"u"?FormData:null,vne=typeof Blob<"u"?Blob:null,yne={isBrowser:!0,classes:{URLSearchParams:mne,FormData:gne,Blob:vne},protocols:["http","https","file","blob","url","data"]},my=typeof window<"u"&&typeof document<"u",V1=typeof navigator=="object"&&navigator||void 0,bne=my&&(!V1||["ReactNative","NativeScript","NS"].indexOf(V1.product)<0),Cne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xne=my&&window.location.href||"http://localhost",Sne=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:my,hasStandardBrowserEnv:bne,hasStandardBrowserWebWorkerEnv:Cne,navigator:V1,origin:xne},Symbol.toStringTag,{value:"Module"})),ir={...Sne,...yne};function wne(e,t){return Up(e,new ir.classes.URLSearchParams,{visitor:function(n,r,o,i){return ir.isNode&&Te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Ene(e){return Te.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $ne(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function C$(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&Te.isArray(o)?o.length:a,l?(Te.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Te.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Te.isArray(o[a])&&(o[a]=$ne(o[a])),!s)}if(Te.isFormData(e)&&Te.isFunction(e.entries)){const n={};return Te.forEachEntry(e,(r,o)=>{t(Ene(r),o,n,0)}),n}return null}function Rne(e,t,n){if(Te.isString(e))try{return(t||JSON.parse)(e),Te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ac={transitional:b$,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Te.isObject(t);if(i&&Te.isHTMLForm(t)&&(t=new FormData(t)),Te.isFormData(t))return o?JSON.stringify(C$(t)):t;if(Te.isArrayBuffer(t)||Te.isBuffer(t)||Te.isStream(t)||Te.isFile(t)||Te.isBlob(t)||Te.isReadableStream(t))return t;if(Te.isArrayBufferView(t))return t.buffer;if(Te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wne(t,this.formSerializer).toString();if((s=Te.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Up(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Rne(t)):t}],transformResponse:[function(t){const n=this.transitional||Ac.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Te.isResponse(t)||Te.isReadableStream(t))return t;if(t&&Te.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Tt.from(s,Tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ir.classes.FormData,Blob:ir.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],e=>{Ac.headers[e]={}});const One=Te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pne=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
534
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&One[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},R6=Symbol("internals");function zl(e){return e&&String(e).trim().toLowerCase()}function of(e){return e===!1||e==null?e:Te.isArray(e)?e.map(of):String(e)}function Ine(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Tne=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rm(e,t,n,r,o){if(Te.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Te.isString(t)){if(Te.isString(r))return t.indexOf(r)!==-1;if(Te.isRegExp(r))return r.test(t)}}function _ne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kne(e,t){const n=Te.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let $r=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,d){const c=zl(l);if(!c)throw new Error("header name must be a non-empty string");const f=Te.findKey(o,c);(!f||o[f]===void 0||d===!0||d===void 0&&o[f]!==!1)&&(o[f||l]=of(s))}const a=(s,l)=>Te.forEach(s,(d,c)=>i(d,c,l));if(Te.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Te.isString(t)&&(t=t.trim())&&!Tne(t))a(Pne(t),n);else if(Te.isObject(t)&&Te.isIterable(t)){let s={},l,d;for(const c of t){if(!Te.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[d=c[0]]=(l=s[d])?Te.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=zl(t),t){const r=Te.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Ine(o);if(Te.isFunction(n))return n.call(this,o,r);if(Te.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zl(t),t){const r=Te.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=zl(a),a){const s=Te.findKey(r,a);s&&(!n||Rm(r,r[s],s,n))&&(delete r[s],o=!0)}}return Te.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Rm(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Te.forEach(this,(o,i)=>{const a=Te.findKey(r,i);if(a){n[a]=of(o),delete n[i];return}const s=t?_ne(i):String(i).trim();s!==i&&delete n[i],n[s]=of(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Te.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Te.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
535
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[R6]=this[R6]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=zl(a);r[s]||(kne(o,a),r[s]=!0)}return Te.isArray(t)?t.forEach(i):i(t),this}};$r.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Te.reduceDescriptors($r.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Te.freezeMethods($r);function Om(e,t){const n=this||Ac,r=t||n,o=$r.from(r.headers);let i=r.data;return Te.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function x$(e){return!!(e&&e.__CANCEL__)}function Sl(e,t,n){Tt.call(this,e??"canceled",Tt.ERR_CANCELED,t,n),this.name="CanceledError"}Te.inherits(Sl,Tt,{__CANCEL__:!0});function S$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Tt("Request failed with status code "+n.status,[Tt.ERR_BAD_REQUEST,Tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mne(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ane(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),c=r[i];a||(a=d),n[o]=l,r[o]=d;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-a<t)return;const m=c&&d-c;return m?Math.round(p*1e3/m):void 0}}function Nne(e,t){let n=0,r=1e3/t,o,i;const a=(d,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const c=Date.now(),f=c-n;f>=r?a(d,c):(o=d,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const i0=(e,t,n=3)=>{let r=0;const o=Ane(50,250);return Nne(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,d=o(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:d||void 0,estimated:d&&s&&c?(s-a)/d:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},O6=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},P6=e=>(...t)=>Te.asap(()=>e(...t)),jne=ir.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ir.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ir.origin),ir.navigator&&/(msie|trident)/i.test(ir.navigator.userAgent)):()=>!0,Fne=ir.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Te.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Te.isString(r)&&a.push("path="+r),Te.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Lne(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dne(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function w$(e,t,n){let r=!Lne(t);return e&&(r||n==!1)?Dne(e,t):t}const I6=e=>e instanceof $r?{...e}:e;function Fa(e,t){t=t||{};const n={};function r(d,c,f,p){return Te.isPlainObject(d)&&Te.isPlainObject(c)?Te.merge.call({caseless:p},d,c):Te.isPlainObject(c)?Te.merge({},c):Te.isArray(c)?c.slice():c}function o(d,c,f,p){if(Te.isUndefined(c)){if(!Te.isUndefined(d))return r(void 0,d,f,p)}else return r(d,c,f,p)}function i(d,c){if(!Te.isUndefined(c))return r(void 0,c)}function a(d,c){if(Te.isUndefined(c)){if(!Te.isUndefined(d))return r(void 0,d)}else return r(void 0,c)}function s(d,c,f){if(f in t)return r(d,c);if(f in e)return r(void 0,d)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(d,c,f)=>o(I6(d),I6(c),f,!0)};return Te.forEach(Object.keys({...e,...t}),function(c){const f=l[c]||o,p=f(e[c],t[c],c);Te.isUndefined(p)&&f!==s||(n[c]=p)}),n}const E$=e=>{const t=Fa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=$r.from(a),t.url=y$(w$(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Te.isFormData(n)){if(ir.hasStandardBrowserEnv||ir.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[d,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...c].join("; "))}}if(ir.hasStandardBrowserEnv&&(r&&Te.isFunction(r)&&(r=r(t)),r||r!==!1&&jne(t.url))){const d=o&&i&&Fne.read(i);d&&a.set(o,d)}return t},Bne=typeof XMLHttpRequest<"u",zne=Bne&&function(e){return new Promise(function(n,r){const o=E$(e);let i=o.data;const a=$r.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:d}=o,c,f,p,m,h;function g(){m&&m(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function y(){if(!b)return;const C=$r.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),$={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:e,request:b};S$(function(w){n(w),g()},function(w){r(w),g()},$),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new Tt("Request aborted",Tt.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new Tt("Network Error",Tt.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||b$;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new Tt(O,$.clarifyTimeoutError?Tt.ETIMEDOUT:Tt.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&Te.forEach(a.toJSON(),function(O,$){b.setRequestHeader($,O)}),Te.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),s&&s!=="json"&&(b.responseType=o.responseType),d&&([p,h]=i0(d,!0),b.addEventListener("progress",p)),l&&b.upload&&([f,m]=i0(l),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(c=C=>{b&&(r(!C||C.type?new Sl(null,e,b):C),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const v=Mne(o.url);if(v&&ir.protocols.indexOf(v)===-1){r(new Tt("Unsupported protocol "+v+":",Tt.ERR_BAD_REQUEST,e));return}b.send(i||null)})},Hne=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(d){if(!o){o=!0,s();const c=d instanceof Error?d:this.reason;r.abort(c instanceof Tt?c:new Sl(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new Tt(`timeout ${t} of ms exceeded`,Tt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Te.asap(s),l}},Vne=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Une=async function*(e,t){for await(const n of Wne(e))yield*Vne(n,t)},Wne=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},T6=(e,t,n,r)=>{const o=Une(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:c}=await o.next();if(d){s(),l.close();return}let f=c.byteLength;if(n){let p=i+=f;n(p)}l.enqueue(new Uint8Array(c))}catch(d){throw s(d),d}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Wp=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$$=Wp&&typeof ReadableStream=="function",Kne=Wp&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),R$=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qne=$$&&R$(()=>{let e=!1;const t=new Request(ir.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_6=64*1024,U1=$$&&R$(()=>Te.isReadableStream(new Response("").body)),a0={stream:U1&&(e=>e.body)};Wp&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!a0[t]&&(a0[t]=Te.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Tt(`Response type '${t}' is not supported`,Tt.ERR_NOT_SUPPORT,r)})})})(new Response);const Gne=async e=>{if(e==null)return 0;if(Te.isBlob(e))return e.size;if(Te.isSpecCompliantForm(e))return(await new Request(ir.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Te.isArrayBufferView(e)||Te.isArrayBuffer(e))return e.byteLength;if(Te.isURLSearchParams(e)&&(e=e+""),Te.isString(e))return(await Kne(e)).byteLength},Xne=async(e,t)=>{const n=Te.toFiniteNumber(e.getContentLength());return n??Gne(t)},Yne=Wp&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:d,headers:c,withCredentials:f="same-origin",fetchOptions:p}=E$(e);d=d?(d+"").toLowerCase():"text";let m=Hne([o,i&&i.toAbortSignal()],a),h;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let b;try{if(l&&qne&&n!=="get"&&n!=="head"&&(b=await Xne(c,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(Te.isFormData(r)&&(x=$.headers.get("content-type"))&&c.setContentType(x),$.body){const[w,T]=O6(b,i0(P6(l)));r=T6($.body,_6,w,T)}}Te.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;h=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let v=await fetch(h,p);const C=U1&&(d==="stream"||d==="response");if(U1&&(s||C&&g)){const $={};["status","statusText","headers"].forEach(R=>{$[R]=v[R]});const x=Te.toFiniteNumber(v.headers.get("content-length")),[w,T]=s&&O6(x,i0(P6(s),!0))||[];v=new Response(T6(v.body,_6,w,()=>{T&&T(),g&&g()}),$)}d=d||"text";let O=await a0[Te.findKey(a0,d)||"text"](v,e);return!C&&g&&g(),await new Promise(($,x)=>{S$($,x,{data:O,headers:$r.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:h})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new Tt("Network Error",Tt.ERR_NETWORK,e,h),{cause:y.cause||y}):Tt.from(y,y&&y.code,e,h)}}),W1={http:dne,xhr:zne,fetch:Yne};Te.forEach(W1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const k6=e=>`- ${e}`,Qne=e=>Te.isFunction(e)||e===null||e===!1,O$={getAdapter:e=>{e=Te.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!Qne(n)&&(r=W1[(a=String(n)).toLowerCase()],r===void 0))throw new Tt(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
536
|
+
`+i.map(k6).join(`
|
|
537
|
+
`):" "+k6(i[0]):"as no adapter specified";throw new Tt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:W1};function Pm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sl(null,e)}function M6(e){return Pm(e),e.headers=$r.from(e.headers),e.data=Om.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),O$.getAdapter(e.adapter||Ac.adapter)(e).then(function(r){return Pm(e),r.data=Om.call(e,e.transformResponse,r),r.headers=$r.from(r.headers),r},function(r){return x$(r)||(Pm(e),r&&r.response&&(r.response.data=Om.call(e,e.transformResponse,r.response),r.response.headers=$r.from(r.response.headers))),Promise.reject(r)})}const P$="1.11.0",Kp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const A6={};Kp.transitional=function(t,n,r){function o(i,a){return"[Axios v"+P$+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Tt(o(a," has been removed"+(n?" in "+n:"")),Tt.ERR_DEPRECATED);return n&&!A6[a]&&(A6[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};Kp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Zne(e,t,n){if(typeof e!="object")throw new Tt("options must be an object",Tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Tt("option "+i+" must be "+l,Tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Tt("Unknown option "+i,Tt.ERR_BAD_OPTION)}}const af={assertOptions:Zne,validators:Kp},Fo=af.validators;let Oa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $6,response:new $6}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
538
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&af.assertOptions(r,{silentJSONParsing:Fo.transitional(Fo.boolean),forcedJSONParsing:Fo.transitional(Fo.boolean),clarifyTimeoutError:Fo.transitional(Fo.boolean)},!1),o!=null&&(Te.isFunction(o)?n.paramsSerializer={serialize:o}:af.assertOptions(o,{encode:Fo.function,serialize:Fo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),af.assertOptions(n,{baseUrl:Fo.spelling("baseURL"),withXsrfToken:Fo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Te.merge(i.common,i[n.method]);i&&Te.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=$r.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let c,f=0,p;if(!l){const h=[M6.bind(this),void 0];for(h.unshift(...s),h.push(...d),p=h.length,c=Promise.resolve(n);f<p;)c=c.then(h[f++],h[f++]);return c}p=s.length;let m=n;for(f=0;f<p;){const h=s[f++],g=s[f++];try{m=h(m)}catch(b){g.call(this,b);break}}try{c=M6.call(this,m)}catch(h){return Promise.reject(h)}for(f=0,p=d.length;f<p;)c=c.then(d[f++],d[f++]);return c}getUri(t){t=Fa(this.defaults,t);const n=w$(t.baseURL,t.url,t.allowAbsoluteUrls);return y$(n,t.params,t.paramsSerializer)}};Te.forEach(["delete","get","head","options"],function(t){Oa.prototype[t]=function(n,r){return this.request(Fa(r||{},{method:t,url:n,data:(r||{}).data}))}});Te.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Fa(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Oa.prototype[t]=n(),Oa.prototype[t+"Form"]=n(!0)});let Jne=class I${constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Sl(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new I$(function(o){t=o}),cancel:t}}};function ere(e){return function(n){return e.apply(null,n)}}function tre(e){return Te.isObject(e)&&e.isAxiosError===!0}const K1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(K1).forEach(([e,t])=>{K1[t]=e});function T$(e){const t=new Oa(e),n=a$(Oa.prototype.request,t);return Te.extend(n,Oa.prototype,t,{allOwnKeys:!0}),Te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return T$(Fa(e,o))},n}const Tn=T$(Ac);Tn.Axios=Oa;Tn.CanceledError=Sl;Tn.CancelToken=Jne;Tn.isCancel=x$;Tn.VERSION=P$;Tn.toFormData=Up;Tn.AxiosError=Tt;Tn.Cancel=Tn.CanceledError;Tn.all=function(t){return Promise.all(t)};Tn.spread=ere;Tn.isAxiosError=tre;Tn.mergeConfig=Fa;Tn.AxiosHeaders=$r;Tn.formToJSON=e=>C$(Te.isHTMLForm(e)?new FormData(e):e);Tn.getAdapter=O$.getAdapter;Tn.HttpStatusCode=K1;Tn.default=Tn;const{Axios:Hre,AxiosError:Vre,CanceledError:Ure,isCancel:Wre,CancelToken:Kre,VERSION:qre,all:Gre,Cancel:Xre,isAxiosError:Yre,spread:Qre,toFormData:Zre,AxiosHeaders:Jre,HttpStatusCode:eoe,formToJSON:toe,getAdapter:noe,mergeConfig:roe}=Tn;function nre(){try{return""}catch{}return""}let rre={baseURL:nre(),timeout:15e3,headers:{"Content-Type":"application/json"}};function ore(){return rre}class ire{constructor(t={}){const n=ore();this.client=Tn.create({baseURL:t.baseURL||n.baseURL,timeout:t.timeout||n.timeout,headers:{...n.headers,...t.headers}}),this.client.interceptors.request.use(r=>r,r=>Promise.reject(r)),this.client.interceptors.response.use(r=>r,r=>{if(r.response){const{status:o,data:i}=r.response;throw new Error(`请求失败: ${o} - ${(i==null?void 0:i.message)||r.message}`)}else throw r.request?new Error("网络连接失败,请检查网络连接"):new Error(`请求配置错误: ${r.message}`)})}async get(t,n){return(await this.client.get(t,n)).data}async post(t,n,r){return(await this.client.post(t,n,r)).data}async put(t,n,r){return(await this.client.put(t,n,r)).data}async delete(t,n){return(await this.client.delete(t,n)).data}async patch(t,n,r){return(await this.client.patch(t,n,r)).data}setBaseURL(t){this.client.defaults.baseURL=t}setHeaders(t){this.client.defaults.headers.common={...this.client.defaults.headers.common,...t}}getAxiosInstance(){return this.client}}const Do=new ire;class are{async getAgentInfo(){return await Do.get("/api/agent/info/get")}async getAgentStatus(){return await Do.get("/api/agent/info/status")}async getAuthStatus(){return await Do.get("/api/auth/status")}async getLoginInfo(){return await Do.get("/api/auth/login-info")}async hasLogin(){return await Do.get("/api/auth/has-login")}async logout(){return await Do.post("/api/auth/logout")}async checkLoginStatus(t){return await Do.post("/api/auth/check",t)}async uploadOpenAiFile(t,n){const r=new FormData;return r.append("file",t),n&&r.append("purpose",n),(await Do.getAxiosInstance().post("/api/agent/upload-openai-file",r,{headers:{"Content-Type":"multipart/form-data"}})).data}}const nc=new are,_$=u.createContext(void 0),sre=({children:e})=>{const[t,n]=u.useState({isLoggedIn:!1,loginInfo:null,isExpired:!1}),[r,o]=u.useState(!0),i=async()=>{try{o(!0);const l=await nc.getAuthStatus();l.code===0?n(l.data):n({isLoggedIn:!1,loginInfo:null,isExpired:!1})}catch(l){console.error("获取认证状态失败:",l),n({isLoggedIn:!1,loginInfo:null,isExpired:!1})}finally{o(!1)}},a=async()=>{try{await nc.logout(),n({isLoggedIn:!1,loginInfo:null,isExpired:!1})}catch(l){console.error("退出登录失败:",l)}};u.useEffect(()=>{i()},[]);const s={isLoggedIn:t.isLoggedIn,loginInfo:t.loginInfo,isExpired:t.isExpired,loading:r,refreshAuthStatus:i,logout:a};return B.jsx(_$.Provider,{value:s,children:e})},gy=()=>{const e=u.useContext(_$);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},lre=()=>{const{isLoggedIn:e,loading:t,logout:n}=gy();return t?B.jsx("div",{className:"auth-indicator loading",children:B.jsx("span",{className:"auth-status",children:"检查登录状态..."})}):e?B.jsxs("div",{className:"auth-indicator logged-in",children:[B.jsx("span",{className:"auth-status",children:"已登录"}),B.jsx("button",{className:"logout-btn",onClick:n,children:"退出"})]}):B.jsx("div",{className:"auth-indicator not-logged-in",children:B.jsx("span",{className:"auth-status",children:"未登录"})})},k$=u.createContext(void 0),ure=({agentSimulatorInfo:e,children:t})=>B.jsx(k$.Provider,{value:{agentSimulatorInfo:e},children:t});function cre(){const e=u.useContext(k$);if(!e)throw new Error("useAgentInfo must be used within AgentProvider");return e}const{Text:oi,Paragraph:N6}=lo,dre=({output:e,usage:t})=>{const{task_status:n,submit_time:r,end_time:o,results:i=[],code:a,message:s}=e,[l,d]=u.useState(!1),[c,f]=u.useState(""),[p,m]=u.useState(""),[h,g]=u.useState({}),b=(O,$)=>{f(O),m($||"图片预览"),d(!0)},y=(O,$)=>{const x=document.createElement("a");x.href=O,x.download=`generated-image-${$+1}.png`,document.body.appendChild(x),x.click(),document.body.removeChild(x)},v=O=>{g($=>({...$,[O]:!0}))},C=O=>{switch(O){case"SUCCEEDED":return"success";case"FAILED":return"error";case"CANCELED":return"warning";default:return"default"}};return B.jsxs("div",{className:"task-results-display",children:[B.jsxs("div",{className:"task-results-header",children:[B.jsx(V2,{color:C(n),children:n}),(t==null?void 0:t.image_count)&&B.jsxs(oi,{type:"secondary",className:"image-count-text",children:["生成 ",t.image_count," 张图片"]}),r&&o&&B.jsxs(oi,{type:"secondary",className:"time-text",children:["用时: ",new Date(o).getTime()-new Date(r).getTime(),"ms"]})]}),n==="FAILED"&&(a||s)&&B.jsxs("div",{className:"error-info-section",children:[B.jsx("div",{className:"error-header",children:B.jsx(oi,{strong:!0,type:"danger",children:"❌ 任务执行失败"})}),B.jsxs("div",{className:"error-details",children:[a&&B.jsxs("div",{className:"error-code",children:[B.jsx(oi,{strong:!0,children:"错误代码:"}),B.jsx(oi,{code:!0,className:"error-code-text",children:a})]}),s&&B.jsxs("div",{className:"error-message",children:[B.jsx(oi,{strong:!0,children:"错误信息:"}),B.jsx(oi,{type:"danger",className:"error-message-text",children:s})]})]})]}),B.jsx("div",{className:"results-list",children:i.map((O,$)=>B.jsx(ja,{size:"small",className:"result-card",children:B.jsxs("div",{className:"result-content",children:[O.url&&B.jsxs("div",{className:"image-container",children:[!h[$]&&B.jsx("div",{className:"image-loading",children:B.jsx("div",{className:"loading-text",children:"Loading"})}),B.jsx("img",{src:O.url,alt:`Generated ${$+1}`,className:`result-image ${h[$]?"loaded":""}`,onClick:()=>b(O.url,`生成图片 ${$+1}`),onLoad:()=>v($)})]}),B.jsxs("div",{className:"text-info",children:[O.orig_prompt&&B.jsxs("div",{className:"prompt-section",children:[B.jsx(oi,{strong:!0,className:"prompt-label",children:"原始提示词:"}),B.jsx(N6,{className:"prompt-text",ellipsis:{rows:2,tooltip:O.orig_prompt},children:O.orig_prompt})]}),O.actual_prompt&&O.actual_prompt!==O.orig_prompt&&B.jsxs("div",{className:"prompt-section",children:[B.jsx(oi,{strong:!0,className:"prompt-label",children:"优化后提示词:"}),B.jsx(N6,{className:"prompt-text",ellipsis:{rows:2,tooltip:O.actual_prompt},children:O.actual_prompt})]}),O.url&&B.jsxs(Ca,{size:"small",className:"action-buttons",children:[B.jsx(Dt,{size:"small",icon:B.jsx($a,{}),onClick:()=>b(O.url,`生成图片 ${$+1}`),children:"预览"}),B.jsx(Dt,{size:"small",icon:B.jsx(Is,{}),onClick:()=>y(O.url,$),children:"下载"})]})]})]})},$))}),B.jsx(Yr,{title:p,open:l,onCancel:()=>d(!1),footer:[B.jsx(Dt,{icon:B.jsx(Is,{}),onClick:()=>{const O=document.createElement("a");O.href=c,O.download=`${p}.png`,document.body.appendChild(O),O.click(),document.body.removeChild(O)},children:"下载"},"download"),B.jsx(Dt,{onClick:()=>d(!1),children:"关闭"},"close")],width:"80%",style:{top:20},styles:{body:{padding:12,textAlign:"center"}},children:B.jsx(Vu,{src:c,alt:p,style:{maxWidth:"100%",maxHeight:"70vh"},preview:!1})})]})},fre=e=>{const t=e.task_id||e.taskId||"",n=e.task_status||e.status||"",[r,o]=u.useState(n||"PENDING"),[i,a]=u.useState(null),[s,l]=u.useState(null),[d,c]=u.useState(!!t),[f,p]=u.useState(0),[m,h]=u.useState(!1),[g,b]=u.useState(!1),y=u.useRef(null),{agentSimulatorInfo:v}=cre(),C=u.useCallback(()=>{if(!t||!v)return;const $=async()=>{try{g||p(T=>{const R=T+1;return R>=10?(h(!0),c(!1),y.current&&(window.clearInterval(y.current),y.current=null),10):R});const x=UY(v,t),w=await Do.get(`${x}`);if(w.code===0){const T=w.data,R=T==null?void 0:T.output,S=T==null?void 0:T.usage;if(R){const E=R.task_status||r;o(E),a(R),S&&l(S),(E==="SUCCEEDED"||E==="FAILED"||E==="CANCELED")&&(c(!1),y.current&&(window.clearInterval(y.current),y.current=null))}}else console.error("Query task failed:",w.msg),w.code===-1&&(c(!1),y.current&&(window.clearInterval(y.current),y.current=null))}catch(x){console.warn("Poll error:",x)}};$(),y.current=window.setInterval($,4e3)},[t,v,r,g]),O=u.useCallback(()=>{b(!0),p(0),h(!1),c(!0),a(null),l(null),y.current&&(window.clearInterval(y.current),y.current=null),C()},[C]);return u.useEffect(()=>(b(!1),C(),()=>{y.current&&(window.clearInterval(y.current),y.current=null)}),[C]),B.jsxs("div",{className:"async-task-block",children:[B.jsxs("div",{className:"task-info-bar",children:[B.jsxs("div",{className:"task-info-row",children:[B.jsx("div",{className:"task-title",children:"🚀 异步任务已提交"}),t&&B.jsxs("div",{className:"task-id",children:[B.jsx("span",{children:"ID:"}),B.jsx("code",{className:"task-id-code",children:t})]})]}),B.jsxs("div",{className:"task-info-row",children:[r&&B.jsxs("div",{className:"task-status",children:[B.jsx("span",{children:"状态:"}),B.jsx(V2,{color:r==="SUCCEEDED"?"success":r==="FAILED"?"error":r==="CANCELED"?"warning":"processing",children:r})]}),f>0&&!g&&B.jsxs("div",{className:"poll-count",children:[B.jsx("span",{children:"轮询:"}),B.jsxs("span",{className:"poll-count-badge",children:[f,"/10"]})]})]})]}),d&&B.jsx("div",{className:"loading-container",children:B.jsx("div",{className:"loading-animation",children:B.jsx("div",{className:"loading-text",children:"Loading"})})}),m&&B.jsxs("div",{className:"timeout-retry-bar",children:[B.jsx("span",{className:"timeout-message",children:"轮询超时,请手动重试"}),B.jsx(Dt,{size:"small",type:"primary",icon:B.jsx(v8,{}),onClick:O,children:"重试"})]}),!d&&i&&B.jsx(dre,{output:i,usage:s||void 0})]})},{Title:Im,Text:Rd,Paragraph:j6}=lo,F6=[{id:"chat",title:"对话",description:"智能对话,文本生成与问答",icon:B.jsx(jT,{style:{fontSize:20,color:"#1890ff"}}),color:"#1890ff",prompts:["帮我写一篇关于AI的文章,20字","帮我写一篇关于AI的文章","帮我写一篇关于广州的旅游攻略","帮我一篇购物笔记"]},{id:"image",title:"文生图 & 图片理解",description:"图片生成与智能识别分析",icon:B.jsx(Kv,{style:{fontSize:20,color:"#52c41a"}}),color:"#52c41a",prompts:["给我一个五彩斑斓的黑","生成一张夕阳下的海滩图片","画一只可爱的小猫咪","创作一幅抽象艺术作品"]},{id:"video",title:"文生视频",description:"AI视频生成与编辑",icon:B.jsx(g_,{style:{fontSize:20,color:"#fa541c"}}),color:"#fa541c",prompts:["生成一段海浪拍打沙滩的视频","制作一个产品展示动画","创建一段城市夜景延时摄影","生成一个logo动效视频"],disabled:!0,disabledReason:"逐步开放中"},{id:"multi-agent",title:"多智能体编排",description:"协同工作的智能体系统",icon:B.jsx(wI,{style:{fontSize:20,color:"#722ed1"}}),color:"#722ed1",prompts:["协调多个AI完成项目规划","让团队AI协作写代码","多智能体讨论解决方案","AI团队头脑风暴创意"],disabled:!0,disabledReason:"逐步开放中"}],pre=({onPromptSelect:e,onModuleChange:t,isDark:n=!1})=>{const[r,o]=u.useState(null),[i,a]=u.useState(!1);u.useEffect(()=>{const f=setTimeout(()=>a(!0),100);return()=>clearTimeout(f)},[]);const s=f=>{o(f),t==null||t(f)},l=f=>{e(f)},d=()=>{o(null),t==null||t(null)},c=F6.find(f=>f.id===r);return B.jsx("div",{className:`welcome-module-container ${i?"visible":""}`,children:r?B.jsxs("div",{className:`prompt-selection-view ${i?"visible":""}`,children:[B.jsx("div",{style:{marginBottom:32},children:B.jsx(Dt,{type:"text",onClick:d,className:`back-button ${n?"dark":"light"}`,children:"← 返回模块选择"})}),B.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[B.jsxs("div",{className:`module-header ${n?"dark":"light"}`,children:[B.jsx("div",{className:`header-icon ${n?"dark":"light"}`,style:{borderColor:`${c==null?void 0:c.color}30`},children:V.cloneElement(c==null?void 0:c.icon,{style:{fontSize:24,color:c==null?void 0:c.color,filter:"drop-shadow(0 2px 4px rgba(0,0,0,0.1))"}})}),B.jsx(Im,{level:2,className:`header-title ${n?"dark":"light"}`,children:c==null?void 0:c.title})]}),B.jsx(j6,{className:`prompt-description ${n?"dark":"light"}`,children:"选择一个提示词开始对话,或者输入你自己的问题"})]}),B.jsx(tC,{gutter:[20,20],children:c==null?void 0:c.prompts.map((f,p)=>B.jsx(J4,{xs:24,sm:12,children:B.jsx("div",{className:`prompt-card-wrapper ${i?"visible":""}`,children:B.jsxs(ja,{hoverable:!0,className:`welcome-prompt-card ${n?"dark":"light"}`,styles:{body:{padding:"24px"}},onClick:()=>l(f),children:[B.jsx("div",{className:"prompt-border",style:{background:`linear-gradient(90deg, ${c==null?void 0:c.color}, ${c==null?void 0:c.color}80)`}}),B.jsxs("div",{className:"prompt-content",children:[B.jsx(Rd,{className:`prompt-text ${n?"dark":"light"}`,children:f}),B.jsx("div",{className:"prompt-arrow",style:{background:`${c==null?void 0:c.color}15`},children:B.jsx(di,{style:{color:c==null?void 0:c.color,fontSize:12,fontWeight:"bold"}})})]})]})})},p))})]}):B.jsxs("div",{children:[B.jsxs("div",{className:`welcome-header ${i?"visible":""}`,children:[B.jsx(Im,{level:1,className:`welcome-title ${n?"dark":"light"}`,children:"小程序开放平台智能体调试器"}),B.jsx(j6,{className:`welcome-description ${n?"dark":"light"}`,children:"探索平台多元化AI能力,选择一个模块快速进行调试"})]}),B.jsx(tC,{gutter:[24,24],children:F6.map((f,p)=>B.jsx(J4,{xs:24,sm:12,children:B.jsx("div",{className:`module-card-wrapper ${i?"visible":""}`,children:B.jsxs(ja,{hoverable:!f.disabled,className:`welcome-module-card ${n?"dark":"light"} ${f.disabled?"disabled":""}`,onClick:()=>!f.disabled&&s(f.id),styles:{body:{padding:0}},children:[B.jsx("div",{className:"decorative-bg",style:{background:`${f.color}10`}}),B.jsxs("div",{className:`card-header ${n?"dark":"light"}`,children:[B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:20,marginBottom:16},children:[B.jsx("div",{className:`module-icon-container ${n?"dark":"light"}`,style:{borderColor:`${f.color}30`},children:V.cloneElement(f.icon,{style:{fontSize:24,color:f.color,filter:"drop-shadow(0 2px 4px rgba(0,0,0,0.1))"}})}),B.jsx(Im,{level:3,className:`module-title ${n?"dark":"light"}`,children:f.title})]}),B.jsx(Rd,{className:`module-description ${n?"dark":"light"}`,children:f.description})]}),B.jsx("div",{className:`card-footer ${n?"dark":"light"}`,children:f.disabled?B.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[B.jsx(Rd,{className:`footer-text ${n?"dark":"light"}`,style:{color:f.disabled?"#999":void 0},children:f.disabledReason}),B.jsx("div",{className:"arrow-container disabled",style:{background:"#f5f5f5",opacity:.5},children:B.jsx(di,{style:{color:"#ccc",fontSize:14,fontWeight:"bold"}})})]}):B.jsxs(B.Fragment,{children:[B.jsx(Rd,{className:`footer-text ${n?"dark":"light"}`,children:"点击进入"}),B.jsx("div",{className:"arrow-container",style:{background:`${f.color}15`},children:B.jsx(di,{style:{color:f.color,fontSize:14,fontWeight:"bold"}})})]})})]})})},f.id))})]})})},hre=({code:e,log_id:t,details:n,rawData:r})=>{const o=(r==null?void 0:r.message)||(r==null?void 0:r.error)||(n==null?void 0:n.message)||(typeof n=="string"?n:"未知错误"),i=e||(r==null?void 0:r.code),a=t||(r==null?void 0:r.log_id),s=r?Object.fromEntries(Object.entries(r).filter(([l,d])=>d!=null&&d!=="")):null;return B.jsxs("div",{className:"error-card",children:[B.jsxs("div",{className:"error-card__header",children:[B.jsx("div",{className:"error-card__header-icon",children:"!"}),B.jsx("span",{className:"error-card__header-title",children:"错误信息"})]}),B.jsx("div",{className:"error-card__message",children:o}),(i||a)&&B.jsxs("div",{className:"error-card__meta",children:[i&&B.jsxs("div",{className:"error-card__meta-item",children:[B.jsx("span",{className:"error-card__meta-item-label",children:"错误码:"})," ",i]}),a&&B.jsxs("div",{className:"error-card__meta-item",children:[B.jsx("span",{className:"error-card__meta-item-label",children:"日志ID:"})," ",a]})]}),s&&Object.keys(s).length>0&&B.jsxs("details",{className:"error-card__details",children:[B.jsx("summary",{className:"error-card__details-summary",children:"详细信息"}),B.jsx("pre",{className:"error-card__details-content",children:JSON.stringify(s,null,2)})]})]})},ha={maxFileSize:50*1024*1024,allowedTypes:["image/jpeg","image/png","image/gif","image/webp","image/bmp","image/tiff","application/pdf","video/mp4","video/avi","video/mov","video/wmv","video/flv","video/webm","audio/mp3","audio/wav","audio/m4a","audio/aac","audio/ogg","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"],fileTypeMap:{"image/jpeg":"image","image/png":"image","image/gif":"image","image/webp":"image","image/bmp":"image","image/tiff":"image","application/pdf":"pdf","video/mp4":"video","video/avi":"video","video/mov":"video","video/wmv":"video","video/flv":"video","video/webm":"video","audio/mp3":"audio","audio/wav":"audio","audio/m4a":"audio","audio/aac":"audio","audio/ogg":"audio","text/plain":"document","application/msword":"document","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"document","application/vnd.ms-excel":"document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"document","application/vnd.ms-powerpoint":"document","application/vnd.openxmlformats-officedocument.presentationml.presentation":"document"}},mre=480,M$=u.createContext(void 0),gre=({children:e,isDark:t})=>B.jsx(M$.Provider,{value:{isDark:t},children:e}),vre=()=>{const e=u.useContext(M$);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},A$=(e=5e3)=>{const[t,n]=u.useState(null),[r,o]=u.useState("connecting"),[i,a]=u.useState(!0),[s,l]=u.useState(null),d=u.useRef(null),c=u.useRef(null),f=u.useCallback(async()=>{try{const v=await nc.getAgentInfo();n(v),l(null)}catch(v){l(v instanceof Error?v.message:"获取 Agent 信息失败")}},[]),p=u.useCallback(async()=>{try{const v=await nc.getAgentStatus();o(v.status==="normal"?"normal":"error"),a(!1),l(null)}catch(v){o("error"),a(!1),l(v instanceof Error?v.message:"检查 Agent 状态失败")}},[]),m=u.useCallback(()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{o("timeout"),a(!1)},1e4)},[]),h=u.useCallback(()=>{c.current&&clearTimeout(c.current),c.current=null},[]),g=u.useCallback(()=>{d.current&&clearInterval(d.current),d.current=setInterval(p,e)},[p,e]),b=u.useCallback(()=>{d.current&&clearInterval(d.current),d.current=null},[]),y=u.useCallback(async()=>{a(!0),o("connecting"),l(null),m(),await Promise.all([f(),p()]),h()},[f,p,m,h]);return u.useEffect(()=>(a(!0),o("connecting"),l(null),m(),Promise.all([f(),p()]).then(h),g(),()=>{b(),h()}),[f,p,g,b,m,h]),{agentSimulatorInfo:t,debugStatus:r,isConnecting:i,error:s,retryConnection:y}};var N$={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(B$,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=r,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(a&1&&(i=o(i)),a&8||a&4&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),a&2&&typeof i!="string")for(var l in i)o.d(s,l,(function(d){return i[d]}).bind(null,l));return s},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="/dist/",o(o.s="./index.js")}({"./index.js":function(n,r,o){var i=o("./src/cos.js");n.exports=i},"./lib/base64.js":function(n,r){var o=function(i){i=i||{};var a=i.Base64,s="2.1.9",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(P){for(var I={},k=0,N=P.length;k<N;k++)I[P.charAt(k)]=k;return I}(l),c=String.fromCharCode,f=function(I){if(I.length<2){var k=I.charCodeAt(0);return k<128?I:k<2048?c(192|k>>>6)+c(128|k&63):c(224|k>>>12&15)+c(128|k>>>6&63)+c(128|k&63)}else{var k=65536+(I.charCodeAt(0)-55296)*1024+(I.charCodeAt(1)-56320);return c(240|k>>>18&7)+c(128|k>>>12&63)+c(128|k>>>6&63)+c(128|k&63)}},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,m=function(I){return I.replace(p,f)},h=function(I){var k=[0,2,1][I.length%3],N=I.charCodeAt(0)<<16|(I.length>1?I.charCodeAt(1):0)<<8|(I.length>2?I.charCodeAt(2):0),M=[l.charAt(N>>>18),l.charAt(N>>>12&63),k>=2?"=":l.charAt(N>>>6&63),k>=1?"=":l.charAt(N&63)];return M.join("")},g=i.btoa?function(P){return i.btoa(P)}:function(P){return P.replace(/[\s\S]{1,3}/g,h)},b=function(P){return g(m(P))},y=function(I,k){return k?b(String(I)).replace(/[+\/]/g,function(N){return N=="+"?"-":"_"}).replace(/=/g,""):b(String(I))},v=function(I){return y(I,!0)},C=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),O=function(I){switch(I.length){case 4:var k=(7&I.charCodeAt(0))<<18|(63&I.charCodeAt(1))<<12|(63&I.charCodeAt(2))<<6|63&I.charCodeAt(3),N=k-65536;return c((N>>>10)+55296)+c((N&1023)+56320);case 3:return c((15&I.charCodeAt(0))<<12|(63&I.charCodeAt(1))<<6|63&I.charCodeAt(2));default:return c((31&I.charCodeAt(0))<<6|63&I.charCodeAt(1))}},$=function(I){return I.replace(C,O)},x=function(I){var k=I.length,N=k%4,M=(k>0?d[I.charAt(0)]<<18:0)|(k>1?d[I.charAt(1)]<<12:0)|(k>2?d[I.charAt(2)]<<6:0)|(k>3?d[I.charAt(3)]:0),j=[c(M>>>16),c(M>>>8&255),c(M&255)];return j.length-=[0,0,2,1][N],j.join("")},w=i.atob?function(P){return i.atob(P)}:function(P){return P.replace(/[\s\S]{1,4}/g,x)},T=function(P){return $(w(P))},R=function(I){return T(String(I).replace(/[-_]/g,function(k){return k=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(){var I=i.Base64;return i.Base64=a,I},E={VERSION:s,atob:w,btoa:g,fromBase64:R,toBase64:y,utob:m,encode:y,encodeURI:v,btou:$,decode:R,noConflict:S};return E}();n.exports=o},"./lib/crypto.js":function(n,r,o){(function(i){var a=o("./node_modules/@babel/runtime/helpers/typeof.js"),s=s||function(l,d){var c={},f=c.lib={},p=function(){},m=f.Base={extend:function(x){p.prototype=this;var w=new p;return x&&w.mixIn(x),w.hasOwnProperty("init")||(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var w in x)x.hasOwnProperty(w)&&(this[w]=x[w]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}},h=f.WordArray=m.extend({init:function(x,w){x=this.words=x||[],this.sigBytes=w!=d?w:4*x.length},toString:function(x){return(x||b).stringify(this)},concat:function(x){var w=this.words,T=x.words,R=this.sigBytes;if(x=x.sigBytes,this.clamp(),R%4)for(var S=0;S<x;S++)w[R+S>>>2]|=(T[S>>>2]>>>24-8*(S%4)&255)<<24-8*((R+S)%4);else if(65535<T.length)for(S=0;S<x;S+=4)w[R+S>>>2]=T[S>>>2];else w.push.apply(w,T);return this.sigBytes+=x,this},clamp:function(){var x=this.words,w=this.sigBytes;x[w>>>2]&=4294967295<<32-8*(w%4),x.length=l.ceil(w/4)},clone:function(){var x=m.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var w=[],T=0;T<x;T+=4)w.push(4294967296*l.random()|0);return new h.init(w,x)}}),g=c.enc={},b=g.Hex={stringify:function(x){var w=x.words;x=x.sigBytes;for(var T=[],R=0;R<x;R++){var S=w[R>>>2]>>>24-8*(R%4)&255;T.push((S>>>4).toString(16)),T.push((S&15).toString(16))}return T.join("")},parse:function(x){for(var w=x.length,T=[],R=0;R<w;R+=2)T[R>>>3]|=parseInt(x.substr(R,2),16)<<24-4*(R%8);return new h.init(T,w/2)}},y=g.Latin1={stringify:function(x){var w=x.words;x=x.sigBytes;for(var T=[],R=0;R<x;R++)T.push(String.fromCharCode(w[R>>>2]>>>24-8*(R%4)&255));return T.join("")},parse:function(x){for(var w=x.length,T=[],R=0;R<w;R++)T[R>>>2]|=(x.charCodeAt(R)&255)<<24-8*(R%4);return new h.init(T,w)}},v=g.Utf8={stringify:function(x){try{return decodeURIComponent(escape(y.stringify(x)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(x){return y.parse(unescape(encodeURIComponent(x)))}},C=f.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=v.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var w=this._data,T=w.words,R=w.sigBytes,S=this.blockSize,E=R/(4*S),E=x?l.ceil(E):l.max((E|0)-this._minBufferSize,0);if(x=E*S,R=l.min(4*x,R),x){for(var P=0;P<x;P+=S)this._doProcessBlock(T,P);P=T.splice(0,x),w.sigBytes-=R}return new h.init(P,R)},clone:function(){var x=m.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});f.Hasher=C.extend({cfg:m.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){return x&&this._append(x),this._doFinalize()},blockSize:16,_createHelper:function(x){return function(w,T){return new x.init(T).finalize(w)}},_createHmacHelper:function(x){return function(w,T){return new O.HMAC.init(x,T).finalize(w)}}});var O=c.algo={};return c}(Math);(function(){var l=s,p=l.lib,d=p.WordArray,c=p.Hasher,f=[],p=l.algo.SHA1=c.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,g){for(var b=this._hash.words,y=b[0],v=b[1],C=b[2],O=b[3],$=b[4],x=0;80>x;x++){if(16>x)f[x]=h[g+x]|0;else{var w=f[x-3]^f[x-8]^f[x-14]^f[x-16];f[x]=w<<1|w>>>31}w=(y<<5|y>>>27)+$+f[x],w=20>x?w+((v&C|~v&O)+1518500249):40>x?w+((v^C^O)+1859775393):60>x?w+((v&C|v&O|C&O)-1894007588):w+((v^C^O)-899497514),$=O,O=C,C=v<<30|v>>>2,v=y,y=w}b[0]=b[0]+y|0,b[1]=b[1]+v|0,b[2]=b[2]+C|0,b[3]=b[3]+O|0,b[4]=b[4]+$|0},_doFinalize:function(){var h=this._data,g=h.words,b=8*this._nDataBytes,y=8*h.sigBytes;return g[y>>>5]|=128<<24-y%32,g[(y+64>>>9<<4)+14]=Math.floor(b/4294967296),g[(y+64>>>9<<4)+15]=b,h.sigBytes=4*g.length,this._process(),this._hash},clone:function(){var h=c.clone.call(this);return h._hash=this._hash.clone(),h}});l.SHA1=c._createHelper(p),l.HmacSHA1=c._createHmacHelper(p)})(),function(){var l=s,d=l.enc.Utf8;l.algo.HMAC=l.lib.Base.extend({init:function(f,p){f=this._hasher=new f.init,typeof p=="string"&&(p=d.parse(p));var m=f.blockSize,h=4*m;p.sigBytes>h&&(p=f.finalize(p)),p.clamp();for(var g=this._oKey=p.clone(),b=this._iKey=p.clone(),y=g.words,v=b.words,C=0;C<m;C++)y[C]^=1549556828,v[C]^=909522486;g.sigBytes=b.sigBytes=h,this.reset()},reset:function(){var f=this._hasher;f.reset(),f.update(this._iKey)},update:function(f){return this._hasher.update(f),this},finalize:function(f){var p=this._hasher;return f=p.finalize(f),p.reset(),p.finalize(this._oKey.clone().concat(f))}})}(),function(){var l=s,d=l.lib,c=d.WordArray,f=l.enc;f.Base64={stringify:function(m){var h=m.words,g=m.sigBytes,b=this._map;m.clamp();for(var y=[],v=0;v<g;v+=3)for(var C=h[v>>>2]>>>24-v%4*8&255,O=h[v+1>>>2]>>>24-(v+1)%4*8&255,$=h[v+2>>>2]>>>24-(v+2)%4*8&255,x=C<<16|O<<8|$,w=0;w<4&&v+w*.75<g;w++)y.push(b.charAt(x>>>6*(3-w)&63));var T=b.charAt(64);if(T)for(;y.length%4;)y.push(T);return y.join("")},parse:function(m){var h=m.length,g=this._map,b=g.charAt(64);if(b){var y=m.indexOf(b);y!=-1&&(h=y)}for(var v=[],C=0,O=0;O<h;O++)if(O%4){var $=g.indexOf(m.charAt(O-1))<<O%4*2,x=g.indexOf(m.charAt(O))>>>6-O%4*2;v[C>>>2]|=($|x)<<24-C%4*8,C++}return c.create(v,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),a(i)==="object"?i.exports=s:window.CryptoJS=s}).call(this,o("./node_modules/webpack/buildin/module.js")(n))},"./lib/md5.js":function(n,r,o){(function(i){var a,s=o("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var l=(typeof window>"u"?"undefined":s(window))==="object",d=l?window:{};d.JS_MD5_NO_WINDOW&&(l=!1);var c=!l&&(typeof self>"u"?"undefined":s(self))==="object";c&&(d=self);var f=!d.JS_MD5_NO_COMMON_JS&&s(i)==="object"&&i.exports,p=o("./node_modules/webpack/buildin/amd-options.js"),m=!d.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),g=[128,32768,8388608,-2147483648],b=[0,8,16,24],y=["hex","array","digest","buffer","arrayBuffer","base64"],v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),C=[],O;if(m){var $=new ArrayBuffer(68);O=new Uint8Array($),C=new Uint32Array($)}(d.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(S){return Object.prototype.toString.call(S)==="[object Array]"}),m&&(d.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(S){return s(S)==="object"&&S.buffer&&S.buffer.constructor===ArrayBuffer});var x=function(E){return function(P,I){return new T(!0).update(P,I)[E]()}},w=function(){var E=x("hex");E.getCtx=E.create=function(){return new T},E.update=function(k){return E.create().update(k)};for(var P=0;P<y.length;++P){var I=y[P];E[I]=x(I)}return E};function T(S){if(S)C[0]=C[16]=C[1]=C[2]=C[3]=C[4]=C[5]=C[6]=C[7]=C[8]=C[9]=C[10]=C[11]=C[12]=C[13]=C[14]=C[15]=0,this.blocks=C,this.buffer8=O;else if(m){var E=new ArrayBuffer(68);this.buffer8=new Uint8Array(E),this.blocks=new Uint32Array(E)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}T.prototype.update=function(S,E){if(!this.finalized){for(var P,I=0,k,N=S.length,M=this.blocks,j=this.buffer8;I<N;){if(this.hashed&&(this.hashed=!1,M[0]=M[16],M[16]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=0),m)for(k=this.start;I<N&&k<64;++I)P=S.charCodeAt(I),E||P<128?j[k++]=P:P<2048?(j[k++]=192|P>>6,j[k++]=128|P&63):P<55296||P>=57344?(j[k++]=224|P>>12,j[k++]=128|P>>6&63,j[k++]=128|P&63):(P=65536+((P&1023)<<10|S.charCodeAt(++I)&1023),j[k++]=240|P>>18,j[k++]=128|P>>12&63,j[k++]=128|P>>6&63,j[k++]=128|P&63);else for(k=this.start;I<N&&k<64;++I)P=S.charCodeAt(I),E||P<128?M[k>>2]|=P<<b[k++&3]:P<2048?(M[k>>2]|=(192|P>>6)<<b[k++&3],M[k>>2]|=(128|P&63)<<b[k++&3]):P<55296||P>=57344?(M[k>>2]|=(224|P>>12)<<b[k++&3],M[k>>2]|=(128|P>>6&63)<<b[k++&3],M[k>>2]|=(128|P&63)<<b[k++&3]):(P=65536+((P&1023)<<10|S.charCodeAt(++I)&1023),M[k>>2]|=(240|P>>18)<<b[k++&3],M[k>>2]|=(128|P>>12&63)<<b[k++&3],M[k>>2]|=(128|P>>6&63)<<b[k++&3],M[k>>2]|=(128|P&63)<<b[k++&3]);this.lastByteIndex=k,this.bytes+=k-this.start,k>=64?(this.start=k-64,this.hash(),this.hashed=!0):this.start=k}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var S=this.blocks,E=this.lastByteIndex;S[E>>2]|=g[E&3],E>=56&&(this.hashed||this.hash(),S[0]=S[16],S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0),S[14]=this.bytes<<3,S[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},T.prototype.hash=function(){var S,E,P,I,k,N,M=this.blocks;this.first?(S=M[0]-680876937,S=(S<<7|S>>>25)-271733879<<0,I=(-1732584194^S&2004318071)+M[1]-117830708,I=(I<<12|I>>>20)+S<<0,P=(-271733879^I&(S^-271733879))+M[2]-1126478375,P=(P<<17|P>>>15)+I<<0,E=(S^P&(I^S))+M[3]-1316259209,E=(E<<22|E>>>10)+P<<0):(S=this.h0,E=this.h1,P=this.h2,I=this.h3,S+=(I^E&(P^I))+M[0]-680876936,S=(S<<7|S>>>25)+E<<0,I+=(P^S&(E^P))+M[1]-389564586,I=(I<<12|I>>>20)+S<<0,P+=(E^I&(S^E))+M[2]+606105819,P=(P<<17|P>>>15)+I<<0,E+=(S^P&(I^S))+M[3]-1044525330,E=(E<<22|E>>>10)+P<<0),S+=(I^E&(P^I))+M[4]-176418897,S=(S<<7|S>>>25)+E<<0,I+=(P^S&(E^P))+M[5]+1200080426,I=(I<<12|I>>>20)+S<<0,P+=(E^I&(S^E))+M[6]-1473231341,P=(P<<17|P>>>15)+I<<0,E+=(S^P&(I^S))+M[7]-45705983,E=(E<<22|E>>>10)+P<<0,S+=(I^E&(P^I))+M[8]+1770035416,S=(S<<7|S>>>25)+E<<0,I+=(P^S&(E^P))+M[9]-1958414417,I=(I<<12|I>>>20)+S<<0,P+=(E^I&(S^E))+M[10]-42063,P=(P<<17|P>>>15)+I<<0,E+=(S^P&(I^S))+M[11]-1990404162,E=(E<<22|E>>>10)+P<<0,S+=(I^E&(P^I))+M[12]+1804603682,S=(S<<7|S>>>25)+E<<0,I+=(P^S&(E^P))+M[13]-40341101,I=(I<<12|I>>>20)+S<<0,P+=(E^I&(S^E))+M[14]-1502002290,P=(P<<17|P>>>15)+I<<0,E+=(S^P&(I^S))+M[15]+1236535329,E=(E<<22|E>>>10)+P<<0,S+=(P^I&(E^P))+M[1]-165796510,S=(S<<5|S>>>27)+E<<0,I+=(E^P&(S^E))+M[6]-1069501632,I=(I<<9|I>>>23)+S<<0,P+=(S^E&(I^S))+M[11]+643717713,P=(P<<14|P>>>18)+I<<0,E+=(I^S&(P^I))+M[0]-373897302,E=(E<<20|E>>>12)+P<<0,S+=(P^I&(E^P))+M[5]-701558691,S=(S<<5|S>>>27)+E<<0,I+=(E^P&(S^E))+M[10]+38016083,I=(I<<9|I>>>23)+S<<0,P+=(S^E&(I^S))+M[15]-660478335,P=(P<<14|P>>>18)+I<<0,E+=(I^S&(P^I))+M[4]-405537848,E=(E<<20|E>>>12)+P<<0,S+=(P^I&(E^P))+M[9]+568446438,S=(S<<5|S>>>27)+E<<0,I+=(E^P&(S^E))+M[14]-1019803690,I=(I<<9|I>>>23)+S<<0,P+=(S^E&(I^S))+M[3]-187363961,P=(P<<14|P>>>18)+I<<0,E+=(I^S&(P^I))+M[8]+1163531501,E=(E<<20|E>>>12)+P<<0,S+=(P^I&(E^P))+M[13]-1444681467,S=(S<<5|S>>>27)+E<<0,I+=(E^P&(S^E))+M[2]-51403784,I=(I<<9|I>>>23)+S<<0,P+=(S^E&(I^S))+M[7]+1735328473,P=(P<<14|P>>>18)+I<<0,E+=(I^S&(P^I))+M[12]-1926607734,E=(E<<20|E>>>12)+P<<0,k=E^P,S+=(k^I)+M[5]-378558,S=(S<<4|S>>>28)+E<<0,I+=(k^S)+M[8]-2022574463,I=(I<<11|I>>>21)+S<<0,N=I^S,P+=(N^E)+M[11]+1839030562,P=(P<<16|P>>>16)+I<<0,E+=(N^P)+M[14]-35309556,E=(E<<23|E>>>9)+P<<0,k=E^P,S+=(k^I)+M[1]-1530992060,S=(S<<4|S>>>28)+E<<0,I+=(k^S)+M[4]+1272893353,I=(I<<11|I>>>21)+S<<0,N=I^S,P+=(N^E)+M[7]-155497632,P=(P<<16|P>>>16)+I<<0,E+=(N^P)+M[10]-1094730640,E=(E<<23|E>>>9)+P<<0,k=E^P,S+=(k^I)+M[13]+681279174,S=(S<<4|S>>>28)+E<<0,I+=(k^S)+M[0]-358537222,I=(I<<11|I>>>21)+S<<0,N=I^S,P+=(N^E)+M[3]-722521979,P=(P<<16|P>>>16)+I<<0,E+=(N^P)+M[6]+76029189,E=(E<<23|E>>>9)+P<<0,k=E^P,S+=(k^I)+M[9]-640364487,S=(S<<4|S>>>28)+E<<0,I+=(k^S)+M[12]-421815835,I=(I<<11|I>>>21)+S<<0,N=I^S,P+=(N^E)+M[15]+530742520,P=(P<<16|P>>>16)+I<<0,E+=(N^P)+M[2]-995338651,E=(E<<23|E>>>9)+P<<0,S+=(P^(E|~I))+M[0]-198630844,S=(S<<6|S>>>26)+E<<0,I+=(E^(S|~P))+M[7]+1126891415,I=(I<<10|I>>>22)+S<<0,P+=(S^(I|~E))+M[14]-1416354905,P=(P<<15|P>>>17)+I<<0,E+=(I^(P|~S))+M[5]-57434055,E=(E<<21|E>>>11)+P<<0,S+=(P^(E|~I))+M[12]+1700485571,S=(S<<6|S>>>26)+E<<0,I+=(E^(S|~P))+M[3]-1894986606,I=(I<<10|I>>>22)+S<<0,P+=(S^(I|~E))+M[10]-1051523,P=(P<<15|P>>>17)+I<<0,E+=(I^(P|~S))+M[1]-2054922799,E=(E<<21|E>>>11)+P<<0,S+=(P^(E|~I))+M[8]+1873313359,S=(S<<6|S>>>26)+E<<0,I+=(E^(S|~P))+M[15]-30611744,I=(I<<10|I>>>22)+S<<0,P+=(S^(I|~E))+M[6]-1560198380,P=(P<<15|P>>>17)+I<<0,E+=(I^(P|~S))+M[13]+1309151649,E=(E<<21|E>>>11)+P<<0,S+=(P^(E|~I))+M[4]-145523070,S=(S<<6|S>>>26)+E<<0,I+=(E^(S|~P))+M[11]-1120210379,I=(I<<10|I>>>22)+S<<0,P+=(S^(I|~E))+M[2]+718787259,P=(P<<15|P>>>17)+I<<0,E+=(I^(P|~S))+M[9]-343485551,E=(E<<21|E>>>11)+P<<0,this.first?(this.h0=S+1732584193<<0,this.h1=E-271733879<<0,this.h2=P-1732584194<<0,this.h3=I+271733878<<0,this.first=!1):(this.h0=this.h0+S<<0,this.h1=this.h1+E<<0,this.h2=this.h2+P<<0,this.h3=this.h3+I<<0)},T.prototype.hex=function(){this.finalize();var S=this.h0,E=this.h1,P=this.h2,I=this.h3;return h[S>>4&15]+h[S&15]+h[S>>12&15]+h[S>>8&15]+h[S>>20&15]+h[S>>16&15]+h[S>>28&15]+h[S>>24&15]+h[E>>4&15]+h[E&15]+h[E>>12&15]+h[E>>8&15]+h[E>>20&15]+h[E>>16&15]+h[E>>28&15]+h[E>>24&15]+h[P>>4&15]+h[P&15]+h[P>>12&15]+h[P>>8&15]+h[P>>20&15]+h[P>>16&15]+h[P>>28&15]+h[P>>24&15]+h[I>>4&15]+h[I&15]+h[I>>12&15]+h[I>>8&15]+h[I>>20&15]+h[I>>16&15]+h[I>>28&15]+h[I>>24&15]},T.prototype.toString=T.prototype.hex,T.prototype.digest=function(S){if(S==="hex")return this.hex();this.finalize();var E=this.h0,P=this.h1,I=this.h2,k=this.h3,N=[E&255,E>>8&255,E>>16&255,E>>24&255,P&255,P>>8&255,P>>16&255,P>>24&255,I&255,I>>8&255,I>>16&255,I>>24&255,k&255,k>>8&255,k>>16&255,k>>24&255];return N},T.prototype.array=T.prototype.digest,T.prototype.arrayBuffer=function(){this.finalize();var S=new ArrayBuffer(16),E=new Uint32Array(S);return E[0]=this.h0,E[1]=this.h1,E[2]=this.h2,E[3]=this.h3,S},T.prototype.buffer=T.prototype.arrayBuffer,T.prototype.base64=function(){for(var S,E,P,I="",k=this.array(),N=0;N<15;)S=k[N++],E=k[N++],P=k[N++],I+=v[S>>>2]+v[(S<<4|E>>>4)&63]+v[(E<<2|P>>>6)&63]+v[P&63];return S=k[N],I+=v[S>>>2]+v[S<<4&63]+"==",I};var R=w();f?i.exports=R:(d.md5=R,p&&(a=(function(){return R}).call(R,o,R,i),a!==void 0&&(i.exports=a)))})()}).call(this,o("./node_modules/webpack/buildin/module.js")(n))},"./lib/request.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/typeof.js"),a=function(p){switch(i(p)){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}},s=function(p,m,h,g){return m=m||"&",h=h||"=",p===null&&(p=void 0),i(p)==="object"?Object.keys(p).map(function(b){var y=encodeURIComponent(a(b))+h;return Array.isArray(p[b])?p[b].map(function(v){return y+encodeURIComponent(a(v))}).join(m):y+encodeURIComponent(a(p[b]))}).filter(Boolean).join(m):""},l=function(p,m,h){var g={},b=m.getAllResponseHeaders();return b&&b.length>0&&b.trim().split(`
|
|
539
|
+
`).forEach(function(y){if(y){var v=y.indexOf(":"),C=y.substr(0,v).trim().toLowerCase(),O=y.substr(v+1).trim();g[C]=O}}),{error:p,statusCode:m.status,statusMessage:m.statusText,headers:g,body:h}},d=function(p,m){return!m&&m==="text"?p.responseText:p.response},c=function(p,m){var h=(p.method||"GET").toUpperCase(),g=p.url;if(p.qs){var b=s(p.qs);b&&(g+=(g.indexOf("?")===-1?"?":"&")+b)}var y=new XMLHttpRequest;if(y.open(h,g,!0),y.responseType=p.dataType||"text",p.xhrFields)for(var v in p.xhrFields)y[v]=p.xhrFields[v];var C=p.headers;if(C)for(var O in C)C.hasOwnProperty(O)&&O.toLowerCase()!=="content-length"&&O.toLowerCase()!=="user-agent"&&O.toLowerCase()!=="origin"&&O.toLowerCase()!=="host"&&y.setRequestHeader(O,C[O]);return p.onProgress&&y.upload&&(y.upload.onprogress=p.onProgress),p.onDownloadProgress&&(y.onprogress=p.onDownloadProgress),p.timeout&&(y.timeout=p.timeout),y.ontimeout=function($){var x=new Error("timeout");m(l(x,y))},y.onload=function(){m(l(null,y,d(y,p.dataType)))},y.onerror=function($){var x=d(y,p.dataType);if(x)m(l(null,y,x));else{var w=y.statusText;!w&&y.status===0&&(w=new Error("CORS blocked or network error")),m(l(w,y,x))}},y.send(p.body||""),y};n.exports=c},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(n,r){function o(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}n.exports=o,n.exports.__esModule=!0,n.exports.default=n.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function a(l,d){for(var c=0;c<d.length;c++){var f=d[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,i(f.key),f)}}function s(l,d,c){return d&&a(l.prototype,d),c&&a(l,c),Object.defineProperty(l,"prototype",{writable:!1}),l}n.exports=s,n.exports.__esModule=!0,n.exports.default=n.exports},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function a(s,l,d){return(l=i(l))in s?Object.defineProperty(s,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[l]=d,s}n.exports=a,n.exports.__esModule=!0,n.exports.default=n.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/typeof.js").default;function a(s,l){if(i(s)!="object"||!s)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var c=d.call(s,l||"default");if(i(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(s)}n.exports=a,n.exports.__esModule=!0,n.exports.default=n.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/typeof.js").default,a=o("./node_modules/@babel/runtime/helpers/toPrimitive.js");function s(l){var d=a(l,"string");return i(d)=="symbol"?d:d+""}n.exports=s,n.exports.__esModule=!0,n.exports.default=n.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(n,r){function o(i){"@babel/helpers - typeof";return n.exports=o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n.exports.__esModule=!0,n.exports.default=n.exports,o(i)}n.exports=o,n.exports.__esModule=!0,n.exports.default=n.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(n,r,o){const i=o("./node_modules/fast-xml-parser/src/validator.js"),a=o("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),s=o("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");n.exports={XMLParser:a,XMLValidator:i,XMLBuilder:s}},"./node_modules/fast-xml-parser/src/ignoreAttributes.js":function(n,r){function o(i){return typeof i=="function"?i:Array.isArray(i)?a=>{for(const s of i)if(typeof s=="string"&&a===s||s instanceof RegExp&&s.test(a))return!0}:()=>!1}n.exports=o},"./node_modules/fast-xml-parser/src/util.js":function(n,r,o){const i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",a=i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",s="["+i+"]["+a+"]*",l=new RegExp("^"+s+"$"),d=function(f,p){const m=[];let h=p.exec(f);for(;h;){const g=[];g.startIndex=p.lastIndex-h[0].length;const b=h.length;for(let y=0;y<b;y++)g.push(h[y]);m.push(g),h=p.exec(f)}return m},c=function(f){const p=l.exec(f);return!(p===null||typeof p>"u")};r.isExist=function(f){return typeof f<"u"},r.isEmptyObject=function(f){return Object.keys(f).length===0},r.merge=function(f,p,m){if(p){const h=Object.keys(p),g=h.length;for(let b=0;b<g;b++)m==="strict"?f[h[b]]=[p[h[b]]]:f[h[b]]=p[h[b]]}},r.getValue=function(f){return r.isExist(f)?f:""},r.isName=c,r.getAllMatches=d,r.nameRegexp=s},"./node_modules/fast-xml-parser/src/validator.js":function(n,r,o){const i=o("./node_modules/fast-xml-parser/src/util.js"),a={allowBooleanAttributes:!1,unpairedTags:[]};r.validate=function(x,w){w=Object.assign({},a,w);const T=[];let R=!1,S=!1;x[0]==="\uFEFF"&&(x=x.substr(1));for(let E=0;E<x.length;E++)if(x[E]==="<"&&x[E+1]==="?"){if(E+=2,E=l(x,E),E.err)return E}else if(x[E]==="<"){let P=E;if(E++,x[E]==="!"){E=d(x,E);continue}else{let I=!1;x[E]==="/"&&(I=!0,E++);let k="";for(;E<x.length&&x[E]!==">"&&x[E]!==" "&&x[E]!==" "&&x[E]!==`
|
|
540
|
+
`&&x[E]!=="\r";E++)k+=x[E];if(k=k.trim(),k[k.length-1]==="/"&&(k=k.substring(0,k.length-1),E--),!C(k)){let j;return k.trim().length===0?j="Invalid space after '<'.":j="Tag '"+k+"' is an invalid name.",y("InvalidTag",j,O(x,E))}const N=p(x,E);if(N===!1)return y("InvalidAttr","Attributes for '"+k+"' have open quote.",O(x,E));let M=N.value;if(E=N.index,M[M.length-1]==="/"){const j=E-M.length;M=M.substring(0,M.length-1);const A=h(M,w);if(A===!0)R=!0;else return y(A.err.code,A.err.msg,O(x,j+A.err.line))}else if(I)if(N.tagClosed){if(M.trim().length>0)return y("InvalidTag","Closing tag '"+k+"' can't have attributes or invalid starting.",O(x,P));if(T.length===0)return y("InvalidTag","Closing tag '"+k+"' has not been opened.",O(x,P));{const j=T.pop();if(k!==j.tagName){let A=O(x,j.tagStartPos);return y("InvalidTag","Expected closing tag '"+j.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+k+"'.",O(x,P))}T.length==0&&(S=!0)}}else return y("InvalidTag","Closing tag '"+k+"' doesn't have proper closing.",O(x,E));else{const j=h(M,w);if(j!==!0)return y(j.err.code,j.err.msg,O(x,E-M.length+j.err.line));if(S===!0)return y("InvalidXml","Multiple possible root nodes found.",O(x,E));w.unpairedTags.indexOf(k)!==-1||T.push({tagName:k,tagStartPos:P}),R=!0}for(E++;E<x.length;E++)if(x[E]==="<")if(x[E+1]==="!"){E++,E=d(x,E);continue}else if(x[E+1]==="?"){if(E=l(x,++E),E.err)return E}else break;else if(x[E]==="&"){const j=b(x,E);if(j==-1)return y("InvalidChar","char '&' is not expected.",O(x,E));E=j}else if(S===!0&&!s(x[E]))return y("InvalidXml","Extra text at the end",O(x,E));x[E]==="<"&&E--}}else{if(s(x[E]))continue;return y("InvalidChar","char '"+x[E]+"' is not expected.",O(x,E))}if(R){if(T.length==1)return y("InvalidTag","Unclosed tag '"+T[0].tagName+"'.",O(x,T[0].tagStartPos));if(T.length>0)return y("InvalidXml","Invalid '"+JSON.stringify(T.map(E=>E.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return y("InvalidXml","Start tag expected.",1);return!0};function s(x){return x===" "||x===" "||x===`
|
|
541
|
+
`||x==="\r"}function l(x,w){const T=w;for(;w<x.length;w++)if(x[w]=="?"||x[w]==" "){const R=x.substr(T,w-T);if(w>5&&R==="xml")return y("InvalidXml","XML declaration allowed only at the start of the document.",O(x,w));if(x[w]=="?"&&x[w+1]==">"){w++;break}else continue}return w}function d(x,w){if(x.length>w+5&&x[w+1]==="-"&&x[w+2]==="-"){for(w+=3;w<x.length;w++)if(x[w]==="-"&&x[w+1]==="-"&&x[w+2]===">"){w+=2;break}}else if(x.length>w+8&&x[w+1]==="D"&&x[w+2]==="O"&&x[w+3]==="C"&&x[w+4]==="T"&&x[w+5]==="Y"&&x[w+6]==="P"&&x[w+7]==="E"){let T=1;for(w+=8;w<x.length;w++)if(x[w]==="<")T++;else if(x[w]===">"&&(T--,T===0))break}else if(x.length>w+9&&x[w+1]==="["&&x[w+2]==="C"&&x[w+3]==="D"&&x[w+4]==="A"&&x[w+5]==="T"&&x[w+6]==="A"&&x[w+7]==="["){for(w+=8;w<x.length;w++)if(x[w]==="]"&&x[w+1]==="]"&&x[w+2]===">"){w+=2;break}}return w}const c='"',f="'";function p(x,w){let T="",R="",S=!1;for(;w<x.length;w++){if(x[w]===c||x[w]===f)R===""?R=x[w]:R!==x[w]||(R="");else if(x[w]===">"&&R===""){S=!0;break}T+=x[w]}return R!==""?!1:{value:T,index:w,tagClosed:S}}const m=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(x,w){const T=i.getAllMatches(x,m),R={};for(let S=0;S<T.length;S++){if(T[S][1].length===0)return y("InvalidAttr","Attribute '"+T[S][2]+"' has no space in starting.",$(T[S]));if(T[S][3]!==void 0&&T[S][4]===void 0)return y("InvalidAttr","Attribute '"+T[S][2]+"' is without value.",$(T[S]));if(T[S][3]===void 0&&!w.allowBooleanAttributes)return y("InvalidAttr","boolean attribute '"+T[S][2]+"' is not allowed.",$(T[S]));const E=T[S][2];if(!v(E))return y("InvalidAttr","Attribute '"+E+"' is an invalid name.",$(T[S]));if(!R.hasOwnProperty(E))R[E]=1;else return y("InvalidAttr","Attribute '"+E+"' is repeated.",$(T[S]))}return!0}function g(x,w){let T=/\d/;for(x[w]==="x"&&(w++,T=/[\da-fA-F]/);w<x.length;w++){if(x[w]===";")return w;if(!x[w].match(T))break}return-1}function b(x,w){if(w++,x[w]===";")return-1;if(x[w]==="#")return w++,g(x,w);let T=0;for(;w<x.length;w++,T++)if(!(x[w].match(/\w/)&&T<20)){if(x[w]===";")break;return-1}return w}function y(x,w,T){return{err:{code:x,msg:w,line:T.line||T,col:T.col}}}function v(x){return i.isName(x)}function C(x){return i.isName(x)}function O(x,w){const T=x.substring(0,w).split(/\r?\n/);return{line:T.length,col:T[T.length-1].length+1}}function $(x){return x.startIndex+x[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(n,r,o){const i=o("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),a=o("./node_modules/fast-xml-parser/src/ignoreAttributes.js"),s={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(p,m){return m},attributeValueProcessor:function(p,m){return m},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function l(p){this.options=Object.assign({},s,p),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=a(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f),this.processTextOrObjNode=d,this.options.format?(this.indentate=c,this.tagEndChar=`>
|
|
542
|
+
`,this.newLine=`
|
|
543
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}l.prototype.build=function(p){return this.options.preserveOrder?i(p,this.options):(Array.isArray(p)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(p={[this.options.arrayNodeName]:p}),this.j2x(p,0,[]).val)},l.prototype.j2x=function(p,m,h){let g="",b="";const y=h.join(".");for(let v in p)if(Object.prototype.hasOwnProperty.call(p,v))if(typeof p[v]>"u")this.isAttribute(v)&&(b+="");else if(p[v]===null)this.isAttribute(v)?b+="":v[0]==="?"?b+=this.indentate(m)+"<"+v+"?"+this.tagEndChar:b+=this.indentate(m)+"<"+v+"/"+this.tagEndChar;else if(p[v]instanceof Date)b+=this.buildTextValNode(p[v],v,"",m);else if(typeof p[v]!="object"){const C=this.isAttribute(v);if(C&&!this.ignoreAttributesFn(C,y))g+=this.buildAttrPairStr(C,""+p[v]);else if(!C)if(v===this.options.textNodeName){let O=this.options.tagValueProcessor(v,""+p[v]);b+=this.replaceEntitiesValue(O)}else b+=this.buildTextValNode(p[v],v,"",m)}else if(Array.isArray(p[v])){const C=p[v].length;let O="",$="";for(let x=0;x<C;x++){const w=p[v][x];if(!(typeof w>"u"))if(w===null)v[0]==="?"?b+=this.indentate(m)+"<"+v+"?"+this.tagEndChar:b+=this.indentate(m)+"<"+v+"/"+this.tagEndChar;else if(typeof w=="object")if(this.options.oneListGroup){const T=this.j2x(w,m+1,h.concat(v));O+=T.val,this.options.attributesGroupName&&w.hasOwnProperty(this.options.attributesGroupName)&&($+=T.attrStr)}else O+=this.processTextOrObjNode(w,v,m,h);else if(this.options.oneListGroup){let T=this.options.tagValueProcessor(v,w);T=this.replaceEntitiesValue(T),O+=T}else O+=this.buildTextValNode(w,v,"",m)}this.options.oneListGroup&&(O=this.buildObjectNode(O,v,$,m)),b+=O}else if(this.options.attributesGroupName&&v===this.options.attributesGroupName){const C=Object.keys(p[v]),O=C.length;for(let $=0;$<O;$++)g+=this.buildAttrPairStr(C[$],""+p[v][C[$]])}else b+=this.processTextOrObjNode(p[v],v,m,h);return{attrStr:g,val:b}},l.prototype.buildAttrPairStr=function(p,m){return m=this.options.attributeValueProcessor(p,""+m),m=this.replaceEntitiesValue(m),this.options.suppressBooleanAttributes&&m==="true"?" "+p:" "+p+'="'+m+'"'};function d(p,m,h,g){const b=this.j2x(p,h+1,g.concat(m));return p[this.options.textNodeName]!==void 0&&Object.keys(p).length===1?this.buildTextValNode(p[this.options.textNodeName],m,b.attrStr,h):this.buildObjectNode(b.val,m,b.attrStr,h)}l.prototype.buildObjectNode=function(p,m,h,g){if(p==="")return m[0]==="?"?this.indentate(g)+"<"+m+h+"?"+this.tagEndChar:this.indentate(g)+"<"+m+h+this.closeTag(m)+this.tagEndChar;{let b="</"+m+this.tagEndChar,y="";return m[0]==="?"&&(y="?",b=""),(h||h==="")&&p.indexOf("<")===-1?this.indentate(g)+"<"+m+h+y+">"+p+b:this.options.commentPropName!==!1&&m===this.options.commentPropName&&y.length===0?this.indentate(g)+`<!--${p}-->`+this.newLine:this.indentate(g)+"<"+m+h+y+this.tagEndChar+p+this.indentate(g)+b}},l.prototype.closeTag=function(p){let m="";return this.options.unpairedTags.indexOf(p)!==-1?this.options.suppressUnpairedNode||(m="/"):this.options.suppressEmptyNode?m="/":m=`></${p}`,m},l.prototype.buildTextValNode=function(p,m,h,g){if(this.options.cdataPropName!==!1&&m===this.options.cdataPropName)return this.indentate(g)+`<![CDATA[${p}]]>`+this.newLine;if(this.options.commentPropName!==!1&&m===this.options.commentPropName)return this.indentate(g)+`<!--${p}-->`+this.newLine;if(m[0]==="?")return this.indentate(g)+"<"+m+h+"?"+this.tagEndChar;{let b=this.options.tagValueProcessor(m,p);return b=this.replaceEntitiesValue(b),b===""?this.indentate(g)+"<"+m+h+this.closeTag(m)+this.tagEndChar:this.indentate(g)+"<"+m+h+">"+b+"</"+m+this.tagEndChar}},l.prototype.replaceEntitiesValue=function(p){if(p&&p.length>0&&this.options.processEntities)for(let m=0;m<this.options.entities.length;m++){const h=this.options.entities[m];p=p.replace(h.regex,h.val)}return p};function c(p){return this.options.indentBy.repeat(p)}function f(p){return p.startsWith(this.options.attributeNamePrefix)&&p!==this.options.textNodeName?p.substr(this.attrPrefixLen):!1}n.exports=l},"./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js":function(n,r){const o=`
|
|
544
|
+
`;function i(f,p){let m="";return p.format&&p.indentBy.length>0&&(m=o),a(f,p,"",m)}function a(f,p,m,h){let g="",b=!1;for(let y=0;y<f.length;y++){const v=f[y],C=s(v);if(C===void 0)continue;let O="";if(m.length===0?O=C:O=`${m}.${C}`,C===p.textNodeName){let R=v[C];d(O,p)||(R=p.tagValueProcessor(C,R),R=c(R,p)),b&&(g+=h),g+=R,b=!1;continue}else if(C===p.cdataPropName){b&&(g+=h),g+=`<![CDATA[${v[C][0][p.textNodeName]}]]>`,b=!1;continue}else if(C===p.commentPropName){g+=h+`<!--${v[C][0][p.textNodeName]}-->`,b=!0;continue}else if(C[0]==="?"){const R=l(v[":@"],p),S=C==="?xml"?"":h;let E=v[C][0][p.textNodeName];E=E.length!==0?" "+E:"",g+=S+`<${C}${E}${R}?>`,b=!0;continue}let $=h;$!==""&&($+=p.indentBy);const x=l(v[":@"],p),w=h+`<${C}${x}`,T=a(v[C],p,O,$);p.unpairedTags.indexOf(C)!==-1?p.suppressUnpairedNode?g+=w+">":g+=w+"/>":(!T||T.length===0)&&p.suppressEmptyNode?g+=w+"/>":T&&T.endsWith(">")?g+=w+`>${T}${h}</${C}>`:(g+=w+">",T&&h!==""&&(T.includes("/>")||T.includes("</"))?g+=h+p.indentBy+T+h:g+=T,g+=`</${C}>`),b=!0}return g}function s(f){const p=Object.keys(f);for(let m=0;m<p.length;m++){const h=p[m];if(f.hasOwnProperty(h)&&h!==":@")return h}}function l(f,p){let m="";if(f&&!p.ignoreAttributes)for(let h in f){if(!f.hasOwnProperty(h))continue;let g=p.attributeValueProcessor(h,f[h]);g=c(g,p),g===!0&&p.suppressBooleanAttributes?m+=` ${h.substr(p.attributeNamePrefix.length)}`:m+=` ${h.substr(p.attributeNamePrefix.length)}="${g}"`}return m}function d(f,p){f=f.substr(0,f.length-p.textNodeName.length-1);let m=f.substr(f.lastIndexOf(".")+1);for(let h in p.stopNodes)if(p.stopNodes[h]===f||p.stopNodes[h]==="*."+m)return!0;return!1}function c(f,p){if(f&&f.length>0&&p.processEntities)for(let m=0;m<p.entities.length;m++){const h=p.entities[m];f=f.replace(h.regex,h.val)}return f}n.exports=i},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(n,r,o){const i=o("./node_modules/fast-xml-parser/src/util.js");function a(h,g){const b={};if(h[g+3]==="O"&&h[g+4]==="C"&&h[g+5]==="T"&&h[g+6]==="Y"&&h[g+7]==="P"&&h[g+8]==="E"){g=g+9;let y=1,v=!1,C=!1,O="";for(;g<h.length;g++)if(h[g]==="<"&&!C){if(v&&d(h,g))g+=7,[entityName,val,g]=s(h,g+1),val.indexOf("&")===-1&&(b[m(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(v&&c(h,g))g+=8;else if(v&&f(h,g))g+=8;else if(v&&p(h,g))g+=9;else if(l)C=!0;else throw new Error("Invalid DOCTYPE");y++,O=""}else if(h[g]===">"){if(C?h[g-1]==="-"&&h[g-2]==="-"&&(C=!1,y--):y--,y===0)break}else h[g]==="["?v=!0:O+=h[g];if(y!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:b,i:g}}function s(h,g){let b="";for(;g<h.length&&h[g]!=="'"&&h[g]!=='"';g++)b+=h[g];if(b=b.trim(),b.indexOf(" ")!==-1)throw new Error("External entites are not supported");const y=h[g++];let v="";for(;g<h.length&&h[g]!==y;g++)v+=h[g];return[b,v,g]}function l(h,g){return h[g+1]==="!"&&h[g+2]==="-"&&h[g+3]==="-"}function d(h,g){return h[g+1]==="!"&&h[g+2]==="E"&&h[g+3]==="N"&&h[g+4]==="T"&&h[g+5]==="I"&&h[g+6]==="T"&&h[g+7]==="Y"}function c(h,g){return h[g+1]==="!"&&h[g+2]==="E"&&h[g+3]==="L"&&h[g+4]==="E"&&h[g+5]==="M"&&h[g+6]==="E"&&h[g+7]==="N"&&h[g+8]==="T"}function f(h,g){return h[g+1]==="!"&&h[g+2]==="A"&&h[g+3]==="T"&&h[g+4]==="T"&&h[g+5]==="L"&&h[g+6]==="I"&&h[g+7]==="S"&&h[g+8]==="T"}function p(h,g){return h[g+1]==="!"&&h[g+2]==="N"&&h[g+3]==="O"&&h[g+4]==="T"&&h[g+5]==="A"&&h[g+6]==="T"&&h[g+7]==="I"&&h[g+8]==="O"&&h[g+9]==="N"}function m(h){if(i.isName(h))return h;throw new Error(`Invalid entity name ${h}`)}n.exports=a},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(n,r){const o={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(a,s){return s},attributeValueProcessor:function(a,s){return s},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(a,s,l){return a}},i=function(a){return Object.assign({},o,a)};r.buildOptions=i,r.defaultOptions=o},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(n,r,o){const i=o("./node_modules/fast-xml-parser/src/util.js"),a=o("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),s=o("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),l=o("./node_modules/strnum/strnum.js"),d=o("./node_modules/fast-xml-parser/src/ignoreAttributes.js");class c{constructor(E){this.options=E,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=f,this.parseXml=b,this.parseTextData=p,this.resolveNameSpace=m,this.buildAttributesMap=g,this.isItStopNode=O,this.replaceEntitiesValue=v,this.readStopNodeData=T,this.saveTextToParentTag=C,this.addChild=y,this.ignoreAttributesFn=d(this.options.ignoreAttributes)}}function f(S){const E=Object.keys(S);for(let P=0;P<E.length;P++){const I=E[P];this.lastEntities[I]={regex:new RegExp("&"+I+";","g"),val:S[I]}}}function p(S,E,P,I,k,N,M){if(S!==void 0&&(this.options.trimValues&&!I&&(S=S.trim()),S.length>0)){M||(S=this.replaceEntitiesValue(S));const j=this.options.tagValueProcessor(E,S,P,k,N);return j==null?S:typeof j!=typeof S||j!==S?j:this.options.trimValues?R(S,this.options.parseTagValue,this.options.numberParseOptions):S.trim()===S?R(S,this.options.parseTagValue,this.options.numberParseOptions):S}}function m(S){if(this.options.removeNSPrefix){const E=S.split(":"),P=S.charAt(0)==="/"?"/":"";if(E[0]==="xmlns")return"";E.length===2&&(S=P+E[1])}return S}const h=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function g(S,E,P){if(this.options.ignoreAttributes!==!0&&typeof S=="string"){const I=i.getAllMatches(S,h),k=I.length,N={};for(let M=0;M<k;M++){const j=this.resolveNameSpace(I[M][1]);if(this.ignoreAttributesFn(j,E))continue;let A=I[M][4],D=this.options.attributeNamePrefix+j;if(j.length)if(this.options.transformAttributeName&&(D=this.options.transformAttributeName(D)),D==="__proto__"&&(D="#__proto__"),A!==void 0){this.options.trimValues&&(A=A.trim()),A=this.replaceEntitiesValue(A);const L=this.options.attributeValueProcessor(j,A,E);L==null?N[D]=A:typeof L!=typeof A||L!==A?N[D]=L:N[D]=R(A,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(N[D]=!0)}if(!Object.keys(N).length)return;if(this.options.attributesGroupName){const M={};return M[this.options.attributesGroupName]=N,M}return N}}const b=function(S){const E=new a("!xml");let P=E,I="",k="";for(let N=0;N<S.length;N++)if(S[N]==="<")if(S[N+1]==="/"){const j=x(S,">",N,"Closing Tag is not closed.");let A=S.substring(N+2,j).trim();if(this.options.removeNSPrefix){const z=A.indexOf(":");z!==-1&&(A=A.substr(z+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),P&&(I=this.saveTextToParentTag(I,P,k));const D=k.substring(k.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let L=0;D&&this.options.unpairedTags.indexOf(D)!==-1?(L=k.lastIndexOf(".",k.lastIndexOf(".")-1),this.tagsNodeStack.pop()):L=k.lastIndexOf("."),k=k.substring(0,L),P=this.tagsNodeStack.pop(),I="",N=j}else if(S[N+1]==="?"){let j=w(S,N,!1,"?>");if(!j)throw new Error("Pi Tag is not closed.");if(I=this.saveTextToParentTag(I,P,k),!(this.options.ignoreDeclaration&&j.tagName==="?xml"||this.options.ignorePiTags)){const A=new a(j.tagName);A.add(this.options.textNodeName,""),j.tagName!==j.tagExp&&j.attrExpPresent&&(A[":@"]=this.buildAttributesMap(j.tagExp,k,j.tagName)),this.addChild(P,A,k)}N=j.closeIndex+1}else if(S.substr(N+1,3)==="!--"){const j=x(S,"-->",N+4,"Comment is not closed.");if(this.options.commentPropName){const A=S.substring(N+4,j-2);I=this.saveTextToParentTag(I,P,k),P.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}N=j}else if(S.substr(N+1,2)==="!D"){const j=s(S,N);this.docTypeEntities=j.entities,N=j.i}else if(S.substr(N+1,2)==="!["){const j=x(S,"]]>",N,"CDATA is not closed.")-2,A=S.substring(N+9,j);I=this.saveTextToParentTag(I,P,k);let D=this.parseTextData(A,P.tagname,k,!0,!1,!0,!0);D==null&&(D=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):P.add(this.options.textNodeName,D),N=j+2}else{let j=w(S,N,this.options.removeNSPrefix),A=j.tagName;const D=j.rawTagName;let L=j.tagExp,z=j.attrExpPresent,q=j.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),P&&I&&P.tagname!=="!xml"&&(I=this.saveTextToParentTag(I,P,k,!1));const U=P;if(U&&this.options.unpairedTags.indexOf(U.tagname)!==-1&&(P=this.tagsNodeStack.pop(),k=k.substring(0,k.lastIndexOf("."))),A!==E.tagname&&(k+=k?"."+A:A),this.isItStopNode(this.options.stopNodes,k,A)){let H="";if(L.length>0&&L.lastIndexOf("/")===L.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),k=k.substr(0,k.length-1),L=A):L=L.substr(0,L.length-1),N=j.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)N=j.closeIndex;else{const X=this.readStopNodeData(S,D,q+1);if(!X)throw new Error(`Unexpected end of ${D}`);N=X.i,H=X.tagContent}const K=new a(A);A!==L&&z&&(K[":@"]=this.buildAttributesMap(L,k,A)),H&&(H=this.parseTextData(H,A,k,!0,z,!0,!0)),k=k.substr(0,k.lastIndexOf(".")),K.add(this.options.textNodeName,H),this.addChild(P,K,k)}else{if(L.length>0&&L.lastIndexOf("/")===L.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),k=k.substr(0,k.length-1),L=A):L=L.substr(0,L.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));const H=new a(A);A!==L&&z&&(H[":@"]=this.buildAttributesMap(L,k,A)),this.addChild(P,H,k),k=k.substr(0,k.lastIndexOf("."))}else{const H=new a(A);this.tagsNodeStack.push(P),A!==L&&z&&(H[":@"]=this.buildAttributesMap(L,k,A)),this.addChild(P,H,k),P=H}I="",N=q}}else I+=S[N];return E.child};function y(S,E,P){const I=this.options.updateTag(E.tagname,P,E[":@"]);I===!1||(typeof I=="string"&&(E.tagname=I),S.addChild(E))}const v=function(S){if(this.options.processEntities){for(let E in this.docTypeEntities){const P=this.docTypeEntities[E];S=S.replace(P.regx,P.val)}for(let E in this.lastEntities){const P=this.lastEntities[E];S=S.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let E in this.htmlEntities){const P=this.htmlEntities[E];S=S.replace(P.regex,P.val)}S=S.replace(this.ampEntity.regex,this.ampEntity.val)}return S};function C(S,E,P,I){return S&&(I===void 0&&(I=Object.keys(E.child).length===0),S=this.parseTextData(S,E.tagname,P,!1,E[":@"]?Object.keys(E[":@"]).length!==0:!1,I),S!==void 0&&S!==""&&E.add(this.options.textNodeName,S),S=""),S}function O(S,E,P){const I="*."+P;for(const k in S){const N=S[k];if(I===N||E===N)return!0}return!1}function $(S,E,P=">"){let I,k="";for(let N=E;N<S.length;N++){let M=S[N];if(I)M===I&&(I="");else if(M==='"'||M==="'")I=M;else if(M===P[0])if(P[1]){if(S[N+1]===P[1])return{data:k,index:N}}else return{data:k,index:N};else M===" "&&(M=" ");k+=M}}function x(S,E,P,I){const k=S.indexOf(E,P);if(k===-1)throw new Error(I);return k+E.length-1}function w(S,E,P,I=">"){const k=$(S,E+1,I);if(!k)return;let N=k.data;const M=k.index,j=N.search(/\s/);let A=N,D=!0;j!==-1&&(A=N.substring(0,j),N=N.substring(j+1).trimStart());const L=A;if(P){const z=A.indexOf(":");z!==-1&&(A=A.substr(z+1),D=A!==k.data.substr(z+1))}return{tagName:A,tagExp:N,closeIndex:M,attrExpPresent:D,rawTagName:L}}function T(S,E,P){const I=P;let k=1;for(;P<S.length;P++)if(S[P]==="<")if(S[P+1]==="/"){const N=x(S,">",P,`${E} is not closed`);if(S.substring(P+2,N).trim()===E&&(k--,k===0))return{tagContent:S.substring(I,P),i:N};P=N}else if(S[P+1]==="?")P=x(S,"?>",P+1,"StopNode is not closed.");else if(S.substr(P+1,3)==="!--")P=x(S,"-->",P+3,"StopNode is not closed.");else if(S.substr(P+1,2)==="![")P=x(S,"]]>",P,"StopNode is not closed.")-2;else{const N=w(S,P,">");N&&((N&&N.tagName)===E&&N.tagExp[N.tagExp.length-1]!=="/"&&k++,P=N.closeIndex)}}function R(S,E,P){if(E&&typeof S=="string"){const I=S.trim();return I==="true"?!0:I==="false"?!1:l(S,P)}else return i.isExist(S)?S:""}n.exports=c},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(n,r,o){const{buildOptions:i}=o("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),a=o("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:s}=o("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),l=o("./node_modules/fast-xml-parser/src/validator.js");class d{constructor(f){this.externalEntities={},this.options=i(f)}parse(f,p){if(typeof f!="string")if(f.toString)f=f.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(p){p===!0&&(p={});const g=l.validate(f,p);if(g!==!0)throw Error(`${g.err.msg}:${g.err.line}:${g.err.col}`)}const m=new a(this.options);m.addExternalEntities(this.externalEntities);const h=m.parseXml(f);return this.options.preserveOrder||h===void 0?h:s(h,this.options)}addEntity(f,p){if(p.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(f.indexOf("&")!==-1||f.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(p==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[f]=p}}n.exports=d},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(n,r,o){function i(c,f){return a(c,f)}function a(c,f,p){let m;const h={};for(let g=0;g<c.length;g++){const b=c[g],y=s(b);let v="";if(p===void 0?v=y:v=p+"."+y,y===f.textNodeName)m===void 0?m=b[y]:m+=""+b[y];else{if(y===void 0)continue;if(b[y]){let C=a(b[y],f,v);const O=d(C,f);b[":@"]?l(C,b[":@"],v,f):Object.keys(C).length===1&&C[f.textNodeName]!==void 0&&!f.alwaysCreateTextNode?C=C[f.textNodeName]:Object.keys(C).length===0&&(f.alwaysCreateTextNode?C[f.textNodeName]="":C=""),h[y]!==void 0&&h.hasOwnProperty(y)?(Array.isArray(h[y])||(h[y]=[h[y]]),h[y].push(C)):f.isArray(y,v,O)?h[y]=[C]:h[y]=C}}}return typeof m=="string"?m.length>0&&(h[f.textNodeName]=m):m!==void 0&&(h[f.textNodeName]=m),h}function s(c){const f=Object.keys(c);for(let p=0;p<f.length;p++){const m=f[p];if(m!==":@")return m}}function l(c,f,p,m){if(f){const h=Object.keys(f),g=h.length;for(let b=0;b<g;b++){const y=h[b];m.isArray(y,p+"."+y,!0,!0)?c[y]=[f[y]]:c[y]=f[y]}}}function d(c,f){const{textNodeName:p}=f,m=Object.keys(c).length;return!!(m===0||m===1&&(c[p]||typeof c[p]=="boolean"||c[p]===0))}r.prettify=i},"./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js":function(n,r,o){class i{constructor(s){this.tagname=s,this.child=[],this[":@"]={}}add(s,l){s==="__proto__"&&(s="#__proto__"),this.child.push({[s]:l})}addChild(s){s.tagname==="__proto__"&&(s.tagname="#__proto__"),s[":@"]&&Object.keys(s[":@"]).length>0?this.child.push({[s.tagname]:s.child,":@":s[":@"]}):this.child.push({[s.tagname]:s.child})}}n.exports=i},"./node_modules/process/browser.js":function(n,r){var o=n.exports={},i,a;function s(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?i=setTimeout:i=s}catch{i=s}try{typeof clearTimeout=="function"?a=clearTimeout:a=l}catch{a=l}})();function d(C){if(i===setTimeout)return setTimeout(C,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(C,0);try{return i(C,0)}catch{try{return i.call(null,C,0)}catch{return i.call(this,C,0)}}}function c(C){if(a===clearTimeout)return clearTimeout(C);if((a===l||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(C);try{return a(C)}catch{try{return a.call(null,C)}catch{return a.call(this,C)}}}var f=[],p=!1,m,h=-1;function g(){!p||!m||(p=!1,m.length?f=m.concat(f):h=-1,f.length&&b())}function b(){if(!p){var C=d(g);p=!0;for(var O=f.length;O;){for(m=f,f=[];++h<O;)m&&m[h].run();h=-1,O=f.length}m=null,p=!1,c(C)}}o.nextTick=function(C){var O=new Array(arguments.length-1);if(arguments.length>1)for(var $=1;$<arguments.length;$++)O[$-1]=arguments[$];f.push(new y(C,O)),f.length===1&&!p&&d(b)};function y(C,O){this.fun=C,this.array=O}y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function v(){}o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(C){return[]},o.binding=function(C){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(C){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"./node_modules/strnum/strnum.js":function(n,r){const o=/^[-+]?0x[a-fA-F0-9]+$/,i=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,a={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function s(c,f={}){if(f=Object.assign({},a,f),!c||typeof c!="string")return c;let p=c.trim();if(f.skipLike!==void 0&&f.skipLike.test(p))return c;if(c==="0")return 0;if(f.hex&&o.test(p))return d(p,16);if(p.search(/[eE]/)!==-1){const m=p.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(m){if(f.leadingZeros)p=(m[1]||"")+m[3];else if(!(m[2]==="0"&&m[3][0]==="."))return c;return f.eNotation?Number(p):c}else return c}else{const m=i.exec(p);if(m){const h=m[1],g=m[2];let b=l(m[3]);if(!f.leadingZeros&&g.length>0&&h&&p[2]!==".")return c;if(!f.leadingZeros&&g.length>0&&!h&&p[1]!==".")return c;if(f.leadingZeros&&g===c)return 0;{const y=Number(p),v=""+y;return v.search(/[eE]/)!==-1?f.eNotation?y:c:p.indexOf(".")!==-1?v==="0"&&b===""||v===b||h&&v==="-"+b?y:c:g?b===v||h+b===v?y:c:p===v||p===h+v?y:c}}else return c}}function l(c){return c&&c.indexOf(".")!==-1&&(c=c.replace(/0+$/,""),c==="."?c="0":c[0]==="."?c="0"+c:c[c.length-1]==="."&&(c=c.substr(0,c.length-1))),c}function d(c,f){if(parseInt)return parseInt(c,f);if(Number.parseInt)return Number.parseInt(c,f);if(window&&window.parseInt)return window.parseInt(c,f);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}n.exports=s},"./node_modules/webpack/buildin/amd-options.js":function(n,r){(function(o){n.exports=o}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(n,r){n.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},"./package.json":function(n){n.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.10.1","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage","postinstall":"node scripts/patch-check.js"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"4.5.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"29.7.0","jest-environment-jsdom":"29.7.0","patch-package":"^8.0.0","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/typeof.js"),a=o("./src/session.js"),s=o("./src/async.js"),l=o("./src/event.js").EventProxy,d=o("./src/util.js"),c=o("./src/tracker.js");function f(R,S){var E=this,P=new l,I=R.TaskId,k=R.Bucket,N=R.Region,M=R.Key,j=R.Body,A=R.ChunkSize||R.SliceSize||E.options.ChunkSize,D=R.AsyncLimit,L=R.StorageClass,z=R.ServerSideEncryption,q,U,H=R.onHashProgress,K=R.tracker;K&&K.setParams({chunkSize:A}),E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 分块上传开始")}),P.on("error",function(X){if(E._isRunningTask(I))return R.UploadData.UploadId&&a.removeUsing(R.UploadData.UploadId),X.UploadId=R.UploadData.UploadId||"",E.logger.error({cate:"RESULT",tag:"upload",msg:"[key=".concat(R.Key,"] 分块上传失败: ").concat(JSON.stringify(X))}),S(X)}),P.on("upload_complete",function(X){var Z=d.extend({UploadId:R.UploadData.UploadId||""},X);S(null,Z)}),P.on("upload_slice_complete",function(X){var Z={};d.each(R.Headers,function(se,ie){var me=ie.toLowerCase();(me.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(me))&&(Z[ie]=se)}),E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 开始完成分块请求")}),y.call(E,{Bucket:k,Region:N,Key:M,UploadId:X.UploadId,SliceList:X.SliceList,Headers:Z,tracker:K},function(se,ie){if(E._isRunningTask(I)){if(a.removeUsing(X.UploadId),se)return U(null,!0),E.logger.error({cate:"RESULT",tag:"upload",msg:"[key=".concat(R.Key,"] 完成分块请求失败")}),P.emit("error",se);a.removeUploadId.call(E,X.UploadId),U({loaded:q,total:q},!0),E.logger.info({cate:"RESULT",tag:"upload",msg:"[key=".concat(R.Key,"] 完成分块请求成功")}),P.emit("upload_complete",ie)}})}),P.on("get_upload_data_finish",function(X){var Z=a.getFileId(j,R.ChunkSize,k,M);Z&&a.saveUploadId.call(E,Z,X.UploadId,E.options.UploadIdCacheLimit),a.setUsing(X.UploadId),U(null,!0),E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 开始上传各个分块")}),g.call(E,{TaskId:I,Bucket:k,Region:N,Key:M,Body:j,FileSize:q,SliceSize:A,AsyncLimit:D,ServerSideEncryption:z,UploadData:X,Headers:R.Headers,onProgress:U,tracker:K},function(se,ie){if(E._isRunningTask(I)){if(se)return U(null,!0),E.logger.error({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 分块上传失败")}),P.emit("error",se);E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 所有分块上传完成")}),P.emit("upload_slice_complete",ie)}})}),P.on("get_file_size_finish",function(){if(U=d.throttleOnProgress.call(E,q,R.onProgress),R.UploadData.UploadId)E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 已经获取到 uploadId, ").concat(R.UploadData.UploadId)}),P.emit("get_upload_data_finish",R.UploadData);else{var X=d.extend({TaskId:I,Bucket:k,Region:N,Key:M,Headers:R.Headers,StorageClass:L,Body:j,FileSize:q,SliceSize:A,onHashProgress:H,tracker:K},R);E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 去获取 uploadId")}),p.call(E,X,function(Z,se){if(E._isRunningTask(I)){if(Z)return P.emit("error",Z);R.UploadData.UploadId=se.UploadId,R.UploadData.PartList=se.PartList,E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 获取到 uploadId, ").concat(R.UploadData.UploadId)}),P.emit("get_upload_data_finish",R.UploadData)}})}}),q=R.ContentLength,delete R.ContentLength,!R.Headers&&(R.Headers={}),d.each(R.Headers,function(X,Z){Z.toLowerCase()==="content-length"&&delete R.Headers[Z]}),function(){for(var X=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Z=1024*1024,se=0;se<X.length&&(Z=X[se]*1024*1024,!(q/Z<=E.options.MaxPartNumber));se++);R.ChunkSize=R.SliceSize=A=Math.max(A,Z)}(),q===0?(R.Body="",R.ContentLength=0,R.SkipTask=!0,E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 文件大小为 0,执行简单上传")}),E.putObject(R,S)):P.emit("get_file_size_finish")}function p(R,S){var E=R.TaskId,P=R.Bucket,I=R.Region,k=R.Key,N=R.StorageClass,M=this,j={},A=R.FileSize,D=R.SliceSize,L=Math.ceil(A/D),z=0,q=d.throttleOnProgress.call(M,A,R.onHashProgress),U=function(Z,se){var ie=D*(Z-1),me=Math.min(ie+D,A),ue=me-ie;j[Z]?se(null,{PartNumber:Z,ETag:j[Z],Size:ue}):d.fileSlice(R.Body,ie,me,!1,function(re){d.getFileMd5(re,function(ce,fe){if(ce)return se(d.error(ce));var de='"'+fe+'"';j[Z]=de,z+=ue,q({loaded:z,total:A}),se(null,{PartNumber:Z,ETag:de,Size:ue})})})},H=function(Z,se){var ie=Z.length;if(ie===0)return se(null,!0);if(ie>L)return se(null,!1);if(ie>1){var me=Math.max(Z[0].Size,Z[1].Size);if(me!==D)return se(null,!1)}var ue=function(ce){if(ce<ie){var fe=Z[ce];U(fe.PartNumber,function(de,ve){ve&&ve.ETag===fe.ETag&&ve.Size===fe.Size?ue(ce+1):se(null,!1)})}else se(null,!0)};ue(0)},K=new l;K.on("error",function(X){if(M._isRunningTask(E))return S(X)}),K.on("upload_id_available",function(X){var Z={},se=[];d.each(X.PartList,function(ue){Z[ue.PartNumber]=ue});for(var ie=1;ie<=L;ie++){var me=Z[ie];me?(me.PartNumber=ie,me.Uploaded=!0):me={PartNumber:ie,ETag:null,Uploaded:!1},se.push(me)}X.PartList=se,S(null,X)}),K.on("no_available_upload_id",function(){if(M._isRunningTask(E)){var X=d.extend({Bucket:P,Region:I,Key:k,Query:d.clone(R.Query),StorageClass:N,Body:R.Body,calledBySdk:"sliceUploadFile",tracker:R.tracker},R),Z=d.clone(R.Headers);delete Z["x-cos-mime-limit"],X.Headers=Z,M.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 准备初始化分块上传")}),M.multipartInit(X,function(se,ie){if(M._isRunningTask(E)){if(se)return M.logger.error({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 初始化分块上传失败, ").concat(JSON.stringify(se))}),K.emit("error",se);var me=ie.UploadId;if(!me)return S(d.error(new Error("no such upload id")));M.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 初始化分块上传成功")}),K.emit("upload_id_available",{UploadId:me,PartList:[]})}})}}),K.on("has_and_check_upload_id",function(X){X=X.reverse(),s.eachLimit(X,1,function(Z,se){if(M._isRunningTask(E)){if(a.using[Z]){se();return}h.call(M,{Bucket:P,Region:I,Key:k,UploadId:Z,tracker:R.tracker},function(ie,me){if(M._isRunningTask(E)){if(ie)return a.removeUsing(Z),K.emit("error",ie);var ue=me.PartList;ue.forEach(function(re){re.PartNumber*=1,re.Size*=1,re.ETag=re.ETag||""}),H(ue,function(re,ce){if(M._isRunningTask(E)){if(re)return K.emit("error",re);ce?se({UploadId:Z,PartList:ue}):se()}})}})}},function(Z){M._isRunningTask(E)&&(q(null,!0),Z&&Z.UploadId?K.emit("upload_id_available",Z):K.emit("no_available_upload_id"))})}),K.on("seek_local_avail_upload_id",function(X){var Z=a.getFileId(R.Body,R.ChunkSize,P,k),se=a.getUploadIdList.call(M,Z);if(!Z||!se){K.emit("has_and_check_upload_id",X);return}var ie=function(ue){if(ue>=se.length){K.emit("has_and_check_upload_id",X);return}var re=se[ue];if(!d.isInArray(X,re)){a.removeUploadId.call(M,re),ie(ue+1);return}if(a.using[re]){ie(ue+1);return}h.call(M,{Bucket:P,Region:I,Key:k,UploadId:re,tracker:R.tracker},function(ce,fe){M._isRunningTask(E)&&(ce?(a.removeUploadId.call(M,re),ie(ue+1)):K.emit("upload_id_available",{UploadId:re,PartList:fe.PartList}))})};ie(0)}),K.on("get_remote_upload_id_list",function(){m.call(M,{Bucket:P,Region:I,Key:k,tracker:R.tracker},function(X,Z){if(M._isRunningTask(E)){if(X)return K.emit("error",X);var se=d.filter(Z.UploadList,function(ue){return ue.Key===k&&(!N||ue.StorageClass.toUpperCase()===N.toUpperCase())}).reverse().map(function(ue){return ue.UploadId||ue.UploadID});if(se.length)K.emit("seek_local_avail_upload_id",se);else{var ie=a.getFileId(R.Body,R.ChunkSize,P,k),me;ie&&(me=a.getUploadIdList.call(M,ie))&&d.each(me,function(ue){a.removeUploadId.call(M,ue)}),K.emit("no_available_upload_id")}}})}),K.emit("get_remote_upload_id_list")}function m(R,S){var E=this,P=[],I={Bucket:R.Bucket,Region:R.Region,Prefix:R.Key,calledBySdk:R.calledBySdk||"sliceUploadFile",tracker:R.tracker},k=function(){E.multipartList(I,function(M,j){if(M)return S(M);P.push.apply(P,j.Upload||[]),j.IsTruncated==="true"?(I.KeyMarker=j.NextKeyMarker,I.UploadIdMarker=j.NextUploadIdMarker,k()):S(null,{UploadList:P})})};k()}function h(R,S){var E=this,P=[],I={Bucket:R.Bucket,Region:R.Region,Key:R.Key,UploadId:R.UploadId,calledBySdk:"sliceUploadFile",tracker:R.tracker},k=function(){E.multipartListPart(I,function(M,j){if(M)return S(M);P.push.apply(P,j.Part||[]),j.IsTruncated==="true"?(I.PartNumberMarker=j.NextPartNumberMarker,k()):S(null,{PartList:P})})};k()}function g(R,S){var E=this,P=R.TaskId,I=R.Bucket,k=R.Region,N=R.Key,M=R.UploadData,j=R.FileSize,A=R.SliceSize,D=Math.min(R.AsyncLimit||E.options.ChunkParallelLimit||1,256),L=R.Body,z=Math.ceil(j/A),q=0,U=R.ServerSideEncryption,H=R.Headers,K=d.filter(M.PartList,function(Z){return Z.Uploaded&&(q+=Z.PartNumber>=z&&j%A||A),!Z.Uploaded}),X=R.onProgress;E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 开始并发上传各个分块")}),s.eachLimit(K,D,function(Z,se){if(E._isRunningTask(P)){var ie=Z.PartNumber,me=Math.min(j,Z.PartNumber*A)-(Z.PartNumber-1)*A,ue=0;E.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 分块").concat(ie,"开始上传")}),b.call(E,{TaskId:P,Bucket:I,Region:k,Key:N,SliceSize:A,FileSize:j,PartNumber:ie,ServerSideEncryption:U,Body:L,UploadData:M,Headers:H,onProgress:function(ce){q+=ce.loaded-ue,ue=ce.loaded,X({loaded:q,total:j})},tracker:R.tracker},function(re,ce){E._isRunningTask(P)&&(!re&&!ce.ETag&&(re='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )',E.logger.error({cate:"PROCESS",tag:"upload",msg:"[key=".concat(R.Key,"] 分块").concat(ie,"上传请求成功,但是未获取到 eTag")})),re?(q-=ue,E.logger.info({cate:"RESULT",tag:"upload",msg:"[key=".concat(R.Key,"] 分块").concat(ie,"上传失败")})):(q+=me-ue,Z.ETag=ce.ETag),E.logger.info({cate:"RESULT",tag:"upload",msg:"[key=".concat(R.Key,"] 分块").concat(ie,"上传成功")}),X({loaded:q,total:j}),se(re||null,ce))})}},function(Z){if(E._isRunningTask(P)){if(Z)return S(Z);S(null,{UploadId:M.UploadId,SliceList:M.PartList})}})}function b(R,S){var E=this,P=R.TaskId,I=R.Bucket,k=R.Region,N=R.Key,M=R.FileSize,j=R.Body,A=R.PartNumber*1,D=R.SliceSize,L=R.ServerSideEncryption,z=R.UploadData,q=R.Headers||{},U=E.options.ChunkRetryTimes+1,H=D*(A-1),K=D,X=H+D;X>M&&(X=M,K=X-H);var Z=["x-cos-traffic-limit","x-cos-mime-limit"],se={};d.each(q,function(me,ue){Z.indexOf(ue)>-1&&(se[ue]=me)});var ie=z.PartList[A-1];s.retry(U,function(me){E._isRunningTask(P)&&d.fileSlice(j,H,X,!0,function(ue){E.multipartUpload({TaskId:P,Bucket:I,Region:k,Key:N,ContentLength:K,PartNumber:A,UploadId:z.UploadId,ServerSideEncryption:L,Body:ue,Headers:se,onProgress:R.onProgress,calledBySdk:"sliceUploadFile",tracker:R.tracker},function(re,ce){if(E._isRunningTask(P))return re?me(re):(ie.Uploaded=!0,me(null,ce))})})},function(me,ue){if(E._isRunningTask(P))return S(me,ue)})}function y(R,S){var E=R.Bucket,P=R.Region,I=R.Key,k=R.UploadId,N=R.SliceList,M=this,j=this.options.ChunkRetryTimes+1,A=R.Headers,D=N.map(function(L){return{PartNumber:L.PartNumber,ETag:L.ETag}});s.retry(j,function(L){M.multipartComplete({Bucket:E,Region:P,Key:I,UploadId:k,Parts:D,Headers:A,calledBySdk:"sliceUploadFile",tracker:R.tracker},L)},function(L,z){S(L,z)})}function v(R,S){var E=R.Bucket,P=R.Region,I=R.Key,k=R.UploadId,N=R.Level||"task",M=R.AsyncLimit,j=this,A=new l;if(A.on("error",function(D){return S(D)}),A.on("get_abort_array",function(D){C.call(j,{Bucket:E,Region:P,Key:I,Headers:R.Headers,AsyncLimit:M,AbortArray:D},S)}),N==="bucket")m.call(j,{Bucket:E,Region:P,calledBySdk:"abortUploadTask"},function(D,L){if(D)return S(D);A.emit("get_abort_array",L.UploadList||[])});else if(N==="file"){if(!I)return S(d.error(new Error("abort_upload_task_no_key")));m.call(j,{Bucket:E,Region:P,Key:I,calledBySdk:"abortUploadTask"},function(D,L){if(D)return S(D);A.emit("get_abort_array",L.UploadList||[])})}else if(N==="task"){if(!k)return S(d.error(new Error("abort_upload_task_no_id")));if(!I)return S(d.error(new Error("abort_upload_task_no_key")));A.emit("get_abort_array",[{Key:I,UploadId:k}])}else return S(d.error(new Error("abort_unknown_level")))}function C(R,S){var E=R.Bucket,P=R.Region,I=R.Key,k=R.AbortArray,N=R.AsyncLimit||1,M=this,j=0,A=new Array(k.length);s.eachLimit(k,N,function(D,L){var z=j;if(I&&I!==D.Key){A[z]={error:{KeyNotMatch:!0}},L(null);return}var q=D.UploadId||D.UploadID;M.multipartAbort({Bucket:E,Region:P,Key:D.Key,Headers:R.Headers,UploadId:q},function(U){var H={Bucket:E,Region:P,Key:D.Key,UploadId:q};A[z]={error:U,task:H},L(null)}),j++},function(D){if(D)return S(D);for(var L=[],z=[],q=0,U=A.length;q<U;q++){var H=A[q];H.task&&(H.error?z.push(H.task):L.push(H.task))}return S(null,{successList:L,errorList:z})})}function O(R,S){var E=this,P=R.SliceSize===void 0?E.options.SliceSize:R.SliceSize,I=[],k=R.Body,N=k.size||k.length||0,M={TaskId:""};if(E.options.EnableReporter){var j=E.options.UseAccelerate||typeof E.options.Domain=="string"&&E.options.Domain.includes("accelerate."),A=N>P?"sliceUploadFile":"putObject";R.tracker=new c({Beacon:E.options.BeaconReporter,clsReporter:E.options.ClsReporter,bucket:R.Bucket,region:R.Region,apiName:"uploadFile",realApi:A,fileKey:R.Key,fileSize:N,accelerate:j,deepTracker:E.options.DeepTracker,customId:E.options.CustomId,delay:E.options.TrackerDelay})}d.each(R,function(H,K){i(H)!=="object"&&typeof H!="function"&&(M[K]=H)});var D=R.onTaskReady,L=function(K){M.TaskId=K,D&&D(K)};R.onTaskReady=L;var z=N>P?"sliceUploadFile":"putObject",q=R.onFileFinish,U=function(K,X){R.tracker&&R.tracker.report(K,X),q&&q(K,X,M),S&&S(K,X)};I.push({api:z,params:R,callback:U}),E._addTasks(I)}function $(R,S){var E=this,P=R.SliceSize===void 0?E.options.SliceSize:R.SliceSize,I=0,k=0,N=d.throttleOnProgress.call(E,k,R.onProgress),M=R.files.length,j=R.onFileFinish,A=Array(M),D=function(q,U,H){N(null,!0),j&&j(q,U,H),A[H.Index]={options:H,error:q,data:U},--M<=0&&S&&S(null,{files:A})},L=[];d.each(R.files,function(z,q){(function(){var U=z.Body,H=U.size||U.length||0,K={Index:q,TaskId:""};if(!E.options.UseRawKey&&z.Key&&z.Key.substr(0,1)==="/"&&(z.Key=z.Key.substr(1)),I+=H,E.options.EnableReporter){var X=E.options.UseAccelerate||typeof E.options.Domain=="string"&&E.options.Domain.includes("accelerate."),Z=H>P?"sliceUploadFile":"putObject";z.tracker=new c({Beacon:E.options.BeaconReporter,clsReporter:E.options.ClsReporter,bucket:z.Bucket,region:z.Region,apiName:"uploadFiles",realApi:Z,fileKey:z.Key,fileSize:H,accelerate:X,deepTracker:E.options.DeepTracker,customId:E.options.CustomId,delay:E.options.TrackerDelay})}d.each(z,function(ve,ye){i(ve)!=="object"&&typeof ve!="function"&&(K[ye]=ve)});var se=z.onTaskReady,ie=function(ye){K.TaskId=ye,se&&se(ye)};z.onTaskReady=ie;var me=0,ue=z.onProgress,re=function(ye){k=k-me+ye.loaded,me=ye.loaded,ue&&ue(ye),N({loaded:k,total:I})};z.onProgress=re;var ce=H>P?"sliceUploadFile":"putObject",fe=z.onFileFinish,de=function(ye,Se){z.tracker&&z.tracker.report(ye,Se),fe&&fe(ye,Se),D&&D(ye,Se,K)};L.push({api:ce,params:z,callback:de})})()}),E._addTasks(L)}function x(R,S){var E=new l,P=this,I=R.Bucket,k=R.Region,N=R.Key,M=R.CopySource,j=d.getSourceParams.call(this,M);if(!j){S(d.error(new Error("CopySource format error")));return}var A=j.Bucket,D=j.Region,L=decodeURIComponent(j.Key),z=R.CopySliceSize===void 0?P.options.CopySliceSize:R.CopySliceSize;z=Math.max(0,z);var q=R.CopyChunkSize||this.options.CopyChunkSize,U=this.options.CopyChunkParallelLimit,H=this.options.ChunkRetryTimes+1,K=0,X=0,Z,se,ie={},me={},ue={};E.on("copy_slice_complete",function(re){d.each(R.Headers,function(fe,de){de.toLowerCase().indexOf("x-cos-meta-")});var ce=d.map(re.PartList,function(fe){return{PartNumber:fe.PartNumber,ETag:fe.ETag}});s.retry(H,function(fe){P.multipartComplete({Bucket:I,Region:k,Key:N,UploadId:re.UploadId,Parts:ce,tracker:R.tracker,calledBySdk:"sliceCopyFile"},fe)},function(fe,de){if(a.removeUsing(re.UploadId),fe)return se(null,!0),S(fe);a.removeUploadId(re.UploadId),se({loaded:Z,total:Z},!0),S(null,de)})}),E.on("get_copy_data_finish",function(re){var ce=a.getCopyFileId(M,ie,q,I,N);ce&&a.saveUploadId(ce,re.UploadId,P.options.UploadIdCacheLimit),a.setUsing(re.UploadId);var fe=d.filter(re.PartList,function(de){return de.Uploaded&&(X+=de.PartNumber>=K&&Z%q||q),!de.Uploaded});s.eachLimit(fe,U,function(de,ve){var ye=de.PartNumber,Se=de.CopySourceRange,Pe=de.end-de.start;s.retry(H,function(Ie){w.call(P,{Bucket:I,Region:k,Key:N,CopySource:M,UploadId:re.UploadId,PartNumber:ye,CopySourceRange:Se,tracker:R.tracker,calledBySdk:"sliceCopyFile"},Ie)},function(Ie,$e){if(Ie)return ve(Ie);X+=Pe,se({loaded:X,total:Z}),de.ETag=$e.ETag,ve(Ie||null,$e)})},function(de){if(de)return a.removeUsing(re.UploadId),se(null,!0),S(de);E.emit("copy_slice_complete",re)})}),E.on("get_chunk_size_finish",function(){var re=function(){P.multipartInit({Bucket:I,Region:k,Key:N,Headers:ue,tracker:R.tracker,calledBySdk:"sliceCopyFile"},function(ye,Se){if(ye)return S(ye);R.UploadId=Se.UploadId,E.emit("get_copy_data_finish",{UploadId:R.UploadId,PartList:R.PartList})})},ce=a.getCopyFileId(M,ie,q,I,N),fe=a.getUploadIdList(ce);if(!ce||!fe)return re();var de=function(ye){if(ye>=fe.length)return re();var Se=fe[ye];if(a.using[Se])return de(ye+1);h.call(P,{Bucket:I,Region:k,Key:N,UploadId:Se,tracker:R.tracker,calledBySdk:"sliceCopyFile"},function(Pe,Ie){if(Pe)a.removeUploadId(Se),de(ye+1);else{if(a.using[Se])return de(ye+1);var $e={},Fe=0;d.each(Ie.PartList,function(Ee){var ke=parseInt(Ee.Size),Be=Fe+ke-1;$e[Ee.PartNumber+"|"+Fe+"|"+Be]=Ee.ETag,Fe+=ke}),d.each(R.PartList,function(Ee){var ke=$e[Ee.PartNumber+"|"+Ee.start+"|"+Ee.end];ke&&(Ee.ETag=ke,Ee.Uploaded=!0)}),E.emit("get_copy_data_finish",{UploadId:Se,PartList:R.PartList})}})};de(0)}),E.on("get_file_size_finish",function(){if(function(){for(var ce=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],fe=1024*1024,de=0;de<ce.length&&(fe=ce[de]*1024*1024,!(Z/fe<=P.options.MaxPartNumber));de++);R.ChunkSize=q=Math.max(q,fe),K=Math.ceil(Z/q);for(var ve=[],ye=1;ye<=K;ye++){var Se=(ye-1)*q,Pe=ye*q<Z?ye*q-1:Z-1,Ie={PartNumber:ye,start:Se,end:Pe,CopySourceRange:"bytes="+Se+"-"+Pe};ve.push(Ie)}R.PartList=ve}(),R.Headers["x-cos-metadata-directive"]==="Replaced"?ue=R.Headers:ue=me,ue["x-cos-storage-class"]=R.Headers["x-cos-storage-class"]||me["x-cos-storage-class"],ue=d.clearKey(ue),me["x-cos-storage-class"]==="ARCHIVE"||me["x-cos-storage-class"]==="DEEP_ARCHIVE"){var re=me["x-cos-restore"];if(!re||re==='ongoing-request="true"'){S(d.error(new Error("Unrestored archive object is not allowed to be copied")));return}}delete ue["x-cos-copy-source"],delete ue["x-cos-metadata-directive"],delete ue["x-cos-copy-source-If-Modified-Since"],delete ue["x-cos-copy-source-If-Unmodified-Since"],delete ue["x-cos-copy-source-If-Match"],delete ue["x-cos-copy-source-If-None-Match"],E.emit("get_chunk_size_finish")}),P.headObject({Bucket:A,Region:D,Key:L,tracker:R.tracker,calledBySdk:"sliceCopyFile"},function(re,ce){if(re){re.statusCode&&re.statusCode===404?S(d.error(re,{ErrorStatus:L+" Not Exist"})):S(re);return}if(Z=R.FileSize=ce.headers["content-length"],Z===void 0||!Z){S(d.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.( 获取Content-Length失败,请在CORS ExposeHeader设置中添加Content-Length,请参考文档:https://cloud.tencent.com/document/product/436/13318 )')));return}if(R.tracker&&R.tracker.setParams({httpSize:Z}),se=d.throttleOnProgress.call(P,Z,R.onProgress),Z<=z)R.Headers["x-cos-metadata-directive"]||(R.Headers["x-cos-metadata-directive"]="Copy"),P.putObjectCopy(Object.assign(R,{calledBySdk:"sliceCopyFile"}),function(de,ve){if(de)return se(null,!0),S(de);se({loaded:Z,total:Z},!0),S(de,ve)});else{var fe=ce.headers;ie=fe,me={"Cache-Control":fe["cache-control"],"Content-Disposition":fe["content-disposition"],"Content-Encoding":fe["content-encoding"],"Content-Type":fe["content-type"],Expires:fe.expires,"x-cos-storage-class":fe["x-cos-storage-class"]},d.each(fe,function(de,ve){var ye="x-cos-meta-";ve.indexOf(ye)===0&&ve.length>ye.length&&(me[ve]=de)}),E.emit("get_file_size_finish")}})}function w(R,S){var E=R.TaskId,P=R.Bucket,I=R.Region,k=R.Key,N=R.CopySource,M=R.UploadId,j=R.PartNumber*1,A=R.CopySourceRange,D=this.options.ChunkRetryTimes+1,L=this;s.retry(D,function(z){L.uploadPartCopy({TaskId:E,Bucket:P,Region:I,Key:k,CopySource:N,UploadId:M,PartNumber:j,CopySourceRange:A,tracker:R.tracker,calledBySdk:R.calledBySdk},function(q,U){z(q||null,U)})},function(z,q){return S(z,q)})}var T={sliceUploadFile:f,abortUploadTask:v,uploadFile:O,uploadFiles:$,sliceCopyFile:x};n.exports.init=function(R,S){S.transferToTaskMethod(T,"sliceUploadFile"),d.each(T,function(E,P){R.prototype[P]=d.apiWrapper(P,E)})}},"./src/async.js":function(n,r){var o=function(l,d,c,f){if(f=f||function(){},!l.length||d<=0)return f();var p=0,m=0,h=0;(function g(){if(p>=l.length)return f();for(;h<d&&m<l.length;)m+=1,h+=1,c(l[m-1],function(b){b?(f(b),f=function(){}):(p+=1,h-=1,p>=l.length?f():g())})})()},i=function(l,d,c){var f=function(m){d(function(h,g){h&&m<l?f(m+1):c(h,g)})};l<1?c():f(1)},a={eachLimit:o,retry:i};n.exports=a},"./src/base.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),a=o("./node_modules/@babel/runtime/helpers/typeof.js");function s(_,G){var F=Object.keys(_);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(_);G&&(W=W.filter(function(oe){return Object.getOwnPropertyDescriptor(_,oe).enumerable})),F.push.apply(F,W)}return F}function l(_){for(var G=1;G<arguments.length;G++){var F=arguments[G]!=null?arguments[G]:{};G%2?s(Object(F),!0).forEach(function(W){i(_,W,F[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(F)):s(Object(F)).forEach(function(W){Object.defineProperty(_,W,Object.getOwnPropertyDescriptor(F,W))})}return _}var d=o("./lib/request.js"),c=o("./src/util.js");function f(_,G){var F=this.options.Protocol||(c.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:"),W=this.options.ServiceDomain,oe=_.AppId||this.options.appId,te=_.Region;W?(W=W.replace(/\{\{AppId\}\}/gi,oe||"").replace(/\{\{Region\}\}/gi,te||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(W)||(W=F+"//"+W),W.slice(-1)==="/"&&(W=W.slice(0,-1))):te?W=F+"//cos."+te+".myqcloud.com":W=F+"//service.cos.myqcloud.com";var pe="",le=te?"cos."+te+".myqcloud.com":"service.cos.myqcloud.com",Ce=W.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");le===Ce&&(pe=le),_e.call(this,{Action:"name/cos:GetService",url:W,method:"GET",headers:_.Headers,SignHost:pe,tracker:_.tracker},function(Me,Oe){if(Me)return G(Me);var Ue=Oe&&Oe.ListAllMyBucketsResult&&Oe.ListAllMyBucketsResult.Buckets&&Oe.ListAllMyBucketsResult.Buckets.Bucket||[];Ue=c.isArray(Ue)?Ue:[Ue];var Ae=Oe&&Oe.ListAllMyBucketsResult&&Oe.ListAllMyBucketsResult.Owner||{};G(null,{Buckets:Ue,Owner:Ae,statusCode:Oe.statusCode,headers:Oe.headers})})}function p(_,G){var F=this,W="";if(_.BucketAZConfig){var oe={BucketAZConfig:_.BucketAZConfig};W=c.json2xml({CreateBucketConfiguration:oe})}_e.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,body:W,tracker:_.tracker},function(te,pe){if(te)return G(te);var le=Ke({protocol:F.options.Protocol,domain:F.options.Domain,bucket:_.Bucket,region:_.Region,isLocation:!0});G(null,{Location:le,statusCode:pe.statusCode,headers:pe.headers})})}function m(_,G){_e.call(this,{Action:"name/cos:HeadBucket",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,method:"HEAD",tracker:_.tracker},G)}function h(_,G){var F={};F.prefix=_.Prefix||"",F.delimiter=_.Delimiter,F.marker=_.Marker,F["max-keys"]=_.MaxKeys,F["encoding-type"]=_.EncodingType,_e.call(this,{Action:"name/cos:GetBucket",ResourceKey:F.prefix,method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,qs:F,tracker:_.tracker},function(W,oe){if(W)return G(W);var te=oe.ListBucketResult||{},pe=te.Contents||[],le=te.CommonPrefixes||[];pe=c.isArray(pe)?pe:[pe],le=c.isArray(le)?le:[le];var Ce=c.clone(te);c.extend(Ce,{Contents:pe,CommonPrefixes:le,statusCode:oe.statusCode,headers:oe.headers}),G(null,Ce)})}function g(_,G){_e.call(this,{Action:"name/cos:DeleteBucket",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,method:"DELETE",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function b(_,G){var F=_.Headers,W="";if(_.AccessControlPolicy){var oe=c.clone(_.AccessControlPolicy||{}),te=oe.Grants||oe.Grant;te=c.isArray(te)?te:[te],delete oe.Grant,delete oe.Grants,oe.AccessControlList={Grant:te},W=c.json2xml({AccessControlPolicy:oe}),F["Content-Type"]="application/xml",F["Content-MD5"]=c.b64(c.md5(W))}c.each(F,function(pe,le){le.indexOf("x-cos-grant-")===0&&(F[le]=Ct(F[le]))}),_e.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:_.Bucket,Region:_.Region,headers:F,action:"acl",body:W,tracker:_.tracker},function(pe,le){if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function y(_,G){_e.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"acl",tracker:_.tracker},function(F,W){if(F)return G(F);var oe=W.AccessControlPolicy||{},te=oe.Owner||{},pe=oe.AccessControlList.Grant||[];pe=c.isArray(pe)?pe:[pe];var le=Je(oe);W.headers&&W.headers["x-cos-acl"]&&(le.ACL=W.headers["x-cos-acl"]),le=c.extend(le,{Owner:te,Grants:pe,statusCode:W.statusCode,headers:W.headers}),G(null,le)})}function v(_,G){var F=_.CORSConfiguration||{},W=F.CORSRules||_.CORSRules||[];W=c.clone(c.isArray(W)?W:[W]),c.each(W,function(le){c.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Ce){var Me=Ce+"s",Oe=le[Me]||le[Ce]||[];delete le[Me],le[Ce]=c.isArray(Oe)?Oe:[Oe]})});var oe={CORSRule:W};_.ResponseVary&&(oe.ResponseVary=_.ResponseVary);var te=c.json2xml({CORSConfiguration:oe}),pe=_.Headers;pe["Content-Type"]="application/xml",pe["Content-MD5"]=c.b64(c.md5(te)),_e.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:te,action:"cors",headers:pe,tracker:_.tracker},function(le,Ce){if(le)return G(le);G(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function C(_,G){_e.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"cors",tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.error&&F.error.Code==="NoSuchCORSConfiguration"){var oe={CORSRules:[],statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}var te=W.CORSConfiguration||{},pe=te.CORSRules||te.CORSRule||[];pe=c.clone(c.isArray(pe)?pe:[pe]);var le=te.ResponseVary;c.each(pe,function(Ce){c.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Me){var Oe=Me+"s",Ue=Ce[Oe]||Ce[Me]||[];delete Ce[Me],Ce[Oe]=c.isArray(Ue)?Ue:[Ue]})}),G(null,{CORSRules:pe,ResponseVary:le,statusCode:W.statusCode,headers:W.headers})})}function O(_,G){_e.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"cors",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode||F.statusCode,headers:W.headers})})}function $(_,G){_e.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"location",tracker:_.tracker},G)}function x(_,G){var F=_.Policy;try{typeof F=="string"&&(F=JSON.parse(F))}catch{}if(!F||typeof F=="string")return G(c.error(new Error("Policy format error")));var W=JSON.stringify(F);F.version||(F.version="2.0");var oe=_.Headers;oe["Content-Type"]="application/json",oe["Content-MD5"]=c.b64(c.md5(W)),_e.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:_.Bucket,Region:_.Region,action:"policy",body:W,headers:oe,tracker:_.tracker},function(te,pe){if(te&&te.statusCode===204)return G(null,{statusCode:te.statusCode});if(te)return G(te);G(null,{statusCode:pe.statusCode,headers:pe.headers})})}function w(_,G){_e.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"policy",rawBody:!0,tracker:_.tracker},function(F,W){if(F)return F.statusCode&&F.statusCode===403?G(c.error(F,{ErrorStatus:"Access Denied"})):F.statusCode&&F.statusCode===405?G(c.error(F,{ErrorStatus:"Method Not Allowed"})):F.statusCode&&F.statusCode===404?G(c.error(F,{ErrorStatus:"Policy Not Found"})):G(F);var oe={};try{oe=JSON.parse(W.body)}catch{}G(null,{Policy:oe,statusCode:W.statusCode,headers:W.headers})})}function T(_,G){_e.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"policy",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode||F.statusCode,headers:W.headers})})}function R(_,G){var F=_.Tagging||{},W=F.TagSet||F.Tags||_.Tags||[];W=c.clone(c.isArray(W)?W:[W]);var oe=c.json2xml({Tagging:{TagSet:{Tag:W}}}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:oe,action:"tagging",headers:te,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function S(_,G){_e.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"tagging",tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.error&&(F.error==="Not Found"||F.error.Code==="NoSuchTagSet")){var oe={Tags:[],statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}var te=[];try{te=W.Tagging.TagSet.Tag||[]}catch{}te=c.clone(c.isArray(te)?te:[te]),G(null,{Tags:te,statusCode:W.statusCode,headers:W.headers})})}function E(_,G){_e.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"tagging",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function P(_,G){var F=_.LifecycleConfiguration||{},W=F.Rules||_.Rules||[];W=c.clone(W);var oe=c.json2xml({LifecycleConfiguration:{Rule:W}}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:oe,action:"lifecycle",headers:te,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function I(_,G){_e.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"lifecycle",tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.error&&F.error.Code==="NoSuchLifecycleConfiguration"){var oe={Rules:[],statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}var te=[];try{te=W.LifecycleConfiguration.Rule||[]}catch{}te=c.clone(c.isArray(te)?te:[te]),G(null,{Rules:te,statusCode:W.statusCode,headers:W.headers})})}function k(_,G){_e.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"lifecycle",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function N(_,G){if(!_.VersioningConfiguration){G(c.error(new Error("missing param VersioningConfiguration")));return}var F=_.VersioningConfiguration||{},W=c.json2xml({VersioningConfiguration:F}),oe=_.Headers;oe["Content-Type"]="application/xml",oe["Content-MD5"]=c.b64(c.md5(W)),_e.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:W,action:"versioning",headers:oe,tracker:_.tracker},function(te,pe){if(te&&te.statusCode===204)return G(null,{statusCode:te.statusCode});if(te)return G(te);G(null,{statusCode:pe.statusCode,headers:pe.headers})})}function M(_,G){_e.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"versioning",tracker:_.tracker},function(F,W){F||!W.VersioningConfiguration&&(W.VersioningConfiguration={}),G(F,W)})}function j(_,G){var F=c.clone(_.ReplicationConfiguration),W=c.json2xml({ReplicationConfiguration:F});W=W.replace(/<(\/?)Rules>/gi,"<$1Rule>"),W=W.replace(/<(\/?)Tags>/gi,"<$1Tag>");var oe=_.Headers;oe["Content-Type"]="application/xml",oe["Content-MD5"]=c.b64(c.md5(W)),_e.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:W,action:"replication",headers:oe,tracker:_.tracker},function(te,pe){if(te&&te.statusCode===204)return G(null,{statusCode:te.statusCode});if(te)return G(te);G(null,{statusCode:pe.statusCode,headers:pe.headers})})}function A(_,G){_e.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"replication",tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.error&&(F.error==="Not Found"||F.error.Code==="ReplicationConfigurationnotFoundError")){var oe={ReplicationConfiguration:{Rules:[]},statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}!W.ReplicationConfiguration&&(W.ReplicationConfiguration={}),W.ReplicationConfiguration.Rule&&(W.ReplicationConfiguration.Rules=c.makeArray(W.ReplicationConfiguration.Rule),delete W.ReplicationConfiguration.Rule),G(F,W)})}function D(_,G){_e.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"replication",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function L(_,G){if(!_.WebsiteConfiguration){G(c.error(new Error("missing param WebsiteConfiguration")));return}var F=c.clone(_.WebsiteConfiguration||{}),W=F.RoutingRules||F.RoutingRule||[];W=c.isArray(W)?W:[W],delete F.RoutingRule,delete F.RoutingRules,W.length&&(F.RoutingRules={RoutingRule:W});var oe=c.json2xml({WebsiteConfiguration:F}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:oe,action:"website",headers:te,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function z(_,G){_e.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,action:"website",tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.error.Code==="NoSuchWebsiteConfiguration"){var oe={WebsiteConfiguration:{},statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}var te=W.WebsiteConfiguration||{};if(te.RoutingRules){var pe=c.clone(te.RoutingRules.RoutingRule||[]);pe=c.makeArray(pe),te.RoutingRules=pe}G(null,{WebsiteConfiguration:te,statusCode:W.statusCode,headers:W.headers})})}function q(_,G){_e.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"website",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function U(_,G){if(!_.RefererConfiguration){G(c.error(new Error("missing param RefererConfiguration")));return}var F=c.clone(_.RefererConfiguration||{}),W=F.DomainList||{},oe=W.Domains||W.Domain||[];oe=c.isArray(oe)?oe:[oe],oe.length&&(F.DomainList={Domain:oe});var te=c.json2xml({RefererConfiguration:F}),pe=_.Headers;pe["Content-Type"]="application/xml",pe["Content-MD5"]=c.b64(c.md5(te)),_e.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:te,action:"referer",headers:pe,tracker:_.tracker},function(le,Ce){if(le&&le.statusCode===204)return G(null,{statusCode:le.statusCode});if(le)return G(le);G(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function H(_,G){_e.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,action:"referer",tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.error.Code==="NoSuchRefererConfiguration"){var oe={WebsiteConfiguration:{},statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}var te=W.RefererConfiguration||{};if(te.DomainList){var pe=c.makeArray(te.DomainList.Domain||[]);te.DomainList={Domains:pe}}G(null,{RefererConfiguration:te,statusCode:W.statusCode,headers:W.headers})})}function K(_,G){var F=_.DomainConfiguration||{},W=F.DomainRule||_.DomainRule||[];W=c.clone(W);var oe=c.json2xml({DomainConfiguration:{DomainRule:W}}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:oe,action:"domain",headers:te,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function X(_,G){_e.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"domain",tracker:_.tracker},function(F,W){if(F)return G(F);var oe=[];try{oe=W.DomainConfiguration.DomainRule||[]}catch{}oe=c.clone(c.isArray(oe)?oe:[oe]),G(null,{DomainRule:oe,statusCode:W.statusCode,headers:W.headers})})}function Z(_,G){_e.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"domain",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function se(_,G){var F=_.OriginConfiguration||{},W=F.OriginRule||_.OriginRule||[];W=c.clone(W);var oe=c.json2xml({OriginConfiguration:{OriginRule:W}}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:oe,action:"origin",headers:te,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function ie(_,G){_e.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"origin",tracker:_.tracker},function(F,W){if(F)return G(F);var oe=[];try{oe=W.OriginConfiguration.OriginRule||[]}catch{}oe=c.clone(c.isArray(oe)?oe:[oe]),G(null,{OriginRule:oe,statusCode:W.statusCode,headers:W.headers})})}function me(_,G){_e.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"origin",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function ue(_,G){var F=c.json2xml({BucketLoggingStatus:_.BucketLoggingStatus||""}),W=_.Headers;W["Content-Type"]="application/xml",W["Content-MD5"]=c.b64(c.md5(F)),_e.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:F,action:"logging",headers:W,tracker:_.tracker},function(oe,te){if(oe&&oe.statusCode===204)return G(null,{statusCode:oe.statusCode});if(oe)return G(oe);G(null,{statusCode:te.statusCode,headers:te.headers})})}function re(_,G){_e.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"logging",tracker:_.tracker},function(F,W){if(F)return G(F);G(null,{BucketLoggingStatus:W.BucketLoggingStatus,statusCode:W.statusCode,headers:W.headers})})}function ce(_,G,F){var W=c.clone(G.InventoryConfiguration);if(W.OptionalFields){var oe=W.OptionalFields||[];W.OptionalFields={Field:oe}}if(W.Destination&&W.Destination.COSBucketDestination&&W.Destination.COSBucketDestination.Encryption){var te=W.Destination.COSBucketDestination.Encryption;Object.keys(te).indexOf("SSECOS")>-1&&(te["SSE-COS"]=te.SSECOS,delete te.SSECOS)}var pe=c.json2xml({InventoryConfiguration:W}),le=G.Headers;le["Content-Type"]="application/xml",le["Content-MD5"]=c.b64(c.md5(pe));var Ce=_==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";_e.call(this,{Action:Ce,method:_,Bucket:G.Bucket,Region:G.Region,body:pe,action:"inventory",qs:{id:G.Id},headers:le,tracker:G.tracker},function(Me,Oe){if(Me&&Me.statusCode===204)return F(null,{statusCode:Me.statusCode});if(Me)return F(Me);F(null,{statusCode:Oe.statusCode,headers:Oe.headers})})}function fe(_,G){return ce.call(this,"PUT",_,G)}function de(_,G){return ce.call(this,"POST",_,G)}function ve(_,G){_e.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"inventory",qs:{id:_.Id},tracker:_.tracker},function(F,W){if(F)return G(F);var oe=W.InventoryConfiguration;if(oe&&oe.OptionalFields&&oe.OptionalFields.Field){var te=oe.OptionalFields.Field;c.isArray(te)||(te=[te]),oe.OptionalFields=te}if(oe.Destination&&oe.Destination.COSBucketDestination&&oe.Destination.COSBucketDestination.Encryption){var pe=oe.Destination.COSBucketDestination.Encryption;Object.keys(pe).indexOf("SSE-COS")>-1&&(pe.SSECOS=pe["SSE-COS"],delete pe["SSE-COS"])}G(null,{InventoryConfiguration:oe,statusCode:W.statusCode,headers:W.headers})})}function ye(_,G){_e.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"inventory",qs:{"continuation-token":_.ContinuationToken},tracker:_.tracker},function(F,W){if(F)return G(F);var oe=W.ListInventoryConfigurationResult,te=oe.InventoryConfiguration||[];te=c.isArray(te)?te:[te],delete oe.InventoryConfiguration,c.each(te,function(pe){if(pe&&pe.OptionalFields&&pe.OptionalFields.Field){var le=pe.OptionalFields.Field;c.isArray(le)||(le=[le]),pe.OptionalFields=le}if(pe.Destination&&pe.Destination.COSBucketDestination&&pe.Destination.COSBucketDestination.Encryption){var Ce=pe.Destination.COSBucketDestination.Encryption;Object.keys(Ce).indexOf("SSE-COS")>-1&&(Ce.SSECOS=Ce["SSE-COS"],delete Ce["SSE-COS"])}}),oe.InventoryConfigurations=te,c.extend(oe,{statusCode:W.statusCode,headers:W.headers}),G(null,oe)})}function Se(_,G){_e.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"inventory",qs:{id:_.Id},tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function Pe(_,G){if(!_.AccelerateConfiguration){G(c.error(new Error("missing param AccelerateConfiguration")));return}var F={AccelerateConfiguration:_.AccelerateConfiguration||{}},W=c.json2xml(F),oe={};oe["Content-Type"]="application/xml",oe["Content-MD5"]=c.b64(c.md5(W)),_e.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:W,action:"accelerate",headers:oe,tracker:_.tracker},function(te,pe){if(te)return G(te);G(null,{statusCode:pe.statusCode,headers:pe.headers})})}function Ie(_,G){_e.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:_.Bucket,Region:_.Region,action:"accelerate",tracker:_.tracker},function(F,W){F||!W.AccelerateConfiguration&&(W.AccelerateConfiguration={}),G(F,W)})}function $e(_,G){var F=_.ServerSideEncryptionConfiguration||{},W=F.Rule||F.Rules||[],oe=c.json2xml({ServerSideEncryptionConfiguration:{Rule:W}}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:_.Bucket,Region:_.Region,body:oe,action:"encryption",headers:te,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function Fe(_,G){_e.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"encryption",tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.code==="NoSuchEncryptionConfiguration"){var oe={EncryptionConfiguration:{Rules:[]},statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}var te=c.makeArray(W.EncryptionConfiguration&&W.EncryptionConfiguration.Rule||[]);W.EncryptionConfiguration={Rules:te},G(F,W)})}function Ee(_,G){_e.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"encryption",tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function ke(_,G){_e.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:_.Bucket,Region:_.Region,Key:_.Key,VersionId:_.VersionId,headers:_.Headers,tracker:_.tracker},function(F,W){if(F){var oe=F.statusCode;return _.Headers["If-Modified-Since"]&&oe&&oe===304?G(null,{NotModified:!0,statusCode:oe}):G(F)}W.ETag=c.attr(W.headers,"etag",""),G(null,W)})}function Be(_,G){var F={};F.prefix=_.Prefix||"",F.delimiter=_.Delimiter,F["key-marker"]=_.KeyMarker,F["version-id-marker"]=_.VersionIdMarker,F["max-keys"]=_.MaxKeys,F["encoding-type"]=_.EncodingType,_e.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:F.prefix,method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,qs:F,action:"versions",tracker:_.tracker},function(W,oe){if(W)return G(W);var te=oe.ListVersionsResult||{},pe=te.DeleteMarker||[];pe=c.isArray(pe)?pe:[pe];var le=te.Version||[];le=c.isArray(le)?le:[le];var Ce=c.clone(te);delete Ce.DeleteMarker,delete Ce.Version,c.extend(Ce,{DeleteMarkers:pe,Versions:le,statusCode:oe.statusCode,headers:oe.headers}),G(null,Ce)})}function je(_,G){var F=this;if(F.logger.info({cate:"PROCESS",tag:"download",msg:"[key=".concat(_.Key,"] getObject开始")}),this.options.ObjectKeySimplifyCheck){var W=c.simplifyPath(_.Key);if(W==="/"){G(c.error(new Error("The Getobject Key is illegal")));return}}var oe=_.Query||{},te=_.QueryString||"",pe=c.throttleOnProgress.call(this,0,_.onProgress),le=_.tracker;le&&le.setParams({signStartTime:new Date().getTime()}),oe["response-content-type"]=_.ResponseContentType,oe["response-content-language"]=_.ResponseContentLanguage,oe["response-expires"]=_.ResponseExpires,oe["response-cache-control"]=_.ResponseCacheControl,oe["response-content-disposition"]=_.ResponseContentDisposition,oe["response-content-encoding"]=_.ResponseContentEncoding,_e.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:_.Bucket,Region:_.Region,Key:_.Key,VersionId:_.VersionId,DataType:_.DataType,headers:_.Headers,qs:oe,qsStr:te,rawBody:!0,onDownloadProgress:pe,tracker:le},function(Ce,Me){if(pe(null,!0),Ce){var Oe=Ce.statusCode;return _.Headers["If-Modified-Since"]&&Oe&&Oe===304?G(null,{NotModified:!0}):G(Ce)}G(null,{Body:Me.body,ETag:c.attr(Me.headers,"etag",""),statusCode:Me.statusCode,headers:Me.headers}),F.logger.info({cate:"PROCESS",tag:"download",msg:"[key=".concat(_.Key,"] getObject结束")})})}function We(_,G){var F=this,W=_.ContentLength,oe=c.throttleOnProgress.call(F,W,_.onProgress);F.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(_.Key,"] putObject开始")});var te=_.Headers;!te["Cache-Control"]&&!te["cache-control"]&&(te["Cache-Control"]=""),!te["Content-Type"]&&!te["content-type"]&&(te["Content-Type"]=_.Body&&_.Body.type||"");var pe=_.UploadAddMetaMd5||F.options.UploadAddMetaMd5||F.options.UploadCheckContentMd5,le=_.tracker;pe&&le&&le.setParams({md5StartTime:new Date().getTime()}),pe&&F.logger.debug({cate:"PROCESS",tag:"upload",msg:"[key=".concat(_.Key,"] 开始计算 md5")}),c.getBodyMd5(pe,_.Body,function(Ce){Ce&&(F.logger.debug({cate:"PROCESS",tag:"upload",msg:"[key=".concat(_.Key,"] md5: ").concat(Ce,",md5Base64=").concat(c.b64(Ce))}),le&&le.setParams({md5EndTime:new Date().getTime()}),F.options.UploadCheckContentMd5&&(te["Content-MD5"]=c.b64(Ce)),(_.UploadAddMetaMd5||F.options.UploadAddMetaMd5)&&(te["x-cos-meta-md5"]=Ce)),_.ContentLength!==void 0&&(te["Content-Length"]=_.ContentLength),oe(null,!0),_e.call(F,{Action:"name/cos:PutObject",TaskId:_.TaskId,method:"PUT",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,qs:_.Query,body:_.Body,onProgress:oe,tracker:le},function(Me,Oe){if(Me)return F.logger.error({cate:"ERROR",tag:"upload",msg:"上传失败,错误信息:".concat(JSON.stringify(Me))}),oe(null,!0),G(Me);oe({loaded:W,total:W},!0);var Ue=Ke({ForcePathStyle:F.options.ForcePathStyle,protocol:F.options.Protocol,domain:F.options.Domain,bucket:_.Bucket,region:F.options.UseAccelerate?"accelerate":_.Region,object:_.Key});Ue=Ue.substr(Ue.indexOf("://")+3),Oe.Location=Ue,Oe.ETag=c.attr(Oe.headers,"etag",""),F.logger.info({cate:"RESULT",tag:"upload",msg:"上传成功,Location=".concat(Ue)}),F.logger.info({cate:"PROCESS",tag:"upload",msg:"[key=".concat(_.Key,"] putObject结束")}),G(null,Oe)})},_.onHashProgress)}function Ye(_,G){_e.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,VersionId:_.VersionId,action:_.Recursive?"recursive":"",tracker:_.tracker},function(F,W){if(F){var oe=F.statusCode;return oe&&oe===404?G(null,{BucketNotFound:!0,statusCode:oe}):G(F)}G(null,{statusCode:W.statusCode,headers:W.headers})})}function Xe(_,G){var F={};_.VersionId&&(F.versionId=_.VersionId),_e.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,qs:F,action:"acl",tracker:_.tracker},function(W,oe){if(W)return G(W);var te=oe.AccessControlPolicy||{},pe=te.Owner||{},le=te.AccessControlList&&te.AccessControlList.Grant||[];le=c.isArray(le)?le:[le];var Ce=Je(te);delete Ce.GrantWrite,oe.headers&&oe.headers["x-cos-acl"]&&(Ce.ACL=oe.headers["x-cos-acl"]),Ce=c.extend(Ce,{Owner:pe,Grants:le,statusCode:oe.statusCode,headers:oe.headers}),G(null,Ce)})}function it(_,G){var F=_.Headers,W="";if(_.AccessControlPolicy){var oe=c.clone(_.AccessControlPolicy||{}),te=oe.Grants||oe.Grant;te=c.isArray(te)?te:[te],delete oe.Grant,delete oe.Grants,oe.AccessControlList={Grant:te},W=c.json2xml({AccessControlPolicy:oe}),F["Content-Type"]="application/xml",F["Content-MD5"]=c.b64(c.md5(W))}c.each(F,function(pe,le){le.indexOf("x-cos-grant-")===0&&(F[le]=Ct(F[le]))}),_e.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:_.Bucket,Region:_.Region,Key:_.Key,action:"acl",headers:F,body:W,tracker:_.tracker},function(pe,le){if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function et(_,G){var F=_.Headers;F.Origin=_.Origin,F["Access-Control-Request-Method"]=_.AccessControlRequestMethod,F["Access-Control-Request-Headers"]=_.AccessControlRequestHeaders,_e.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:F,tracker:_.tracker},function(W,oe){if(W)return W.statusCode&&W.statusCode===403?G(null,{OptionsForbidden:!0,statusCode:W.statusCode}):G(W);var te=oe.headers||{};G(null,{AccessControlAllowOrigin:te["access-control-allow-origin"],AccessControlAllowMethods:te["access-control-allow-methods"],AccessControlAllowHeaders:te["access-control-allow-headers"],AccessControlExposeHeaders:te["access-control-expose-headers"],AccessControlMaxAge:te["access-control-max-age"],statusCode:oe.statusCode,headers:oe.headers})})}function ct(_,G){var F=this,W=_.Headers;!W["Cache-Control"]&&!W["cache-control"]&&(W["Cache-Control"]="");var oe=_.CopySource||"",te=c.getSourceParams.call(this,oe);if(!te){G(c.error(new Error("CopySource format error")));return}var pe=te.Bucket,le=te.Region,Ce=decodeURIComponent(te.Key);_e.call(this,{Scope:[{action:"name/cos:GetObject",bucket:pe,region:le,prefix:Ce},{action:"name/cos:PutObject",bucket:_.Bucket,region:_.Region,prefix:_.Key}],method:"PUT",Bucket:_.Bucket,Region:_.Region,Key:_.Key,VersionId:_.VersionId,headers:_.Headers,tracker:_.tracker},function(Me,Oe){if(Me)return G(Me);var Ue=c.clone(Oe.CopyObjectResult||{}),Ae=Ke({ForcePathStyle:F.options.ForcePathStyle,protocol:F.options.Protocol,domain:F.options.Domain,bucket:_.Bucket,region:_.Region,object:_.Key,isLocation:!0});c.extend(Ue,{Location:Ae,statusCode:Oe.statusCode,headers:Oe.headers}),G(null,Ue)})}function He(_,G){var F=_.CopySource||"",W=c.getSourceParams.call(this,F);if(!W){G(c.error(new Error("CopySource format error")));return}var oe=W.Bucket,te=W.Region,pe=decodeURIComponent(W.Key);_e.call(this,{Scope:[{action:"name/cos:GetObject",bucket:oe,region:te,prefix:pe},{action:"name/cos:PutObject",bucket:_.Bucket,region:_.Region,prefix:_.Key}],method:"PUT",Bucket:_.Bucket,Region:_.Region,Key:_.Key,VersionId:_.VersionId,qs:{partNumber:_.PartNumber,uploadId:_.UploadId},headers:_.Headers,tracker:_.tracker},function(le,Ce){if(le)return G(le);var Me=c.clone(Ce.CopyPartResult||{});c.extend(Me,{statusCode:Ce.statusCode,headers:Ce.headers}),G(null,Me)})}function he(_,G){var F=_.Objects||[],W=_.Quiet;F=c.isArray(F)?F:[F];var oe=c.json2xml({Delete:{Object:F,Quiet:W||!1}}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe));var pe=c.map(F,function(le){return{action:"name/cos:DeleteObject",bucket:_.Bucket,region:_.Region,prefix:le.Key}});_e.call(this,{Scope:pe,method:"POST",Bucket:_.Bucket,Region:_.Region,body:oe,action:"delete",headers:te,tracker:_.tracker},function(le,Ce){if(le)return G(le);var Me=Ce.DeleteResult||{},Oe=Me.Deleted||[],Ue=Me.Error||[];Oe=c.isArray(Oe)?Oe:[Oe],Ue=c.isArray(Ue)?Ue:[Ue];var Ae=c.clone(Me);c.extend(Ae,{Error:Ue,Deleted:Oe,statusCode:Ce.statusCode,headers:Ce.headers}),G(null,Ae)})}function Q(_,G){var F=_.Headers;if(!_.RestoreRequest){G(c.error(new Error("missing param RestoreRequest")));return}var W=_.RestoreRequest||{},oe=c.json2xml({RestoreRequest:W});F["Content-Type"]="application/xml",F["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:_.Bucket,Region:_.Region,Key:_.Key,VersionId:_.VersionId,body:oe,action:"restore",headers:F,tracker:_.tracker},G)}function ee(_,G){var F=_.Tagging||{},W=F.TagSet||F.Tags||_.Tags||[];W=c.clone(c.isArray(W)?W:[W]);var oe=c.json2xml({Tagging:{TagSet:{Tag:W}}}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:_.Bucket,Key:_.Key,Region:_.Region,body:oe,action:"tagging",headers:te,VersionId:_.VersionId,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);G(null,{statusCode:le.statusCode,headers:le.headers})})}function ne(_,G){_e.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:_.Key,Bucket:_.Bucket,Region:_.Region,headers:_.Headers,action:"tagging",VersionId:_.VersionId,tracker:_.tracker},function(F,W){if(F){if(F.statusCode===404&&F.error&&(F.error==="Not Found"||F.error.Code==="NoSuchTagSet")){var oe={Tags:[],statusCode:F.statusCode};F.headers&&(oe.headers=F.headers),G(null,oe)}else G(F);return}var te=[];try{te=W.Tagging.TagSet.Tag||[]}catch{}te=c.clone(c.isArray(te)?te:[te]),G(null,{Tags:te,statusCode:W.statusCode,headers:W.headers})})}function xe(_,G){_e.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,action:"tagging",VersionId:_.VersionId,tracker:_.tracker},function(F,W){if(F&&F.statusCode===204)return G(null,{statusCode:F.statusCode});if(F)return G(F);G(null,{statusCode:W.statusCode,headers:W.headers})})}function Re(_,G){var F=_.SelectType;if(!F)return G(c.error(new Error("missing param SelectType")));var W=_.SelectRequest||{},oe=c.json2xml({SelectRequest:W}),te=_.Headers;te["Content-Type"]="application/xml",te["Content-MD5"]=c.b64(c.md5(oe)),_e.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,action:"select",qs:{"select-type":_.SelectType},VersionId:_.VersionId,body:oe,DataType:"arraybuffer",rawBody:!0,tracker:_.tracker},function(pe,le){if(pe&&pe.statusCode===204)return G(null,{statusCode:pe.statusCode});if(pe)return G(pe);var Ce=c.parseSelectPayload(le.body);G(null,{statusCode:le.statusCode,headers:le.headers,Body:Ce.body,Payload:Ce.payload})})}function De(_,G){var F=this,W=_.Headers,oe=_.tracker;!W["Cache-Control"]&&!W["cache-control"]&&(W["Cache-Control"]=""),!W["Content-Type"]&&!W["content-type"]&&(W["Content-Type"]=_.Body&&_.Body.type||"");var te=_.Body&&(_.UploadAddMetaMd5||F.options.UploadAddMetaMd5);te&&oe&&oe.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(te,_.Body,function(pe){pe&&(_.Headers["x-cos-meta-md5"]=pe),te&&oe&&oe.setParams({md5EndTime:new Date().getTime()}),_e.call(F,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:_.Bucket,Region:_.Region,Key:_.Key,action:"uploads",headers:_.Headers,qs:_.Query,tracker:oe},function(le,Ce){if(le)return oe&&oe.parent&&oe.parent.setParams({errorNode:"multipartInit"}),G(le);if(Ce=c.clone(Ce||{}),Ce&&Ce.InitiateMultipartUploadResult)return G(null,c.extend(Ce.InitiateMultipartUploadResult,{statusCode:Ce.statusCode,headers:Ce.headers}));G(null,Ce)})},_.onHashProgress)}function Qe(_,G){var F=this;c.getFileSize("multipartUpload",_,function(){var W=_.tracker,oe=F.options.UploadCheckContentMd5;oe&&W&&W.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(oe,_.Body,function(te){te&&(_.Headers["Content-MD5"]=c.b64(te)),oe&&W&&W.setParams({md5EndTime:new Date().getTime()}),W&&W.setParams({partNumber:_.PartNumber}),_e.call(F,{Action:"name/cos:UploadPart",TaskId:_.TaskId,method:"PUT",Bucket:_.Bucket,Region:_.Region,Key:_.Key,qs:{partNumber:_.PartNumber,uploadId:_.UploadId},headers:_.Headers,onProgress:_.onProgress,body:_.Body||null,tracker:W},function(pe,le){if(pe)return W&&W.parent&&W.parent.setParams({errorNode:"multipartUpload"}),G(pe);G(null,{ETag:c.attr(le.headers,"etag",""),statusCode:le.statusCode,headers:le.headers})})})})}function rt(_,G){for(var F=this,W=_.UploadId,oe=_.Parts,te=_.tracker,pe=0,le=oe.length;pe<le;pe++)oe[pe].ETag&&oe[pe].ETag.indexOf('"')===0||(oe[pe].ETag='"'+oe[pe].ETag+'"');var Ce=c.json2xml({CompleteMultipartUpload:{Part:oe}});Ce=Ce.replace(/\n\s*/g,"");var Me=_.Headers;Me["Content-Type"]="application/xml",Me["Content-MD5"]=c.b64(c.md5(Ce)),_e.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:_.Bucket,Region:_.Region,Key:_.Key,qs:{uploadId:W},body:Ce,headers:Me,tracker:te},function(Oe,Ue){if(Oe)return te&&te.parent&&te.parent.setParams({errorNode:"multipartComplete"}),G(Oe);var Ae=Ke({ForcePathStyle:F.options.ForcePathStyle,protocol:F.options.Protocol,domain:F.options.Domain,bucket:_.Bucket,region:F.options.UseAccelerate?"accelerate":_.Region,object:_.Key,isLocation:!0}),ht=Ue.CompleteMultipartUploadResult||{};if(ht.ProcessResults&&(ht.UploadResult={OriginalInfo:{Key:ht.Key,Location:Ae,ETag:ht.ETag,ImageInfo:ht.ImageInfo},ProcessResults:ht.ProcessResults},delete ht.ImageInfo,delete ht.ProcessResults),ht.CallbackResult){var $t=ht.CallbackResult;if($t.Status==="200"&&$t.CallbackBody)try{ht.CallbackBody=JSON.parse(c.decodeBase64($t.CallbackBody))}catch{ht.CallbackBody={}}else ht.CallbackError=$t.Error||{};delete ht.CallbackResult}if(ht.ReturnBodyResult){var At=ht.ReturnBodyResult;if(At.Status==="200"&&At.ReturnBody)try{ht.ReturnBody=JSON.parse(c.decodeBase64(At.ReturnBody))}catch{ht.ReturnBody={}}else ht.ReturnError={Code:At.Code,Message:At.Message,Status:At.Status};delete ht.ReturnBodyResult}var _t=c.extend(ht,{Location:Ae,statusCode:Ue.statusCode,headers:Ue.headers});G(null,_t)})}function dt(_,G){var F={};F.delimiter=_.Delimiter,F["encoding-type"]=_.EncodingType,F.prefix=_.Prefix||"",F["max-uploads"]=_.MaxUploads,F["key-marker"]=_.KeyMarker,F["upload-id-marker"]=_.UploadIdMarker,F=c.clearKey(F);var W=_.tracker;W&&W.setParams({signStartTime:new Date().getTime()}),_e.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:F.prefix,method:"GET",Bucket:_.Bucket,Region:_.Region,headers:_.Headers,qs:F,action:"uploads",tracker:W},function(oe,te){if(oe)return W&&W.parent&&W.parent.setParams({errorNode:"multipartList"}),G(oe);if(te&&te.ListMultipartUploadsResult){var pe=te.ListMultipartUploadsResult.Upload||[];pe=c.isArray(pe)?pe:[pe],te.ListMultipartUploadsResult.Upload=pe}var le=c.clone(te.ListMultipartUploadsResult||{});c.extend(le,{statusCode:te.statusCode,headers:te.headers}),G(null,le)})}function pt(_,G){var F={},W=_.tracker;F.uploadId=_.UploadId,F["encoding-type"]=_.EncodingType,F["max-parts"]=_.MaxParts,F["part-number-marker"]=_.PartNumberMarker,_e.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,qs:F,tracker:W},function(oe,te){if(oe)return W&&W.parent&&W.parent.setParams({errorNode:"multipartListPart"}),G(oe);var pe=te.ListPartsResult||{},le=pe.Part||[];le=c.isArray(le)?le:[le],pe.Part=le;var Ce=c.clone(pe);c.extend(Ce,{statusCode:te.statusCode,headers:te.headers}),G(null,Ce)})}function vt(_,G){var F={};F.uploadId=_.UploadId,_e.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:_.Bucket,Region:_.Region,Key:_.Key,headers:_.Headers,qs:F,tracker:_.tracker},function(W,oe){if(W)return G(W);G(null,{statusCode:oe.statusCode,headers:oe.headers})})}function at(_,G){_e.call(this,{method:_.Method,Bucket:_.Bucket,Region:_.Region,Key:_.Key,action:_.Action,headers:_.Headers,qs:_.Query,body:_.Body,Url:_.Url,rawBody:_.RawBody,DataType:_.DataType,tracker:_.tracker},function(F,W){if(F)return G(F);W&&W.body&&(W.Body=W.body,delete W.body),G(F,W)})}function Ge(_,G){var F=_.Headers;!F["Cache-Control"]&&!F["cache-control"]&&(F["Cache-Control"]=""),!F["Content-Type"]&&!F["content-type"]&&(F["Content-Type"]=_.Body&&_.Body.type||""),_e.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:_.Bucket,Region:_.Region,action:"append",Key:_.Key,body:_.Body,qs:{position:_.Position},headers:_.Headers,tracker:_.tracker},function(W,oe){if(W)return G(W);G(null,oe)})}function ze(_){var G=this;return c.getAuth({SecretId:_.SecretId||this.options.SecretId||"",SecretKey:_.SecretKey||this.options.SecretKey||"",Bucket:_.Bucket,Region:_.Region,Method:_.Method,Key:_.Key,Query:_.Query,Headers:_.Headers,Expires:_.Expires,UseRawKey:G.options.UseRawKey,SystemClockOffset:G.options.SystemClockOffset})}function Le(_,G){var F=this,W=_.UseAccelerate===void 0?F.options.UseAccelerate:_.UseAccelerate,oe=Ke({ForcePathStyle:F.options.ForcePathStyle,protocol:_.Protocol||F.options.Protocol,domain:_.Domain||F.options.Domain,bucket:_.Bucket,region:W?"accelerate":_.Region,object:_.Key}),te="";_.Query&&(te+=c.obj2str(_.Query)),_.QueryString&&(te+=(te?"&":"")+_.QueryString);var pe=oe;if(_.Sign!==void 0&&!_.Sign)return te&&(pe+="?"+te),G(null,{Url:pe}),pe;var le=Ve.call(this,{Bucket:_.Bucket,Region:_.Region,UseAccelerate:_.UseAccelerate,Url:oe}),Ce=ot.call(this,{Action:(_.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:_.Bucket||"",Region:_.Region||"",Method:_.Method||"get",Key:_.Key,Expires:_.Expires,Headers:_.Headers,Query:_.Query,SignHost:le,ForceSignHost:_.ForceSignHost===!1?!1:F.options.ForceSignHost},function(Me,Oe){if(G){if(Me){G(Me);return}var Ue=function($t){var At=$t.match(/q-url-param-list.*?(?=&)/g)[0],_t="q-url-param-list="+encodeURIComponent(At.replace(/q-url-param-list=/,"")).toLowerCase(),Lt=new RegExp(At,"g"),Xt=$t.replace(Lt,_t);return Xt},Ae=oe;Ae+="?"+(Oe.Authorization.indexOf("q-signature")>-1?Ue(Oe.Authorization):"sign="+encodeURIComponent(Oe.Authorization)),Oe.SecurityToken&&(Ae+="&x-cos-security-token="+Oe.SecurityToken),Oe.ClientIP&&(Ae+="&clientIP="+Oe.ClientIP),Oe.ClientUA&&(Ae+="&clientUA="+Oe.ClientUA),Oe.Token&&(Ae+="&token="+Oe.Token),te&&(Ae+="&"+te),setTimeout(function(){G(null,{Url:Ae})})}});return Ce?(pe+="?"+Ce.Authorization+(Ce.SecurityToken?"&x-cos-security-token="+Ce.SecurityToken:""),te&&(pe+="&"+te)):te&&(pe+="?"+te),pe}function Je(_){var G={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},F={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},W=_&&_.AccessControlList||{},oe=W.Grant;oe&&(oe=c.isArray(oe)?oe:[oe]);var te={READ:0,WRITE:0,FULL_CONTROL:0};return oe&&oe.length&&c.each(oe,function(pe){var le=pe.Grantee.URI&&pe.Grantee.URI.endsWith("/groups/global/AllUsers");pe.Grantee.ID==="qcs::cam::anyone:anyone"||le?te[pe.Permission]=1:pe.Grantee.ID!==_.Owner.ID&&G[F[pe.Permission]].push('id="'+pe.Grantee.ID+'"')}),te.FULL_CONTROL||te.WRITE&&te.READ?G.ACL="public-read-write":te.READ?G.ACL="public-read":G.ACL="private",c.each(F,function(pe){G[pe]=Ct(G[pe].join(","))}),G}function Ct(_){var G=_.split(","),F={},W,oe;for(W=0;W<G.length;)oe=G[W].trim(),F[oe]?G.splice(W,1):(F[oe]=!0,G[W]=oe,W++);return G.join(",")}function Ke(_){var G=_.region||"",F=_.bucket||"",W=F.substr(0,F.lastIndexOf("-")),oe=F.substr(F.lastIndexOf("-")+1),te=_.domain,pe=_.object;typeof te=="function"&&(te=te({Bucket:F,Region:G})),["http","https"].includes(_.protocol)&&(_.protocol=_.protocol+":");var le=_.protocol||(c.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:");te||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(G)>-1?te="{Region}.myqcloud.com":te="cos.{Region}.myqcloud.com",_.ForcePathStyle||(te="{Bucket}."+te)),te=te.replace(/\{\{AppId\}\}/gi,oe).replace(/\{\{Bucket\}\}/gi,W).replace(/\{\{Region\}\}/gi,G).replace(/\{\{.*?\}\}/gi,""),te=te.replace(/\{AppId\}/gi,oe).replace(/\{BucketName\}/gi,W).replace(/\{Bucket\}/gi,F).replace(/\{Region\}/gi,G).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(te)||(te=le+"//"+te),te.slice(-1)==="/"&&(te=te.slice(0,-1));var Ce=te;return _.ForcePathStyle&&(Ce+="/"+F),Ce+="/",pe&&(Ce+=c.camSafeUrlEncode(pe).replace(/%2F/g,"/")),_.isLocation&&(Ce=Ce.replace(/^https?:\/\//,"")),Ce}var Ve=function(G){var F=G.Url||G.Bucket&&G.Region;if(!F)return"";var W=G.UseAccelerate===void 0?this.options.UseAccelerate:G.UseAccelerate,oe=G.Url||Ke({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:G.Bucket,region:W?"accelerate":G.Region}),te=oe.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return te};function ot(_,G){var F=c.clone(_.Headers),W="";c.each(F,function(It,xt){(It===""||["content-type","cache-control","expires"].indexOf(xt.toLowerCase())>-1)&&delete F[xt],xt.toLowerCase()==="host"&&(W=It)});var oe=_.ForceSignHost!==!1;!W&&_.SignHost&&oe&&(F.Host=_.SignHost);var te=!1,pe=function(xt,Rt){te||(te=!0,Rt&&Rt.XCosSecurityToken&&!Rt.SecurityToken&&(Rt=c.clone(Rt),Rt.SecurityToken=Rt.XCosSecurityToken,delete Rt.XCosSecurityToken),G&&G(xt,Rt))},le=this,Ce=_.Bucket||"",Me=_.Region||"",Oe=_.Key||"";le.options.ForcePathStyle&&Ce&&(Oe=Ce+"/"+Oe);var Ue="/"+Oe,Ae={},ht=_.Scope;if(!ht){var $t=_.Action||"",At=_.ResourceKey||_.Key||"";ht=_.Scope||[{action:$t,bucket:Ce,region:Me,prefix:At}]}var _t=c.md5(JSON.stringify(ht));le._StsCache=le._StsCache||[],function(){var It,xt;for(It=le._StsCache.length-1;It>=0;It--){xt=le._StsCache[It];var Rt=Math.round(c.getSkewTime(le.options.SystemClockOffset)/1e3)+30;if(xt.StartTime&&Rt<xt.StartTime||Rt>=xt.ExpiredTime){le._StsCache.splice(It,1);continue}if(!xt.ScopeLimit||xt.ScopeLimit&&xt.ScopeKey===_t){Ae=xt;break}}}();var Lt=function(){var xt="";Ae.StartTime&&_.Expires?xt=Ae.StartTime+";"+(Ae.StartTime+_.Expires*1):Ae.StartTime&&Ae.ExpiredTime&&(xt=Ae.StartTime+";"+Ae.ExpiredTime);var Rt=c.getAuth({SecretId:Ae.TmpSecretId,SecretKey:Ae.TmpSecretKey,Method:_.Method,Pathname:Ue,Query:_.Query,Headers:F,Expires:_.Expires,UseRawKey:le.options.UseRawKey,SystemClockOffset:le.options.SystemClockOffset,KeyTime:xt,ForceSignHost:oe}),St={Authorization:Rt,SecurityToken:Ae.SecurityToken||Ae.XCosSecurityToken||"",Token:Ae.Token||"",ClientIP:Ae.ClientIP||"",ClientUA:Ae.ClientUA||"",SignFrom:"client"};pe(null,St)},Xt=function(xt){if(xt.Authorization){var Rt=!1,St=xt.Authorization;if(St)if(St.indexOf(" ")>-1)Rt=!1;else if(St.indexOf("q-sign-algorithm=")>-1&&St.indexOf("q-ak=")>-1&&St.indexOf("q-sign-time=")>-1&&St.indexOf("q-key-time=")>-1&&St.indexOf("q-url-param-list=")>-1)Rt=!0;else try{St=atob(St),St.indexOf("a=")>-1&&St.indexOf("k=")>-1&&St.indexOf("t=")>-1&&St.indexOf("r=")>-1&&St.indexOf("b=")>-1&&(Rt=!0)}catch{}if(!Rt)return c.error(new Error("getAuthorization callback params format error"))}else{if(!xt.TmpSecretId)return c.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!xt.TmpSecretKey)return c.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!xt.SecurityToken&&!xt.XCosSecurityToken)return c.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!xt.ExpiredTime)return c.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(xt.ExpiredTime&&xt.ExpiredTime.toString().length!==10)return c.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(xt.StartTime&&xt.StartTime.toString().length!==10)return c.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Ae.ExpiredTime&&Ae.ExpiredTime-c.getSkewTime(le.options.SystemClockOffset)/1e3>60)Lt();else if(le.options.getAuthorization)le.options.getAuthorization.call(le,{Bucket:Ce,Region:Me,Method:_.Method,Key:Oe,Pathname:Ue,Query:_.Query,Headers:F,Scope:ht,SystemClockOffset:le.options.SystemClockOffset,ForceSignHost:oe},function(It){typeof It=="string"&&(It={Authorization:It});var xt=Xt(It);if(xt)return pe(xt);It.Authorization?pe(null,It):(Ae=It||{},Ae.Scope=ht,Ae.ScopeKey=_t,le._StsCache.push(Ae),Lt())});else if(le.options.getSTS)le.options.getSTS.call(le,{Bucket:Ce,Region:Me},function(It){Ae=It||{},Ae.Scope=ht,Ae.ScopeKey=_t,Ae.TmpSecretId||(Ae.TmpSecretId=Ae.SecretId),Ae.TmpSecretKey||(Ae.TmpSecretKey=Ae.SecretKey);var xt=Xt(Ae);if(xt)return pe(xt);le._StsCache.push(Ae),Lt()});else return function(){var It="";if(le.options.StartTime&&_.Expires){if(le.options.StartTime.toString().length!==10)return pe(c.error(new Error('params "StartTime" should be 10 digits')));It=le.options.StartTime+";"+(le.options.StartTime+_.Expires*1)}else if(le.options.StartTime&&le.options.ExpiredTime){if(le.options.StartTime.toString().length!==10)return pe(c.error(new Error('params "StartTime" should be 10 digits')));if(le.options.ExpiredTime.toString().length!==10)return pe(c.error(new Error('params "ExpiredTime" should be 10 digits')));It=le.options.StartTime+";"+le.options.ExpiredTime*1}var xt=c.getAuth({SecretId:_.SecretId||le.options.SecretId,SecretKey:_.SecretKey||le.options.SecretKey,Method:_.Method,Pathname:Ue,Query:_.Query,Headers:F,Expires:_.Expires,KeyTime:It,UseRawKey:le.options.UseRawKey,SystemClockOffset:le.options.SystemClockOffset,ForceSignHost:oe}),Rt={Authorization:xt,SecurityToken:le.options.SecurityToken||le.options.XCosSecurityToken,SignFrom:"client"};return pe(null,Rt),Rt}();return""}function ut(_){var G=this,F=!1,W=!1,oe=!1,te=_.headers&&(_.headers.date||_.headers.Date)||_.error&&_.error.ServerTime;try{var pe=_.error.Code,le=_.error.Message;(pe==="RequestTimeTooSkewed"||pe==="AccessDenied"&&le==="Request has expired")&&(W=!0)}catch{}if(_)if(W&&te){var Ce=Date.parse(te);this.options.CorrectClockSkew&&Math.abs(c.getSkewTime(this.options.SystemClockOffset)-Ce)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=Ce-Date.now(),F=!0)}else Math.floor(_.statusCode/100)===5?(F=!0,oe=!1):(_.message==="timeout"||_.message==="CORS blocked or network error")&&(F=!0,oe=G.options.AutoSwitchHost);return{canRetry:F,networkError:oe}}function st(_){var G=_.requestUrl,F=_.clientCalcSign,W=_.networkError;if(!this.options.AutoSwitchHost||!G||!F||!W)return!1;var oe=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,te=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,pe=oe.test(G)&&!te.test(G);return pe}function _e(_,G){var F=this;!_.headers&&(_.headers={}),!_.qs&&(_.qs={}),_.VersionId&&(_.qs.versionId=_.VersionId),_.qs=c.clearKey(_.qs),_.headers&&(_.headers=c.clearKey(_.headers)),_.qs&&(_.qs=c.clearKey(_.qs));var W=c.clone(_.qs);_.action&&(W[_.action]="");var oe=_.url||_.Url,te=_.SignHost||Ve.call(this,{Bucket:_.Bucket,Region:_.Region,Url:oe}),pe=_.tracker,le=function(Me){var Oe=F.options.SystemClockOffset;pe&&pe.setParams({signStartTime:new Date().getTime(),httpRetryTimes:Me-1}),_.SwitchHost&&(te=te.replace(/myqcloud.com/,"tencentcos.cn"));var Ue=l(l({},_),{},{Query:W,SignHost:te,ForceSignHost:F.options.ForceSignHost});delete Ue.tracker,F.logger.debug({cate:"PROCESS",tag:"base",msg:"开始计算签名, opt=".concat(JSON.stringify(Ue))}),ot.call(F,{Bucket:_.Bucket||"",Region:_.Region||"",Method:_.method,Key:_.Key,Query:W,Headers:_.headers,SignHost:te,Action:_.Action,ResourceKey:_.ResourceKey,Scope:_.Scope,ForceSignHost:F.options.ForceSignHost,SwitchHost:_.SwitchHost},function(Ae,ht){if(Ae){F.logger.error({cate:"PROCESS",tag:"base",msg:"签名获取失败, err=".concat(JSON.stringify(Ae.message))}),G(Ae);return}pe&&pe.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),_.AuthData=ht,F.logger.debug({cate:"PROCESS",tag:"base",msg:"签名获取成功"}),F.logger.info({cate:"PROCESS",tag:"base",msg:"准备发起请求"}),zt.call(F,_,function($t,At){pe&&pe.setParams({httpEndTime:new Date().getTime()});var _t=!1,Lt=!1;if($t){var Xt=ut.call(F,$t);_t=Xt.canRetry||Oe!==F.options.SystemClockOffset,Lt=Xt.networkError,F.logger.error({cate:"PROCESS",tag:"network",msg:"请求失败, err=".concat(JSON.stringify($t),", canRetry=").concat(_t,", networkError=").concat(Lt,", tryTimes=").concat(Me)})}if($t&&Me<4&&_t){_.headers&&(delete _.headers.Authorization,delete _.headers.token,delete _.headers.clientIP,delete _.headers.clientUA,_.headers["x-cos-security-token"]&&delete _.headers["x-cos-security-token"],_.headers["x-ci-security-token"]&&delete _.headers["x-ci-security-token"]);var It=st.call(F,{requestUrl:($t==null?void 0:$t.url)||"",clientCalcSign:ht.SignFrom==="client",networkError:Lt});_.SwitchHost=It,_.headers["x-cos-sdk-retry"]=!0,F.logger.info({cate:"PROCESS",tag:"base",msg:"重试请求, 重试第".concat(Me,"次")}),le(Me+1)}else F.logger.info({cate:"PROCESS",tag:"base",msg:"请求完成"}),G($t,At)})})};le(1)}function zt(_,G){var F=this,W=_.TaskId;if(!(W&&!F._isRunningTask(W))){var oe=_.Bucket,te=_.Region,pe=_.Key,le=_.method||"GET",Ce=_.Url||_.url,Me=_.body,Oe=_.rawBody;F.options.UseAccelerate&&(te="accelerate"),Ce=Ce||Ke({ForcePathStyle:F.options.ForcePathStyle,protocol:F.options.Protocol,domain:F.options.Domain,bucket:oe,region:te,object:pe}),_.SwitchHost&&(Ce=Ce.replace(/myqcloud.com/,"tencentcos.cn"));var Ue=pe?Ce:"";_.action&&(Ce=Ce+"?"+(c.isIOS_QQ?"".concat(_.action,"="):_.action)),_.qsStr&&(Ce.indexOf("?")>-1?Ce=Ce+"&"+_.qsStr:Ce=Ce+"?"+_.qsStr);var Ae={method:le,url:Ce,headers:_.headers,qs:_.qs,body:Me},ht="x-cos-security-token";if(c.isCIHost(Ce)&&(ht="x-ci-security-token"),Ae.headers.Authorization=_.AuthData.Authorization,_.AuthData.Token&&(Ae.headers.token=_.AuthData.Token),_.AuthData.ClientIP&&(Ae.headers.clientIP=_.AuthData.ClientIP),_.AuthData.ClientUA&&(Ae.headers.clientUA=_.AuthData.ClientUA),_.AuthData.SecurityToken&&(Ae.headers[ht]=_.AuthData.SecurityToken),_.Action&&(Ae.action=_.Action),Ae.key=_.Key||_.ResourceKey,Ae.headers&&(Ae.headers=c.clearKey(Ae.headers)),Ae=c.clearKey(Ae),_.onProgress&&typeof _.onProgress=="function"){var $t=Me&&(Me.size||Me.length)||0;Ae.onProgress=function(St){if(!(W&&!F._isRunningTask(W))){var wn=St?St.loaded:0;_.onProgress({loaded:wn,total:$t})}}}_.onDownloadProgress&&(Ae.onDownloadProgress=_.onDownloadProgress),_.DataType&&(Ae.dataType=_.DataType),this.options.Timeout&&(Ae.timeout=this.options.Timeout),F.options.ForcePathStyle&&(Ae.pathStyle=F.options.ForcePathStyle);var At=c.uuid();F.logger.info({cate:"PROCESS",tag:"network",msg:"[Request] ".concat(At,", requestOpt=").concat(JSON.stringify(Ae))}),F.emit("before-send",Ae);var _t=Ae.url.includes("accelerate."),Lt=Ae.qs?Object.keys(Ae.qs).map(function(St){return"".concat(St,"=").concat(Ae.qs[St])}).join("&"):"",Xt=Lt?Ae.url+"?"+Lt:Ae.url;if(_.tracker){var It;_.tracker.setParams({url:Xt,httpMethod:Ae.method,accelerate:_t,httpSize:((It=Ae.body)===null||It===void 0?void 0:It.size)||0}),_.tracker.parent&&!_.tracker.parent.params.url&&_.tracker.parent.setParams({url:Ue,accelerate:_t})}var xt=(F.options.Request||d)(Ae,function(St){if(!(St&&St.error==="abort")){var wn={options:Ae,error:St&&St.error,statusCode:St&&St.statusCode||0,statusMessage:St&&St.statusMessage||"",headers:St&&St.headers||{},body:St&&St.body};F.emit("after-receive",wn);var yr=wn.error,Nn=wn.body,Bn={statusCode:wn.statusCode,statusMessage:wn.statusMessage,headers:wn.headers},Wt=yr?"[error]":"[success]";F.logger.info({cate:"PROCESS",tag:"network",msg:"[Response] ".concat(At,", ").concat(Wt,", response=").concat(JSON.stringify(Bn))});var lt,tt=function(cn,Vt){if(W&&F.off("inner-kill-task",Rt),!lt){lt=!0;var vn={};if(Bn&&Bn.statusCode&&(vn.statusCode=Bn.statusCode),Bn&&Bn.headers&&(vn.headers=Bn.headers),cn)Ae.url&&(vn.url=Ae.url),Ae.method&&(vn.method=Ae.method),cn=c.extend(cn||{},vn),G(cn,null);else{if(_.Action==="name/cos:PutObject"){var jn={};for(var cr in _.headers){var Gn=cr.toLowerCase();jn[Gn]=_.headers[cr]}jn["x-cos-callback"]?Vt.Error?(Vt.CallbackError=c.clone(Vt.Error),delete Vt.Error):Vt.CallbackBody=c.clone(Vt):jn["x-cos-return-body"]&&(Vt.Error?(Vt.ReturnError=c.clone(Vt.Error),delete Vt.Error):Vt.ReturnBody=c.clone(Vt))}Vt=c.extend(Vt||{},vn),G(null,Vt)}xt=null}};if(yr)return tt(c.error(yr));var Nt=Bn.statusCode,Ht=Math.floor(Nt/100)===2;if(Oe){if(Ht)return tt(null,{body:Nn});if(Nn instanceof Blob){c.readAsBinaryString(Nn,function(zn){var cn=c.parseResBody(zn),Vt=cn.Error||cn;return tt(c.error(new Error(Vt.Message||"response body error"),{code:Vt.Code,error:Vt}))});return}}var qt=c.parseResBody(Nn),Jt=qt.Error||qt;Ht?tt(null,qt):Jt?tt(c.error(new Error(Jt.Message),{code:Jt.Code,error:Jt})):Nt?tt(c.error(new Error(Bn.statusMessage),{code:""+Nt})):Nt&&tt(c.error(new Error("statusCode error")))}}),Rt=function(wn){wn.TaskId===W&&(xt&&xt.abort&&xt.abort(),F.off("inner-kill-task",Rt))};W&&F.on("inner-kill-task",Rt)}}var kt={getService:f,putBucket:p,headBucket:m,getBucket:h,deleteBucket:g,putBucketAcl:b,getBucketAcl:y,putBucketCors:v,getBucketCors:C,deleteBucketCors:O,getBucketLocation:$,getBucketPolicy:w,putBucketPolicy:x,deleteBucketPolicy:T,putBucketTagging:R,getBucketTagging:S,deleteBucketTagging:E,putBucketLifecycle:P,getBucketLifecycle:I,deleteBucketLifecycle:k,putBucketVersioning:N,getBucketVersioning:M,putBucketReplication:j,getBucketReplication:A,deleteBucketReplication:D,putBucketWebsite:L,getBucketWebsite:z,deleteBucketWebsite:q,putBucketReferer:U,getBucketReferer:H,putBucketDomain:K,getBucketDomain:X,deleteBucketDomain:Z,putBucketOrigin:se,getBucketOrigin:ie,deleteBucketOrigin:me,putBucketLogging:ue,getBucketLogging:re,putBucketInventory:fe,postBucketInventory:de,getBucketInventory:ve,listBucketInventory:ye,deleteBucketInventory:Se,putBucketAccelerate:Pe,getBucketAccelerate:Ie,putBucketEncryption:$e,getBucketEncryption:Fe,deleteBucketEncryption:Ee,getObject:je,headObject:ke,listObjectVersions:Be,putObject:We,deleteObject:Ye,getObjectAcl:Xe,putObjectAcl:it,optionsObject:et,putObjectCopy:ct,deleteMultipleObject:he,restoreObject:Q,putObjectTagging:ee,getObjectTagging:ne,deleteObjectTagging:xe,selectObjectContent:Re,appendObject:Ge,uploadPartCopy:He,multipartInit:De,multipartUpload:Qe,multipartComplete:rt,multipartList:dt,multipartListPart:pt,multipartAbort:vt,request:at,getObjectUrl:Le,getAuth:ze};function Ft(_,G,F){c.each(["Cors","Acl"],function(W){if(_.slice(-W.length)===W){var oe=_.slice(0,-W.length)+W.toUpperCase(),te=c.apiWrapper(_,G),pe=!1;F[oe]=function(){!pe&&console.warn("warning: cos."+oe+" has been deprecated. Please Use cos."+_+" instead."),pe=!0,te.apply(this,arguments)}}})}n.exports.init=function(_,G){G.transferToTaskMethod(kt,"putObject"),c.each(kt,function(F,W){_.prototype[W]=c.apiWrapper(W,F),Ft(W,F,_.prototype)})}},"./src/cos.js":function(n,r,o){var i=o("./src/util.js"),a=o("./src/event.js"),s=o("./src/task.js"),l=o("./src/base.js"),d=o("./src/advance.js"),c=o("./src/logger.js"),f=o("./package.json"),p={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null,EnableLog:!1,EnableLogcat:!1,LogLevel:"VERBOSE",ClsLogger:null,LogExtras:{}},m=function(g){var b,y,v=this;if(this.options=i.extend(i.clone(p),g||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),i.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");a.init(this),s.init(this),this.logger=new c({enableLog:this.options.EnableLog,enableLogcat:this.options.EnableLogcat,level:(b=this.options.LogLevel)!==null&&b!==void 0?b:"VERBOSE",clsLogger:this.options.ClsLogger,logExtras:(y=this.options.LogExtras)!==null&&y!==void 0?y:{}}),this.options.EnableLog&&(a.init(this.logger),this.logger.on("log-message",function(C){v.emit("log-message",C)}))};l.init(m,s),d.init(m,s),m.util={md5:i.md5,xml2json:i.xml2json,json2xml:i.json2xml,encodeBase64:i.encodeBase64},m.getAuthorization=i.getAuth,m.version=f.version,n.exports=m},"./src/event.js":function(n,r){var o=function(s){var l={},d=function(f){return!l[f]&&(l[f]=[]),l[f]};s.on=function(c,f){c==="task-list-update"&&console.warn('warning: Event "'+c+'" has been deprecated. Please use "list-update" instead.'),d(c).push(f)},s.off=function(c,f){for(var p=d(c),m=p.length-1;m>=0;m--)f===p[m]&&p.splice(m,1)},s.emit=function(c,f){for(var p=d(c).map(function(h){return h}),m=0;m<p.length;m++)p[m](f)}},i=function(){o(this)};n.exports.init=o,n.exports.EventProxy=i},"./src/logger.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=o("./node_modules/@babel/runtime/helpers/createClass.js"),s=o("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=o("./package.json"),d=l.version,c=["VERBOSE","DEBUG","INFO","WARN","ERROR"],f=function(){function p(m){var h;i(this,p),s(this,"level","VERBOSE"),s(this,"clsLogger",null),s(this,"logExtras",{}),this.enableLog=(h=m.enableLog)!==null&&h!==void 0?h:!1,this.level=m.level||"VERBOSE",c.includes(this.level)||(this.level="VERBOSE"),this.enableLogcat=m.enableLogcat,this.clsLogger=m.clsLogger,this.logExtras=m.logExtras}return a(p,[{key:"info",value:function(){if(["VERBOSE","INFO"].includes(this.level)){for(var h=arguments.length,g=new Array(h),b=0;b<h;b++)g[b]=arguments[b];this.log.apply(this,["info"].concat(g))}}},{key:"debug",value:function(){if(["VERBOSE","DEBUG"].includes(this.level)){for(var h=arguments.length,g=new Array(h),b=0;b<h;b++)g[b]=arguments[b];this.log.apply(this,["debug"].concat(g))}}},{key:"warn",value:function(){if(["VERBOSE","WARN"].includes(this.level)){for(var h=arguments.length,g=new Array(h),b=0;b<h;b++)g[b]=arguments[b];this.log.apply(this,["warn"].concat(g))}}},{key:"error",value:function(){if(["VERBOSE","ERROR"].includes(this.level)){for(var h=arguments.length,g=new Array(h),b=0;b<h;b++)g[b]=arguments[b];this.log.apply(this,["error"].concat(g))}}},{key:"log",value:function(){if(this.enableLog){var h=arguments.length<=0?void 0:arguments[0],g=arguments.length<=1?void 0:arguments[1],b=g.cate,y=b===void 0?"base":b,v=g.tag,C=v===void 0?"base":v,O=g.msg,$={version:"cos-js-sdk-v5-".concat(d),timestamp:new Date().toISOString(),cate:"[".concat(y.toUpperCase(),"]"),tag:"[".concat(C.toUpperCase(),"]"),msg:O,extras:this.logExtras};this.enableLogcat&&console[h]("[".concat($.version,"] ").concat($.timestamp," ").concat($.cate," ").concat($.tag," ").concat($.msg," ").concat($.extras?JSON.stringify($.extras):"")),this.clsLogger&&this.clsLogger.log($,!1),this.emit("log-message",$)}}}])}();n.exports=f},"./src/session.js":function(n,r,o){var i=o("./src/util.js"),a="cos_sdk_upload_cache",s=30*24*3600,l,d,c=function(){try{var b=JSON.parse(localStorage.getItem(a))}catch{}b||(b=[]),l=b},f=function(){try{l.length?localStorage.setItem(a,JSON.stringify(l)):localStorage.removeItem(a)}catch{}},p=function(){if(!l){c.call(this);for(var b=!1,y=Math.round(Date.now()/1e3),v=l.length-1;v>=0;v--){var C=l[v][2];(!C||C+s<y)&&(l.splice(v,1),b=!0)}b&&f()}},m=function(){d||(d=setTimeout(function(){f(),d=null},400))},h={using:{},setUsing:function(b){h.using[b]=!0},removeUsing:function(b){delete h.using[b]},getFileId:function(b,y,v,C){return b.name&&b.size&&b.lastModifiedDate&&y?i.md5([b.name,b.size,b.lastModifiedDate,y,v,C].join("::")):null},getCopyFileId:function(b,y,v,C,O){var $=y["content-length"],x=y.etag||"",w=y["last-modified"];return b&&v?i.md5([b,$,x,w,v,C,O].join("::")):null},getUploadIdList:function(b){if(!b)return null;p.call(this);for(var y=[],v=0;v<l.length;v++)l[v][0]===b&&y.push(l[v][1]);return y.length?y:null},saveUploadId:function(b,y,v){if(p.call(this),!!b){for(var C=l.length-1;C>=0;C--){var O=l[C];O[0]===b&&O[1]===y&&l.splice(C,1)}l.unshift([b,y,Math.round(Date.now()/1e3)]),l.length>v&&l.splice(v),m()}},removeUploadId:function(b){p.call(this),delete h.using[b];for(var y=l.length-1;y>=0;y--)l[y][1]===b&&l.splice(y,1);m()}};n.exports=h},"./src/task.js":function(n,r,o){var i=o("./src/session.js"),a=o("./src/util.js"),s={},l=function(f,p){s[p]=f[p],f[p]=function(m,h){m.SkipTask?s[p].call(this,m,h):this._addTask(p,m,h)}},d=function(f){var p=[],m={},h=0,g=0,b=function(w){var T={id:w.id,Bucket:w.Bucket,Region:w.Region,Key:w.Key,FilePath:w.FilePath,state:w.state,loaded:w.loaded,size:w.size,speed:w.speed,percent:w.percent,hashPercent:w.hashPercent,error:w.error};return w.FilePath&&(T.FilePath=w.FilePath),w._custom&&(T._custom=w._custom),T},y=function(){var x,w=function(){x=0,f.emit("task-list-update",{list:a.map(p,b)}),f.emit("list-update",{list:a.map(p,b)})};return function(){x||(x=setTimeout(w))}}(),v=function(){if(!(p.length<=f.options.UploadQueueSize)){for(var w=0;w<g&&w<p.length&&p.length>f.options.UploadQueueSize;){var T=p[w].state==="waiting"||p[w].state==="checking"||p[w].state==="uploading";!p[w]||!T?(m[p[w].id]&&delete m[p[w].id],p.splice(w,1),g--):w++}y()}},C=function(){if(!(h>=f.options.FileParallelLimit)){for(;p[g]&&p[g].state!=="waiting";)g++;if(!(g>=p.length)){var w=p[g];g++,h++,w.state="checking",w.params.onTaskStart&&w.params.onTaskStart(b(w)),!w.params.UploadData&&(w.params.UploadData={});var T=a.formatParams(w.api,w.params);s[w.api].call(f,T,function(R,S){f._isRunningTask(w.id)&&((w.state==="checking"||w.state==="uploading")&&(w.state=R?"error":"success",R&&(w.error=R),h--,y(),C(),w.callback&&w.callback(R,S),w.state==="success"&&(w.params&&(delete w.params.UploadData,delete w.params.Body,delete w.params),delete w.callback)),v())}),y(),setTimeout(C)}}},O=function(w,T){var R=m[w];if(R){var S=R&&R.state==="waiting",E=R&&(R.state==="checking"||R.state==="uploading");if(T==="canceled"&&R.state!=="canceled"||T==="paused"&&S||T==="paused"&&E){R.state=T,f.emit("inner-kill-task",{TaskId:w,toState:T});try{var P=R&&R.params&&R.params.UploadData.UploadId}catch{}T==="canceled"&&P&&i.removeUsing(P),y(),E&&(h--,C()),T==="canceled"&&(R.params&&(delete R.params.UploadData,delete R.params.Body,delete R.params),delete R.callback)}v()}};f._addTasks=function(x){a.each(x,function(w){f._addTask(w.api,w.params,w.callback,!0)}),y()};var $=!0;f._addTask=function(x,w,T,R){w=a.formatParams(x,w);var S=a.uuid();w.TaskId=S,w.onTaskReady&&w.onTaskReady(S),w.TaskReady&&(w.TaskReady(S),$&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),$=!1);var E={params:w,callback:T,api:x,index:p.length,id:S,Bucket:w.Bucket,Region:w.Region,Key:w.Key,FilePath:w.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:w._custom},P=w.onHashProgress;w.onHashProgress=function(k){f._isRunningTask(E.id)&&(E.hashPercent=k.percent,P&&P(k),y())};var I=w.onProgress;return w.onProgress=function(k){f._isRunningTask(E.id)&&(E.state==="checking"&&(E.state="uploading"),E.loaded=k.loaded,E.speed=k.speed,E.percent=k.percent,I&&I(k),y())},a.getFileSize(x,w,function(k,N){if(k)return T(a.error(k));m[S]=E,p.push(E),E.size=N,!R&&y(),C(),v()}),S},f._isRunningTask=function(x){var w=m[x];return!!(w&&(w.state==="checking"||w.state==="uploading"))},f.getTaskList=function(){return a.map(p,b)},f.cancelTask=function(x){O(x,"canceled")},f.pauseTask=function(x){O(x,"paused")},f.restartTask=function(x){var w=m[x];w&&(w.state==="paused"||w.state==="error")&&(w.state="waiting",y(),g=Math.min(g,w.index),C())},f.isUploadRunning=function(){return h||g<p.length}};n.exports.transferToTaskMethod=l,n.exports.init=d},"./src/tracker.js":function(n,r,o){var i=o("./node_modules/@babel/runtime/helpers/classCallCheck.js"),a=o("./node_modules/@babel/runtime/helpers/createClass.js"),s=o("./node_modules/@babel/runtime/helpers/typeof.js"),l=o("./package.json"),d=null,c=function(T,R){if(!d){if(typeof T!="function")throw new Error("Beacon not found");d=new T({appkey:"0WEB05PY6MHRGK0U",versionCode:l.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:R,sessionDuration:60*1e3})}return d},f=function(T){return!T||T<0?0:(T/1e3).toFixed(3)},p={getUid:function(){var T=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return T()+T()+"-"+T()+"-"+T()+"-"+T()+"-"+T()+T()+T()},getNetType:function(){if((typeof navigator>"u"?"undefined":s(navigator))==="object"){var T=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(T==null?void 0:T.type)||(T==null?void 0:T.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":s(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown os";var T=navigator.userAgent.toLowerCase(),R=/macintosh|mac os x/i.test(navigator.userAgent);return T.indexOf("win32")>=0||T.indexOf("wow32")>=0?"win32":T.indexOf("win64")>=0||T.indexOf("wow64")>=0?"win64":R?"mac":"unknown os"},isMobile:function(){var T=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(T))},isAndroid:function(){var T=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(T))},isIOS:function(){var T=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(T))},isOtherMobile:function(){return m&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown device";var T=navigator.userAgent;return T}},m=p.isMobile(),h=p.isAndroid()?"android":p.isIOS?"ios":"other_mobile",g=p.getOsType(),b=m?h:g,y=p.getUA(),v=p.getProtocol(),C=function(T){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(T)?"UploadTask":T==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(T)?"CopyTask":T};function O(w){return w.replace(/([A-Z])/g,"_$1").toLowerCase()}function $(w){var T={},R=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],S=[].concat(R,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),E=w.requestResult==="Success"?R:S;for(var P in w)if(E.includes(P)){var I=O(P);T[I]=w[P]}return T.request_name=w.realApi?C(w.realApi):w.requestName,T}var x=function(){function w(T){i(this,w);var R=T.parent,S=T.traceId,E=T.bucket,P=T.region,I=T.apiName,k=T.realApi,N=T.httpMethod,M=T.fileKey,j=T.fileSize,A=T.accelerate,D=T.customId,L=T.delay,z=T.deepTracker,q=T.Beacon,U=T.clsReporter,H=E&&E.substr(E.lastIndexOf("-")+1)||"";this.parent=R,this.deepTracker=z,this.delay=L,U&&!this.clsReporter&&(this.clsReporter=U),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:l.version,osName:b,networkType:"",requestName:I||"",requestResult:"",realApi:k,bucket:E,region:P,accelerate:A,httpMethod:N,url:"",host:"",httpDomain:"",requestPath:M||"",userAgent:y,networkProtocol:v,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:j||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:S||p.getUid(),appid:H,partNumber:0,httpRetryTimes:0,customId:D||"",partTime:0},q&&(this.beacon=c(q,L))}return a(w,[{key:"formatResult",value:function(R,S){var E,P,I,k,N,M,j=new Date().getTime(),A=p.getNetType(),D=R?(R==null?void 0:R.code)||(R==null||(E=R.error)===null||E===void 0?void 0:E.code)||(R==null||(P=R.error)===null||P===void 0?void 0:P.Code):"",L=R?(R==null?void 0:R.message)||(R==null||(I=R.error)===null||I===void 0?void 0:I.message)||(R==null||(k=R.error)===null||k===void 0?void 0:k.Message):"",z=L,q=R?(R==null?void 0:R.resource)||(R==null||(N=R.error)===null||N===void 0?void 0:N.resource)||(R==null||(M=R.error)===null||M===void 0?void 0:M.Resource):"",U=R?R==null?void 0:R.statusCode:S.statusCode,H=R?(R==null?void 0:R.headers)&&(R==null?void 0:R.headers["x-cos-request-id"]):(S==null?void 0:S.headers)&&(S==null?void 0:S.headers["x-cos-request-id"]),K=R?H?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=S?S.headers&&S.headers["content-length"]:0);var X=this.params.realApi==="sliceUploadFile",Z=this.params.realApi==="sliceCopyFile";if(X||Z){var se=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:se<0?0:se.toFixed(3)})}else{var ie=j-this.params.startTime,me=this.params.httpEndTime-this.params.httpStartTime,ue=this.params.httpSize/1024/(me/1e3),re=this.params.md5EndTime-this.params.md5StartTime,ce=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",f(me)),this.parent.addParamValue("httpFullTime",f(ie)),this.parent.addParamValue("httpMd5",f(re)),this.parent.addParamValue("httpSign",f(ce)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",f(me))),Object.assign(this.params,{httpFullTime:f(ie),httpMd5:f(re),httpSign:f(ce),httpTookTime:f(me),httpSpeed:ue<0?0:ue.toFixed(3)})}if(Object.assign(this.params,{networkType:A,requestResult:R?"Failure":"Success",errorType:K,errorCode:D,errorHttpCode:U,errorName:z,errorMessage:L,errorServiceName:q,errorRequestId:H}),R&&(!D||!L)&&(this.params.fullError=R?JSON.stringify(R):""),this.params.url){try{var fe=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=fe[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(R,S){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(R,S);var E=$(this.params);this.beacon&&this.sendEventsToBeacon(E),this.clsReporter&&this.sendEventsToCLS(E)}}},{key:"setParams",value:function(R){Object.assign(this.params,R)}},{key:"addParamValue",value:function(R,S){this.params[R]=(+this.params[R]+ +S).toFixed(3)}},{key:"sendEventsToBeacon",value:function(R){var S=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(S&&!this.deepTracker)){var E="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(E,R):this.beacon&&this.beacon.onUserAction(E,R)}}},{key:"sendEventsToCLS",value:function(R){var S=this.delay===0;this.clsReporter.log(R,S)}},{key:"generateSubTracker",value:function(R){return Object.assign(R,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new w(R)}}])}();n.exports=x},"./src/util.js":function(n,r,o){(function(i){var a=o("./node_modules/@babel/runtime/helpers/typeof.js");function s(he,Q){var ee=typeof Symbol<"u"&&he[Symbol.iterator]||he["@@iterator"];if(!ee){if(Array.isArray(he)||(ee=l(he))||Q){ee&&(he=ee);var ne=0,xe=function(){};return{s:xe,n:function(){return ne>=he.length?{done:!0}:{done:!1,value:he[ne++]}},e:function(dt){throw dt},f:xe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
545
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re,De=!0,Qe=!1;return{s:function(){ee=ee.call(he)},n:function(){var dt=ee.next();return De=dt.done,dt},e:function(dt){Qe=!0,Re=dt},f:function(){try{De||ee.return==null||ee.return()}finally{if(Qe)throw Re}}}}function l(he,Q){if(he){if(typeof he=="string")return d(he,Q);var ee={}.toString.call(he).slice(8,-1);return ee==="Object"&&he.constructor&&(ee=he.constructor.name),ee==="Map"||ee==="Set"?Array.from(he):ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee)?d(he,Q):void 0}}function d(he,Q){(Q==null||Q>he.length)&&(Q=he.length);for(var ee=0,ne=Array(Q);ee<Q;ee++)ne[ee]=he[ee];return ne}var c=o("./lib/md5.js"),f=o("./lib/crypto.js"),p=o("./node_modules/fast-xml-parser/src/fxp.js"),m=p.XMLParser,h=p.XMLBuilder,g=new m({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1,trimValues:!1}),b=new h,y=o("./lib/base64.js"),v=o("./src/tracker.js"),C="#text",O=function(Q){if(ie(Q))for(var ee in Q){var ne=Q[ee];typeof ne=="string"?ee===C&&delete Q[ee]:Array.isArray(ne)?ne.forEach(function(xe){O(xe)}):ie(ne)&&O(ne)}},$=function(Q){var ee=g.parse(Q);return O(ee),ee},x=function(Q){var ee=b.build(Q);return ee};function w(he){return encodeURIComponent(he).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function T(he,Q){var ee=[];for(var ne in he)he.hasOwnProperty(ne)&&ee.push(Q?w(ne).toLowerCase():ne);return ee.sort(function(xe,Re){return xe=xe.toLowerCase(),Re=Re.toLowerCase(),xe===Re?0:xe>Re?1:-1})}var R=function(Q,ee){var ne,xe,Re,De=[],Qe=T(Q);for(ne=0;ne<Qe.length;ne++)xe=Qe[ne],Re=Q[xe]===void 0||Q[xe]===null?"":""+Q[xe],xe=ee?w(xe).toLowerCase():w(xe),Re=w(Re)||"",De.push(xe+"="+Re);return De.join("&")},S=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],E=function(Q){var ee={};for(var ne in Q){var xe=ne.toLowerCase();(xe.indexOf("x-cos-")>-1||xe.indexOf("x-ci-")>-1||S.indexOf(xe)>-1)&&(ee[ne]=Q[ne])}return ee},P=function(Q){Q=Q||{};var ee=Q.SecretId,ne=Q.SecretKey,xe=Q.KeyTime,Re=(Q.method||Q.Method||"get").toLowerCase(),De=K(Q.Query||Q.params||{}),Qe=E(K(Q.Headers||Q.headers||{})),rt=Q.Key||"",dt;Q.UseRawKey?dt=Q.Pathname||Q.pathname||"/"+rt:(dt=Q.Pathname||Q.pathname||rt,dt.indexOf("/")!==0&&(dt="/"+dt));var pt=Q.ForceSignHost!==!1;if(!Qe.Host&&!Qe.host&&Q.Bucket&&Q.Region&&pt&&(Qe.Host=Q.Bucket+".cos."+Q.Region+".myqcloud.com"),!ee)throw new Error("missing param SecretId");if(!ne)throw new Error("missing param SecretKey");var vt=Math.round(Fe(Q.SystemClockOffset)/1e3)-1,at=vt,Ge=Q.Expires||Q.expires;Ge===void 0?at+=900:at+=Ge*1||0;var ze="sha1",Le=ee,Je=xe||vt+";"+at,Ct=xe||vt+";"+at,Ke=T(Qe,!0).join(";").toLowerCase(),Ve=T(De,!0).join(";").toLowerCase(),ot=f.HmacSHA1(Ct,ne).toString(),ut=[Re,dt,He.obj2str(De,!0),He.obj2str(Qe,!0),""].join(`
|
|
546
|
+
`),st=["sha1",Je,f.SHA1(ut).toString(),""].join(`
|
|
547
|
+
`),_e=f.HmacSHA1(st,ot).toString(),zt=["q-sign-algorithm="+ze,"q-ak="+Le,"q-sign-time="+Je,"q-key-time="+Ct,"q-header-list="+Ke,"q-url-param-list="+Ve,"q-signature="+_e].join("&");return zt},I=function(Q,ee,ne){var xe=ee/8,Re=Q.slice(ne,ne+xe);return new Uint8Array(Re).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[ee](Re)[0]},k=function(Q,ee,ne,xe){var Re=Q.slice(ee,ne),De="";return new Uint8Array(Re).forEach(function(Qe){De+=String.fromCharCode(Qe)}),xe&&(De=decodeURIComponent(escape(De))),De},N=function(Q){for(var ee={},ne=k(Q),xe={records:[]};Q.byteLength;){var Re=I(Q,32,0),De=I(Q,32,4),Qe=Re-De-16,rt=0,dt;for(Q=Q.slice(12);rt<De;){var pt=I(Q,8,rt),vt=k(Q,rt+1,rt+1+pt),at=I(Q,16,rt+pt+2),Ge=k(Q,rt+pt+4,rt+pt+4+at);ee[vt]=Ge,rt+=pt+4+at}if(ee[":event-type"]==="Records")dt=k(Q,rt,rt+Qe,!0),xe.records.push(dt);else if(ee[":event-type"]==="Stats")dt=k(Q,rt,rt+Qe,!0),xe.stats=He.xml2json(dt).Stats;else if(ee[":event-type"]==="error"){var ze=ee[":error-code"],Le=ee[":error-message"],Je=new Error(Le);Je.message=Le,Je.name=Je.code=ze,xe.error=Je}Q=Q.slice(rt+Qe+4)}return{payload:xe.records.join(""),body:ne}},M=function(Q){var ee=this.options.CopySourceParser;if(ee)return ee(Q);var ne=Q.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return ne?{Bucket:ne[1],Region:ne[3],Key:ne[7]}:null},j=function(){},A=function(Q){var ee={};for(var ne in Q)Q.hasOwnProperty(ne)&&Q[ne]!==void 0&&Q[ne]!==null&&(ee[ne]=Q[ne]);return ee},D=function(Q,ee){var ne,xe=new FileReader;FileReader.prototype.readAsBinaryString?(ne=FileReader.prototype.readAsBinaryString,xe.onload=function(){ee(this.result)}):FileReader.prototype.readAsArrayBuffer?ne=function(De){var Qe="",rt=new FileReader;rt.onload=function(dt){for(var pt=new Uint8Array(rt.result),vt=pt.byteLength,at=0;at<vt;at++)Qe+=String.fromCharCode(pt[at]);ee(Qe)},rt.readAsArrayBuffer(De)}:console.error("FileReader not support readAsBinaryString"),ne.call(xe,Q)},L=function(){var he=function(ne,xe){ne=ne.split("."),xe=xe.split(".");for(var Re=0;Re<xe.length;Re++)if(ne[Re]!==xe[Re])return parseInt(ne[Re])>parseInt(xe[Re])?1:-1;return 0},Q=function(ne){if(!ne)return!1;var xe=(ne.match(/Chrome\/([.\d]+)/)||[])[1],Re=(ne.match(/QBCore\/([.\d]+)/)||[])[1],De=(ne.match(/QQBrowser\/([.\d]+)/)||[])[1],Qe=xe&&he(xe,"53.0.2785.116")<0&&Re&&he(Re,"3.53.991.400")<0&&De&&he(De,"9.0.2524.400")<=0||!1;return Qe};return Q(typeof navigator<"u"&&navigator.userAgent)}(),z=function(Q,ee,ne,xe,Re){var De;if(Q.slice?De=Q.slice(ee,ne):Q.mozSlice?De=Q.mozSlice(ee,ne):Q.webkitSlice&&(De=Q.webkitSlice(ee,ne)),xe&&L){var Qe=new FileReader;Qe.onload=function(rt){De=null,Re(new Blob([Qe.result]))},Qe.readAsArrayBuffer(De)}else Re(De)},q=function(Q,ee,ne,xe){ne=ne||j,Q?typeof ee=="string"?ne(He.md5(ee,!0)):Blob&&ee instanceof Blob?He.getFileMd5(ee,function(Re,De){ne(De)},xe):ne():ne()},U=1024*1024,H=function(Q,ee,ne){var xe=Q.size,Re=0,De=c.getCtx(),Qe=function(dt){if(dt>=xe){var pt=De.digest("hex");ee(null,pt);return}var vt=Math.min(xe,dt+U);He.fileSlice(Q,dt,vt,!1,function(at){D(at,function(Ge){at=null,De=De.update(Ge,!0),Re+=Ge.length,Ge=null,ne&&ne({loaded:Re,total:xe,percent:Math.round(Re/xe*1e4)/1e4}),Qe(dt+U)})})};Qe(0)};function K(he){return ce(he,function(Q){return a(Q)==="object"&&Q!==null?K(Q):Q})}function X(he,Q,ee){return he&&Q in he?he[Q]:ee}function Z(he,Q){return re(Q,function(ee,ne){he[ne]=Q[ne]}),he}function se(he){return he instanceof Array}function ie(he){return Object.prototype.toString.call(he)==="[object Object]"}function me(he,Q){for(var ee=!1,ne=0;ne<he.length;ne++)if(Q===he[ne]){ee=!0;break}return ee}function ue(he){return se(he)?he:[he]}function re(he,Q){for(var ee in he)he.hasOwnProperty(ee)&&Q(he[ee],ee)}function ce(he,Q){var ee=se(he)?[]:{};for(var ne in he)he.hasOwnProperty(ne)&&(ee[ne]=Q(he[ne],ne));return ee}function fe(he,Q){var ee=se(he),ne=ee?[]:{};for(var xe in he)he.hasOwnProperty(xe)&&Q(he[xe],xe)&&(ee?ne.push(he[xe]):ne[xe]=he[xe]);return ne}var de=function(Q){var ee,ne,xe,Re="";for(ee=0,ne=Q.length/2;ee<ne;ee++)xe=parseInt(Q[ee*2]+Q[ee*2+1],16),Re+=String.fromCharCode(xe);return btoa(Re)},ve=function(){var Q=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return Q()+Q()+"-"+Q()+"-"+Q()+"-"+Q()+"-"+Q()+Q()+Q()},ye=function(Q,ee){var ne=ee.Bucket,xe=ee.Region,Re=ee.Key,De=this.options.Domain,Qe=!De||typeof De=="string"&&De.indexOf("{Bucket}")>-1,rt=!De||typeof De=="string"&&De.indexOf("{Region}")>-1;if(Q.indexOf("Bucket")>-1||Q==="deleteMultipleObject"||Q==="multipartList"||Q==="listObjectVersions"){if(Qe&&!ne)return"Bucket";if(rt&&!xe)return"Region"}else if(Q.indexOf("Object")>-1||Q.indexOf("multipart")>-1||Q==="sliceUploadFile"||Q==="abortUploadTask"||Q==="uploadFile"){if(Qe&&!ne)return"Bucket";if(rt&&!xe)return"Region";if(!Re)return"Key"}return!1},Se=function(Q,ee){if(ee=Z({},ee),Q!=="getAuth"&&Q!=="getV4Auth"&&Q!=="getObjectUrl"){var ne=ee.Headers||{};if(ee&&a(ee)==="object"){(function(){for(var Re in ee)ee.hasOwnProperty(Re)&&Re.indexOf("x-cos-")>-1&&(ne[Re]=ee[Re])})();var xe={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};He.each(xe,function(Re,De){ee[Re]!==void 0&&(ne[De]=ee[Re])}),ee.Headers=A(ne)}}return ee},Pe=function(Q,ee){return function(ne,xe){var Re=this;typeof ne=="function"&&(xe=ne,ne={}),ne=Se(Q,ne);var De;if(Re.options.EnableReporter)if(ne.calledBySdk==="sliceUploadFile"||ne.calledBySdk==="sliceCopyFile")De=ne.tracker&&ne.tracker.generateSubTracker({apiName:Q});else if(["uploadFile","uploadFiles"].includes(Q))De=null;else{var Qe=0;ne.Body&&(Qe=typeof ne.Body=="string"?ne.Body.length:ne.Body.size||ne.Body.byteLength||0);var rt=Re.options.UseAccelerate||typeof Re.options.Domain=="string"&&Re.options.Domain.includes("accelerate.");De=new v({Beacon:Re.options.BeaconReporter,clsReporter:Re.options.ClsReporter,bucket:ne.Bucket,region:ne.Region,apiName:Q,realApi:Q,accelerate:rt,fileKey:ne.Key,fileSize:Qe,deepTracker:Re.options.DeepTracker,customId:Re.options.CustomId,delay:Re.options.TrackerDelay})}ne.tracker=De;var dt=function(Je){return Je&&Je.headers&&(Je.headers["x-ci-request-id"]&&(Je.RequestId=Je.headers["x-ci-request-id"]),Je.headers["x-cos-request-id"]&&(Je.RequestId=Je.headers["x-cos-request-id"]),Je.headers["x-cos-version-id"]&&(Je.VersionId=Je.headers["x-cos-version-id"]),Je.headers["x-cos-delete-marker"]&&(Je.DeleteMarker=Je.headers["x-cos-delete-marker"])),Je},pt=function(Je,Ct){De&&De.report(Je,Ct),xe&&xe(dt(Je),dt(Ct))},vt=function(){if(Q!=="getService"&&Q!=="abortUploadTask"){var Je=ye.call(Re,Q,ne);if(Je)return"missing param "+Je;if(ne.Region){if(Re.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(ne.Region))return"Region format error."}else{if(ne.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(ne.Region))return"Region format error."}!Re.options.CompatibilityMode&&ne.Region.indexOf("-")===-1&&ne.Region!=="yfb"&&ne.Region!=="default"&&ne.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(ne.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(ne.Bucket))if(ne.AppId)ne.Bucket=ne.Bucket+"-"+ne.AppId;else if(Re.options.AppId)ne.Bucket=ne.Bucket+"-"+Re.options.AppId;else return'Bucket should format as "test-1250000000".';ne.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete ne.AppId)}!Re.options.UseRawKey&&ne.Key&&ne.Key.substr(0,1)==="/"&&(ne.Key=ne.Key.substr(1))}},at=vt(),Ge=["getAuth","getObjectUrl"].includes(Q);if(typeof Promise=="function"&&!Ge&&!xe)return new Promise(function(Le,Je){if(xe=function(Ke,Ve){Ke?Je(Ke):Le(Ve)},at)return pt(He.error(new Error(at)));ee.call(Re,ne,pt)});if(at)return pt(He.error(new Error(at)));var ze=ee.call(Re,ne,pt);if(Ge)return ze}},Ie=function(Q,ee){var ne=this,xe=0,Re=0,De=Date.now(),Qe,rt;function dt(){if(rt=0,ee&&typeof ee=="function"){Qe=Date.now();var pt=Math.max(0,Math.round((Re-xe)/((Qe-De)/1e3)*100)/100)||0,vt;Re===0&&Q===0?vt=1:vt=Math.floor(Re/Q*100)/100||0,De=Qe,xe=Re;try{ee({loaded:Re,total:Q,speed:pt,percent:vt})}catch{}}}return function(pt,vt){if(pt&&(Re=pt.loaded,Q=pt.total),vt)clearTimeout(rt),dt();else{if(rt)return;rt=setTimeout(dt,ne.options.ProgressInterval)}}},$e=function(Q,ee,ne){var xe;if(typeof ee.Body=="string"?ee.Body=new Blob([ee.Body],{type:"text/plain"}):ee.Body instanceof ArrayBuffer&&(ee.Body=new Blob([ee.Body])),ee.Body&&(ee.Body instanceof Blob||ee.Body.toString()==="[object File]"||ee.Body.toString()==="[object Blob]"))xe=ee.Body.size;else{ne(He.error(new Error("params body format error, Only allow File|Blob|String.")));return}ee.ContentLength=xe,ne(null,xe)},Fe=function(Q){return Date.now()+(Q||0)},Ee=function(Q,ee){var ne=Q;return Q.message=Q.message||null,typeof ee=="string"?(Q.error=ee,Q.message=ee):a(ee)==="object"&&ee!==null&&(Z(Q,ee),(ee.code||ee.name)&&(Q.code=ee.code||ee.name),ee.message&&(Q.message=ee.message),ee.stack&&(Q.stack=ee.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(Q,"name",{writable:!0,enumerable:!1}),Object.defineProperty(Q,"message",{enumerable:!0})),Q.name=ee&&ee.name||Q.name||Q.code||"Error",Q.code||(Q.code=Q.name),Q.error||(Q.error=K(ne)),Q},ke=function(){return(typeof globalThis>"u"?"undefined":a(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Be=function(){return(typeof window>"u"?"undefined":a(window))!=="object"&&(typeof i>"u"?"undefined":a(i))==="object"&&!0&&!ke()},je=function(Q){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(Q)},We=function(){if((typeof navigator>"u"?"undefined":a(navigator))!=="object")return!1;var he=navigator.userAgent,Q=!!he.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return Q}(),Ye=function(){return(typeof navigator>"u"?"undefined":a(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Xe=function(Q,ee){var ne=y.encode(Q);return ee&&(ne=ne.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),ne},it=function(Q){return Q?y.decode(Q):""},et=function(Q){var ee=Q.split("/"),ne=[],xe=s(ee),Re;try{for(xe.s();!(Re=xe.n()).done;){var De=Re.value;De===".."?ne.length&&ne.pop():De.length&&De!=="."&&ne.push(De)}}catch(Qe){xe.e(Qe)}finally{xe.f()}return"/"+ne.join("/")},ct=function(Q){var ee;if(Q&&typeof Q=="string"){var ne=Q.trim(),xe=ne.indexOf("<")===0,Re=ne.indexOf("{")===0;if(xe)ee=He.xml2json(Q)||{};else if(Re)try{var De=Q.replace(/\n/g," "),Qe=JSON.parse(De);Object.prototype.toString.call(Qe)==="[object Object]"?ee=Qe:ee=Q}catch{ee=Q}else ee=Q}else ee=Q||{};return ee},He={noop:j,formatParams:Se,apiWrapper:Pe,xml2json:$,json2xml:x,md5:c,clearKey:A,fileSlice:z,getBodyMd5:q,getFileMd5:H,b64:de,extend:Z,isArray:se,isInArray:me,makeArray:ue,each:re,map:ce,filter:fe,clone:K,attr:X,uuid:ve,camSafeUrlEncode:w,throttleOnProgress:Ie,getFileSize:$e,getSkewTime:Fe,error:Ee,obj2str:R,getAuth:P,parseSelectPayload:N,getSourceParams:M,isBrowser:!0,isNode:Be,isCIHost:je,isIOS_QQ:We&&Ye,encodeBase64:Xe,decodeBase64:it,simplifyPath:et,readAsBinaryString:D,parseResBody:ct};n.exports=He}).call(this,o("./node_modules/process/browser.js"))}})})})(N$);var yre=N$.exports;const bre=rc(yre),Cre=e=>e.replace(/\-(\w)/g,t=>t[1].toUpperCase());class xre{constructor(t){this.bizName=t.bizName,this.scene=t.scene,this.getToken=t.getToken,this.enableResume=t.enableResume}getPermit(t,n,r,o,i){return this.getToken().then(({uploadTempPermits:a,uploadLimitPolicy:s})=>{const l=n.type,d=n.size;if(s){const{fileTypes:f,maxSize:p}=s;if(f!=null&&f.length&&!f.reduce((m,h)=>[...m,...h.split("/")],[]).some(m=>l.endsWith(m)))throw new Error(`文件类型 ${l} 不在可上传的文件类型 ${f.join(", ")} 中。`);if(p!==void 0&&d>p)throw new Error(`文件尺寸(${d/(1024*1024)} mb)超过最大尺寸(${p/(1024*1024)} mb)。`)}if(!(a!=null&&a.length))throw new Error("token 获取失败。");const[c]=a.sort((f,p)=>p.qos-f.qos);return c})}post(t){const n=Date.now(),{fileFormat:r,onInstanceCreated:o,...i}=t;return this.getPermit(t.Body,t.fileInfo,r).then(a=>{const[s]=a.fileIds,l={Domain:a.uploadAddr,getAuthorization(c,f){f({TmpSecretId:a.secretId||"null",TmpSecretKey:a.secretKey||"null",SecurityToken:a.token,StartTime:Math.floor(n/1e3),ExpiredTime:Math.floor(a.expireTime/1e3)})}};a.bucket==="unknown"&&(l.AppId="1251524319");const d=new bre(l);return o&&o(d),d.uploadFile({Bucket:a.bucket,Region:a.region,Key:s,...i}).then(c=>{const f={...c,bizName:this.bizName,scene:this.scene,cloudType:a.cloudType,fileId:s,sliceSize:i.SliceSize||1048576,isSlice:t.fileInfo.size>(i.SliceSize||1048576),tokenFail:!1};if(a.cdnDomain){const p=`${a.cdnDomain}/${s}`;f.cdnDomain=a.cdnDomain,f.url=p,f.previewUrl=p,f.staticUrl=p}return c!=null&&c.headers&&Object.keys(c.headers).forEach(p=>{var m;if(p.startsWith("x-ros-")){const h=Cre(p.split("x-ros-")[1]);f[h]=(m=c.headers)==null?void 0:m[p]}}),f}).catch(c=>{throw c})}).catch(a=>{throw a})}}async function j$(){const e=await fetch("/api/upload/token",{method:"GET"});if(!e.ok)throw new Error(`获取上传Token失败: ${e.status} ${e.statusText}`);const t=await e.json();if((t==null?void 0:t.code)!==0)throw new Error((t==null?void 0:t.message)||"获取上传Token失败");return t.data}function Sre(e){const{bizName:t,scene:n,getToken:r}=e;return new xre({bizName:t,scene:n,getToken:r??j$})}function Tm(e){const t=e.type.toLowerCase();return ha.fileTypeMap[t]||"document"}function wre(e){const t=e==null?void 0:e.bizName,n=e==null?void 0:e.scene,r=(e==null?void 0:e.getToken)??j$,o=u.useMemo(()=>Sre({bizName:t,scene:n,getToken:r}),[t,n,r]),i=u.useRef({}),a=u.useRef({});async function s(f,p){const m=f.map(h=>{var b,y,v;if(ha.allowedTypes.length&&!ha.allowedTypes.includes(h.type)){const C=new Error(`不支持的文件类型: ${h.type||"unknown"}`),O={id:`upload_${Date.now()}_${Math.random().toString(36).slice(2,10)}`,name:h.name,url:"",type:Tm(h),size:h.size,mimeType:h.type,uploadTime:Date.now(),status:"error",errorMessage:C.message};return(b=p==null?void 0:p.onError)==null||b.call(p,C,O),mn.error(`${h.name} 上传失败: ${C.message}`),Promise.resolve(O)}if(ha.maxFileSize&&h.size>ha.maxFileSize){const C=new Error(`文件大小超过限制: ${(h.size/1048576).toFixed(1)}MB(最大 ${(ha.maxFileSize/1048576).toFixed(1)}MB)`),O={id:`upload_${Date.now()}_${Math.random().toString(36).slice(2,10)}`,name:h.name,url:"",type:Tm(h),size:h.size,mimeType:h.type,uploadTime:Date.now(),status:"error",errorMessage:C.message};return(y=p==null?void 0:p.onError)==null||y.call(p,C,O),mn.error(`${h.name} 上传失败: ${C.message}`),Promise.resolve(O)}const g={id:`upload_${Date.now()}_${Math.random().toString(36).slice(2,10)}`,name:h.name,url:"",type:Tm(h),size:h.size,mimeType:h.type,uploadTime:Date.now(),status:"uploading"};return(v=p==null?void 0:p.onStart)==null||v.call(p,g),o.post({Body:h,fileInfo:{name:h.name,type:h.type||"application/octet-stream",size:h.size},onInstanceCreated:C=>{a.current[g.id]=C},SliceSize:1048576}).then(C=>{var x,w,T;const O=(C==null?void 0:C.previewUrl)||(C==null?void 0:C.url)||(C==null?void 0:C.Location)||((x=C==null?void 0:C.data)==null?void 0:x.previewUrl)||((w=C==null?void 0:C.data)==null?void 0:w.url);if(!O)throw new Error("上传成功但未返回文件URL");const $={...g,url:O,status:"success",thumbnail:g.type==="image"?`${O}?imageView2/2/w/200/h/200`:void 0};return(T=p==null?void 0:p.onComplete)==null||T.call(p,$),$}).catch(C=>{var x;const O=C instanceof Error?C:new Error((C==null?void 0:C.message)||"上传失败"),$={...g,status:"error",errorMessage:O.message};return(x=p==null?void 0:p.onError)==null||x.call(p,O,$),mn.error(`${h.name} 上传失败: ${O.message}`),$})});return Promise.all(m)}return{uploadFiles:s,cancelTask:f=>{const p=a.current[f],m=i.current[f];p&&m&&p.cancelTask(m)},pauseTask:f=>{const p=a.current[f],m=i.current[f];p&&m&&p.pauseTask(m)},resumeTask:f=>{const p=a.current[f],m=i.current[f];p&&m&&p.restartTask(m)}}}const Ere=()=>{var i,a;const{isLoggedIn:e,loginInfo:t}=gy(),{agentSimulatorInfo:n}=A$();return{getUserAvatar:(s=40)=>e&&(t!=null&&t.user_avatar)?V.createElement(Uf,{size:s,src:t.user_avatar,alt:t.user_name||"用户",style:{background:"linear-gradient(135deg, #1677ff, #40a9ff)",border:"2px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)"}}):V.createElement(Uf,{size:s,icon:V.createElement(Bb),style:{background:"linear-gradient(135deg, #1677ff, #40a9ff)",border:"2px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)"}}),getUserAvatarProps:()=>{var l,d;const s=(t==null?void 0:t.user_avatar)||((l=n==null?void 0:n.agentInfo)==null?void 0:l.agent_icon);return s?{src:s,alt:(t==null?void 0:t.user_name)||((d=n==null?void 0:n.agentInfo)==null?void 0:d.agent_name)||"用户",style:{border:"2px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)"}}:{icon:V.createElement(Bb),style:{border:"2px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)"}}},hasUserAvatar:!!(t!=null&&t.user_avatar||(i=n==null?void 0:n.agentInfo)!=null&&i.agent_icon),userName:(t==null?void 0:t.user_name)||((a=n==null?void 0:n.agentInfo)==null?void 0:a.agent_name)}},$re=za(({token:e,css:t})=>({copilotWrapper:t`
|
|
548
|
+
max-width: 800px;
|
|
549
|
+
min-width: 300px;
|
|
550
|
+
width: 100%;
|
|
551
|
+
height: 100vh;
|
|
552
|
+
display: flex;
|
|
553
|
+
margin: 0 auto;
|
|
554
|
+
`,workarea:t`
|
|
555
|
+
flex: 1;
|
|
556
|
+
background: ${e.colorBgLayout};
|
|
557
|
+
display: flex;
|
|
558
|
+
flex-direction: column;
|
|
559
|
+
`,workareaHeader:t`
|
|
560
|
+
box-sizing: border-box;
|
|
561
|
+
height: 52px;
|
|
562
|
+
display: flex;
|
|
563
|
+
align-items: center;
|
|
564
|
+
justify-content: space-between;
|
|
565
|
+
padding: 0 48px 0 28px;
|
|
566
|
+
border-bottom: 1px solid ${e.colorBorder};
|
|
567
|
+
`,headerTitle:t`
|
|
568
|
+
font-weight: 600;
|
|
569
|
+
font-size: 15px;
|
|
570
|
+
color: ${e.colorText};
|
|
571
|
+
display: flex;
|
|
572
|
+
align-items: center;
|
|
573
|
+
gap: 8px;
|
|
574
|
+
`,headerButton:t`
|
|
575
|
+
background-image: linear-gradient(78deg, #8054f2 7%, #3895da 95%);
|
|
576
|
+
border-radius: 12px;
|
|
577
|
+
height: 24px;
|
|
578
|
+
width: 93px;
|
|
579
|
+
display: flex;
|
|
580
|
+
align-items: center;
|
|
581
|
+
justify-content: center;
|
|
582
|
+
color: ${e.colorBgContainer};
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
font-size: 12px;
|
|
585
|
+
font-weight: 600;
|
|
586
|
+
transition: all 0.3s;
|
|
587
|
+
&:hover {
|
|
588
|
+
opacity: 0.8;
|
|
589
|
+
}
|
|
590
|
+
`,workareaBody:t`
|
|
591
|
+
flex: 1;
|
|
592
|
+
padding: 16px;
|
|
593
|
+
background: ${e.colorBgContainer};
|
|
594
|
+
border-radius: 16px;
|
|
595
|
+
min-height: 0;
|
|
596
|
+
`,bodyContent:t`
|
|
597
|
+
overflow: auto;
|
|
598
|
+
height: 100%;
|
|
599
|
+
padding-right: 10px;
|
|
600
|
+
`,bodyText:t`
|
|
601
|
+
color: ${e.colorText};
|
|
602
|
+
padding: 8px;
|
|
603
|
+
`}));function Rre(e){if(typeof e!="string")return null;const t=e.trim();if(!t||t.endsWith("[DONE]"))return null;try{const n=JSON.parse(t);return n&&Array.isArray(n.choices)&&n.choices.length===0&&(n.code!==0||n.error)?null:n&&Array.isArray(n.choices)?n:n&&n.data&&Array.isArray(n.data.choices)?n.data:null}catch{return null}}function Ore(e){if(!e||typeof e!="object"||Array.isArray(e.choices)&&e.choices.length===0&&(e.code!==0||e.error))return null;if(Array.isArray(e.choices))return e;if(e.data&&Array.isArray(e.data.choices))return e.data;if(typeof e.code=="number"&&e.code===0&&e.data){const n=e.data;if(n&&typeof n=="object"&&Array.isArray(n.choices))return n}const t=e.data;return t&&typeof t=="object"&&typeof t.code=="number"&&t.code===0&&t.data&&Array.isArray(t.data.choices)?t.data:null}const Pre=({agentSimulatorInfo:e,debugStatus:t,showSystemLogs:n,isConnecting:r=!1,onRetryConnection:o,onClearChat:i,onToggleLogs:a})=>{var c,f,p,m,h;const{token:s}=Or.useToken(),l=()=>{if(!e)return"服务断开";switch(t){case"connecting":return"正在连接服务器...";case"timeout":return"连接超时";case"normal":return"正常";case"error":return"服务已断开";default:return"未知状态"}},d=async()=>{var b;const g=(b=e==null?void 0:e.agentInfo)==null?void 0:b.agent_id;if(g)try{await navigator.clipboard.writeText(g),mn.success("AgentId 已复制到剪贴板")}catch{const v=document.createElement("textarea");v.value=g,document.body.appendChild(v),v.select(),document.execCommand("copy"),document.body.removeChild(v),mn.success("AgentId 已复制到剪贴板")}};return B.jsxs("header",{className:"app-header",style:{background:s.colorBgElevated},children:[B.jsxs("div",{className:"agent-info",style:{borderBottom:`1px solid ${s.colorBorder}`},children:[B.jsx("div",{className:"agent-avatar",style:{background:s.colorBgElevated},children:(c=e==null?void 0:e.agentInfo)!=null&&c.agent_icon?B.jsx("img",{src:e.agentInfo.agent_icon,alt:"Agent Avatar",onError:g=>{g.target.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'%3E%3Cpath fill='%23aaa' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E"}}):B.jsx("img",{src:"/avatar-placeholder.png",alt:"Agent Avatar",onError:g=>{g.target.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'%3E%3Cpath fill='%23aaa' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E"}})}),B.jsxs("div",{className:"agent-details",children:[B.jsx("div",{className:"agent-info-left",children:B.jsxs("h1",{className:"agent-name",style:{color:s.colorText,display:"inline-flex",alignItems:"center",gap:8},children:[((f=e==null?void 0:e.agentInfo)==null?void 0:f.agent_name)||"未连接",B.jsx("span",{style:{display:"inline-flex",alignItems:"center"},children:B.jsx(lre,{})})]})}),B.jsx("div",{className:"agent-info-right",children:B.jsxs("div",{className:"agent-id-container",children:[B.jsx("span",{className:"agent-id-value",title:((p=e==null?void 0:e.agentInfo)==null?void 0:p.agent_id)||"获取中...",style:{color:s.colorText},children:((m=e==null?void 0:e.agentInfo)==null?void 0:m.agent_id)||"获取中..."}),((h=e==null?void 0:e.agentInfo)==null?void 0:h.agent_id)&&B.jsx(Dt,{className:"copy-icon",type:"text",size:"small",icon:B.jsx(h8,{}),onClick:d,title:"点击复制 AgentId",style:{padding:"0 4px",minWidth:"auto",height:"auto"}})]})})]})]}),B.jsxs("div",{className:"debug-controls",children:[B.jsxs("div",{className:"debug-status",children:[B.jsx("span",{className:"status-label",style:{color:s.colorText},children:"调试状态:"}),B.jsx("span",{className:`status-indicator ${e?t:"error"}`,children:l()})]}),B.jsxs("div",{className:"debug-buttons",style:{display:"flex",gap:"8px"},children:[B.jsx(Dt,{size:"small",icon:B.jsx(p8,{}),onClick:i,title:"清空聊天记录",style:{borderColor:s.colorWarning,color:s.colorWarning},children:"清空聊天"}),B.jsx(Dt,{size:"small",onClick:a,style:{borderColor:s.colorPrimary,color:n?"#fff":s.colorPrimary,backgroundColor:n?s.colorPrimary:"transparent"},children:"📋 日志"}),B.jsx(Dt,{size:"small",icon:B.jsx(UP,{}),onClick:o,loading:r,title:r?"正在连接服务器...":"重新连接服务器",style:{borderColor:s.colorSuccess,color:s.colorSuccess},children:r?"连接中...":"重试连接"})]})]})]})};var js=(e=>(e.ACCESS="ACCESS",e.USERCODE="USERCODE",e))(js||{});class Ire{constructor(t){this.baseUrl=t.baseUrl}async getLogs(t,n){try{const r=n?`&limit=${n}`:"",o=`${this.baseUrl}/@logs?type=${t}${r}`,i=await fetch(o);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(r){return console.error("Failed to fetch logs:",r),{success:!1,data:[],error:r.message}}}async getLogsPaginated(t){try{const{type:n,pageSize:r=50,pageNum:o=1}=t,i=new URLSearchParams;i.append("type",n),i.append("pageSize",r.toString()),i.append("pageNum",o.toString());const a=`${this.baseUrl}/@logs?${i.toString()}`,s=await fetch(a);if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return await s.json()}catch(n){return console.error("Failed to fetch paginated logs:",n),{success:!1,data:[],error:n.message}}}formatLogEntry(t){const n=new Date(t["@timestamp"]).toLocaleString(),r=t.level.toUpperCase(),o=t.message,i=t.eventId?`[${t.eventId}]`:"";return`[${n}] ${r} ${i} ${o}`}}const L6=({baseUrl:e,agentName:t,debugStatus:n,isOpen:r=!1,logType:o=js.ACCESS})=>{const{token:i}=Or.useToken(),[a,s]=u.useState([]),[l,d]=u.useState(new Set),[c,f]=u.useState(!1),[p,m]=u.useState(!0),[h,g]=u.useState(!1),[b,y]=u.useState(1),[v]=u.useState(50),C=u.useRef(0),O=1e3,$=u.useMemo(()=>new Ire({baseUrl:e}),[e]),x=j=>{const A=["getHistoryMessages","createRecordPair","getConversations","queryTasks","knowledgeBaseRetrieve","AI_SDK_REQUEST_START","AI_SDK_REQUEST_SUCCESS","AI_SDK_REQUEST_ERROR","AI_SDK_CREATE_MODEL","AI_SDK_CREATE_RECORD_PAIR","AI_SDK_GET_HISTORY_MESSAGES","AI_SDK_GET_CONVERSATIONS","Ai_SDK_POST_KNOWLEDGE_BASE","AI_SDK_QUERY_TASKS","SERVER_REQUEST_START","SERVER_REQUEST_END"],D=new RegExp(`(${A.join("|")})`,"gi");return j.split(D).map((z,q)=>A.some(U=>U.toLowerCase()===z.toLowerCase())?B.jsx("span",{style:{fontWeight:"bold",color:"#ffa940",background:"rgba(255, 169, 64, 0.1)",padding:"0 2px",borderRadius:"2px"},children:z},q):B.jsx("span",{children:z},q))},w=j=>j>=500?{color:"#ff4d4f",fontWeight:"bold"}:j>=400?{color:"#faad14",fontWeight:"bold"}:j>=300?{color:"#1890ff"}:j>=200?{color:"#52c41a",fontWeight:"bold"}:{},T=j=>{var q;const A=new Date(j["@timestamp"]),D=A.toLocaleDateString("zh-CN"),L=A.toLocaleTimeString("zh-CN"),z=j.level.toUpperCase();try{const U=JSON.parse(j.message);let H=`[${D} ${L}] [${z}] ${(U==null?void 0:U.url)||(U==null?void 0:U.eventId)||"unknown"}`;if(j.source==="remote"){if(U.type==="FRAMEWORK_EVENT"){const K=U.scene||"unknown",X=U.status?B.jsxs("span",{style:w(U.status),children:[" (",U.status,")"]}):null;H=B.jsxs(B.Fragment,{children:[`[${D} ${L}] [${(q=U.eventId)==null?void 0:q.slice(-8)}] [${z}] ${K}`,X]})}else if(U.type==="HTTP_ACCESS"){const K=U.scene||"unknown",X=U.method||"unknown",Z=U.url||"unknown",se=U.status?B.jsxs("span",{style:w(U.status),children:[" (",U.status,")"]}):null,ie=U.duration?` - ${U.duration}`:"";H=B.jsxs(B.Fragment,{children:[`[${D} ${L}] ${U.eventId?`[${U.eventId.slice(-8)}]`:""} [${z}] ${K} ${X} ${Z}`,se,ie]})}}else H=`[${D} ${L}] ${U.eventId?`[${U.eventId.slice(-8)}]`:""} [${z}] ${(U==null?void 0:U.msg)||"unknown"}`;return typeof H=="string"?x(H):H}catch{return`[${D} ${L}] [${z}] ${j.message}`}},R=j=>{try{const A=JSON.parse(j.message),D=[];return(A.type==="FRAMEWORK_EVENT"||A.type==="HTTP_ACCESS")&&(A.scene&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Scene:"})," ",A.scene]},"scene")),A.method&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Method:"})," ",A.method]},"method")),A.url&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"URL:"})," ",A.url]},"url")),A.modelName&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Model:"})," ",A.modelName]},"model")),A.status&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Status:"})," ",B.jsx("span",{style:w(A.status),children:A.status})]},"status")),A.duration&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Duration:"})," ",A.duration]},"duration")),A.ip&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"IP:"})," ",A.ip]},"ip"))),A.error&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Error:"})," ",B.jsx("span",{style:{color:"#ff4d4f"},children:A.error})]},"error")),A.stack&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Stack Trace:"}),B.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap"},children:A.stack})]},"stack")),A.headers&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Headers:"}),B.jsx("pre",{style:{margin:0},children:JSON.stringify(A.headers,null,2)})]},"headers")),A.data&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Data:"}),B.jsx("pre",{style:{margin:0},children:JSON.stringify(A.data,null,2)})]},"data")),A.eventId&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Event ID:"})," ",A.eventId]},"eventId")),D}catch{return[j.message]}},S=j=>{const A=JSON.parse(j.message);return!!(A.headers&&Object.keys(A.headers).length>0||A.data||A.error||A.stack||A.eventId&&A.eventId!=="unknown")},E=j=>{const A=new Set(l);A.has(j)?A.delete(j):A.add(j),d(A)},P=j=>{const A={margin:"2px 0",padding:"2px 0"};switch(j.level){case"error":return{...A,color:"#ff4d4f",fontWeight:"bold"};case"warn":return{...A,color:"#faad14",fontWeight:"bold"};case"info":return{...A,color:"#1890ff"};case"debug":return{...A,color:"#8c8c8c"};default:return{...A,color:"#8c8c8c"}}},I=u.useCallback(async(j=!1)=>{if(n==="normal"){if(j){if(h||c)return;g(!0)}else{if(c)return;f(!0)}try{const A=j?b+1:1,D=await $.getLogsPaginated({type:o,pageSize:v,pageNum:A});if(D.success){const L=D.data.map(z=>({...z,source:"remote"}));j?(s(z=>[...z,...L]),y(A)):s(z=>{const q=z.filter(X=>X.source==="local"),U=z.filter(X=>X.source==="remote"),K=[...L,...U].reduce((X,Z)=>(X.find(se=>se.id===Z.id)||X.push(Z),X),[]);return K.sort((X,Z)=>new Date(Z["@timestamp"]).getTime()-new Date(X["@timestamp"]).getTime()),[...q,...K]}),D.pagination?m(D.pagination.hasMore):m(!1)}}catch(A){console.error("Failed to fetch logs:",A);const D={"@timestamp":new Date().toISOString(),level:"error",eventId:"",message:JSON.stringify({msg:`日志获取失败: ${A.message}`}),source:"local"};s(L=>[...L,D])}finally{j?g(!1):f(!1)}}},[n,o,v,b,$,c,h]);u.useEffect(()=>{m(!0),f(!1),g(!1),y(1);const j=[o===js.USERCODE?{"@timestamp":new Date().toISOString(),level:"system",eventId:"",message:JSON.stringify({msg:`👤 用户日志拉取成功 ${new Date().toLocaleString()}`}),source:"local"}:{"@timestamp":new Date().toISOString(),level:"system",eventId:"",message:JSON.stringify({msg:`🖥️ 系统日志拉取成功 ${new Date().toLocaleString()}`}),source:"local"},{"@timestamp":new Date().toISOString(),level:"system",eventId:"",message:JSON.stringify({msg:`Agent服务地址: ${e}`}),source:"local"},{"@timestamp":new Date().toISOString(),level:"system",eventId:"",message:JSON.stringify({msg:`Agent '${t}' 已加载`}),source:"local"}];s(j),I();const A=setInterval(()=>I(!1),5e3);return()=>{clearInterval(A)}},[e,t,$,n,o]),u.useEffect(()=>{r&&I()},[r]),u.useEffect(()=>{const j={"@timestamp":new Date().toISOString(),level:n==="normal"?"system":"warn",eventId:"",message:JSON.stringify({msg:`调试状态变更: ${n}`}),source:"local"};s(A=>[...A,j])},[n]);const k=j=>{try{const A=JSON.parse(j.message),D=[];return A.eventId&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Event ID:"})," ",A.eventId]},"eventId")),A.requestId&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Request ID:"})," ",A.requestId]},"requestId")),A.scene&&D.push(B.jsxs("div",{children:[B.jsx("strong",{children:"Scene:"})," ",A.scene]},"scene")),Array.isArray(A.logs)&&(D.push(B.jsx("div",{children:B.jsx("strong",{children:"Logs:"})},"logs-title")),A.logs.forEach((L,z)=>{var q;D.push(B.jsxs("div",{style:{marginLeft:"10px"},children:[B.jsx("div",{children:`[${((q=L.level)==null?void 0:q.toUpperCase())||"LOG"}] ${L["@timestamp"]||""}`}),L.caller&&B.jsxs("div",{children:[" Caller: ",L.caller]}),L.content&&B.jsxs("div",{children:[" Content: ",L.content]})]},`log-${z}`))})),D}catch{return[j.message]}},N=u.useCallback(()=>{const j=Date.now();j-C.current<O||p&&!h&&!c&&(C.current=j,I(!0))},[p,h,c,O,I]),M=u.useCallback(j=>{const{scrollTop:A,scrollHeight:D,clientHeight:L}=j.currentTarget;D-A<=L+50&&N()},[N]);return B.jsx("div",{className:"system-logs",style:{height:"100%",backgroundColor:i.colorBgElevated},children:B.jsxs("div",{className:"logs-content",style:{height:"100%",margin:0},children:[n!=="normal"&&B.jsx("div",{style:{background:"rgba(250, 173, 20, 0.1)",color:"#faad14",padding:"8px 16px",borderBottom:"1px solid #333",fontSize:"13px"},children:"⚠️ 调试状态异常,日志获取已暂停"}),B.jsxs("div",{style:{color:"#d4d4d4",fontSize:15,margin:0,padding:16,height:n!=="normal"?"calc(100% - 40px)":"100%",boxSizing:"border-box",fontFamily:"Menlo, Monaco, Consolas, monospace",overflow:"auto"},onScroll:M,children:[a.map((j,A)=>{const D=l.has(A),L=S(j);return B.jsxs("div",{style:{marginBottom:"4px"},children:[B.jsxs("div",{style:{...P(j),display:"flex",alignItems:"center",cursor:L?"pointer":"default"},onClick:()=>L&&E(A),children:[B.jsx("span",{style:{color:"#8c8c8c",marginRight:"10px",userSelect:"none"},children:String(A+1).padStart(String(a.length).length,"0")}),L&&B.jsx("span",{style:{marginRight:"6px",color:"#8c8c8c",fontSize:"12px",transform:D?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease",userSelect:"none"},children:"▶"}),B.jsx("div",{style:{flex:1},children:T(j)})]}),L&&D&&B.jsx("div",{style:{marginLeft:L?"18px":"0",marginTop:"4px",padding:"8px 12px",background:"rgba(255, 255, 255, 0.05)",borderLeft:"3px solid #1890ff",borderRadius:"0 4px 4px 0",fontSize:"13px",color:"#a3a3a3",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:o===js.USERCODE?k(j):R(j)})]},A)}),h&&B.jsx("div",{style:{textAlign:"center",padding:"16px",color:"#8c8c8c",fontSize:"13px"},children:"正在加载更多日志..."}),!p&&a.filter(j=>j.source==="remote").length>0&&B.jsxs("div",{style:{textAlign:"center",padding:"16px",color:"#8c8c8c",fontSize:"13px",borderTop:"1px dashed #333",marginTop:"8px"},children:["已加载全部日志 (",a.filter(j=>j.source==="remote").length," 条)"]})]})]})})},Tre=({open:e,activeTab:t,onTabChange:n,onClose:r,agentSimulatorInfo:o,height:i,debugStatus:a})=>{var d,c;const{token:s}=Or.useToken(),l=f=>{if(!f)return"";try{const p=new URL(f);return`${p.protocol}//${p.hostname}${p.port?":"+p.port:""}`}catch{return""}};return B.jsxs(R7,{placement:"bottom",open:e,onClose:r,height:i,mask:!0,maskClosable:!0,styles:{body:{padding:0,display:"flex",flexDirection:"column"},header:{display:"none"}},destroyOnClose:!1,children:[B.jsx("div",{style:{borderBottom:`1px solid ${s.colorBorder}`,backgroundColor:s.colorBgContainer},children:B.jsx(N2,{activeKey:t,onChange:n,type:"card",tabBarStyle:{margin:0,padding:"0 16px",marginBottom:0},animated:{inkBar:!0,tabPane:!1},items:[{key:"system",label:"系统日志"},{key:"user",label:"用户日志"}]})}),B.jsxs("div",{style:{flex:1,overflow:"auto",padding:"16px"},children:[t==="system"&&(o?B.jsx(L6,{baseUrl:l(o.agentServerUrl),agentName:((d=o.agentInfo)==null?void 0:d.agent_name)||"未获取到Agent名称",debugStatus:a,isOpen:e,logType:js.ACCESS}):B.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"200px",color:s.colorTextSecondary},children:"Agent 服务未连接,无法获取系统日志"})),t==="user"&&(o?B.jsx(L6,{baseUrl:l(o.agentServerUrl),agentName:((c=o.agentInfo)==null?void 0:c.agent_name)||"未获取到Agent名称",debugStatus:a,isOpen:e,logType:js.USERCODE}):B.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"200px",color:s.colorTextSecondary},children:"Agent 服务未连接,无法获取用户日志"}))]})]})};new Kr({html:!0,breaks:!0,linkify:!0,typographer:!0});const _re=[{label:"帮我写一篇关于AI的文章",value:"ai-article"},{label:"生成一张夕阳下的海滩图片",value:"beach-image"},{label:"制作一个产品展示动画",value:"product-animation"},{label:"协调多个AI完成项目规划",value:"ai-planning"}],kre=e=>{switch(e){case"chat":return[{label:"帮我写一篇关于AI的文章",value:"ai-article"},{label:"帮我写一篇关于广州的旅游攻略",value:"travel-guide"},{label:"帮我写一篇购物笔记",value:"shopping-note"},{label:"帮我总结一下今天的会议内容",value:"meeting-summary"}];case"image":return[{label:"给我一个五彩斑斓的黑",value:"colorful-black"},{label:"生成一张夕阳下的海滩图片",value:"sunset-beach"},{label:"画一只可爱的小猫咪",value:"cute-kitten"},{label:"创作一幅抽象艺术作品",value:"abstract-art"}];case"video":return[{label:"帮我写一篇关于AI的文章",value:"ai-article"},{label:"生成一张夕阳下的海滩图片",value:"beach-image"},{label:"制作一个产品展示动画",value:"product-animation"},{label:"协调多个AI完成项目规划",value:"ai-planning"}];case"multi-agent":return[{label:"帮我写一篇关于AI的文章",value:"ai-article"},{label:"生成一张夕阳下的海滩图片",value:"beach-image"},{label:"制作一个产品展示动画",value:"product-animation"},{label:"协调多个AI完成项目规划",value:"ai-planning"}];default:return _re}},Mre=({loading:e,inputValue:t,canSendMessage:n,isLoggedIn:r,attachedFiles:o,uploadConfig:i,currentModule:a,attachmentsOpen:s=!1,onAttachmentsOpenChange:l,onInputChange:d,onSubmit:c,onCancel:f,onPasteFile:p,enqueueUpload:m,onRemoveFile:h,getDisabledReason:g,onAgentFileUpload:b})=>{const[y,v]=u.useState(!1),C=s!==void 0?s:y,O=l||v,[$,x]=u.useState(!1),w=u.useRef(null),T=(o==null?void 0:o.some(I=>I.fileSource==="openai"&&I.status==="done"))||!1,R=kre(a),S=async()=>{var I;if(!r){mn.warning("请先登录后再上传文件");return}(I=w.current)==null||I.click()},E=async I=>{var N;const k=(N=I.target.files)==null?void 0:N[0];if(k)try{x(!0);const M=await nc.uploadOpenAiFile(k,"file-extract");M.code===0?(mn.success(`文件上传成功!文件 ID: ${M.data.id},可在消息中引用此文件。`),console.log("上传成功的文件信息:",M.data),b&&b({id:M.data.id,filename:M.data.filename||k.name,purpose:M.data.purpose,bytes:M.data.bytes||k.size,created_at:M.data.created_at||Date.now()})):mn.error(M.message||"文件上传失败")}catch(M){console.error("文件上传失败:",M),mn.error(M instanceof Error?M.message:"文件上传失败")}finally{x(!1),w.current&&(w.current.value="")}},P=B.jsx(M1.Header,{title:"Upload File",styles:{content:{padding:0}},open:C,onOpenChange:I=>{if(!r&&I){mn.warning("请先登录后再上传文件");return}O(I)},forceRender:!0,children:B.jsx(n9,{beforeUpload:I=>r?I.size>i.maxFileSize?(mn.error(`文件大小不能超过 ${i.maxFileSize/1024/1024}MB`),Di.LIST_IGNORE):i.allowedTypes.includes(I.type)?(m(I),Di.LIST_IGNORE):(mn.error("不支持的文件类型"),Di.LIST_IGNORE):(mn.warning("请先登录后再上传文件"),Di.LIST_IGNORE),items:o.map(I=>{var N;if(I.fileSource==="openai"){const M=I.agentFileId||I.id,j=((N=I.name)==null?void 0:N.replace("[Agent] ",""))||I.name||"OpenAI 文件";return{...I,name:j,description:B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,fontSize:"12px",color:"#666"},children:[B.jsx(DT,{style:{fontSize:"14px",color:"#10a37f"}}),B.jsxs("span",{children:["File ID: ",M]})]}),thumbUrl:void 0}}return I}),onRemove:h,placeholder:I=>I==="drop"?{title:"拖拽文件到此处上传"}:{icon:B.jsx(CI,{}),title:"上传多模态文件",description:"支持图片、PDF、视频、音频等文件格式"}})});return B.jsxs("div",{className:"chat-input-container",children:[B.jsx("input",{ref:w,type:"file",style:{display:"none"},onChange:E,accept:"*/*"}),B.jsx(AY,{items:R,onSelect:I=>{const k=R.find(M=>M.value===I),N=(k==null?void 0:k.label)||I||"未知建议";d(`${N}`)},children:({onTrigger:I,onKeyDown:k})=>B.jsx(M1,{loading:e,value:t,disabled:!n,onChange:N=>{I(N==="/"?"/":""),d(N||"")},onSubmit:()=>{c(t),d("")},onCancel:f,allowSpeech:!0,placeholder:n?"Ask or input / use skills":g()||"Ask or input / use skills",onKeyDown:k,header:P,prefix:B.jsxs(B.Fragment,{children:[B.jsx(Dt,{type:"text",className:"attachment-button",icon:B.jsx(m8,{}),onClick:()=>{if(!r){mn.warning("请先登录后再上传文件");return}O(!C)},disabled:!n}),B.jsx(Oo,{title:B.jsxs("div",{children:[B.jsx("div",{style:{fontWeight:"bold",marginBottom:6},children:"智能体文件上传 (OpenAI 标准)"}),B.jsxs("div",{style:{fontSize:"12px",lineHeight:"1.6",color:"rgba(255,255,255,0.85)"},children:[B.jsx("div",{children:"• 对接「智能体上传接口服务」"}),B.jsx("div",{children:"• 上传成功后返回 file_id"}),B.jsx("div",{children:"• 需在智能体内自行解析文件"}),B.jsxs("div",{style:{marginTop:6,paddingTop:6,borderTop:"1px solid rgba(255,255,255,0.15)"},children:[B.jsx("div",{style:{color:"rgba(255,255,255,0.65)",marginBottom:2},children:B.jsx("strong",{children:"与左侧上传的区别:"})}),B.jsx("div",{children:"左侧上传返回公网链接,文件直接显示在对话中"})]})]})]}),placement:"topLeft",overlayStyle:{maxWidth:340},children:B.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[B.jsx(Dt,{type:"text",className:"file-upload-button",style:{color:T?"#52c41a":void 0,transition:"color 0.3s ease"},icon:B.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"icon size-5",width:"1em",height:"1em",viewBox:"0 0 24 24",children:B.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 16v3m0 0v3m0-3h3m-3 0h-3m4-10v-.172a2 2 0 0 0-.586-1.414l-3.828-3.828A2 2 0 0 0 14.172 3H14m6 6h-4a2 2 0 0 1-2-2V3m6 6v3m-6-9H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"})}),onClick:S,disabled:!n||$,loading:$}),B.jsx("span",{style:{position:"absolute",top:"2px",right:"2px",fontSize:"10px",fontWeight:"bold",color:"#1890ff",backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"50%",width:"14px",height:"14px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"1",pointerEvents:"none"},children:"?"})]})})]}),onPasteFile:p,actions:(N,M)=>{const{SendButton:j,LoadingButton:A,SpeechButton:D}=M.components;return B.jsxs("div",{className:"action-buttons",children:[B.jsx(D,{className:"speech-button",disabled:!n}),e?B.jsx(A,{type:"default"}):B.jsx(j,{type:"primary",disabled:!n})]})}})})]})},Are=e=>{const t=e.toLowerCase();return console.log("==== 文件类型检测 ====",{mimeType:e,normalizedType:t}),t.startsWith("image/")?"image":t==="application/pdf"?"pdf":t.startsWith("video/")?"video":t.startsWith("audio/")?"audio":[".jpg",".jpeg",".png",".gif",".webp",".bmp",".svg"].some(o=>t.includes(o)||e.includes(o))?(console.log("==== 通过扩展名识别为图片 ====",e),"image"):(console.log("==== 无法识别文件类型,默认为文档 ====",e),"document")},Nre=({agentSimulatorInfo:e,onMessageUpdate:t,onRequestStart:n,onRequestEnd:r,onUserSubmit:o,onCancel:i})=>{let a=u.useRef(null);const[s]=HY({baseURL:VY(e)}),l=u.useCallback((c,f,p,m)=>{const h=(m||[]).map($=>{const x=$.filename||$.name||"";let w="document";return x.toLowerCase().endsWith(".pdf")?w="pdf":/\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i.test(x)?w="image":/\.(mp4|avi|mov|wmv|flv|webm)$/i.test(x)?w="video":/\.(mp3|wav|ogg|aac|flac)$/i.test(x)&&(w="audio"),{id:`openai_${$.id}_${Date.now()}`,name:$.filename||$.name||"OpenAI 文件",url:void 0,type:w,size:$.bytes||0,mimeType:"application/octet-stream",uploadTime:$.created_at||Date.now(),status:"success",fileSource:"openai",fileId:$.id,purpose:$.purpose||"file-extract"}}),g=[...p||[],...h],b={id:`user-${Date.now()}`,role:"user",content:c,isThinking:!1,isTimeout:!1,isInterrupted:!1,isUiDiscard:!1,uiTimeStr:new Date().toLocaleTimeString(),type:"answer",files:g},y=[...f,b];t(y),n();const v=[];p&&p.length>0&&p.forEach($=>{$.type==="image"&&$.url?v.push({type:"image_url",image_url:{url:$.url}}):$.type==="pdf"&&$.url&&v.push({type:"doc_url",doc_url:[$.url],file_parsing_strategy:"auto"})}),c&&c.trim()&&v.push({type:"text",text:c.trim()});const C=[...(p==null?void 0:p.map($=>({url:$.url,type:$.type,size:$.size,mimeType:$.mimeType,fileSource:"standard"})))||[],...(m==null?void 0:m.map($=>({id:$.id,filename:$.filename,purpose:$.purpose,bytes:$.bytes,created_at:$.created_at,fileSource:"openai"})))||[]],O={msg:c||"",files:C,history:v.length?[{role:"user",content:v}]:[]};s.request(O,{onUpdate:$=>{try{let x=null,w=null;if(typeof($==null?void 0:$.data)=="string"){if(x=Rre($.data),!x){try{const M=JSON.parse($.data);M&&(M.code!==void 0||M.message)&&(w=M)}catch{}if(!w)return}}else if($&&typeof $=="object"&&(x=Ore($),!x))if($.code!==0||$.message||$.error)w=$;else return;if(w&&!x){const M=`error-${Date.now()}`,j={message:w.message||w.error||"请求失败",code:w.code,log_id:w.log_id||w.requestId,rawData:{message:w.message||w.error||"请求失败",error:w.error||w.message||"请求失败",code:w.code,log_id:w.log_id||w.requestId}};t(A=>{const D=[...A],L=D.length-1;return L>=0&&D[L].isThinking?D[L]={...D[L],id:M,content:j.message,type:"error",isThinking:!1,cards:[{type:"error_card",content:JSON.stringify(j)}]}:D.push({id:M,role:"assistant",content:j.message,type:"error",isThinking:!1,isTimeout:!1,isInterrupted:!1,isUiDiscard:!1,uiTimeStr:new Date().toLocaleTimeString(),cards:[{type:"error_card",content:JSON.stringify(j)}],timestamp:Date.now()}),D});return}if(!x||typeof x!="object"){console.warn("Invalid message object:",x);return}const T=x.choices[0],R=T.message||T.delta||{},S=T.message&&!R.type||R.type==="error"||T.finish_reason==="error",E=S?"error":R.type||"answer",P=R.content||"",I=R.reasoning_content||"",k=x.id,N=S?{message:x.error||P||x.message||"未知错误",code:x.code,log_id:x.log_id,rawData:{message:x.error||P||x.message||"未知错误",error:x.error||x.message||"未知错误",code:x.code,log_id:x.log_id}}:null;t(M=>{const j=[...M];let A=j.findIndex(z=>z.id===k);if(A===-1){const z={id:k,role:"assistant",content:"",reasoningContent:"",isThinking:!0,isTimeout:!1,isInterrupted:!1,isUiDiscard:!1,uiTimeStr:new Date().toLocaleTimeString(),type:"thinking",cards:[],timestamp:Date.now()};j.push(z),A=j.length-1}const D=j[A],L={...D};if(L.reasoningContent=(L.reasoningContent||"")+I,L.isThinking=!!I,E==="error")L.content=(N==null?void 0:N.message)||"处理失败",L.type="error",L.isThinking=!1,L.cards=[{type:"error_card",content:JSON.stringify(N)}];else if(E==="answer")L.content=(L.content||"")+P,L.type="answer";else if(["function_call","function_call_response","knowledge_base_search","knowledge_base_search_response"].includes(E)){const z=L.cards?[...L.cards]:[],q=z.findIndex(H=>H.type===E),U={type:E,content:P};q!==-1?z[q].content+=P:z.push(U),L.cards=z,D.type==="thinking"&&(L.type=E)}else if(E==="image"||E==="video")P&&(L.content=P),L.type=E,L.isThinking=!1;else if(E==="async_task"){const z=L.cards?[...L.cards]:[],q=z.findIndex(H=>H.type===E),U={type:E,content:P};q!==-1?z[q].content+=P:z.push(U),L.cards=z,D.type==="thinking"&&(L.type=E)}return j[A]=L,j})}catch(x){console.error("Transform message error:",x)}},onSuccess:$=>{t(x=>x.map(w=>({...w,isThinking:!1}))),r()},onError:$=>{console.error("Request error:",$);let x=$.message||"请求失败,请重试!";if($.name==="AbortError")x="请求已取消";else if(x.includes("status")){const R=x.match(/status (\d+)/);R&&(x=`请求失败 (HTTP ${R[1]})`)}const w=`error-${Date.now()}`,T={message:x,code:void 0,log_id:void 0,rawData:{message:x,error:$.message||x}};t(R=>{const S=[...R],E=S.length-1;return E>=0&&S[E].isThinking?S[E]={...S[E],id:w,content:x,type:"error",isThinking:!1,cards:[{type:"error_card",content:JSON.stringify(T)}]}:S.push({id:w,role:"assistant",content:x,type:"error",isThinking:!1,isTimeout:!1,isInterrupted:!1,isUiDiscard:!1,uiTimeStr:new Date().toLocaleTimeString(),cards:[{type:"error_card",content:JSON.stringify(T)}],timestamp:Date.now()}),S}),r()},onStream:$=>{a.current=$}})},[s,t,n,r]),d=u.useCallback(()=>{var c;(c=a.current)==null||c.abort()},[]);return V.useEffect(()=>{o(l),i(d)},[l,d,o,i]),B.jsx("div",{style:{display:"none"}})},jre=()=>{const{isDark:e}=vre(),{token:t}=Or.useToken(),{styles:n}=o$(),{isLoggedIn:r}=gy(),{getUserAvatarProps:o}=Ere(),i=u.useRef(null),a=u.useRef(null),[s,l]=u.useState(!1),[d,c]=u.useState([]),[f,p]=u.useState(""),[m,h]=u.useState([]),[g,b]=u.useState(!1),{agentSimulatorInfo:y,debugStatus:v,isConnecting:C,retryConnection:O}=A$(),[$,x]=u.useState(!1),[w,T]=u.useState("system"),[R,S]=u.useState(null),E=()=>{h([])},P=()=>x(H=>!H),I=y&&v==="normal",k=()=>y?v!=="normal"?"调试状态异常,无法发送消息":"Ask or input / use skills":"服务断开,无法发送消息",N=H=>{if(!I){mn.warning(k());return}const K=(d||[]).filter(ie=>ie.fileSource!=="openai"&&ie.status==="done"&&ie.url),X=(d||[]).filter(ie=>ie.fileSource==="openai"&&ie.status==="done"),Z=K.map(ie=>{var re,ce,fe;const me=ie.type||ie.mimeType||((re=ie.originFileObj)==null?void 0:re.type)||"application/octet-stream",ue=Are(me);return console.log("==== 文件上传类型检测 ====",{fileName:ie.name,mimeType:me,fileType:ue,originFileObj:(ce=ie.originFileObj)==null?void 0:ce.type}),{id:ie.uid||ie.id||`file_${Date.now()}_${Math.random().toString(36).slice(2,9)}`,name:ie.name||"未知文件",url:ie.url,type:ue,size:ie.size||((fe=ie.originFileObj)==null?void 0:fe.size)||0,mimeType:ie.type||ie.mimeType||"application/octet-stream",uploadTime:ie.uploadTime||Date.now(),status:"success",thumbnail:ue==="image"?ie.url:void 0}}),se=X.map(ie=>{let me=ie.name||ie.filename||"OpenAI 文件";return me.startsWith("[Agent] ")&&(me=me.replace("[Agent] ","")),{id:ie.agentFileId||ie.id,filename:me,purpose:ie.purpose||"file-extract",bytes:ie.size||ie.bytes||0,created_at:ie.created_at||ie.uploadTime||Date.now()}});i.current&&(i.current(H,m,Z,se),c([]),l(!1))},M=()=>{a.current&&a.current()},j=H=>{const X={uid:`openai_${H.id}_${Date.now()}`,id:H.id,name:H.filename||H.name||"OpenAI 文件",status:"done",percent:100,fileSource:"openai",agentFileId:H.id,size:H.bytes||0,purpose:H.purpose||"file-extract",created_at:H.created_at||Date.now(),uploadTime:H.created_at||Date.now(),url:void 0};c(Z=>[...Z,X]),l(!0)},{uploadFiles:A}=wre({bizName:Sd.bizName,scene:Sd.scene,getToken:async()=>{const H=await Do.get("/api/upload/token",{params:{bizName:Sd.bizName,scene:Sd.scene}});if(H.code===0)return H.data;throw new Error(`处理文件上传,获取上传Token失败: ${H.message}`)}}),D=H=>{const K=`manual_${Date.now()}_${Math.random().toString(36).slice(2,9)}`,X={uid:K,name:H.name,status:"uploading",originFileObj:H,percent:0,fileSource:"standard"};c(Z=>[...Z,X]),A([H],{onStart:()=>{},onComplete:Z=>{c(se=>se.map(ie=>ie.uid===K?{...ie,status:"done",url:Z.url,percent:100,fileSource:"standard"}:ie)),mn.success(`${Z.name} 上传成功`),l(!0)},onError:Z=>{c(se=>se.map(ie=>ie.uid===K?{...ie,status:"error"}:ie)),mn.error(`${H.name} 上传失败: ${Z.message}`)}})},L=async H=>{H!=null&&H.length&&H.forEach(K=>D(K))},z=(H,K)=>{if(!r){mn.warning("请先登录后再上传文件");return}const X=Array.from(K);L(X),l(!0)},q=B.jsx("div",{className:n.chatList,style:{display:"flex",flexDirection:"column"},children:m!=null&&m.length?B.jsx(W2.List,{style:{height:"100%",padding:"12px 16px"},items:m.map(H=>({content:H.content,role:H.role,messageRender:()=>B.jsx(xte,{message:H})})),roles:{assistant:{placement:"start",loadingRender:()=>B.jsxs(Ca,{children:[B.jsx(z7,{size:"small"}),"Custom loading..."]}),avatar:{icon:B.jsx(zP,{}),style:{background:t.colorInfoText}},styles:{content:{backgroundColor:"transparent",padding:0}}},user:{placement:"start",avatar:{...o(),size:40}}}}):B.jsx(pre,{onPromptSelect:N,onModuleChange:S,isDark:e})}),U=B.jsx(Mre,{loading:g,inputValue:f,canSendMessage:I||!1,isLoggedIn:r,attachedFiles:d,uploadConfig:ha,attachmentsOpen:s,onAttachmentsOpenChange:l,onAgentFileUpload:j,currentModule:R,onInputChange:H=>p(H||""),onSubmit:N,onCancel:M,onPasteFile:z,enqueueUpload:D,onRemoveFile:H=>{const K=d.indexOf(H),X=d.slice();X.splice(K,1),c(X)},getDisabledReason:k});return B.jsx(ure,{agentSimulatorInfo:y,children:B.jsxs("div",{className:n.copilotChat,style:{background:t.colorBgContainer,minHeight:"100vh",borderRadius:0,boxShadow:"none",padding:0,border:`1px solid ${t.colorBorder}`},children:[B.jsx(Pre,{agentSimulatorInfo:y,debugStatus:v,showSystemLogs:$,isConnecting:C,onRetryConnection:O,onClearChat:E,onToggleLogs:P}),B.jsx(Tre,{open:$,activeTab:w,onTabChange:T,onClose:()=>x(!1),agentSimulatorInfo:y,height:mre,debugStatus:v}),q,U,y&&B.jsx(Nre,{agentSimulatorInfo:y,onMessageUpdate:h,onRequestStart:()=>b(!0),onRequestEnd:()=>b(!1),onUserSubmit:H=>{i.current=H},onCancel:H=>{a.current=H}})]})})},Fre=()=>{const{styles:e}=$re(),n=(()=>{const i=new URLSearchParams(window.location.search);return i.get("isDark")?i.get("isDark")==="true":!1})(),[r,o]=u.useState(n);if(typeof require=="function"){const{ipcRenderer:i}=require("electron");i.on("setTheme",(a,s)=>{o(s)})}return B.jsx(gre,{isDark:r,children:B.jsx(_r,{theme:{algorithm:r?Or.darkAlgorithm:Or.defaultAlgorithm},children:B.jsx(sre,{children:B.jsx(qY,{children:B.jsx("div",{className:e.copilotWrapper,children:B.jsx(jre,{})})})})})})},F$=document.getElementById("root");if(!F$)throw new Error("Root element not found");_m.createRoot(F$).render(B.jsx(Fre,{}));
|