@lzm04521/ssh-mcp-server 1.1.5
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/LICENSE +15 -0
- package/README.md +157 -0
- package/admin-web/dist/assets/index-DXbr5DVR.js +494 -0
- package/admin-web/dist/index.html +6 -0
- package/admin-web/dist/logo.png +0 -0
- package/build/cli/command-line-parser.js +715 -0
- package/build/cli/command-line-parser.js.map +1 -0
- package/build/cli/run-mode.js +44 -0
- package/build/cli/run-mode.js.map +1 -0
- package/build/cli/stdio-proxy.js +304 -0
- package/build/cli/stdio-proxy.js.map +1 -0
- package/build/config/index.js +5 -0
- package/build/config/index.js.map +1 -0
- package/build/config/server.js +16 -0
- package/build/config/server.js.map +1 -0
- package/build/core/mcp-http-server.js +14 -0
- package/build/core/mcp-http-server.js.map +1 -0
- package/build/core/mcp-server.js +95 -0
- package/build/core/mcp-server.js.map +1 -0
- package/build/index.js +98 -0
- package/build/index.js.map +1 -0
- package/build/models/admin-types.js +135 -0
- package/build/models/admin-types.js.map +1 -0
- package/build/models/types.js +2 -0
- package/build/models/types.js.map +1 -0
- package/build/server/index.js +128 -0
- package/build/server/index.js.map +1 -0
- package/build/server/routes/admin.js +929 -0
- package/build/server/routes/admin.js.map +1 -0
- package/build/server/routes/audit.js +9 -0
- package/build/server/routes/audit.js.map +1 -0
- package/build/server/routes/backups.js +11 -0
- package/build/server/routes/backups.js.map +1 -0
- package/build/server/routes/mcp.js +52 -0
- package/build/server/routes/mcp.js.map +1 -0
- package/build/server/routes/settings.js +49 -0
- package/build/server/routes/settings.js.map +1 -0
- package/build/server/routes/system.js +147 -0
- package/build/server/routes/system.js.map +1 -0
- package/build/services/audit-store.js +123 -0
- package/build/services/audit-store.js.map +1 -0
- package/build/services/autostart-service.js +55 -0
- package/build/services/autostart-service.js.map +1 -0
- package/build/services/backup-scheduler.js +90 -0
- package/build/services/backup-scheduler.js.map +1 -0
- package/build/services/backup-service.js +113 -0
- package/build/services/backup-service.js.map +1 -0
- package/build/services/config-store.js +163 -0
- package/build/services/config-store.js.map +1 -0
- package/build/services/defaults.js +35 -0
- package/build/services/defaults.js.map +1 -0
- package/build/services/restart-helper.js +43 -0
- package/build/services/restart-helper.js.map +1 -0
- package/build/services/ssh-connection-manager.js +1775 -0
- package/build/services/ssh-connection-manager.js.map +1 -0
- package/build/services/update-service.js +93 -0
- package/build/services/update-service.js.map +1 -0
- package/build/tools/download.js +41 -0
- package/build/tools/download.js.map +1 -0
- package/build/tools/execute-command.js +53 -0
- package/build/tools/execute-command.js.map +1 -0
- package/build/tools/index.js +17 -0
- package/build/tools/index.js.map +1 -0
- package/build/tools/list-directory.js +57 -0
- package/build/tools/list-directory.js.map +1 -0
- package/build/tools/list-servers.js +51 -0
- package/build/tools/list-servers.js.map +1 -0
- package/build/tools/upload.js +41 -0
- package/build/tools/upload.js.map +1 -0
- package/build/utils/logger.js +28 -0
- package/build/utils/logger.js.map +1 -0
- package/build/utils/ssh-config-parser.js +195 -0
- package/build/utils/ssh-config-parser.js.map +1 -0
- package/build/utils/status-collector.js +226 -0
- package/build/utils/status-collector.js.map +1 -0
- package/build/utils/tool-error.js +20 -0
- package/build/utils/tool-error.js.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
function z$(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 a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{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 a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function Hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L$={exports:{}},Nf={},D$={exports:{}},Ft={};/**
|
|
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 Vc=Symbol.for("react.element"),MN=Symbol.for("react.portal"),jN=Symbol.for("react.fragment"),TN=Symbol.for("react.strict_mode"),_N=Symbol.for("react.profiler"),zN=Symbol.for("react.provider"),LN=Symbol.for("react.context"),DN=Symbol.for("react.forward_ref"),BN=Symbol.for("react.suspense"),kN=Symbol.for("react.memo"),AN=Symbol.for("react.lazy"),Ob=Symbol.iterator;function FN(e){return e===null||typeof e!="object"?null:(e=Ob&&e[Ob]||e["@@iterator"],typeof e=="function"?e:null)}var B$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k$=Object.assign,A$={};function Ql(e,t,n){this.props=e,this.context=t,this.refs=A$,this.updater=n||B$}Ql.prototype.isReactComponent={};Ql.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")};Ql.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F$(){}F$.prototype=Ql.prototype;function Xh(e,t,n){this.props=e,this.context=t,this.refs=A$,this.updater=n||B$}var Yh=Xh.prototype=new F$;Yh.constructor=Xh;k$(Yh,Ql.prototype);Yh.isPureReactComponent=!0;var Ib=Array.isArray,H$=Object.prototype.hasOwnProperty,Qh={current:null},V$={key:!0,ref:!0,__self:!0,__source:!0};function W$(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)H$.call(t,r)&&!V$.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Vc,type:e,key:a,ref:i,props:o,_owner:Qh.current}}function HN(e,t){return{$$typeof:Vc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Jh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vc}function VN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Pb=/\/+/g;function tp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?VN(""+e.key):t.toString(36)}function sd(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Vc:case MN:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+tp(i,0):r,Ib(o)?(n="",e!=null&&(n=e.replace(Pb,"$&/")+"/"),sd(o,t,n,"",function(u){return u})):o!=null&&(Jh(o)&&(o=HN(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Pb,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Ib(e))for(var s=0;s<e.length;s++){a=e[s];var c=r+tp(a,s);i+=sd(a,t,n,c,o)}else if(c=FN(e),typeof c=="function")for(e=c.call(e),s=0;!(a=e.next()).done;)a=a.value,c=r+tp(a,s++),i+=sd(a,t,n,c,o);else if(a==="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 i}function wu(e,t,n){if(e==null)return e;var r=[],o=0;return sd(e,r,"","",function(a){return t.call(n,a,o++)}),r}function WN(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 Pr={current:null},cd={transition:null},KN={ReactCurrentDispatcher:Pr,ReactCurrentBatchConfig:cd,ReactCurrentOwner:Qh};function K$(){throw Error("act(...) is not supported in production builds of React.")}Ft.Children={map:wu,forEach:function(e,t,n){wu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wu(e,function(){t++}),t},toArray:function(e){return wu(e,function(t){return t})||[]},only:function(e){if(!Jh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ft.Component=Ql;Ft.Fragment=jN;Ft.Profiler=_N;Ft.PureComponent=Xh;Ft.StrictMode=TN;Ft.Suspense=BN;Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KN;Ft.act=K$;Ft.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=k$({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=Qh.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)H$.call(t,c)&&!V$.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Vc,type:e.type,key:o,ref:a,props:r,_owner:i}};Ft.createContext=function(e){return e={$$typeof:LN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zN,_context:e},e.Consumer=e};Ft.createElement=W$;Ft.createFactory=function(e){var t=W$.bind(null,e);return t.type=e,t};Ft.createRef=function(){return{current:null}};Ft.forwardRef=function(e){return{$$typeof:DN,render:e}};Ft.isValidElement=Jh;Ft.lazy=function(e){return{$$typeof:AN,_payload:{_status:-1,_result:e},_init:WN}};Ft.memo=function(e,t){return{$$typeof:kN,type:e,compare:t===void 0?null:t}};Ft.startTransition=function(e){var t=cd.transition;cd.transition={};try{e()}finally{cd.transition=t}};Ft.unstable_act=K$;Ft.useCallback=function(e,t){return Pr.current.useCallback(e,t)};Ft.useContext=function(e){return Pr.current.useContext(e)};Ft.useDebugValue=function(){};Ft.useDeferredValue=function(e){return Pr.current.useDeferredValue(e)};Ft.useEffect=function(e,t){return Pr.current.useEffect(e,t)};Ft.useId=function(){return Pr.current.useId()};Ft.useImperativeHandle=function(e,t,n){return Pr.current.useImperativeHandle(e,t,n)};Ft.useInsertionEffect=function(e,t){return Pr.current.useInsertionEffect(e,t)};Ft.useLayoutEffect=function(e,t){return Pr.current.useLayoutEffect(e,t)};Ft.useMemo=function(e,t){return Pr.current.useMemo(e,t)};Ft.useReducer=function(e,t,n){return Pr.current.useReducer(e,t,n)};Ft.useRef=function(e){return Pr.current.useRef(e)};Ft.useState=function(e){return Pr.current.useState(e)};Ft.useSyncExternalStore=function(e,t,n){return Pr.current.useSyncExternalStore(e,t,n)};Ft.useTransition=function(){return Pr.current.useTransition()};Ft.version="18.3.1";D$.exports=Ft;var l=D$.exports;const Q=Hc(l),Wc=z$({__proto__:null,default:Q},[l]);/**
|
|
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 UN=l,GN=Symbol.for("react.element"),qN=Symbol.for("react.fragment"),XN=Object.prototype.hasOwnProperty,YN=UN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QN={key:!0,ref:!0,__self:!0,__source:!0};function U$(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)XN.call(t,r)&&!QN.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:GN,type:e,key:a,ref:i,props:o,_owner:YN.current}}Nf.Fragment=qN;Nf.jsx=U$;Nf.jsxs=U$;L$.exports=Nf;var F=L$.exports,jv={},G$={exports:{}},Yr={},q$={exports:{}},X$={};/**
|
|
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(z,L){var k=z.length;z.push(L);e:for(;0<k;){var H=k-1>>>1,K=z[H];if(0<o(K,L))z[H]=L,z[k]=K,k=H;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var L=z[0],k=z.pop();if(k!==L){z[0]=k;e:for(var H=0,K=z.length,B=K>>>1;H<B;){var U=2*(H+1)-1,G=z[U],q=U+1,te=z[q];if(0>o(G,k))q<K&&0>o(te,G)?(z[H]=te,z[q]=k,H=q):(z[H]=G,z[U]=k,H=U);else if(q<K&&0>o(te,k))z[H]=te,z[q]=k,H=q;else break e}}return L}function o(z,L){var k=z.sortIndex-L.sortIndex;return k!==0?k:z.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,f=null,m=3,p=!1,g=!1,y=!1,h=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=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(z){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=z)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function S(z){if(y=!1,C(z),!g)if(n(c)!==null)g=!0,j(x);else{var L=n(u);L!==null&&T(S,L.startTime-z)}}function x(z,L){g=!1,y&&(y=!1,v($),$=-1),p=!0;var k=m;try{for(C(L),f=n(c);f!==null&&(!(f.expirationTime>L)||z&&!R());){var H=f.callback;if(typeof H=="function"){f.callback=null,m=f.priorityLevel;var K=H(f.expirationTime<=L);L=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(c)&&r(c),C(L)}else r(c);f=n(c)}if(f!==null)var B=!0;else{var U=n(u);U!==null&&T(S,U.startTime-L),B=!1}return B}finally{f=null,m=k,p=!1}}var w=!1,O=null,$=-1,E=5,I=-1;function R(){return!(e.unstable_now()-I<E)}function M(){if(O!==null){var z=e.unstable_now();I=z;var L=!0;try{L=O(!0,z)}finally{L?N():(w=!1,O=null)}}else w=!1}var N;if(typeof b=="function")N=function(){b(M)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,_=P.port2;P.port1.onmessage=M,N=function(){_.postMessage(null)}}else N=function(){h(M,0)};function j(z){O=z,w||(w=!0,N())}function T(z,L){$=h(function(){z(e.unstable_now())},L)}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(z){z.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,j(x))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(z){switch(m){case 1:case 2:case 3:var L=3;break;default:L=m}var k=m;m=L;try{return z()}finally{m=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,L){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var k=m;m=z;try{return L()}finally{m=k}},e.unstable_scheduleCallback=function(z,L,k){var H=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?H+k:H):k=H,z){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=k+K,z={id:d++,callback:L,priorityLevel:z,startTime:k,expirationTime:K,sortIndex:-1},k>H?(z.sortIndex=k,t(u,z),n(c)===null&&z===n(u)&&(y?(v($),$=-1):y=!0,T(S,k-H))):(z.sortIndex=K,t(c,z),g||p||(g=!0,j(x))),z},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(z){var L=m;return function(){var k=m;m=L;try{return z.apply(this,arguments)}finally{m=k}}}})(X$);q$.exports=X$;var JN=q$.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 ZN=l,Xr=JN;function We(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 Y$=new Set,rc={};function Li(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(rc[e]=t,e=0;e<t.length;e++)Y$.add(t[e])}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tv=Object.prototype.hasOwnProperty,e4=/^[: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]*$/,Rb={},Nb={};function t4(e){return Tv.call(Nb,e)?!0:Tv.call(Rb,e)?!1:e4.test(e)?Nb[e]=!0:(Rb[e]=!0,!1)}function n4(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 r4(e,t,n,r){if(t===null||typeof t>"u"||n4(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 Rr(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ir[e]=new Rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ir[t]=new Rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ir[e]=new Rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ir[e]=new Rr(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){ir[e]=new Rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ir[e]=new Rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ir[e]=new Rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ir[e]=new Rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ir[e]=new Rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zh=/[\-:]([a-z])/g;function e0(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(Zh,e0);ir[t]=new Rr(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(Zh,e0);ir[t]=new Rr(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(Zh,e0);ir[t]=new Rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ir[e]=new Rr(e,1,!1,e.toLowerCase(),null,!1,!1)});ir.xlinkHref=new Rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ir[e]=new Rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function t0(e,t,n,r){var o=ir.hasOwnProperty(t)?ir[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(r4(t,n,o,r)&&(n=null),r||o===null?t4(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 ma=ZN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Eu=Symbol.for("react.element"),rl=Symbol.for("react.portal"),ol=Symbol.for("react.fragment"),n0=Symbol.for("react.strict_mode"),_v=Symbol.for("react.profiler"),Q$=Symbol.for("react.provider"),J$=Symbol.for("react.context"),r0=Symbol.for("react.forward_ref"),zv=Symbol.for("react.suspense"),Lv=Symbol.for("react.suspense_list"),o0=Symbol.for("react.memo"),Sa=Symbol.for("react.lazy"),Z$=Symbol.for("react.offscreen"),Mb=Symbol.iterator;function gs(e){return e===null||typeof e!="object"?null:(e=Mb&&e[Mb]||e["@@iterator"],typeof e=="function"?e:null)}var bn=Object.assign,np;function Ms(e){if(np===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);np=t&&t[1]||""}return`
|
|
34
|
+
`+np+e}var rp=!1;function op(e,t){if(!e||rp)return"";rp=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
+
`),a=r.stack.split(`
|
|
36
|
+
`),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==a[s]){var c=`
|
|
37
|
+
`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{rp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ms(e):""}function o4(e){switch(e.tag){case 5:return Ms(e.type);case 16:return Ms("Lazy");case 13:return Ms("Suspense");case 19:return Ms("SuspenseList");case 0:case 2:case 15:return e=op(e.type,!1),e;case 11:return e=op(e.type.render,!1),e;case 1:return e=op(e.type,!0),e;default:return""}}function Dv(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 ol:return"Fragment";case rl:return"Portal";case _v:return"Profiler";case n0:return"StrictMode";case zv:return"Suspense";case Lv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J$:return(e.displayName||"Context")+".Consumer";case Q$:return(e._context.displayName||"Context")+".Provider";case r0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case o0:return t=e.displayName||null,t!==null?t:Dv(e.type)||"Memo";case Sa:t=e._payload,e=e._init;try{return Dv(e(t))}catch{}}return null}function a4(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 Dv(t);case 8:return t===n0?"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 Ha(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ew(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i4(e){var t=ew(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ou(e){e._valueTracker||(e._valueTracker=i4(e))}function tw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ew(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zd(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 Bv(e,t){var n=t.checked;return bn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ha(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 nw(e,t){t=t.checked,t!=null&&t0(e,"checked",t,!1)}function kv(e,t){nw(e,t);var n=Ha(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")?Av(e,t.type,n):t.hasOwnProperty("defaultValue")&&Av(e,t.type,Ha(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tb(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 Av(e,t,n){(t!=="number"||zd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var js=Array.isArray;function bl(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=""+Ha(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 Fv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(We(91));return bn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _b(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(We(92));if(js(n)){if(1<n.length)throw Error(We(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ha(n)}}function rw(e,t){var n=Ha(t.value),r=Ha(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 zb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ow(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 Hv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ow(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Iu,aw=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(Iu=Iu||document.createElement("div"),Iu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Iu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var As={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},l4=["Webkit","ms","Moz","O"];Object.keys(As).forEach(function(e){l4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),As[t]=As[e]})});function iw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||As.hasOwnProperty(e)&&As[e]?(""+t).trim():t+"px"}function lw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=iw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var s4=bn({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 Vv(e,t){if(t){if(s4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(We(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(We(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(We(61))}if(t.style!=null&&typeof t.style!="object")throw Error(We(62))}}function Wv(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 Kv=null;function a0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Uv=null,Cl=null,Sl=null;function Lb(e){if(e=Gc(e)){if(typeof Uv!="function")throw Error(We(280));var t=e.stateNode;t&&(t=zf(t),Uv(e.stateNode,e.type,t))}}function sw(e){Cl?Sl?Sl.push(e):Sl=[e]:Cl=e}function cw(){if(Cl){var e=Cl,t=Sl;if(Sl=Cl=null,Lb(e),t)for(e=0;e<t.length;e++)Lb(t[e])}}function uw(e,t){return e(t)}function dw(){}var ap=!1;function fw(e,t,n){if(ap)return e(t,n);ap=!0;try{return uw(e,t,n)}finally{ap=!1,(Cl!==null||Sl!==null)&&(dw(),cw())}}function ac(e,t){var n=e.stateNode;if(n===null)return null;var r=zf(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(We(231,t,typeof n));return n}var Gv=!1;if(la)try{var hs={};Object.defineProperty(hs,"passive",{get:function(){Gv=!0}}),window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch{Gv=!1}function c4(e,t,n,r,o,a,i,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Fs=!1,Ld=null,Dd=!1,qv=null,u4={onError:function(e){Fs=!0,Ld=e}};function d4(e,t,n,r,o,a,i,s,c){Fs=!1,Ld=null,c4.apply(u4,arguments)}function f4(e,t,n,r,o,a,i,s,c){if(d4.apply(this,arguments),Fs){if(Fs){var u=Ld;Fs=!1,Ld=null}else throw Error(We(198));Dd||(Dd=!0,qv=u)}}function Di(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 mw(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 Db(e){if(Di(e)!==e)throw Error(We(188))}function m4(e){var t=e.alternate;if(!t){if(t=Di(e),t===null)throw Error(We(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Db(o),e;if(a===r)return Db(o),t;a=a.sibling}throw Error(We(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=a;break}if(s===r){i=!0,r=o,n=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===n){i=!0,n=a,r=o;break}if(s===r){i=!0,r=a,n=o;break}s=s.sibling}if(!i)throw Error(We(189))}}if(n.alternate!==r)throw Error(We(190))}if(n.tag!==3)throw Error(We(188));return n.stateNode.current===n?e:t}function pw(e){return e=m4(e),e!==null?vw(e):null}function vw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vw(e);if(t!==null)return t;e=e.sibling}return null}var gw=Xr.unstable_scheduleCallback,Bb=Xr.unstable_cancelCallback,p4=Xr.unstable_shouldYield,v4=Xr.unstable_requestPaint,Nn=Xr.unstable_now,g4=Xr.unstable_getCurrentPriorityLevel,i0=Xr.unstable_ImmediatePriority,hw=Xr.unstable_UserBlockingPriority,Bd=Xr.unstable_NormalPriority,h4=Xr.unstable_LowPriority,yw=Xr.unstable_IdlePriority,Mf=null,Go=null;function y4(e){if(Go&&typeof Go.onCommitFiberRoot=="function")try{Go.onCommitFiberRoot(Mf,e,void 0,(e.current.flags&128)===128)}catch{}}var Io=Math.clz32?Math.clz32:S4,b4=Math.log,C4=Math.LN2;function S4(e){return e>>>=0,e===0?32:31-(b4(e)/C4|0)|0}var Pu=64,Ru=4194304;function Ts(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 kd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Ts(s):(a&=i,a!==0&&(r=Ts(a)))}else i=n&~o,i!==0?r=Ts(i):a!==0&&(r=Ts(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&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-Io(t),o=1<<n,r|=e[n],t&=~o;return r}function x4(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 $4(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Io(a),s=1<<i,c=o[i];c===-1?(!(s&n)||s&r)&&(o[i]=x4(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Xv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bw(){var e=Pu;return Pu<<=1,!(Pu&4194240)&&(Pu=64),e}function ip(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Kc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Io(t),e[t]=n}function w4(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-Io(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function l0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Io(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Zt=0;function Cw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sw,s0,xw,$w,ww,Yv=!1,Nu=[],ja=null,Ta=null,_a=null,ic=new Map,lc=new Map,wa=[],E4="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 kb(e,t){switch(e){case"focusin":case"focusout":ja=null;break;case"dragenter":case"dragleave":Ta=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":ic.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lc.delete(t.pointerId)}}function ys(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=Gc(t),t!==null&&s0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function O4(e,t,n,r,o){switch(t){case"focusin":return ja=ys(ja,e,t,n,r,o),!0;case"dragenter":return Ta=ys(Ta,e,t,n,r,o),!0;case"mouseover":return _a=ys(_a,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return ic.set(a,ys(ic.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,lc.set(a,ys(lc.get(a)||null,e,t,n,r,o)),!0}return!1}function Ew(e){var t=vi(e.target);if(t!==null){var n=Di(t);if(n!==null){if(t=n.tag,t===13){if(t=mw(n),t!==null){e.blockedOn=t,ww(e.priority,function(){xw(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 ud(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kv=r,n.target.dispatchEvent(r),Kv=null}else return t=Gc(n),t!==null&&s0(t),e.blockedOn=n,!1;t.shift()}return!0}function Ab(e,t,n){ud(e)&&n.delete(t)}function I4(){Yv=!1,ja!==null&&ud(ja)&&(ja=null),Ta!==null&&ud(Ta)&&(Ta=null),_a!==null&&ud(_a)&&(_a=null),ic.forEach(Ab),lc.forEach(Ab)}function bs(e,t){e.blockedOn===t&&(e.blockedOn=null,Yv||(Yv=!0,Xr.unstable_scheduleCallback(Xr.unstable_NormalPriority,I4)))}function sc(e){function t(o){return bs(o,e)}if(0<Nu.length){bs(Nu[0],e);for(var n=1;n<Nu.length;n++){var r=Nu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ja!==null&&bs(ja,e),Ta!==null&&bs(Ta,e),_a!==null&&bs(_a,e),ic.forEach(t),lc.forEach(t),n=0;n<wa.length;n++)r=wa[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<wa.length&&(n=wa[0],n.blockedOn===null);)Ew(n),n.blockedOn===null&&wa.shift()}var xl=ma.ReactCurrentBatchConfig,Ad=!0;function P4(e,t,n,r){var o=Zt,a=xl.transition;xl.transition=null;try{Zt=1,c0(e,t,n,r)}finally{Zt=o,xl.transition=a}}function R4(e,t,n,r){var o=Zt,a=xl.transition;xl.transition=null;try{Zt=4,c0(e,t,n,r)}finally{Zt=o,xl.transition=a}}function c0(e,t,n,r){if(Ad){var o=Qv(e,t,n,r);if(o===null)gp(e,t,r,Fd,n),kb(e,r);else if(O4(o,e,t,n,r))r.stopPropagation();else if(kb(e,r),t&4&&-1<E4.indexOf(e)){for(;o!==null;){var a=Gc(o);if(a!==null&&Sw(a),a=Qv(e,t,n,r),a===null&&gp(e,t,r,Fd,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else gp(e,t,r,null,n)}}var Fd=null;function Qv(e,t,n,r){if(Fd=null,e=a0(r),e=vi(e),e!==null)if(t=Di(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mw(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 Fd=e,null}function Ow(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(g4()){case i0:return 1;case hw:return 4;case Bd:case h4:return 16;case yw:return 536870912;default:return 16}default:return 16}}var Oa=null,u0=null,dd=null;function Iw(){if(dd)return dd;var e,t=u0,n=t.length,r,o="value"in Oa?Oa.value:Oa.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[a-r];r++);return dd=o.slice(e,1<r?1-r:void 0)}function fd(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 Mu(){return!0}function Fb(){return!1}function Qr(e){function t(n,r,o,a,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Mu:Fb,this.isPropagationStopped=Fb,this}return bn(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=Mu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mu)},persist:function(){},isPersistent:Mu}),t}var Jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},d0=Qr(Jl),Uc=bn({},Jl,{view:0,detail:0}),N4=Qr(Uc),lp,sp,Cs,jf=bn({},Uc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:f0,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!==Cs&&(Cs&&e.type==="mousemove"?(lp=e.screenX-Cs.screenX,sp=e.screenY-Cs.screenY):sp=lp=0,Cs=e),lp)},movementY:function(e){return"movementY"in e?e.movementY:sp}}),Hb=Qr(jf),M4=bn({},jf,{dataTransfer:0}),j4=Qr(M4),T4=bn({},Uc,{relatedTarget:0}),cp=Qr(T4),_4=bn({},Jl,{animationName:0,elapsedTime:0,pseudoElement:0}),z4=Qr(_4),L4=bn({},Jl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),D4=Qr(L4),B4=bn({},Jl,{data:0}),Vb=Qr(B4),k4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A4={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"},F4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F4[e])?!!t[e]:!1}function f0(){return H4}var V4=bn({},Uc,{key:function(e){if(e.key){var t=k4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?A4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:f0,charCode:function(e){return e.type==="keypress"?fd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W4=Qr(V4),K4=bn({},jf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wb=Qr(K4),U4=bn({},Uc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:f0}),G4=Qr(U4),q4=bn({},Jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),X4=Qr(q4),Y4=bn({},jf,{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}),Q4=Qr(Y4),J4=[9,13,27,32],m0=la&&"CompositionEvent"in window,Hs=null;la&&"documentMode"in document&&(Hs=document.documentMode);var Z4=la&&"TextEvent"in window&&!Hs,Pw=la&&(!m0||Hs&&8<Hs&&11>=Hs),Kb=" ",Ub=!1;function Rw(e,t){switch(e){case"keyup":return J4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function e3(e,t){switch(e){case"compositionend":return Nw(t);case"keypress":return t.which!==32?null:(Ub=!0,Kb);case"textInput":return e=t.data,e===Kb&&Ub?null:e;default:return null}}function t3(e,t){if(al)return e==="compositionend"||!m0&&Rw(e,t)?(e=Iw(),dd=u0=Oa=null,al=!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 Pw&&t.locale!=="ko"?null:t.data;default:return null}}var n3={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 Gb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!n3[e.type]:t==="textarea"}function Mw(e,t,n,r){sw(r),t=Hd(t,"onChange"),0<t.length&&(n=new d0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vs=null,cc=null;function r3(e){Hw(e,0)}function Tf(e){var t=sl(e);if(tw(t))return e}function o3(e,t){if(e==="change")return t}var jw=!1;if(la){var up;if(la){var dp="oninput"in document;if(!dp){var qb=document.createElement("div");qb.setAttribute("oninput","return;"),dp=typeof qb.oninput=="function"}up=dp}else up=!1;jw=up&&(!document.documentMode||9<document.documentMode)}function Xb(){Vs&&(Vs.detachEvent("onpropertychange",Tw),cc=Vs=null)}function Tw(e){if(e.propertyName==="value"&&Tf(cc)){var t=[];Mw(t,cc,e,a0(e)),fw(r3,t)}}function a3(e,t,n){e==="focusin"?(Xb(),Vs=t,cc=n,Vs.attachEvent("onpropertychange",Tw)):e==="focusout"&&Xb()}function i3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tf(cc)}function l3(e,t){if(e==="click")return Tf(t)}function s3(e,t){if(e==="input"||e==="change")return Tf(t)}function c3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jo=typeof Object.is=="function"?Object.is:c3;function uc(e,t){if(jo(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(!Tv.call(t,o)||!jo(e[o],t[o]))return!1}return!0}function Yb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qb(e,t){var n=Yb(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=Yb(n)}}function _w(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_w(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zw(){for(var e=window,t=zd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zd(e.document)}return t}function p0(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 u3(e){var t=zw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_w(n.ownerDocument.documentElement,n)){if(r!==null&&p0(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,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Qb(n,a);var i=Qb(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 d3=la&&"documentMode"in document&&11>=document.documentMode,il=null,Jv=null,Ws=null,Zv=!1;function Jb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zv||il==null||il!==zd(r)||(r=il,"selectionStart"in r&&p0(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}),Ws&&uc(Ws,r)||(Ws=r,r=Hd(Jv,"onSelect"),0<r.length&&(t=new d0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=il)))}function ju(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ll={animationend:ju("Animation","AnimationEnd"),animationiteration:ju("Animation","AnimationIteration"),animationstart:ju("Animation","AnimationStart"),transitionend:ju("Transition","TransitionEnd")},fp={},Lw={};la&&(Lw=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function _f(e){if(fp[e])return fp[e];if(!ll[e])return e;var t=ll[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lw)return fp[e]=t[n];return e}var Dw=_f("animationend"),Bw=_f("animationiteration"),kw=_f("animationstart"),Aw=_f("transitionend"),Fw=new Map,Zb="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 Ya(e,t){Fw.set(e,t),Li(t,[e])}for(var mp=0;mp<Zb.length;mp++){var pp=Zb[mp],f3=pp.toLowerCase(),m3=pp[0].toUpperCase()+pp.slice(1);Ya(f3,"on"+m3)}Ya(Dw,"onAnimationEnd");Ya(Bw,"onAnimationIteration");Ya(kw,"onAnimationStart");Ya("dblclick","onDoubleClick");Ya("focusin","onFocus");Ya("focusout","onBlur");Ya(Aw,"onTransitionEnd");jl("onMouseEnter",["mouseout","mouseover"]);jl("onMouseLeave",["mouseout","mouseover"]);jl("onPointerEnter",["pointerout","pointerover"]);jl("onPointerLeave",["pointerout","pointerover"]);Li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Li("onBeforeInput",["compositionend","keypress","textInput","paste"]);Li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),p3=new Set("cancel close invalid load scroll toggle".split(" ").concat(_s));function eC(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,f4(r,t,void 0,e),e.currentTarget=null}function Hw(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 a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==a&&o.isPropagationStopped())break e;eC(o,s,u),a=c}else for(i=0;i<r.length;i++){if(s=r[i],c=s.instance,u=s.currentTarget,s=s.listener,c!==a&&o.isPropagationStopped())break e;eC(o,s,u),a=c}}}if(Dd)throw e=qv,Dd=!1,qv=null,e}function dn(e,t){var n=t[og];n===void 0&&(n=t[og]=new Set);var r=e+"__bubble";n.has(r)||(Vw(t,e,2,!1),n.add(r))}function vp(e,t,n){var r=0;t&&(r|=4),Vw(n,e,r,t)}var Tu="_reactListening"+Math.random().toString(36).slice(2);function dc(e){if(!e[Tu]){e[Tu]=!0,Y$.forEach(function(n){n!=="selectionchange"&&(p3.has(n)||vp(n,!1,e),vp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tu]||(t[Tu]=!0,vp("selectionchange",!1,t))}}function Vw(e,t,n,r){switch(Ow(t)){case 1:var o=P4;break;case 4:o=R4;break;default:o=c0}n=o.bind(null,t,n,e),o=void 0,!Gv||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 gp(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;s!==null;){if(i=vi(s),i===null)return;if(c=i.tag,c===5||c===6){r=a=i;continue e}s=s.parentNode}}r=r.return}fw(function(){var u=a,d=a0(n),f=[];e:{var m=Fw.get(e);if(m!==void 0){var p=d0,g=e;switch(e){case"keypress":if(fd(n)===0)break e;case"keydown":case"keyup":p=W4;break;case"focusin":g="focus",p=cp;break;case"focusout":g="blur",p=cp;break;case"beforeblur":case"afterblur":p=cp;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":p=Hb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=j4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=G4;break;case Dw:case Bw:case kw:p=z4;break;case Aw:p=X4;break;case"scroll":p=N4;break;case"wheel":p=Q4;break;case"copy":case"cut":case"paste":p=D4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Wb}var y=(t&4)!==0,h=!y&&e==="scroll",v=y?m!==null?m+"Capture":null:m;y=[];for(var b=u,C;b!==null;){C=b;var S=C.stateNode;if(C.tag===5&&S!==null&&(C=S,v!==null&&(S=ac(b,v),S!=null&&y.push(fc(b,S,C)))),h)break;b=b.return}0<y.length&&(m=new p(m,g,null,n,d),f.push({event:m,listeners:y}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==Kv&&(g=n.relatedTarget||n.fromElement)&&(vi(g)||g[sa]))break e;if((p||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=u,g=g?vi(g):null,g!==null&&(h=Di(g),g!==h||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=u),p!==g)){if(y=Hb,S="onMouseLeave",v="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(y=Wb,S="onPointerLeave",v="onPointerEnter",b="pointer"),h=p==null?m:sl(p),C=g==null?m:sl(g),m=new y(S,b+"leave",p,n,d),m.target=h,m.relatedTarget=C,S=null,vi(d)===u&&(y=new y(v,b+"enter",g,n,d),y.target=C,y.relatedTarget=h,S=y),h=S,p&&g)t:{for(y=p,v=g,b=0,C=y;C;C=Wi(C))b++;for(C=0,S=v;S;S=Wi(S))C++;for(;0<b-C;)y=Wi(y),b--;for(;0<C-b;)v=Wi(v),C--;for(;b--;){if(y===v||v!==null&&y===v.alternate)break t;y=Wi(y),v=Wi(v)}y=null}else y=null;p!==null&&tC(f,m,p,y,!1),g!==null&&h!==null&&tC(f,h,g,y,!0)}}e:{if(m=u?sl(u):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var x=o3;else if(Gb(m))if(jw)x=s3;else{x=i3;var w=a3}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(x=l3);if(x&&(x=x(e,u))){Mw(f,x,n,d);break e}w&&w(e,m,u),e==="focusout"&&(w=m._wrapperState)&&w.controlled&&m.type==="number"&&Av(m,"number",m.value)}switch(w=u?sl(u):window,e){case"focusin":(Gb(w)||w.contentEditable==="true")&&(il=w,Jv=u,Ws=null);break;case"focusout":Ws=Jv=il=null;break;case"mousedown":Zv=!0;break;case"contextmenu":case"mouseup":case"dragend":Zv=!1,Jb(f,n,d);break;case"selectionchange":if(d3)break;case"keydown":case"keyup":Jb(f,n,d)}var O;if(m0)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else al?Rw(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(Pw&&n.locale!=="ko"&&(al||$!=="onCompositionStart"?$==="onCompositionEnd"&&al&&(O=Iw()):(Oa=d,u0="value"in Oa?Oa.value:Oa.textContent,al=!0)),w=Hd(u,$),0<w.length&&($=new Vb($,e,null,n,d),f.push({event:$,listeners:w}),O?$.data=O:(O=Nw(n),O!==null&&($.data=O)))),(O=Z4?e3(e,n):t3(e,n))&&(u=Hd(u,"onBeforeInput"),0<u.length&&(d=new Vb("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=O))}Hw(f,t)})}function fc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hd(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=ac(e,n),a!=null&&r.unshift(fc(e,a,o)),a=ac(e,t),a!=null&&r.push(fc(e,a,o))),e=e.return}return r}function Wi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tC(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&u!==null&&(s=u,o?(c=ac(n,a),c!=null&&i.unshift(fc(n,c,s))):o||(c=ac(n,a),c!=null&&i.push(fc(n,c,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var v3=/\r\n?/g,g3=/\u0000|\uFFFD/g;function nC(e){return(typeof e=="string"?e:""+e).replace(v3,`
|
|
38
|
+
`).replace(g3,"")}function _u(e,t,n){if(t=nC(t),nC(e)!==t&&n)throw Error(We(425))}function Vd(){}var eg=null,tg=null;function ng(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 rg=typeof setTimeout=="function"?setTimeout:void 0,h3=typeof clearTimeout=="function"?clearTimeout:void 0,rC=typeof Promise=="function"?Promise:void 0,y3=typeof queueMicrotask=="function"?queueMicrotask:typeof rC<"u"?function(e){return rC.resolve(null).then(e).catch(b3)}:rg;function b3(e){setTimeout(function(){throw e})}function hp(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),sc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);sc(t)}function za(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 oC(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 Zl=Math.random().toString(36).slice(2),Ko="__reactFiber$"+Zl,mc="__reactProps$"+Zl,sa="__reactContainer$"+Zl,og="__reactEvents$"+Zl,C3="__reactListeners$"+Zl,S3="__reactHandles$"+Zl;function vi(e){var t=e[Ko];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sa]||n[Ko]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=oC(e);e!==null;){if(n=e[Ko])return n;e=oC(e)}return t}e=n,n=e.parentNode}return null}function Gc(e){return e=e[Ko]||e[sa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(We(33))}function zf(e){return e[mc]||null}var ag=[],cl=-1;function Qa(e){return{current:e}}function fn(e){0>cl||(e.current=ag[cl],ag[cl]=null,cl--)}function ln(e,t){cl++,ag[cl]=e.current,e.current=t}var Va={},gr=Qa(Va),Dr=Qa(!1),Ei=Va;function Tl(e,t){var n=e.type.contextTypes;if(!n)return Va;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Br(e){return e=e.childContextTypes,e!=null}function Wd(){fn(Dr),fn(gr)}function aC(e,t,n){if(gr.current!==Va)throw Error(We(168));ln(gr,t),ln(Dr,n)}function Ww(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(We(108,a4(e)||"Unknown",o));return bn({},n,r)}function Kd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Va,Ei=gr.current,ln(gr,e),ln(Dr,Dr.current),!0}function iC(e,t,n){var r=e.stateNode;if(!r)throw Error(We(169));n?(e=Ww(e,t,Ei),r.__reactInternalMemoizedMergedChildContext=e,fn(Dr),fn(gr),ln(gr,e)):fn(Dr),ln(Dr,n)}var na=null,Lf=!1,yp=!1;function Kw(e){na===null?na=[e]:na.push(e)}function x3(e){Lf=!0,Kw(e)}function Ja(){if(!yp&&na!==null){yp=!0;var e=0,t=Zt;try{var n=na;for(Zt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}na=null,Lf=!1}catch(o){throw na!==null&&(na=na.slice(e+1)),gw(i0,Ja),o}finally{Zt=t,yp=!1}}return null}var ul=[],dl=0,Ud=null,Gd=0,io=[],lo=0,Oi=null,ra=1,oa="";function li(e,t){ul[dl++]=Gd,ul[dl++]=Ud,Ud=e,Gd=t}function Uw(e,t,n){io[lo++]=ra,io[lo++]=oa,io[lo++]=Oi,Oi=e;var r=ra;e=oa;var o=32-Io(r)-1;r&=~(1<<o),n+=1;var a=32-Io(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,ra=1<<32-Io(t)+o|n<<o|r,oa=a+e}else ra=1<<a|n<<o|r,oa=e}function v0(e){e.return!==null&&(li(e,1),Uw(e,1,0))}function g0(e){for(;e===Ud;)Ud=ul[--dl],ul[dl]=null,Gd=ul[--dl],ul[dl]=null;for(;e===Oi;)Oi=io[--lo],io[lo]=null,oa=io[--lo],io[lo]=null,ra=io[--lo],io[lo]=null}var qr=null,Ur=null,gn=!1,Eo=null;function Gw(e,t){var n=so(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 lC(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,qr=e,Ur=za(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qr=e,Ur=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Oi!==null?{id:ra,overflow:oa}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=so(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qr=e,Ur=null,!0):!1;default:return!1}}function ig(e){return(e.mode&1)!==0&&(e.flags&128)===0}function lg(e){if(gn){var t=Ur;if(t){var n=t;if(!lC(e,t)){if(ig(e))throw Error(We(418));t=za(n.nextSibling);var r=qr;t&&lC(e,t)?Gw(r,n):(e.flags=e.flags&-4097|2,gn=!1,qr=e)}}else{if(ig(e))throw Error(We(418));e.flags=e.flags&-4097|2,gn=!1,qr=e}}}function sC(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qr=e}function zu(e){if(e!==qr)return!1;if(!gn)return sC(e),gn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ng(e.type,e.memoizedProps)),t&&(t=Ur)){if(ig(e))throw qw(),Error(We(418));for(;t;)Gw(e,t),t=za(t.nextSibling)}if(sC(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(We(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ur=za(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ur=null}}else Ur=qr?za(e.stateNode.nextSibling):null;return!0}function qw(){for(var e=Ur;e;)e=za(e.nextSibling)}function _l(){Ur=qr=null,gn=!1}function h0(e){Eo===null?Eo=[e]:Eo.push(e)}var $3=ma.ReactCurrentBatchConfig;function Ss(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(We(309));var r=n.stateNode}if(!r)throw Error(We(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var s=o.refs;i===null?delete s[a]:s[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(We(284));if(!n._owner)throw Error(We(290,e))}return e}function Lu(e,t){throw e=Object.prototype.toString.call(t),Error(We(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cC(e){var t=e._init;return t(e._payload)}function Xw(e){function t(v,b){if(e){var C=v.deletions;C===null?(v.deletions=[b],v.flags|=16):C.push(b)}}function n(v,b){if(!e)return null;for(;b!==null;)t(v,b),b=b.sibling;return null}function r(v,b){for(v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function o(v,b){return v=ka(v,b),v.index=0,v.sibling=null,v}function a(v,b,C){return v.index=C,e?(C=v.alternate,C!==null?(C=C.index,C<b?(v.flags|=2,b):C):(v.flags|=2,b)):(v.flags|=1048576,b)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,b,C,S){return b===null||b.tag!==6?(b=Ep(C,v.mode,S),b.return=v,b):(b=o(b,C),b.return=v,b)}function c(v,b,C,S){var x=C.type;return x===ol?d(v,b,C.props.children,S,C.key):b!==null&&(b.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sa&&cC(x)===b.type)?(S=o(b,C.props),S.ref=Ss(v,b,C),S.return=v,S):(S=bd(C.type,C.key,C.props,null,v.mode,S),S.ref=Ss(v,b,C),S.return=v,S)}function u(v,b,C,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=Op(C,v.mode,S),b.return=v,b):(b=o(b,C.children||[]),b.return=v,b)}function d(v,b,C,S,x){return b===null||b.tag!==7?(b=xi(C,v.mode,S,x),b.return=v,b):(b=o(b,C),b.return=v,b)}function f(v,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Ep(""+b,v.mode,C),b.return=v,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Eu:return C=bd(b.type,b.key,b.props,null,v.mode,C),C.ref=Ss(v,null,b),C.return=v,C;case rl:return b=Op(b,v.mode,C),b.return=v,b;case Sa:var S=b._init;return f(v,S(b._payload),C)}if(js(b)||gs(b))return b=xi(b,v.mode,C,null),b.return=v,b;Lu(v,b)}return null}function m(v,b,C,S){var x=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return x!==null?null:s(v,b,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Eu:return C.key===x?c(v,b,C,S):null;case rl:return C.key===x?u(v,b,C,S):null;case Sa:return x=C._init,m(v,b,x(C._payload),S)}if(js(C)||gs(C))return x!==null?null:d(v,b,C,S,null);Lu(v,C)}return null}function p(v,b,C,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(C)||null,s(b,v,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Eu:return v=v.get(S.key===null?C:S.key)||null,c(b,v,S,x);case rl:return v=v.get(S.key===null?C:S.key)||null,u(b,v,S,x);case Sa:var w=S._init;return p(v,b,C,w(S._payload),x)}if(js(S)||gs(S))return v=v.get(C)||null,d(b,v,S,x,null);Lu(b,S)}return null}function g(v,b,C,S){for(var x=null,w=null,O=b,$=b=0,E=null;O!==null&&$<C.length;$++){O.index>$?(E=O,O=null):E=O.sibling;var I=m(v,O,C[$],S);if(I===null){O===null&&(O=E);break}e&&O&&I.alternate===null&&t(v,O),b=a(I,b,$),w===null?x=I:w.sibling=I,w=I,O=E}if($===C.length)return n(v,O),gn&&li(v,$),x;if(O===null){for(;$<C.length;$++)O=f(v,C[$],S),O!==null&&(b=a(O,b,$),w===null?x=O:w.sibling=O,w=O);return gn&&li(v,$),x}for(O=r(v,O);$<C.length;$++)E=p(O,v,$,C[$],S),E!==null&&(e&&E.alternate!==null&&O.delete(E.key===null?$:E.key),b=a(E,b,$),w===null?x=E:w.sibling=E,w=E);return e&&O.forEach(function(R){return t(v,R)}),gn&&li(v,$),x}function y(v,b,C,S){var x=gs(C);if(typeof x!="function")throw Error(We(150));if(C=x.call(C),C==null)throw Error(We(151));for(var w=x=null,O=b,$=b=0,E=null,I=C.next();O!==null&&!I.done;$++,I=C.next()){O.index>$?(E=O,O=null):E=O.sibling;var R=m(v,O,I.value,S);if(R===null){O===null&&(O=E);break}e&&O&&R.alternate===null&&t(v,O),b=a(R,b,$),w===null?x=R:w.sibling=R,w=R,O=E}if(I.done)return n(v,O),gn&&li(v,$),x;if(O===null){for(;!I.done;$++,I=C.next())I=f(v,I.value,S),I!==null&&(b=a(I,b,$),w===null?x=I:w.sibling=I,w=I);return gn&&li(v,$),x}for(O=r(v,O);!I.done;$++,I=C.next())I=p(O,v,$,I.value,S),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?$:I.key),b=a(I,b,$),w===null?x=I:w.sibling=I,w=I);return e&&O.forEach(function(M){return t(v,M)}),gn&&li(v,$),x}function h(v,b,C,S){if(typeof C=="object"&&C!==null&&C.type===ol&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Eu:e:{for(var x=C.key,w=b;w!==null;){if(w.key===x){if(x=C.type,x===ol){if(w.tag===7){n(v,w.sibling),b=o(w,C.props.children),b.return=v,v=b;break e}}else if(w.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sa&&cC(x)===w.type){n(v,w.sibling),b=o(w,C.props),b.ref=Ss(v,w,C),b.return=v,v=b;break e}n(v,w);break}else t(v,w);w=w.sibling}C.type===ol?(b=xi(C.props.children,v.mode,S,C.key),b.return=v,v=b):(S=bd(C.type,C.key,C.props,null,v.mode,S),S.ref=Ss(v,b,C),S.return=v,v=S)}return i(v);case rl:e:{for(w=C.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(v,b.sibling),b=o(b,C.children||[]),b.return=v,v=b;break e}else{n(v,b);break}else t(v,b);b=b.sibling}b=Op(C,v.mode,S),b.return=v,v=b}return i(v);case Sa:return w=C._init,h(v,b,w(C._payload),S)}if(js(C))return g(v,b,C,S);if(gs(C))return y(v,b,C,S);Lu(v,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(v,b.sibling),b=o(b,C),b.return=v,v=b):(n(v,b),b=Ep(C,v.mode,S),b.return=v,v=b),i(v)):n(v,b)}return h}var zl=Xw(!0),Yw=Xw(!1),qd=Qa(null),Xd=null,fl=null,y0=null;function b0(){y0=fl=Xd=null}function C0(e){var t=qd.current;fn(qd),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 $l(e,t){Xd=e,y0=fl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Lr=!0),e.firstContext=null)}function uo(e){var t=e._currentValue;if(y0!==e)if(e={context:e,memoizedValue:t,next:null},fl===null){if(Xd===null)throw Error(We(308));fl=e,Xd.dependencies={lanes:0,firstContext:e}}else fl=fl.next=e;return t}var gi=null;function S0(e){gi===null?gi=[e]:gi.push(e)}function Qw(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,S0(t)):(n.next=o.next,o.next=n),t.interleaved=n,ca(e,r)}function ca(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 xa=!1;function x0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jw(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 aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,qt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ca(e,n)}return o=r.interleaved,o===null?(t.next=t,S0(r)):(t.next=o.next,o.next=t),r.interleaved=t,ca(e,n)}function md(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,l0(e,n)}}function uC(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,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 Yd(e,t,n,r){var o=e.updateQueue;xa=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(a!==null){var f=o.baseState;i=0,d=u=c=null,s=a;do{var m=s.lane,p=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(m=t,p=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(p,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,m=typeof g=="function"?g.call(p,f,m):g,m==null)break e;f=bn({},f,m);break e;case 2:xa=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else p={eventTime:p,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=p,c=f):d=d.next=p,i|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Pi|=i,e.lanes=i,e.memoizedState=f}}function dC(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(We(191,o));o.call(r)}}}var qc={},qo=Qa(qc),pc=Qa(qc),vc=Qa(qc);function hi(e){if(e===qc)throw Error(We(174));return e}function $0(e,t){switch(ln(vc,t),ln(pc,e),ln(qo,qc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hv(t,e)}fn(qo),ln(qo,t)}function Ll(){fn(qo),fn(pc),fn(vc)}function Zw(e){hi(vc.current);var t=hi(qo.current),n=Hv(t,e.type);t!==n&&(ln(pc,e),ln(qo,n))}function w0(e){pc.current===e&&(fn(qo),fn(pc))}var hn=Qa(0);function Qd(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 bp=[];function E0(){for(var e=0;e<bp.length;e++)bp[e]._workInProgressVersionPrimary=null;bp.length=0}var pd=ma.ReactCurrentDispatcher,Cp=ma.ReactCurrentBatchConfig,Ii=0,yn=null,kn=null,Xn=null,Jd=!1,Ks=!1,gc=0,w3=0;function dr(){throw Error(We(321))}function O0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jo(e[n],t[n]))return!1;return!0}function I0(e,t,n,r,o,a){if(Ii=a,yn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pd.current=e===null||e.memoizedState===null?P3:R3,e=n(r,o),Ks){a=0;do{if(Ks=!1,gc=0,25<=a)throw Error(We(301));a+=1,Xn=kn=null,t.updateQueue=null,pd.current=N3,e=n(r,o)}while(Ks)}if(pd.current=Zd,t=kn!==null&&kn.next!==null,Ii=0,Xn=kn=yn=null,Jd=!1,t)throw Error(We(300));return e}function P0(){var e=gc!==0;return gc=0,e}function Ho(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xn===null?yn.memoizedState=Xn=e:Xn=Xn.next=e,Xn}function fo(){if(kn===null){var e=yn.alternate;e=e!==null?e.memoizedState:null}else e=kn.next;var t=Xn===null?yn.memoizedState:Xn.next;if(t!==null)Xn=t,kn=e;else{if(e===null)throw Error(We(310));kn=e,e={memoizedState:kn.memoizedState,baseState:kn.baseState,baseQueue:kn.baseQueue,queue:kn.queue,next:null},Xn===null?yn.memoizedState=Xn=e:Xn=Xn.next=e}return Xn}function hc(e,t){return typeof t=="function"?t(e):t}function Sp(e){var t=fo(),n=t.queue;if(n===null)throw Error(We(311));n.lastRenderedReducer=e;var r=kn,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var s=i=null,c=null,u=a;do{var d=u.lane;if((Ii&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(s=c=f,i=r):c=c.next=f,yn.lanes|=d,Pi|=d}u=u.next}while(u!==null&&u!==a);c===null?i=r:c.next=s,jo(r,t.memoizedState)||(Lr=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,yn.lanes|=a,Pi|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xp(e){var t=fo(),n=t.queue;if(n===null)throw Error(We(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);jo(a,t.memoizedState)||(Lr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function eE(){}function tE(e,t){var n=yn,r=fo(),o=t(),a=!jo(r.memoizedState,o);if(a&&(r.memoizedState=o,Lr=!0),r=r.queue,R0(oE.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||Xn!==null&&Xn.memoizedState.tag&1){if(n.flags|=2048,yc(9,rE.bind(null,n,r,o,t),void 0,null),Yn===null)throw Error(We(349));Ii&30||nE(n,t,o)}return o}function nE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=yn.updateQueue,t===null?(t={lastEffect:null,stores:null},yn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rE(e,t,n,r){t.value=n,t.getSnapshot=r,aE(t)&&iE(e)}function oE(e,t,n){return n(function(){aE(t)&&iE(e)})}function aE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jo(e,n)}catch{return!0}}function iE(e){var t=ca(e,1);t!==null&&Po(t,e,1,-1)}function fC(e){var t=Ho();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hc,lastRenderedState:e},t.queue=e,e=e.dispatch=I3.bind(null,yn,e),[t.memoizedState,e]}function yc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=yn.updateQueue,t===null?(t={lastEffect:null,stores:null},yn.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 lE(){return fo().memoizedState}function vd(e,t,n,r){var o=Ho();yn.flags|=e,o.memoizedState=yc(1|t,n,void 0,r===void 0?null:r)}function Df(e,t,n,r){var o=fo();r=r===void 0?null:r;var a=void 0;if(kn!==null){var i=kn.memoizedState;if(a=i.destroy,r!==null&&O0(r,i.deps)){o.memoizedState=yc(t,n,a,r);return}}yn.flags|=e,o.memoizedState=yc(1|t,n,a,r)}function mC(e,t){return vd(8390656,8,e,t)}function R0(e,t){return Df(2048,8,e,t)}function sE(e,t){return Df(4,2,e,t)}function cE(e,t){return Df(4,4,e,t)}function uE(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 dE(e,t,n){return n=n!=null?n.concat([e]):null,Df(4,4,uE.bind(null,t,e),n)}function N0(){}function fE(e,t){var n=fo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&O0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mE(e,t){var n=fo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&O0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pE(e,t,n){return Ii&21?(jo(n,t)||(n=bw(),yn.lanes|=n,Pi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Lr=!0),e.memoizedState=n)}function E3(e,t){var n=Zt;Zt=n!==0&&4>n?n:4,e(!0);var r=Cp.transition;Cp.transition={};try{e(!1),t()}finally{Zt=n,Cp.transition=r}}function vE(){return fo().memoizedState}function O3(e,t,n){var r=Ba(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gE(e))hE(t,n);else if(n=Qw(e,t,n,r),n!==null){var o=Er();Po(n,e,r,o),yE(n,t,r)}}function I3(e,t,n){var r=Ba(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gE(e))hE(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,jo(s,i)){var c=t.interleaved;c===null?(o.next=o,S0(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Qw(e,t,o,r),n!==null&&(o=Er(),Po(n,e,r,o),yE(n,t,r))}}function gE(e){var t=e.alternate;return e===yn||t!==null&&t===yn}function hE(e,t){Ks=Jd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,l0(e,n)}}var Zd={readContext:uo,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},P3={readContext:uo,useCallback:function(e,t){return Ho().memoizedState=[e,t===void 0?null:t],e},useContext:uo,useEffect:mC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vd(4194308,4,uE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vd(4194308,4,e,t)},useInsertionEffect:function(e,t){return vd(4,2,e,t)},useMemo:function(e,t){var n=Ho();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ho();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=O3.bind(null,yn,e),[r.memoizedState,e]},useRef:function(e){var t=Ho();return e={current:e},t.memoizedState=e},useState:fC,useDebugValue:N0,useDeferredValue:function(e){return Ho().memoizedState=e},useTransition:function(){var e=fC(!1),t=e[0];return e=E3.bind(null,e[1]),Ho().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=yn,o=Ho();if(gn){if(n===void 0)throw Error(We(407));n=n()}else{if(n=t(),Yn===null)throw Error(We(349));Ii&30||nE(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,mC(oE.bind(null,r,a,e),[e]),r.flags|=2048,yc(9,rE.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ho(),t=Yn.identifierPrefix;if(gn){var n=oa,r=ra;n=(r&~(1<<32-Io(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=w3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},R3={readContext:uo,useCallback:fE,useContext:uo,useEffect:R0,useImperativeHandle:dE,useInsertionEffect:sE,useLayoutEffect:cE,useMemo:mE,useReducer:Sp,useRef:lE,useState:function(){return Sp(hc)},useDebugValue:N0,useDeferredValue:function(e){var t=fo();return pE(t,kn.memoizedState,e)},useTransition:function(){var e=Sp(hc)[0],t=fo().memoizedState;return[e,t]},useMutableSource:eE,useSyncExternalStore:tE,useId:vE,unstable_isNewReconciler:!1},N3={readContext:uo,useCallback:fE,useContext:uo,useEffect:R0,useImperativeHandle:dE,useInsertionEffect:sE,useLayoutEffect:cE,useMemo:mE,useReducer:xp,useRef:lE,useState:function(){return xp(hc)},useDebugValue:N0,useDeferredValue:function(e){var t=fo();return kn===null?t.memoizedState=e:pE(t,kn.memoizedState,e)},useTransition:function(){var e=xp(hc)[0],t=fo().memoizedState;return[e,t]},useMutableSource:eE,useSyncExternalStore:tE,useId:vE,unstable_isNewReconciler:!1};function xo(e,t){if(e&&e.defaultProps){t=bn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function cg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:bn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bf={isMounted:function(e){return(e=e._reactInternals)?Di(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Er(),o=Ba(e),a=aa(r,o);a.payload=t,n!=null&&(a.callback=n),t=La(e,a,o),t!==null&&(Po(t,e,o,r),md(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Er(),o=Ba(e),a=aa(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=La(e,a,o),t!==null&&(Po(t,e,o,r),md(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Er(),r=Ba(e),o=aa(n,r);o.tag=2,t!=null&&(o.callback=t),t=La(e,o,r),t!==null&&(Po(t,e,r,n),md(t,e,r))}};function pC(e,t,n,r,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,i):t.prototype&&t.prototype.isPureReactComponent?!uc(n,r)||!uc(o,a):!0}function bE(e,t,n){var r=!1,o=Va,a=t.contextType;return typeof a=="object"&&a!==null?a=uo(a):(o=Br(t)?Ei:gr.current,r=t.contextTypes,a=(r=r!=null)?Tl(e,o):Va),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function vC(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&&Bf.enqueueReplaceState(t,t.state,null)}function ug(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},x0(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=uo(a):(a=Br(t)?Ei:gr.current,o.context=Tl(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(cg(e,t,a,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&&Bf.enqueueReplaceState(o,o.state,null),Yd(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Dl(e,t){try{var n="",r=t;do n+=o4(r),r=r.return;while(r);var o=n}catch(a){o=`
|
|
39
|
+
Error generating stack: `+a.message+`
|
|
40
|
+
`+a.stack}return{value:e,source:t,stack:o,digest:null}}function $p(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var M3=typeof WeakMap=="function"?WeakMap:Map;function CE(e,t,n){n=aa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tf||(tf=!0,Sg=r),dg(e,t)},n}function SE(e,t,n){n=aa(-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(){dg(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){dg(e,t),typeof r!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function gC(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new M3;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=K3.bind(null,e,t,n),t.then(e,e))}function hC(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 yC(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=aa(-1,1),t.tag=2,La(n,t,1))),n.lanes|=1),e)}var j3=ma.ReactCurrentOwner,Lr=!1;function Sr(e,t,n,r){t.child=e===null?Yw(t,null,n,r):zl(t,e.child,n,r)}function bC(e,t,n,r,o){n=n.render;var a=t.ref;return $l(t,o),r=I0(e,t,n,r,a,o),n=P0(),e!==null&&!Lr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ua(e,t,o)):(gn&&n&&v0(t),t.flags|=1,Sr(e,t,r,o),t.child)}function CC(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!B0(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,xE(e,t,a,r,o)):(e=bd(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:uc,n(i,r)&&e.ref===t.ref)return ua(e,t,o)}return t.flags|=1,e=ka(a,r),e.ref=t.ref,e.return=t,t.child=e}function xE(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(uc(a,r)&&e.ref===t.ref)if(Lr=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(Lr=!0);else return t.lanes=e.lanes,ua(e,t,o)}return fg(e,t,n,r,o)}function $E(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ln(pl,Kr),Kr|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ln(pl,Kr),Kr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,ln(pl,Kr),Kr|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,ln(pl,Kr),Kr|=r;return Sr(e,t,o,n),t.child}function wE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function fg(e,t,n,r,o){var a=Br(n)?Ei:gr.current;return a=Tl(t,a),$l(t,o),n=I0(e,t,n,r,a,o),r=P0(),e!==null&&!Lr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ua(e,t,o)):(gn&&r&&v0(t),t.flags|=1,Sr(e,t,n,o),t.child)}function SC(e,t,n,r,o){if(Br(n)){var a=!0;Kd(t)}else a=!1;if($l(t,o),t.stateNode===null)gd(e,t),bE(t,n,r),ug(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=uo(u):(u=Br(n)?Ei:gr.current,u=Tl(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||c!==u)&&vC(t,i,r,u),xa=!1;var m=t.memoizedState;i.state=m,Yd(t,r,i,o),c=t.memoizedState,s!==r||m!==c||Dr.current||xa?(typeof d=="function"&&(cg(t,n,d,r),c=t.memoizedState),(s=xa||pC(t,n,s,r,m,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Jw(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:xo(t.type,s),i.props=u,f=t.pendingProps,m=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=uo(c):(c=Br(n)?Ei:gr.current,c=Tl(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||m!==c)&&vC(t,i,r,c),xa=!1,m=t.memoizedState,i.state=m,Yd(t,r,i,o);var g=t.memoizedState;s!==f||m!==g||Dr.current||xa?(typeof p=="function"&&(cg(t,n,p,r),g=t.memoizedState),(u=xa||pC(t,n,u,r,m,g,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,g,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,g,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return mg(e,t,n,r,a,o)}function mg(e,t,n,r,o,a){wE(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&iC(t,n,!1),ua(e,t,a);r=t.stateNode,j3.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=zl(t,e.child,null,a),t.child=zl(t,null,s,a)):Sr(e,t,s,a),t.memoizedState=r.state,o&&iC(t,n,!0),t.child}function EE(e){var t=e.stateNode;t.pendingContext?aC(e,t.pendingContext,t.pendingContext!==t.context):t.context&&aC(e,t.context,!1),$0(e,t.containerInfo)}function xC(e,t,n,r,o){return _l(),h0(o),t.flags|=256,Sr(e,t,n,r),t.child}var pg={dehydrated:null,treeContext:null,retryLane:0};function vg(e){return{baseLanes:e,cachePool:null,transitions:null}}function OE(e,t,n){var r=t.pendingProps,o=hn.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ln(hn,o&1),e===null)return lg(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):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=Ff(i,r,0,null),e=xi(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=vg(n),t.memoizedState=pg,e):M0(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return T3(e,t,i,r,s,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ka(o,c),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=ka(s,a):(a=xi(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?vg(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=pg,r}return a=e.child,e=a.sibling,r=ka(a,{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 M0(e,t){return t=Ff({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Du(e,t,n,r){return r!==null&&h0(r),zl(t,e.child,null,n),e=M0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function T3(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=$p(Error(We(422))),Du(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ff({mode:"visible",children:r.children},o,0,null),a=xi(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&zl(t,e.child,null,i),t.child.memoizedState=vg(i),t.memoizedState=pg,a);if(!(t.mode&1))return Du(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(We(419)),r=$p(a,r,void 0),Du(e,t,i,r)}if(s=(i&e.childLanes)!==0,Lr||s){if(r=Yn,r!==null){switch(i&-i){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|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,ca(e,o),Po(r,e,o,-1))}return D0(),r=$p(Error(We(421))),Du(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=U3.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ur=za(o.nextSibling),qr=t,gn=!0,Eo=null,e!==null&&(io[lo++]=ra,io[lo++]=oa,io[lo++]=Oi,ra=e.id,oa=e.overflow,Oi=t),t=M0(t,r.children),t.flags|=4096,t)}function $C(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sg(e.return,t,n)}function wp(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function IE(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Sr(e,t,r.children,n),r=hn.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&&$C(e,n,t);else if(e.tag===19)$C(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(hn,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&&Qd(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),wp(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Qd(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}wp(t,!0,n,null,a);break;case"together":wp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ua(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(We(153));if(t.child!==null){for(e=t.child,n=ka(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ka(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _3(e,t,n){switch(t.tag){case 3:EE(t),_l();break;case 5:Zw(t);break;case 1:Br(t.type)&&Kd(t);break;case 4:$0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ln(qd,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ln(hn,hn.current&1),t.flags|=128,null):n&t.child.childLanes?OE(e,t,n):(ln(hn,hn.current&1),e=ua(e,t,n),e!==null?e.sibling:null);ln(hn,hn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return IE(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ln(hn,hn.current),r)break;return null;case 22:case 23:return t.lanes=0,$E(e,t,n)}return ua(e,t,n)}var PE,gg,RE,NE;PE=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}};gg=function(){};RE=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,hi(qo.current);var a=null;switch(n){case"input":o=Bv(e,o),r=Bv(e,r),a=[];break;case"select":o=bn({},o,{value:void 0}),r=bn({},r,{value:void 0}),a=[];break;case"textarea":o=Fv(e,o),r=Fv(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vd)}Vv(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(rc.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(rc.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&dn("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};NE=function(e,t,n,r){n!==r&&(t.flags|=4)};function xs(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 fr(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 z3(e,t,n){var r=t.pendingProps;switch(g0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fr(t),null;case 1:return Br(t.type)&&Wd(),fr(t),null;case 3:return r=t.stateNode,Ll(),fn(Dr),fn(gr),E0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Eo!==null&&(wg(Eo),Eo=null))),gg(e,t),fr(t),null;case 5:w0(t);var o=hi(vc.current);if(n=t.type,e!==null&&t.stateNode!=null)RE(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(We(166));return fr(t),null}if(e=hi(qo.current),zu(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ko]=t,r[mc]=a,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<_s.length;o++)dn(_s[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":jb(r,a),dn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},dn("invalid",r);break;case"textarea":_b(r,a),dn("invalid",r)}Vv(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&_u(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&_u(r.textContent,s,e),o=["children",""+s]):rc.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&dn("scroll",r)}switch(n){case"input":Ou(r),Tb(r,a,!0);break;case"textarea":Ou(r),zb(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Vd)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ow(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ko]=t,e[mc]=r,PE(e,t,!1,!1),t.stateNode=e;e:{switch(i=Wv(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<_s.length;o++)dn(_s[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":jb(e,r),o=Bv(e,r),dn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=bn({},r,{value:void 0}),dn("invalid",e);break;case"textarea":_b(e,r),o=Fv(e,r),dn("invalid",e);break;default:o=r}Vv(n,o),s=o;for(a in s)if(s.hasOwnProperty(a)){var c=s[a];a==="style"?lw(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&aw(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&oc(e,c):typeof c=="number"&&oc(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(rc.hasOwnProperty(a)?c!=null&&a==="onScroll"&&dn("scroll",e):c!=null&&t0(e,a,c,i))}switch(n){case"input":Ou(e),Tb(e,r,!1);break;case"textarea":Ou(e),zb(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ha(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?bl(e,!!r.multiple,a,!1):r.defaultValue!=null&&bl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Vd)}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 fr(t),null;case 6:if(e&&t.stateNode!=null)NE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(We(166));if(n=hi(vc.current),hi(qo.current),zu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ko]=t,(a=r.nodeValue!==n)&&(e=qr,e!==null))switch(e.tag){case 3:_u(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_u(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ko]=t,t.stateNode=r}return fr(t),null;case 13:if(fn(hn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(gn&&Ur!==null&&t.mode&1&&!(t.flags&128))qw(),_l(),t.flags|=98560,a=!1;else if(a=zu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(We(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(We(317));a[Ko]=t}else _l(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fr(t),a=!1}else Eo!==null&&(wg(Eo),Eo=null),a=!0;if(!a)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||hn.current&1?An===0&&(An=3):D0())),t.updateQueue!==null&&(t.flags|=4),fr(t),null);case 4:return Ll(),gg(e,t),e===null&&dc(t.stateNode.containerInfo),fr(t),null;case 10:return C0(t.type._context),fr(t),null;case 17:return Br(t.type)&&Wd(),fr(t),null;case 19:if(fn(hn),a=t.memoizedState,a===null)return fr(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)xs(a,!1);else{if(An!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Qd(e),i!==null){for(t.flags|=128,xs(a,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ln(hn,hn.current&1|2),t.child}e=e.sibling}a.tail!==null&&Nn()>Bl&&(t.flags|=128,r=!0,xs(a,!1),t.lanes=4194304)}else{if(!r)if(e=Qd(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!gn)return fr(t),null}else 2*Nn()-a.renderingStartTime>Bl&&n!==1073741824&&(t.flags|=128,r=!0,xs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Nn(),t.sibling=null,n=hn.current,ln(hn,r?n&1|2:n&1),t):(fr(t),null);case 22:case 23:return L0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Kr&1073741824&&(fr(t),t.subtreeFlags&6&&(t.flags|=8192)):fr(t),null;case 24:return null;case 25:return null}throw Error(We(156,t.tag))}function L3(e,t){switch(g0(t),t.tag){case 1:return Br(t.type)&&Wd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ll(),fn(Dr),fn(gr),E0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return w0(t),null;case 13:if(fn(hn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(We(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fn(hn),null;case 4:return Ll(),null;case 10:return C0(t.type._context),null;case 22:case 23:return L0(),null;case 24:return null;default:return null}}var Bu=!1,vr=!1,D3=typeof WeakSet=="function"?WeakSet:Set,dt=null;function ml(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xn(e,t,r)}else n.current=null}function hg(e,t,n){try{n()}catch(r){xn(e,t,r)}}var wC=!1;function B3(e,t){if(eg=Ad,e=zw(),p0(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===n&&++u===o&&(s=i),m===a&&++d===r&&(c=i),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(tg={focusedElem:e,selectionRange:n},Ad=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){t=dt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,h=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:xo(t.type,y),h);v.__reactInternalSnapshotBeforeUpdate=b}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(We(163))}}catch(S){xn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}return g=wC,wC=!1,g}function Us(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 a=o.destroy;o.destroy=void 0,a!==void 0&&hg(t,n,a)}o=o.next}while(o!==r)}}function kf(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 yg(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 ME(e){var t=e.alternate;t!==null&&(e.alternate=null,ME(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ko],delete t[mc],delete t[og],delete t[C3],delete t[S3])),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 jE(e){return e.tag===5||e.tag===3||e.tag===4}function EC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jE(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 bg(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=Vd));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}function Cg(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(Cg(e,t,n),e=e.sibling;e!==null;)Cg(e,t,n),e=e.sibling}var or=null,$o=!1;function va(e,t,n){for(n=n.child;n!==null;)TE(e,t,n),n=n.sibling}function TE(e,t,n){if(Go&&typeof Go.onCommitFiberUnmount=="function")try{Go.onCommitFiberUnmount(Mf,n)}catch{}switch(n.tag){case 5:vr||ml(n,t);case 6:var r=or,o=$o;or=null,va(e,t,n),or=r,$o=o,or!==null&&($o?(e=or,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):or.removeChild(n.stateNode));break;case 18:or!==null&&($o?(e=or,n=n.stateNode,e.nodeType===8?hp(e.parentNode,n):e.nodeType===1&&hp(e,n),sc(e)):hp(or,n.stateNode));break;case 4:r=or,o=$o,or=n.stateNode.containerInfo,$o=!0,va(e,t,n),or=r,$o=o;break;case 0:case 11:case 14:case 15:if(!vr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&hg(n,t,i),o=o.next}while(o!==r)}va(e,t,n);break;case 1:if(!vr&&(ml(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){xn(n,t,s)}va(e,t,n);break;case 21:va(e,t,n);break;case 22:n.mode&1?(vr=(r=vr)||n.memoizedState!==null,va(e,t,n),vr=r):va(e,t,n);break;default:va(e,t,n)}}function OC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new D3),t.forEach(function(r){var o=G3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Co(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:or=s.stateNode,$o=!1;break e;case 3:or=s.stateNode.containerInfo,$o=!0;break e;case 4:or=s.stateNode.containerInfo,$o=!0;break e}s=s.return}if(or===null)throw Error(We(160));TE(a,i,o),or=null,$o=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){xn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_E(t,e),t=t.sibling}function _E(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Co(t,e),Ao(e),r&4){try{Us(3,e,e.return),kf(3,e)}catch(y){xn(e,e.return,y)}try{Us(5,e,e.return)}catch(y){xn(e,e.return,y)}}break;case 1:Co(t,e),Ao(e),r&512&&n!==null&&ml(n,n.return);break;case 5:if(Co(t,e),Ao(e),r&512&&n!==null&&ml(n,n.return),e.flags&32){var o=e.stateNode;try{oc(o,"")}catch(y){xn(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&nw(o,a),Wv(s,i);var u=Wv(s,a);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];d==="style"?lw(o,f):d==="dangerouslySetInnerHTML"?aw(o,f):d==="children"?oc(o,f):t0(o,d,f,u)}switch(s){case"input":kv(o,a);break;case"textarea":rw(o,a);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?bl(o,!!a.multiple,p,!1):m!==!!a.multiple&&(a.defaultValue!=null?bl(o,!!a.multiple,a.defaultValue,!0):bl(o,!!a.multiple,a.multiple?[]:"",!1))}o[mc]=a}catch(y){xn(e,e.return,y)}}break;case 6:if(Co(t,e),Ao(e),r&4){if(e.stateNode===null)throw Error(We(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(y){xn(e,e.return,y)}}break;case 3:if(Co(t,e),Ao(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{sc(t.containerInfo)}catch(y){xn(e,e.return,y)}break;case 4:Co(t,e),Ao(e);break;case 13:Co(t,e),Ao(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(_0=Nn())),r&4&&OC(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(vr=(u=vr)||d,Co(t,e),vr=u):Co(t,e),Ao(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(dt=e,d=e.child;d!==null;){for(f=dt=d;dt!==null;){switch(m=dt,p=m.child,m.tag){case 0:case 11:case 14:case 15:Us(4,m,m.return);break;case 1:ml(m,m.return);var g=m.stateNode;if(typeof g.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){xn(r,n,y)}}break;case 5:ml(m,m.return);break;case 22:if(m.memoizedState!==null){PC(f);continue}}p!==null?(p.return=m,dt=p):PC(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=iw("display",i))}catch(y){xn(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){xn(e,e.return,y)}}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;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Co(t,e),Ao(e),r&4&&OC(e);break;case 21:break;default:Co(t,e),Ao(e)}}function Ao(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jE(n)){var r=n;break e}n=n.return}throw Error(We(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(oc(o,""),r.flags&=-33);var a=EC(e);Cg(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=EC(e);bg(e,s,i);break;default:throw Error(We(161))}}catch(c){xn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function k3(e,t,n){dt=e,zE(e)}function zE(e,t,n){for(var r=(e.mode&1)!==0;dt!==null;){var o=dt,a=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Bu;if(!i){var s=o.alternate,c=s!==null&&s.memoizedState!==null||vr;s=Bu;var u=vr;if(Bu=i,(vr=c)&&!u)for(dt=o;dt!==null;)i=dt,c=i.child,i.tag===22&&i.memoizedState!==null?RC(o):c!==null?(c.return=i,dt=c):RC(o);for(;a!==null;)dt=a,zE(a),a=a.sibling;dt=o,Bu=s,vr=u}IC(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,dt=a):IC(e)}}function IC(e){for(;dt!==null;){var t=dt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:vr||kf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!vr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:xo(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&dC(t,a,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dC(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&sc(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(We(163))}vr||t.flags&512&&yg(t)}catch(m){xn(t,t.return,m)}}if(t===e){dt=null;break}if(n=t.sibling,n!==null){n.return=t.return,dt=n;break}dt=t.return}}function PC(e){for(;dt!==null;){var t=dt;if(t===e){dt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,dt=n;break}dt=t.return}}function RC(e){for(;dt!==null;){var t=dt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kf(4,t)}catch(c){xn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){xn(t,o,c)}}var a=t.return;try{yg(t)}catch(c){xn(t,a,c)}break;case 5:var i=t.return;try{yg(t)}catch(c){xn(t,i,c)}}}catch(c){xn(t,t.return,c)}if(t===e){dt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,dt=s;break}dt=t.return}}var A3=Math.ceil,ef=ma.ReactCurrentDispatcher,j0=ma.ReactCurrentOwner,co=ma.ReactCurrentBatchConfig,qt=0,Yn=null,Ln=null,ar=0,Kr=0,pl=Qa(0),An=0,bc=null,Pi=0,Af=0,T0=0,Gs=null,Tr=null,_0=0,Bl=1/0,ta=null,tf=!1,Sg=null,Da=null,ku=!1,Ia=null,nf=0,qs=0,xg=null,hd=-1,yd=0;function Er(){return qt&6?Nn():hd!==-1?hd:hd=Nn()}function Ba(e){return e.mode&1?qt&2&&ar!==0?ar&-ar:$3.transition!==null?(yd===0&&(yd=bw()),yd):(e=Zt,e!==0||(e=window.event,e=e===void 0?16:Ow(e.type)),e):1}function Po(e,t,n,r){if(50<qs)throw qs=0,xg=null,Error(We(185));Kc(e,n,r),(!(qt&2)||e!==Yn)&&(e===Yn&&(!(qt&2)&&(Af|=n),An===4&&Ea(e,ar)),kr(e,r),n===1&&qt===0&&!(t.mode&1)&&(Bl=Nn()+500,Lf&&Ja()))}function kr(e,t){var n=e.callbackNode;$4(e,t);var r=kd(e,e===Yn?ar:0);if(r===0)n!==null&&Bb(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bb(n),t===1)e.tag===0?x3(NC.bind(null,e)):Kw(NC.bind(null,e)),y3(function(){!(qt&6)&&Ja()}),n=null;else{switch(Cw(r)){case 1:n=i0;break;case 4:n=hw;break;case 16:n=Bd;break;case 536870912:n=yw;break;default:n=Bd}n=VE(n,LE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function LE(e,t){if(hd=-1,yd=0,qt&6)throw Error(We(327));var n=e.callbackNode;if(wl()&&e.callbackNode!==n)return null;var r=kd(e,e===Yn?ar:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=rf(e,r);else{t=r;var o=qt;qt|=2;var a=BE();(Yn!==e||ar!==t)&&(ta=null,Bl=Nn()+500,Si(e,t));do try{V3();break}catch(s){DE(e,s)}while(!0);b0(),ef.current=a,qt=o,Ln!==null?t=0:(Yn=null,ar=0,t=An)}if(t!==0){if(t===2&&(o=Xv(e),o!==0&&(r=o,t=$g(e,o))),t===1)throw n=bc,Si(e,0),Ea(e,r),kr(e,Nn()),n;if(t===6)Ea(e,r);else{if(o=e.current.alternate,!(r&30)&&!F3(o)&&(t=rf(e,r),t===2&&(a=Xv(e),a!==0&&(r=a,t=$g(e,a))),t===1))throw n=bc,Si(e,0),Ea(e,r),kr(e,Nn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(We(345));case 2:si(e,Tr,ta);break;case 3:if(Ea(e,r),(r&130023424)===r&&(t=_0+500-Nn(),10<t)){if(kd(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Er(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=rg(si.bind(null,e,Tr,ta),t);break}si(e,Tr,ta);break;case 4:if(Ea(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Io(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Nn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*A3(r/1960))-r,10<r){e.timeoutHandle=rg(si.bind(null,e,Tr,ta),r);break}si(e,Tr,ta);break;case 5:si(e,Tr,ta);break;default:throw Error(We(329))}}}return kr(e,Nn()),e.callbackNode===n?LE.bind(null,e):null}function $g(e,t){var n=Gs;return e.current.memoizedState.isDehydrated&&(Si(e,t).flags|=256),e=rf(e,t),e!==2&&(t=Tr,Tr=n,t!==null&&wg(t)),e}function wg(e){Tr===null?Tr=e:Tr.push.apply(Tr,e)}function F3(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],a=o.getSnapshot;o=o.value;try{if(!jo(a(),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 Ea(e,t){for(t&=~T0,t&=~Af,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Io(t),r=1<<n;e[n]=-1,t&=~r}}function NC(e){if(qt&6)throw Error(We(327));wl();var t=kd(e,0);if(!(t&1))return kr(e,Nn()),null;var n=rf(e,t);if(e.tag!==0&&n===2){var r=Xv(e);r!==0&&(t=r,n=$g(e,r))}if(n===1)throw n=bc,Si(e,0),Ea(e,t),kr(e,Nn()),n;if(n===6)throw Error(We(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,si(e,Tr,ta),kr(e,Nn()),null}function z0(e,t){var n=qt;qt|=1;try{return e(t)}finally{qt=n,qt===0&&(Bl=Nn()+500,Lf&&Ja())}}function Ri(e){Ia!==null&&Ia.tag===0&&!(qt&6)&&wl();var t=qt;qt|=1;var n=co.transition,r=Zt;try{if(co.transition=null,Zt=1,e)return e()}finally{Zt=r,co.transition=n,qt=t,!(qt&6)&&Ja()}}function L0(){Kr=pl.current,fn(pl)}function Si(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,h3(n)),Ln!==null)for(n=Ln.return;n!==null;){var r=n;switch(g0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Wd();break;case 3:Ll(),fn(Dr),fn(gr),E0();break;case 5:w0(r);break;case 4:Ll();break;case 13:fn(hn);break;case 19:fn(hn);break;case 10:C0(r.type._context);break;case 22:case 23:L0()}n=n.return}if(Yn=e,Ln=e=ka(e.current,null),ar=Kr=t,An=0,bc=null,T0=Af=Pi=0,Tr=Gs=null,gi!==null){for(t=0;t<gi.length;t++)if(n=gi[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var i=a.next;a.next=o,r.next=i}n.pending=r}gi=null}return e}function DE(e,t){do{var n=Ln;try{if(b0(),pd.current=Zd,Jd){for(var r=yn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Jd=!1}if(Ii=0,Xn=kn=yn=null,Ks=!1,gc=0,j0.current=null,n===null||n.return===null){An=1,bc=t,Ln=null;break}e:{var a=e,i=n.return,s=n,c=t;if(t=ar,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=hC(i);if(p!==null){p.flags&=-257,yC(p,i,s,a,t),p.mode&1&&gC(a,u,t),t=p,c=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(c),t.updateQueue=y}else g.add(c);break e}else{if(!(t&1)){gC(a,u,t),D0();break e}c=Error(We(426))}}else if(gn&&s.mode&1){var h=hC(i);if(h!==null){!(h.flags&65536)&&(h.flags|=256),yC(h,i,s,a,t),h0(Dl(c,s));break e}}a=c=Dl(c,s),An!==4&&(An=2),Gs===null?Gs=[a]:Gs.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=CE(a,c,t);uC(a,v);break e;case 1:s=c;var b=a.type,C=a.stateNode;if(!(a.flags&128)&&(typeof b.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Da===null||!Da.has(C)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=SE(a,s,t);uC(a,S);break e}}a=a.return}while(a!==null)}AE(n)}catch(x){t=x,Ln===n&&n!==null&&(Ln=n=n.return);continue}break}while(!0)}function BE(){var e=ef.current;return ef.current=Zd,e===null?Zd:e}function D0(){(An===0||An===3||An===2)&&(An=4),Yn===null||!(Pi&268435455)&&!(Af&268435455)||Ea(Yn,ar)}function rf(e,t){var n=qt;qt|=2;var r=BE();(Yn!==e||ar!==t)&&(ta=null,Si(e,t));do try{H3();break}catch(o){DE(e,o)}while(!0);if(b0(),qt=n,ef.current=r,Ln!==null)throw Error(We(261));return Yn=null,ar=0,An}function H3(){for(;Ln!==null;)kE(Ln)}function V3(){for(;Ln!==null&&!p4();)kE(Ln)}function kE(e){var t=HE(e.alternate,e,Kr);e.memoizedProps=e.pendingProps,t===null?AE(e):Ln=t,j0.current=null}function AE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=L3(n,t),n!==null){n.flags&=32767,Ln=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{An=6,Ln=null;return}}else if(n=z3(n,t,Kr),n!==null){Ln=n;return}if(t=t.sibling,t!==null){Ln=t;return}Ln=t=e}while(t!==null);An===0&&(An=5)}function si(e,t,n){var r=Zt,o=co.transition;try{co.transition=null,Zt=1,W3(e,t,n,r)}finally{co.transition=o,Zt=r}return null}function W3(e,t,n,r){do wl();while(Ia!==null);if(qt&6)throw Error(We(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(We(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(w4(e,a),e===Yn&&(Ln=Yn=null,ar=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ku||(ku=!0,VE(Bd,function(){return wl(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=co.transition,co.transition=null;var i=Zt;Zt=1;var s=qt;qt|=4,j0.current=null,B3(e,n),_E(n,e),u3(tg),Ad=!!eg,tg=eg=null,e.current=n,k3(n),v4(),qt=s,Zt=i,co.transition=a}else e.current=n;if(ku&&(ku=!1,Ia=e,nf=o),a=e.pendingLanes,a===0&&(Da=null),y4(n.stateNode),kr(e,Nn()),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(tf)throw tf=!1,e=Sg,Sg=null,e;return nf&1&&e.tag!==0&&wl(),a=e.pendingLanes,a&1?e===xg?qs++:(qs=0,xg=e):qs=0,Ja(),null}function wl(){if(Ia!==null){var e=Cw(nf),t=co.transition,n=Zt;try{if(co.transition=null,Zt=16>e?16:e,Ia===null)var r=!1;else{if(e=Ia,Ia=null,nf=0,qt&6)throw Error(We(331));var o=qt;for(qt|=4,dt=e.current;dt!==null;){var a=dt,i=a.child;if(dt.flags&16){var s=a.deletions;if(s!==null){for(var c=0;c<s.length;c++){var u=s[c];for(dt=u;dt!==null;){var d=dt;switch(d.tag){case 0:case 11:case 15:Us(8,d,a)}var f=d.child;if(f!==null)f.return=d,dt=f;else for(;dt!==null;){d=dt;var m=d.sibling,p=d.return;if(ME(d),d===u){dt=null;break}if(m!==null){m.return=p,dt=m;break}dt=p}}}var g=a.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var h=y.sibling;y.sibling=null,y=h}while(y!==null)}}dt=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,dt=i;else e:for(;dt!==null;){if(a=dt,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Us(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,dt=v;break e}dt=a.return}}var b=e.current;for(dt=b;dt!==null;){i=dt;var C=i.child;if(i.subtreeFlags&2064&&C!==null)C.return=i,dt=C;else e:for(i=b;dt!==null;){if(s=dt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:kf(9,s)}}catch(x){xn(s,s.return,x)}if(s===i){dt=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,dt=S;break e}dt=s.return}}if(qt=o,Ja(),Go&&typeof Go.onPostCommitFiberRoot=="function")try{Go.onPostCommitFiberRoot(Mf,e)}catch{}r=!0}return r}finally{Zt=n,co.transition=t}}return!1}function MC(e,t,n){t=Dl(n,t),t=CE(e,t,1),e=La(e,t,1),t=Er(),e!==null&&(Kc(e,1,t),kr(e,t))}function xn(e,t,n){if(e.tag===3)MC(e,e,n);else for(;t!==null;){if(t.tag===3){MC(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Da===null||!Da.has(r))){e=Dl(n,e),e=SE(t,e,1),t=La(t,e,1),e=Er(),t!==null&&(Kc(t,1,e),kr(t,e));break}}t=t.return}}function K3(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Er(),e.pingedLanes|=e.suspendedLanes&n,Yn===e&&(ar&n)===n&&(An===4||An===3&&(ar&130023424)===ar&&500>Nn()-_0?Si(e,0):T0|=n),kr(e,t)}function FE(e,t){t===0&&(e.mode&1?(t=Ru,Ru<<=1,!(Ru&130023424)&&(Ru=4194304)):t=1);var n=Er();e=ca(e,t),e!==null&&(Kc(e,t,n),kr(e,n))}function U3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),FE(e,n)}function G3(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(We(314))}r!==null&&r.delete(t),FE(e,n)}var HE;HE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dr.current)Lr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Lr=!1,_3(e,t,n);Lr=!!(e.flags&131072)}else Lr=!1,gn&&t.flags&1048576&&Uw(t,Gd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gd(e,t),e=t.pendingProps;var o=Tl(t,gr.current);$l(t,n),o=I0(null,t,r,e,o,n);var a=P0();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,Br(r)?(a=!0,Kd(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,x0(t),o.updater=Bf,t.stateNode=o,o._reactInternals=t,ug(t,r,e,n),t=mg(null,t,r,!0,a,n)):(t.tag=0,gn&&a&&v0(t),Sr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=X3(r),e=xo(r,e),o){case 0:t=fg(null,t,r,e,n);break e;case 1:t=SC(null,t,r,e,n);break e;case 11:t=bC(null,t,r,e,n);break e;case 14:t=CC(null,t,r,xo(r.type,e),n);break e}throw Error(We(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),fg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),SC(e,t,r,o,n);case 3:e:{if(EE(t),e===null)throw Error(We(387));r=t.pendingProps,a=t.memoizedState,o=a.element,Jw(e,t),Yd(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Dl(Error(We(423)),t),t=xC(e,t,r,n,o);break e}else if(r!==o){o=Dl(Error(We(424)),t),t=xC(e,t,r,n,o);break e}else for(Ur=za(t.stateNode.containerInfo.firstChild),qr=t,gn=!0,Eo=null,n=Yw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_l(),r===o){t=ua(e,t,n);break e}Sr(e,t,r,n)}t=t.child}return t;case 5:return Zw(t),e===null&&lg(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,ng(r,o)?i=null:a!==null&&ng(r,a)&&(t.flags|=32),wE(e,t),Sr(e,t,i,n),t.child;case 6:return e===null&&lg(t),null;case 13:return OE(e,t,n);case 4:return $0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zl(t,null,r,n):Sr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),bC(e,t,r,o,n);case 7:return Sr(e,t,t.pendingProps,n),t.child;case 8:return Sr(e,t,t.pendingProps.children,n),t.child;case 12:return Sr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,ln(qd,r._currentValue),r._currentValue=i,a!==null)if(jo(a.value,i)){if(a.children===o.children&&!Dr.current){t=ua(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=aa(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),sg(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(We(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),sg(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Sr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$l(t,n),o=uo(o),r=r(o),t.flags|=1,Sr(e,t,r,n),t.child;case 14:return r=t.type,o=xo(r,t.pendingProps),o=xo(r.type,o),CC(e,t,r,o,n);case 15:return xE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),gd(e,t),t.tag=1,Br(r)?(e=!0,Kd(t)):e=!1,$l(t,n),bE(t,r,o),ug(t,r,o,n),mg(null,t,r,!0,e,n);case 19:return IE(e,t,n);case 22:return $E(e,t,n)}throw Error(We(156,t.tag))};function VE(e,t){return gw(e,t)}function q3(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 so(e,t,n,r){return new q3(e,t,n,r)}function B0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X3(e){if(typeof e=="function")return B0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===r0)return 11;if(e===o0)return 14}return 2}function ka(e,t){var n=e.alternate;return n===null?(n=so(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 bd(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")B0(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ol:return xi(n.children,o,a,t);case n0:i=8,o|=8;break;case _v:return e=so(12,n,t,o|2),e.elementType=_v,e.lanes=a,e;case zv:return e=so(13,n,t,o),e.elementType=zv,e.lanes=a,e;case Lv:return e=so(19,n,t,o),e.elementType=Lv,e.lanes=a,e;case Z$:return Ff(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q$:i=10;break e;case J$:i=9;break e;case r0:i=11;break e;case o0:i=14;break e;case Sa:i=16,r=null;break e}throw Error(We(130,e==null?e:typeof e,""))}return t=so(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function xi(e,t,n,r){return e=so(7,e,r,t),e.lanes=n,e}function Ff(e,t,n,r){return e=so(22,e,r,t),e.elementType=Z$,e.lanes=n,e.stateNode={isHidden:!1},e}function Ep(e,t,n){return e=so(6,e,null,t),e.lanes=n,e}function Op(e,t,n){return t=so(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Y3(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=ip(0),this.expirationTimes=ip(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ip(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function k0(e,t,n,r,o,a,i,s,c){return e=new Y3(e,t,n,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=so(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},x0(a),e}function Q3(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function WE(e){if(!e)return Va;e=e._reactInternals;e:{if(Di(e)!==e||e.tag!==1)throw Error(We(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Br(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(We(171))}if(e.tag===1){var n=e.type;if(Br(n))return Ww(e,n,t)}return t}function KE(e,t,n,r,o,a,i,s,c){return e=k0(n,r,!0,e,o,a,i,s,c),e.context=WE(null),n=e.current,r=Er(),o=Ba(n),a=aa(r,o),a.callback=t??null,La(n,a,o),e.current.lanes=o,Kc(e,o,r),kr(e,r),e}function Hf(e,t,n,r){var o=t.current,a=Er(),i=Ba(o);return n=WE(n),t.context===null?t.context=n:t.pendingContext=n,t=aa(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=La(o,t,i),e!==null&&(Po(e,o,i,a),md(e,o,i)),i}function of(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 jC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function A0(e,t){jC(e,t),(e=e.alternate)&&jC(e,t)}function J3(){return null}var UE=typeof reportError=="function"?reportError:function(e){console.error(e)};function F0(e){this._internalRoot=e}Vf.prototype.render=F0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(We(409));Hf(e,t,null,null)};Vf.prototype.unmount=F0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ri(function(){Hf(null,e,null,null)}),t[sa]=null}};function Vf(e){this._internalRoot=e}Vf.prototype.unstable_scheduleHydration=function(e){if(e){var t=$w();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wa.length&&t!==0&&t<wa[n].priority;n++);wa.splice(n,0,e),n===0&&Ew(e)}};function H0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function TC(){}function Z3(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var u=of(i);a.call(u)}}var i=KE(t,r,e,0,null,!1,!1,"",TC);return e._reactRootContainer=i,e[sa]=i.current,dc(e.nodeType===8?e.parentNode:e),Ri(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=of(c);s.call(u)}}var c=k0(e,0,!1,null,null,!1,!1,"",TC);return e._reactRootContainer=c,e[sa]=c.current,dc(e.nodeType===8?e.parentNode:e),Ri(function(){Hf(t,c,n,r)}),c}function Kf(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var s=o;o=function(){var c=of(i);s.call(c)}}Hf(t,i,e,o)}else i=Z3(n,t,e,o,r);return of(i)}Sw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ts(t.pendingLanes);n!==0&&(l0(t,n|1),kr(t,Nn()),!(qt&6)&&(Bl=Nn()+500,Ja()))}break;case 13:Ri(function(){var r=ca(e,1);if(r!==null){var o=Er();Po(r,e,1,o)}}),A0(e,1)}};s0=function(e){if(e.tag===13){var t=ca(e,134217728);if(t!==null){var n=Er();Po(t,e,134217728,n)}A0(e,134217728)}};xw=function(e){if(e.tag===13){var t=Ba(e),n=ca(e,t);if(n!==null){var r=Er();Po(n,e,t,r)}A0(e,t)}};$w=function(){return Zt};ww=function(e,t){var n=Zt;try{return Zt=e,t()}finally{Zt=n}};Uv=function(e,t,n){switch(t){case"input":if(kv(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=zf(r);if(!o)throw Error(We(90));tw(r),kv(r,o)}}}break;case"textarea":rw(e,n);break;case"select":t=n.value,t!=null&&bl(e,!!n.multiple,t,!1)}};uw=z0;dw=Ri;var eM={usingClientEntryPoint:!1,Events:[Gc,sl,zf,sw,cw,z0]},$s={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tM={bundleType:$s.bundleType,version:$s.version,rendererPackageName:$s.rendererPackageName,rendererConfig:$s.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ma.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pw(e),e===null?null:e.stateNode},findFiberByHostInstance:$s.findFiberByHostInstance||J3,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 Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{Mf=Au.inject(tM),Go=Au}catch{}}Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eM;Yr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!H0(t))throw Error(We(200));return Q3(e,t,null,n)};Yr.createRoot=function(e,t){if(!H0(e))throw Error(We(299));var n=!1,r="",o=UE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=k0(e,1,!1,null,null,n,!1,r,o),e[sa]=t.current,dc(e.nodeType===8?e.parentNode:e),new F0(t)};Yr.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(We(188)):(e=Object.keys(e).join(","),Error(We(268,e)));return e=pw(t),e=e===null?null:e.stateNode,e};Yr.flushSync=function(e){return Ri(e)};Yr.hydrate=function(e,t,n){if(!Wf(t))throw Error(We(200));return Kf(null,e,t,!0,n)};Yr.hydrateRoot=function(e,t,n){if(!H0(e))throw Error(We(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=UE;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=KE(t,null,e,1,n??null,o,!1,a,i),e[sa]=t.current,dc(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 Vf(t)};Yr.render=function(e,t,n){if(!Wf(t))throw Error(We(200));return Kf(null,e,t,!1,n)};Yr.unmountComponentAtNode=function(e){if(!Wf(e))throw Error(We(40));return e._reactRootContainer?(Ri(function(){Kf(null,null,e,!1,function(){e._reactRootContainer=null,e[sa]=null})}),!0):!1};Yr.unstable_batchedUpdates=z0;Yr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Wf(n))throw Error(We(200));if(e==null||e._reactInternals===void 0)throw Error(We(38));return Kf(e,t,n,!1,r)};Yr.version="18.3.1-next-f1338f8080-20240426";function GE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(GE)}catch(e){console.error(e)}}GE(),G$.exports=Yr;var mo=G$.exports;const Cc=Hc(mo),nM=z$({__proto__:null,default:Cc},[mo]);var _C=mo;jv.createRoot=_C.createRoot,jv.hydrateRoot=_C.hydrateRoot;/**
|
|
41
|
+
* @remix-run/router v1.23.4
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function Sc(){return Sc=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},Sc.apply(null,arguments)}var Pa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Pa||(Pa={}));const zC="popstate";function rM(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:c=""}=Bi(o.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Eg("",{pathname:i,search:s,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(o,a){let i=o.document.querySelector("base"),s="";if(i&&i.getAttribute("href")){let c=o.location.href,u=c.indexOf("#");s=u===-1?c:c.slice(0,u)}return s+"#"+(typeof a=="string"?a:af(a))}function r(o,a){V0(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return aM(t,n,r,e)}function Mn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function V0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oM(){return Math.random().toString(36).substr(2,8)}function LC(e,t){return{usr:e.state,key:e.key,idx:t}}function Eg(e,t,n,r){return n===void 0&&(n=null),Sc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bi(t):t,{state:n,key:t&&t.key||r||oM()})}function af(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function aM(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=Pa.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(Sc({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=Pa.Pop;let h=d(),v=h==null?null:h-u;u=h,c&&c({action:s,location:y.location,delta:v})}function m(h,v){s=Pa.Push;let b=Eg(y.location,h,v);n&&n(b,h),u=d()+1;let C=LC(b,u),S=y.createHref(b);try{i.pushState(C,"",S)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(S)}a&&c&&c({action:s,location:y.location,delta:1})}function p(h,v){s=Pa.Replace;let b=Eg(y.location,h,v);n&&n(b,h),u=d();let C=LC(b,u),S=y.createHref(b);i.replaceState(C,"",S),a&&c&&c({action:s,location:y.location,delta:0})}function g(h){let v=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof h=="string"?h:af(h);return b=b.replace(/ $/,"%20"),Mn(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let y={get action(){return s},get location(){return e(o,i)},listen(h){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(zC,f),c=h,()=>{o.removeEventListener(zC,f),c=null}},createHref(h){return t(o,h)},createURL:g,encodeLocation(h){let v=g(h);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:p,go(h){return i.go(h)}};return y}var DC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(DC||(DC={}));function iM(e,t,n){return n===void 0&&(n="/"),lM(e,t,n)}function lM(e,t,n,r){let o=typeof t=="string"?Bi(t):t,a=W0(o.pathname||"/",n);if(a==null)return null;let i=qE(e);sM(i);let s=null,c=CM(a);for(let u=0;s==null&&u<i.length;++u)s=hM(i[u],c);return s}function qE(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,s)=>{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(Mn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Aa([r,c.relativePath]),d=n.concat(c);a.children&&a.children.length>0&&(Mn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),qE(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:vM(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of XE(a.path))o(a,i,c)}),t}function XE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=XE(r.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function sM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cM=/^:[\w-]+$/,uM=3,dM=2,fM=1,mM=10,pM=-2,BC=e=>e==="*";function vM(e,t){let n=e.split("/"),r=n.length;return n.some(BC)&&(r+=pM),t&&(r+=dM),n.filter(o=>!BC(o)).reduce((o,a)=>o+(cM.test(a)?uM:a===""?fM:mM),r)}function gM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function hM(e,t,n){let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let c=r[s],u=s===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=yM({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Aa([a,f.pathname]),pathnameBase:$M(Aa([a,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(a=Aa([a,f.pathnameBase]))}return i}function yM(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bM(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:m,isOptional:p}=d;if(m==="*"){let y=s[f]||"";i=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return p&&!g?u[m]=void 0:u[m]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function bM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),V0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function CM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return V0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function W0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Bi(e):e,a;return n?(n=YE(n),n.startsWith("/")?a=kC(n.substring(1),"/"):a=kC(n,t)):a=t,{pathname:a,search:wM(r),hash:EM(o)}}function kC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ip(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function K0(e,t){let n=xM(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function U0(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Bi(e):(o=Sc({},e),Mn(!o.pathname||!o.pathname.includes("?"),Ip("?","pathname","search",o)),Mn(!o.pathname||!o.pathname.includes("#"),Ip("#","pathname","hash",o)),Mn(!o.search||!o.search.includes("#"),Ip("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}s=f>=0?t[f]:"/"}let c=SM(o,s),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const YE=e=>e.replace(/\/\/+/g,"/"),Aa=e=>YE(e.join("/")),$M=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const QE=["post","put","patch","delete"];new Set(QE);const IM=["get",...QE];new Set(IM);/**
|
|
50
|
+
* React Router v6.30.6
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function xc(){return xc=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},xc.apply(null,arguments)}const G0=l.createContext(null),PM=l.createContext(null),Za=l.createContext(null),Uf=l.createContext(null),ei=l.createContext({outlet:null,matches:[],isDataRoute:!1}),JE=l.createContext(null);function RM(e,t){let{relative:n}=t===void 0?{}:t;es()||Mn(!1);let{basename:r,navigator:o}=l.useContext(Za),{hash:a,pathname:i,search:s}=t2(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:Aa([r,i])),o.createHref({pathname:c,search:s,hash:a})}function es(){return l.useContext(Uf)!=null}function ts(){return es()||Mn(!1),l.useContext(Uf).location}function ZE(e){l.useContext(Za).static||l.useLayoutEffect(e)}function e2(){let{isDataRoute:e}=l.useContext(ei);return e?HM():NM()}function NM(){es()||Mn(!1);let e=l.useContext(G0),{basename:t,future:n,navigator:r}=l.useContext(Za),{matches:o}=l.useContext(ei),{pathname:a}=ts(),i=JSON.stringify(K0(o,n.v7_relativeSplatPath)),s=l.useRef(!1);return ZE(()=>{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=U0(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Aa([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,a,e])}function t2(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(Za),{matches:o}=l.useContext(ei),{pathname:a}=ts(),i=JSON.stringify(K0(o,r.v7_relativeSplatPath));return l.useMemo(()=>U0(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function MM(e,t){return jM(e,t)}function jM(e,t,n,r){es()||Mn(!1);let{navigator:o}=l.useContext(Za),{matches:a}=l.useContext(ei),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=ts(),d;if(t){var f;let h=typeof t=="string"?Bi(t):t;c==="/"||(f=h.pathname)!=null&&f.startsWith(c)||Mn(!1),d=h}else d=u;let m=d.pathname||"/",p=m;if(c!=="/"){let h=c.replace(/^\//,"").split("/");p="/"+m.replace(/^\//,"").split("/").slice(h.length).join("/")}let g=iM(e,{pathname:p}),y=DM(g&&g.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:Aa([c,o.encodeLocation?o.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?c:Aa([c,o.encodeLocation?o.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),a,n,r);return t&&y?l.createElement(Uf.Provider,{value:{location:xc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Pa.Pop}},y):y}function TM(){let e=FM(),t=OM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,null)}const _M=l.createElement(TM,null);class zM extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(ei.Provider,{value:this.props.routeContext},l.createElement(JE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function LM(e){let{routeContext:t,match:n,children:r}=e,o=l.useContext(G0);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(ei.Provider,{value:t},r)}function DM(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Mn(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:p}=n,g=f.route.loader&&m[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||g){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let p,g=!1,y=null,h=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||_M,c&&(u<0&&m===0?(VM("route-fallback"),g=!0,h=null):u===m&&(g=!0,h=f.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,m+1)),b=()=>{let C;return p?C=y:g?C=h:f.route.Component?C=l.createElement(f.route.Component,null):f.route.element?C=f.route.element:C=d,l.createElement(LM,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:C})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?l.createElement(zM,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var n2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(n2||{}),r2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(r2||{});function BM(e){let t=l.useContext(G0);return t||Mn(!1),t}function kM(e){let t=l.useContext(PM);return t||Mn(!1),t}function AM(e){let t=l.useContext(ei);return t||Mn(!1),t}function o2(e){let t=AM(),n=t.matches[t.matches.length-1];return n.route.id||Mn(!1),n.route.id}function FM(){var e;let t=l.useContext(JE),n=kM(),r=o2();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function HM(){let{router:e}=BM(n2.UseNavigateStable),t=o2(r2.UseNavigateStable),n=l.useRef(!1);return ZE(()=>{n.current=!0}),l.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xc({fromRouteId:t},a)))},[e,t])}const AC={};function VM(e,t,n){AC[e]||(AC[e]=!0)}function WM(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function KM(e){let{to:t,replace:n,state:r,relative:o}=e;es()||Mn(!1);let{future:a,static:i}=l.useContext(Za),{matches:s}=l.useContext(ei),{pathname:c}=ts(),u=e2(),d=U0(t,K0(s,a.v7_relativeSplatPath),c,o==="path"),f=JSON.stringify(d);return l.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function ci(e){Mn(!1)}function UM(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Pa.Pop,navigator:a,static:i=!1,future:s}=e;es()&&Mn(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:a,static:i,future:xc({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof r=="string"&&(r=Bi(r));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:g="default"}=r,y=l.useMemo(()=>{let h=W0(d,c);return h==null?null:{location:{pathname:h,search:f,hash:m,state:p,key:g},navigationType:o}},[c,d,f,m,p,g,o]);return y==null?null:l.createElement(Za.Provider,{value:u},l.createElement(Uf.Provider,{children:n,value:y}))}function GM(e){let{children:t,location:n}=e;return MM(Og(t),n)}new Promise(()=>{});function Og(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,o)=>{if(!l.isValidElement(r))return;let a=[...t,o];if(r.type===l.Fragment){n.push.apply(n,Og(r.props.children,a));return}r.type!==ci&&Mn(!1),!r.props.index||!r.props.children||Mn(!1);let i={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Og(r.props.children,a)),n.push(i)}),n}/**
|
|
59
|
+
* React Router DOM v6.30.6
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/function Ig(){return Ig=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},Ig.apply(null,arguments)}function qM(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 XM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YM(e,t){return e.button===0&&(!t||t==="_self")&&!XM(e)}const QM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],JM="6";try{window.__reactRouterVersion=JM}catch{}const ZM="startTransition",FC=Wc[ZM];function ej(e){let{basename:t,children:n,future:r,window:o}=e,a=l.useRef();a.current==null&&(a.current=rM({window:o,v5Compat:!0}));let i=a.current,[s,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=l.useCallback(f=>{u&&FC?FC(()=>c(f)):c(f)},[c,u]);return l.useLayoutEffect(()=>i.listen(d),[i,d]),l.useEffect(()=>WM(r),[r]),l.createElement(UM,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const tj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ws=l.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,m=qM(t,QM),{basename:p}=l.useContext(Za),g,y=!1;if(typeof u=="string"&&nj.test(u)&&(g=u,tj))try{let C=new URL(window.location.href),S=u.startsWith("//")?new URL(C.protocol+u):new URL(u),x=W0(S.pathname,p);S.origin===C.origin&&x!=null?u=x+S.search+S.hash:y=!0}catch{}let h=RM(u,{relative:o}),v=rj(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:o,viewTransition:f});function b(C){r&&r(C),C.defaultPrevented||v(C)}return l.createElement("a",Ig({},m,{href:g||h,onClick:y||a?r:b,ref:n,target:c}))});var HC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(HC||(HC={}));var VC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(VC||(VC={}));function rj(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,viewTransition:s}=t===void 0?{}:t,c=e2(),u=ts(),d=t2(e,{relative:i});return l.useCallback(f=>{if(YM(f,n)){f.preventDefault();let m=r!==void 0?r:af(u)===af(d);c(e,{replace:m,state:o,preventScrollReset:a,relative:i,viewTransition:s})}},[u,c,d,r,o,n,e,a,i,s])}var a2={exports:{}};/*!
|
|
68
|
+
Copyright (c) 2018 Jed Watson.
|
|
69
|
+
Licensed under the MIT License (MIT), see
|
|
70
|
+
http://jedwatson.github.io/classnames
|
|
71
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(a2);var oj=a2.exports;const V=Hc(oj);function pe(){return pe=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},pe.apply(null,arguments)}function et(e){"@babel/helpers - typeof";return et=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},et(e)}var aj=Symbol.for("react.element"),ij=Symbol.for("react.transitional.element"),lj=Symbol.for("react.fragment");function i2(e){return e&&et(e)==="object"&&(e.$$typeof===aj||e.$$typeof===ij)&&e.type===lj}function Fn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Q.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Fn(r)):i2(r)&&r.props?n=n.concat(Fn(r.props.children,t)):n.push(r))}),n}var Pg={},sj=function(t){};function cj(e,t){}function uj(e,t){}function dj(){Pg={}}function l2(e,t,n){!t&&!Pg[n]&&(e(!1,n),Pg[n]=!0)}function an(e,t){l2(cj,e,t)}function fj(e,t){l2(uj,e,t)}an.preMessage=sj;an.resetWarned=dj;an.noteOnce=fj;function mj(e,t){if(et(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(et(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s2(e){var t=mj(e,"string");return et(t)=="symbol"?t:t+""}function D(e,t,n){return(t=s2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WC(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 W(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WC(Object(n),!0).forEach(function(r){D(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $c(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xc(e){return e&&et(e)==="object"&&$c(e.nativeElement)?e.nativeElement:$c(e)?e:null}function Cd(e){var t=Xc(e);if(t)return t;if(e instanceof Q.Component){var n;return(n=Cc.findDOMNode)===null||n===void 0?void 0:n.call(Cc,e)}return null}var c2={exports:{}},en={};/**
|
|
72
|
+
* @license React
|
|
73
|
+
* react-is.production.min.js
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the MIT license found in the
|
|
78
|
+
* LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/var q0=Symbol.for("react.element"),X0=Symbol.for("react.portal"),Gf=Symbol.for("react.fragment"),qf=Symbol.for("react.strict_mode"),Xf=Symbol.for("react.profiler"),Yf=Symbol.for("react.provider"),Qf=Symbol.for("react.context"),pj=Symbol.for("react.server_context"),Jf=Symbol.for("react.forward_ref"),Zf=Symbol.for("react.suspense"),em=Symbol.for("react.suspense_list"),tm=Symbol.for("react.memo"),nm=Symbol.for("react.lazy"),vj=Symbol.for("react.offscreen"),u2;u2=Symbol.for("react.module.reference");function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case q0:switch(e=e.type,e){case Gf:case Xf:case qf:case Zf:case em:return e;default:switch(e=e&&e.$$typeof,e){case pj:case Qf:case Jf:case nm:case tm:case Yf:return e;default:return t}}case X0:return t}}}en.ContextConsumer=Qf;en.ContextProvider=Yf;en.Element=q0;en.ForwardRef=Jf;en.Fragment=Gf;en.Lazy=nm;en.Memo=tm;en.Portal=X0;en.Profiler=Xf;en.StrictMode=qf;en.Suspense=Zf;en.SuspenseList=em;en.isAsyncMode=function(){return!1};en.isConcurrentMode=function(){return!1};en.isContextConsumer=function(e){return go(e)===Qf};en.isContextProvider=function(e){return go(e)===Yf};en.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===q0};en.isForwardRef=function(e){return go(e)===Jf};en.isFragment=function(e){return go(e)===Gf};en.isLazy=function(e){return go(e)===nm};en.isMemo=function(e){return go(e)===tm};en.isPortal=function(e){return go(e)===X0};en.isProfiler=function(e){return go(e)===Xf};en.isStrictMode=function(e){return go(e)===qf};en.isSuspense=function(e){return go(e)===Zf};en.isSuspenseList=function(e){return go(e)===em};en.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gf||e===Xf||e===qf||e===Zf||e===em||e===vj||typeof e=="object"&&e!==null&&(e.$$typeof===nm||e.$$typeof===tm||e.$$typeof===Yf||e.$$typeof===Qf||e.$$typeof===Jf||e.$$typeof===u2||e.getModuleId!==void 0)};en.typeOf=go;c2.exports=en;var Pp=c2.exports;function ki(e,t,n){var r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var gj=Number(l.version.split(".")[0]),wc=function(t,n){typeof t=="function"?t(n):et(t)==="object"&&t&&"current"in t&&(t.current=n)},er=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(a){n.forEach(function(i){wc(i,a)})}},pa=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ki(function(){return er.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(i,s){return i!==a[s]})})},To=function(t){var n,r;if(!t)return!1;if(Y0(t)&&gj>=19)return!0;var o=Pp.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Pp.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Pp.ForwardRef)};function Y0(e){return l.isValidElement(e)&&!i2(e)}var hj=function(t){return Y0(t)&&To(t)},ti=function(t){if(t&&Y0(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Rg=l.createContext(null);function yj(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),o=l.useRef([]),a=l.useContext(Rg),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,c,u)},[n,a]);return l.createElement(Rg.Provider,{value:i},t)}var d2=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!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,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),Ng=typeof window<"u"&&typeof document<"u"&&window.document===document,lf=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")()}(),bj=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(lf):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Cj=2;function Sj(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){bj(a)}function s(){var c=Date.now();if(n){if(c-o<Cj)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=c}return s}var xj=20,$j=["top","right","bottom","left","width","height","size","weight"],wj=typeof MutationObserver<"u",Ej=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Sj(this.refresh.bind(this),xj)}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(){!Ng||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wj?(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(){!Ng||!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=$j.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f2=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},kl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||lf},m2=rm(0,0,0,0);function sf(e){return parseFloat(e)||0}function KC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+sf(a)},0)}function Oj(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=sf(i)}return n}function Ij(e){var t=e.getBBox();return rm(0,0,t.width,t.height)}function Pj(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m2;var r=kl(e).getComputedStyle(e),o=Oj(r),a=o.left+o.right,i=o.top+o.bottom,s=sf(r.width),c=sf(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=KC(r,"left","right")+a),Math.round(c+i)!==n&&(c-=KC(r,"top","bottom")+i)),!Nj(e)){var u=Math.round(s+a)-t,d=Math.round(c+i)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return rm(o.left,o.top,s,c)}var Rj=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof kl(e).SVGGraphicsElement}:function(e){return e instanceof kl(e).SVGElement&&typeof e.getBBox=="function"}}();function Nj(e){return e===kl(e).document.documentElement}function Mj(e){return Ng?Rj(e)?Ij(e):Pj(e):m2}function jj(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return f2(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function rm(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Tj=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rm(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Mj(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}(),_j=function(){function e(t,n){var r=jj(n);f2(this,{target:t,contentRect:r})}return e}(),zj=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new d2,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 kl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Tj(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 kl(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 _j(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}(),p2=typeof WeakMap<"u"?new WeakMap:new d2,v2=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=Ej.getInstance(),r=new zj(t,n,this);p2.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){v2.prototype[e]=function(){var t;return(t=p2.get(this))[e].apply(t,arguments)}});var Lj=function(){return typeof lf.ResizeObserver<"u"?lf.ResizeObserver:v2}(),Ra=new Map;function Dj(e){e.forEach(function(t){var n,r=t.target;(n=Ra.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var g2=new Lj(Dj);function Bj(e,t){Ra.has(e)||(Ra.set(e,new Set),g2.observe(e)),Ra.get(e).add(t)}function kj(e,t){Ra.has(e)&&(Ra.get(e).delete(t),Ra.get(e).size||(g2.unobserve(e),Ra.delete(e)))}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UC(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,s2(r.key),r)}}function cn(e,t,n){return t&&UC(e.prototype,t),n&&UC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ec(e,t){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ec(e,t)}function Jr(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&&Ec(e,t)}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ni(e)}function om(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(om=function(){return!!e})()}function Ve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h2(e,t){if(t&&(et(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ve(e)}function ho(e){var t=om();return function(){var n,r=Ni(e);if(t){var o=Ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h2(this,n)}}var Aj=function(e){Jr(n,e);var t=ho(n);function n(){return sn(this,n),t.apply(this,arguments)}return cn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function Fj(e,t){var n=e.children,r=e.disabled,o=l.useRef(null),a=l.useRef(null),i=l.useContext(Rg),s=typeof n=="function",c=s?n(o):n,u=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&l.isValidElement(c)&&To(c),f=d?ti(c):null,m=pa(f,o),p=function(){var v;return Cd(o.current)||(o.current&&et(o.current)==="object"?Cd((v=o.current)===null||v===void 0?void 0:v.nativeElement):null)||Cd(a.current)};l.useImperativeHandle(t,function(){return p()});var g=l.useRef(e);g.current=e;var y=l.useCallback(function(h){var v=g.current,b=v.onResize,C=v.data,S=h.getBoundingClientRect(),x=S.width,w=S.height,O=h.offsetWidth,$=h.offsetHeight,E=Math.floor(x),I=Math.floor(w);if(u.current.width!==E||u.current.height!==I||u.current.offsetWidth!==O||u.current.offsetHeight!==$){var R={width:E,height:I,offsetWidth:O,offsetHeight:$};u.current=R;var M=O===Math.round(x)?x:O,N=$===Math.round(w)?w:$,P=W(W({},R),{},{offsetWidth:M,offsetHeight:N});i==null||i(P,h,C),b&&Promise.resolve().then(function(){b(P,h)})}},[]);return l.useEffect(function(){var h=p();return h&&!r&&Bj(h,y),function(){return kj(h,y)}},[o.current,r]),l.createElement(Aj,{ref:a},d?l.cloneElement(c,{ref:m}):c)}var Hj=l.forwardRef(Fj),Vj="rc-observer-key";function Wj(e,t){var n=e.children,r=typeof n=="function"?[n]:Fn(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(Vj,"-").concat(a);return l.createElement(Hj,pe({},e,{key:i,ref:a===0?t:void 0}),o)})}var Or=l.forwardRef(Wj);Or.Collection=yj;function Mg(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 Kj(e){if(Array.isArray(e))return Mg(e)}function y2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Q0(e,t){if(e){if(typeof e=="string")return Mg(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)?Mg(e,t):void 0}}function Uj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
80
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(e){return Kj(e)||y2(e)||Q0(e)||Uj()}var b2=function(t){return+setTimeout(t,16)},C2=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(b2=function(t){return window.requestAnimationFrame(t)},C2=function(t){return window.cancelAnimationFrame(t)});var GC=0,J0=new Map;function S2(e){J0.delete(e)}var jt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;GC+=1;var r=GC;function o(a){if(a===0)S2(r),t();else{var i=b2(function(){o(a-1)});J0.set(r,i)}}return o(n),r};jt.cancel=function(e){var t=J0.get(e);return S2(e),C2(t)};function x2(e){if(Array.isArray(e))return e}function Gj(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function $2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
81
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){return x2(e)||Gj(e,t)||Q0(e,t)||$2()}function Oc(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 Qn(){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 qC="data-rc-order",XC="data-rc-priority",qj="rc-util-key",Tg=new Map;function w2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):qj}function am(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Xj(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Z0(e){return Array.from((Tg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function E2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Qn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=Xj(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(qC,i),s&&a&&c.setAttribute(XC,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=am(t),d=u.firstChild;if(r){if(s){var f=(t.styles||Z0(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(qC)))return!1;var p=Number(m.getAttribute(XC)||0);return a>=p});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function O2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=am(t);return(t.styles||Z0(n)).find(function(r){return r.getAttribute(w2(t))===e})}function Ic(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=O2(e,t);if(n){var r=am(t);r.removeChild(n)}}function Yj(e,t){var n=Tg.get(e);if(!n||!jg(document,n)){var r=E2("",t),o=r.parentNode;Tg.set(e,o),e.removeChild(r)}}function ia(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=am(n),o=Z0(r),a=W(W({},n),{},{styles:o});Yj(r,a);var i=O2(t,a);if(i){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=E2(e,a);return d.setAttribute(w2(a),t),d}function Qj(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 ft(e,t){if(e==null)return{};var n,r,o=Qj(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(an(!c,"Warning: There may be circular references"),c)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],u))return!1;return!0}if(a&&i&&et(a)==="object"&&et(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(m){return o(a[m],i[m],u)})}return!1}return o(e,t)}var Jj="%";function _g(e){return e.join(Jj)}var Zj=function(){function e(t){sn(this,e),D(this,"instanceId",void 0),D(this,"cache",new Map),D(this,"extracted",new Set),this.instanceId=t}return cn(e,[{key:"get",value:function(n){return this.opGet(_g(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(_g(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),Al="data-token-hash",Ro="data-css-hash",Na="__cssinjs_instance__";function eT(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ro,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Na]=o[Na]||e,o[Na]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Ro,"]"))).forEach(function(o){var a=o.getAttribute(Ro);if(r[a]){if(o[Na]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new Zj(e)}var Yc=l.createContext({hashPriority:"low",cache:eT(),defaultCache:!0});function tT(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 ey=function(){function e(){sn(this,e),D(this,"cache",void 0),D(this,"keys",void 0),D(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return cn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===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 a=this.keys.reduce(function(u,d){var f=oe(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=oe(a,1),s=i[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!tT(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();D(ey,"MAX_CACHE_SIZE",20);D(ey,"MAX_CACHE_OFFSET",5);var YC=0,I2=function(){function e(t){sn(this,e),D(this,"derivatives",void 0),D(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=YC,t.length===0&&(t.length>0,void 0),YC+=1}return cn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Rp=new ey;function cf(e){var t=Array.isArray(e)?e:[e];return Rp.has(t)||Rp.set(t,new I2(t)),Rp.get(t)}var nT=new WeakMap,Np={};function rT(e,t){for(var n=nT,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(Np)||n.set(Np,e()),n.get(Np)}var QC=new WeakMap;function Xs(e){var t=QC.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof I2?t+=r.id:r&&et(r)==="object"?t+=Xs(r):t+=r}),t=Oc(t),QC.set(e,t)),t}function JC(e,t){return Oc("".concat(t,"_").concat(Xs(e)))}var zg=Qn();function A(e){return typeof e=="number"?"".concat(e,"px"):e}function uf(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=W(W({},r),{},D(D({},Al,t),Ro,n)),i=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Sd=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()},oT=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 a=oe(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},P2=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,c,u=oe(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,p=Sd(d,r==null?void 0:r.prefix);o[p]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(p,")")}}),[a,oT(o,n,{scope:r==null?void 0:r.scope})]},ZC=Qn()?l.useLayoutEffect:l.useEffect,Pt=function(t,n){var r=l.useRef(!0);ZC(function(){return t(r.current)},n),ZC(function(){return r.current=!1,function(){r.current=!0}},[])},El=function(t,n){Pt(function(r){if(!r)return t()},n)},aT=W({},Wc),eS=aT.useInsertionEffect,iT=function(t,n,r){l.useMemo(t,r),Pt(function(){return n(!0)},r)},lT=eS?function(e,t,n){return eS(function(){return e(),t()},n)}:iT,sT=W({},Wc),cT=sT.useInsertionEffect,uT=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},dT=function(){return function(t){t()}},fT=typeof cT<"u"?uT:dT;function ty(e,t,n,r,o){var a=l.useContext(Yc),i=a.cache,s=[e].concat(be(t)),c=_g(s),u=fT([c]),d=function(g){i.opUpdate(c,function(y){var h=y||[void 0,void 0],v=oe(h,2),b=v[0],C=b===void 0?0:b,S=v[1],x=S,w=x||n(),O=[C,w];return g?g(O):O})};l.useMemo(function(){d()},[c]);var f=i.opGet(c),m=f[1];return lT(function(){o==null||o(m)},function(p){return d(function(g){var y=oe(g,2),h=y[0],v=y[1];return p&&h===0&&(o==null||o(m)),[h+1,v]}),function(){i.opUpdate(c,function(g){var y=g||[],h=oe(y,2),v=h[0],b=v===void 0?0:v,C=h[1],S=b-1;return S===0?(u(function(){(p||!i.opGet(c))&&(r==null||r(C,!1))}),null):[b-1,C]})}},[c]),m}var mT={},pT="css",di=new Map;function vT(e){di.set(e,(di.get(e)||0)+1)}function gT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Al,'="').concat(e,'"]'));n.forEach(function(r){if(r[Na]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var hT=0;function yT(e,t){di.set(e,(di.get(e)||0)-1);var n=new Set;di.forEach(function(r,o){r<=0&&n.add(o)}),di.size-n.size>hT&&n.forEach(function(r){gT(r,t),di.delete(r)})}var R2=function(t,n,r,o){var a=r.getDerivativeToken(t),i=W(W({},a),n);return o&&(i=o(i)),i},N2="token";function bT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(Yc),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?mT:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,p=rT(function(){return Object.assign.apply(Object,[{}].concat(be(t)))},t),g=Xs(p),y=Xs(u),h=m?Xs(m):"",v=ty(N2,[s,e.id,g,y,h],function(){var b,C=f?f(p,u,e):R2(p,u,e,d),S=W({},C),x="";if(m){var w=P2(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),O=oe(w,2);C=O[0],x=O[1]}var $=JC(C,s);C._tokenKey=$,S._tokenKey=JC(S,s);var E=(b=m==null?void 0:m.key)!==null&&b!==void 0?b:$;C._themeKey=E,vT(E);var I="".concat(pT,"-").concat(Oc($));return C._hashId=I,[C,I,S,x,(m==null?void 0:m.key)||""]},function(b){yT(b[0]._themeKey,o)},function(b){var C=oe(b,4),S=C[0],x=C[3];if(m&&x){var w=ia(x,Oc("css-variables-".concat(S._themeKey)),{mark:Ro,prepend:"queue",attachTo:a,priority:-999});w[Na]=o,w.setAttribute(Al,S._themeKey)}});return v}var CT=function(t,n,r){var o=oe(t,5),a=o[2],i=o[3],s=o[4],c=r||{},u=c.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=uf(i,s,d,m,u);return[f,d,p]},ST={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},M2="comm",j2="rule",T2="decl",xT="@import",$T="@namespace",wT="@keyframes",ET="@layer",OT=Math.abs,Ys=String.fromCharCode;function _2(e){return e.trim()}function Lg(e,t,n){return e.replace(t,n)}function Ol(e,t){return e.charCodeAt(t)|0}function Fl(e,t,n){return e.slice(t,n)}function Wo(e){return e.length}function IT(e){return e.length}function Fu(e,t){return t.push(e),e}var im=1,Hl=1,z2=0,po=0,zn=0,ns="";function ny(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:im,column:Hl,length:i,return:"",siblings:s}}function PT(){return zn}function RT(){return zn=po>0?Ol(ns,--po):0,Hl--,zn===10&&(Hl=1,im--),zn}function No(){return zn=po<z2?Ol(ns,po++):0,Hl++,zn===10&&(Hl=1,im++),zn}function Ma(){return Ol(ns,po)}function xd(){return po}function lm(e,t){return Fl(ns,e,t)}function Pc(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 NT(e){return im=Hl=1,z2=Wo(ns=e),po=0,[]}function MT(e){return ns="",e}function Mp(e){return _2(lm(po-1,Dg(e===91?e+2:e===40?e+1:e)))}function jT(e){for(;(zn=Ma())&&zn<33;)No();return Pc(e)>2||Pc(zn)>3?"":" "}function TT(e,t){for(;--t&&No()&&!(zn<48||zn>102||zn>57&&zn<65||zn>70&&zn<97););return lm(e,xd()+(t<6&&Ma()==32&&No()==32))}function Dg(e){for(;No();)switch(zn){case e:return po;case 34:case 39:e!==34&&e!==39&&Dg(zn);break;case 40:e===41&&Dg(e);break;case 92:No();break}return po}function _T(e,t){for(;No()&&e+zn!==57;)if(e+zn===84&&Ma()===47)break;return"/*"+lm(t,po-1)+"*"+Ys(e===47?e:No())}function zT(e){for(;!Pc(Ma());)No();return lm(e,po)}function LT(e){return MT($d("",null,null,null,[""],e=NT(e),0,[0],e))}function $d(e,t,n,r,o,a,i,s,c){for(var u=0,d=0,f=i,m=0,p=0,g=0,y=1,h=1,v=1,b=0,C=0,S="",x=o,w=a,O=r,$=S;h;)switch(g=C,C=No()){case 40:g!=108&&Ol($,f-1)==58?(b++,$+="("):$+=Mp(C);break;case 41:b--,$+=")";break;case 34:case 39:case 91:$+=Mp(C);break;case 9:case 10:case 13:case 32:if(b>0){$+=Ys(C);break}$+=jT(g);break;case 92:$+=TT(xd()-1,7);continue;case 47:switch(Ma()){case 42:case 47:Fu(DT(_T(No(),xd()),t,n,c),c),(Pc(g||1)==5||Pc(Ma()||1)==5)&&Wo($)&&Fl($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*y:s[u++]=Wo($)*v;case 125*y:case 59:case 0:if(b>0&&C){$+=Ys(C);break}switch(C){case 0:case 125:h=0;case 59+d:v==-1&&($=Lg($,/\f/g,"")),p>0&&(Wo($)-f||y===0)&&Fu(p>32?nS($+";",r,n,f-1,c):nS(Lg($," ","")+";",r,n,f-2,c),c);break;case 59:$+=";";default:if(Fu(O=tS($,t,n,u,d,o,s,S,x=[],w=[],f,a),a),C===123)if(d===0)$d($,t,O,O,x,a,f,s,w);else{switch(m){case 99:if(Ol($,3)===110)break;case 108:if(Ol($,2)===97)break;default:d=0;case 100:case 109:case 115:}d?$d(e,O,O,r&&Fu(tS(e,O,O,0,0,o,s,S,o,x=[],f,w),w),o,w,f,s,r?x:w):$d($,O,O,O,[""],w,0,s,w)}}u=d=p=0,y=v=1,S=$="",f=i;break;case 58:f=1+Wo($),p=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&RT()==125)continue}switch($+=Ys(C),C*y){case 38:v=d>0?1:($+="\f",-1);break;case 44:if(b>0)break;s[u++]=(Wo($)-1)*v,v=1;break;case 64:Ma()===45&&($+=Mp(No())),m=Ma(),d=f=Wo(S=$+=zT(xd())),C++;break;case 45:g===45&&Wo($)==2&&(y=0)}}return a}function tS(e,t,n,r,o,a,i,s,c,u,d,f){for(var m=o-1,p=o===0?a:[""],g=IT(p),y=0,h=0,v=0;y<r;++y)for(var b=0,C=Fl(e,m+1,m=OT(h=i[y])),S=e;b<g;++b)(S=_2(h>0?p[b]+" "+C:Lg(C,/&\f/g,p[b])))&&(c[v++]=S);return ny(e,t,n,o===0?j2:s,c,u,d,f)}function DT(e,t,n,r){return ny(e,t,n,M2,Ys(PT()),Fl(e,2,-2),0,r)}function nS(e,t,n,r,o){return ny(e,t,n,T2,Fl(e,0,r),Fl(e,r+1,-1),r,o)}function Bg(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function BT(e,t,n,r){switch(e.type){case ET:if(e.children.length)break;case xT:case $T:case T2:return e.return=e.return||e.value;case M2:return"";case wT:return e.return=e.value+"{"+Bg(e.children,r)+"}";case j2:if(!Wo(e.value=e.props.join(",")))return""}return Wo(n=Bg(e.children,r))?e.return=e.value+"{"+n+"}":""}var rS="data-ant-cssinjs-cache-path",L2="_FILE_STYLE__",$i,D2=!0;function kT(){if(!$i&&($i={},Qn())){var e=document.createElement("div");e.className=rS,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 a=o.split(":"),i=oe(a,2),s=i[0],c=i[1];$i[s]=c});var n=document.querySelector("style[".concat(rS,"]"));if(n){var r;D2=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function AT(e){return kT(),!!$i[e]}function FT(e){var t=$i[e],n=null;if(t&&Qn())if(D2)n=L2;else{var r=document.querySelector("style[".concat(Ro,'="').concat($i[e],'"]'));r?n=r.innerHTML:delete $i[e]}return[n,t]}var HT="_skip_check_",B2="_multi_value_";function wd(e){var t=Bg(LT(e),BT);return t.replace(/\{%%%\:[^;];}/g,";")}function VT(e){return et(e)==="object"&&e&&(HT in e||B2 in e)}function oS(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,c=i.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(be(c.slice(1))).join(" ")});return a.join(",")}var WT=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,a=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",p={};function g(v){var b=v.getName(s);if(!p[b]){var C=e(v.style,n,{root:!1,parentSelectors:i}),S=oe(C,1),x=S[0];p[b]="@keyframes ".concat(v.getName(s)).concat(x)}}function y(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v.forEach(function(C){Array.isArray(C)?y(C,b):C&&b.push(C)}),b}var h=y(Array.isArray(t)?t:[t]);return h.forEach(function(v){var b=typeof v=="string"&&!o?{}:v;if(typeof b=="string")m+="".concat(b,`
|
|
82
|
+
`);else if(b._keyframe)g(b);else{var C=f.reduce(function(S,x){var w;return(x==null||(w=x.visit)===null||w===void 0?void 0:w.call(x,S))||S},b);Object.keys(C).forEach(function(S){var x=C[S];if(et(x)==="object"&&x&&(S!=="animationName"||!x._keyframe)&&!VT(x)){var w=!1,O=S.trim(),$=!1;(o||a)&&s?O.startsWith("@")?w=!0:O==="&"?O=oS("",s,u):O=oS(S,s,u):o&&!s&&(O==="&"||O==="")&&(O="",$=!0);var E=e(x,n,{root:$,injectHash:w,parentSelectors:[].concat(be(i),[O])}),I=oe(E,2),R=I[0],M=I[1];p=W(W({},p),M),m+="".concat(O).concat(R)}else{let _=function(j,T){var z=j.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),L=T;!ST[j]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),j==="animationName"&&T!==null&&T!==void 0&&T._keyframe&&(g(T),L=T.getName(s)),m+="".concat(z,":").concat(L,";")};var N,P=(N=x==null?void 0:x.value)!==null&&N!==void 0?N:x;et(x)==="object"&&x!==null&&x!==void 0&&x[B2]&&Array.isArray(P)?P.forEach(function(j){_(S,j)}):_(S,P)}})}}),o?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(v){return"@layer ".concat(v,", ").concat(c.name,";")}).join(`
|
|
83
|
+
`))):m="{".concat(m,"}"),[m,p]};function k2(e,t){return Oc("".concat(e.join("%")).concat(t))}function KT(){return null}var A2="style";function kg(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(Yc),f=d.autoClear;d.mock;var m=d.defaultCache,p=d.hashPriority,g=d.container,y=d.ssrInline,h=d.transformers,v=d.linters,b=d.cache,C=d.layer,S=n._tokenKey,x=[S];C&&x.push("layer"),x.push.apply(x,be(r));var w=zg,O=ty(A2,x,function(){var M=x.join("|");if(AT(M)){var N=FT(M),P=oe(N,2),_=P[0],j=P[1];if(_)return[_,S,j,{},s,u]}var T=t(),z=WT(T,{hashId:o,hashPriority:p,layer:C?a:void 0,path:r.join("-"),transformers:h,linters:v}),L=oe(z,2),k=L[0],H=L[1],K=wd(k),B=k2(x,K);return[K,S,B,H,s,u]},function(M,N){var P=oe(M,3),_=P[2];(N||f)&&zg&&Ic(_,{mark:Ro,attachTo:g})},function(M){var N=oe(M,4),P=N[0];N[1];var _=N[2],j=N[3];if(w&&P!==L2){var T={mark:Ro,prepend:C?!1:"queue",attachTo:g,priority:u},z=typeof i=="function"?i():i;z&&(T.csp={nonce:z});var L=[],k=[];Object.keys(j).forEach(function(K){K.startsWith("@layer")?L.push(K):k.push(K)}),L.forEach(function(K){ia(wd(j[K]),"_layer-".concat(K),W(W({},T),{},{prepend:!0}))});var H=ia(P,_,T);H[Na]=b.instanceId,H.setAttribute(Al,S),k.forEach(function(K){ia(wd(j[K]),"_effect-".concat(K),T)})}}),$=oe(O,3),E=$[0],I=$[1],R=$[2];return function(M){var N;return!y||w||!m?N=l.createElement(KT,null):N=l.createElement("style",pe({},D(D({},Al,I),Ro,R),{dangerouslySetInnerHTML:{__html:E}})),l.createElement(l.Fragment,null,N,M)}}var UT=function(t,n,r){var o=oe(t,6),a=o[0],i=o[1],s=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var p=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=uf(a,i,s,g,m),c&&Object.keys(c).forEach(function(y){if(!n[y]){n[y]=!0;var h=wd(c[y]),v=uf(h,i,"_effect-".concat(y),g,m);y.startsWith("@layer")?p=v+p:p+=v}}),[d,s,p]},F2="cssVar",GT=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(Yc),f=d.cache.instanceId,m=d.container,p=s._tokenKey,g=[].concat(be(t.path),[r,u,p]),y=ty(F2,g,function(){var h=n(),v=P2(h,r,{prefix:o,unitless:a,ignore:i,scope:u}),b=oe(v,2),C=b[0],S=b[1],x=k2(g,S);return[C,S,x,r]},function(h){var v=oe(h,3),b=v[2];zg&&Ic(b,{mark:Ro,attachTo:m})},function(h){var v=oe(h,3),b=v[1],C=v[2];if(b){var S=ia(b,C,{mark:Ro,prepend:"queue",attachTo:m,priority:-999});S[Na]=f,S.setAttribute(Al,r)}});return y},qT=function(t,n,r){var o=oe(t,4),a=o[1],i=o[2],s=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=uf(a,s,i,f,u);return[d,i,m]};D(D(D({},A2,UT),N2,CT),F2,qT);var Bt=function(){function e(t,n){sn(this,e),D(this,"name",void 0),D(this,"style",void 0),D(this,"_keyframe",!0),this.name=t,this.style=n}return cn(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 Ki(e){return e.notSplit=!0,e}Ki(["borderTop","borderBottom"]),Ki(["borderTop"]),Ki(["borderBottom"]),Ki(["borderLeft","borderRight"]),Ki(["borderLeft"]),Ki(["borderRight"]);var ry=l.createContext({});function H2(e){return x2(e)||y2(e)||Q0(e)||$2()}function xr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function V2(e,t,n,r){if(!t.length)return n;var o=H2(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=be(e):s=W({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=V2(s[a],i,n,r),s}function ao(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!xr(e,t.slice(0,-1))?e:V2(e,t,n,r)}function XT(e){return et(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function aS(e){return Array.isArray(e)?[]:{}}var YT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function vl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=aS(t[0]);return t.forEach(function(o){function a(i,s){var c=new Set(s),u=xr(o,i),d=Array.isArray(u);if(d||XT(u)){if(!c.has(u)){c.add(u);var f=xr(r,i);d?r=ao(r,i,[]):(!f||et(f)!=="object")&&(r=ao(r,i,aS(u))),YT(u).forEach(function(m){a([].concat(be(i),[m]),c)})}}else r=ao(r,i,u)}a([])}),r}function QT(){}const JT=l.createContext({}),ni=()=>{const e=()=>{};return e.deprecated=QT,e},W2=l.createContext(void 0);var K2={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"},ZT={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},e6=W(W({},ZT),{},{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 U2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},iS={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"]},e6),timePickerLocale:Object.assign({},U2)},Ar="${label} is not a valid ${type}",vo={locale:"en",Pagination:K2,DatePicker:iS,TimePicker:U2,Calendar:iS,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:Ar,method:Ar,array:Ar,object:Ar,number:Ar,date:Ar,boolean:Ar,integer:Ar,float:Ar,regexp:Ar,email:Ar,url:Ar,hex:Ar},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 Ed=Object.assign({},vo.Modal),Od=[];const lS=()=>Od.reduce((e,t)=>Object.assign(Object.assign({},e),t),vo.Modal);function t6(e){if(e){const t=Object.assign({},e);return Od.push(t),Ed=lS(),()=>{Od=Od.filter(n=>n!==t),Ed=lS()}}Ed=Object.assign({},vo.Modal)}function G2(){return Ed}const oy=l.createContext(void 0),yo=(e,t)=>{const n=l.useContext(oy),r=l.useMemo(()=>{var a;const i=t||vo[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=l.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?vo.locale:a},[n]);return[r,o]},n6="internalMark",r6=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>t6(t==null?void 0:t.Modal),[t]);const o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(oy.Provider,{value:o},n)},ay={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"},Vl=Object.assign(Object.assign({},ay),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
84
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
85
|
+
'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}),qn=Math.round;function jp(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 sS=(e,t,n)=>n===0?e:e/100;function Es(e,t){const n=t||255;return e>n?n:e<0?0:e}class Lt{constructor(t){D(this,"isValid",!0),D(this,"r",0),D(this,"g",0),D(this,"b",0),D(this,"a",1),D(this,"_h",void 0),D(this,"_s",void 0),D(this,"_l",void 0),D(this,"_v",void 0),D(this,"_max",void 0),D(this,"_min",void 0),D(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 a=function(i){return o.startsWith(i)};var r=a;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):a("rgb")?this.fromRgbString(o):a("hsl")?this.fromHslString(o):(a("hsv")||a("hsb"))&&this.fromHsvString(o)}else if(t instanceof Lt)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=Es(t.r),this.g=Es(t.g),this.b=Es(t.b),this.a=typeof t.a=="number"?Es(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(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.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=qn(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,a=s=>(r[s]-this[s])*o+this[s],i={r:qn(a("r")),g:qn(a("g")),b:qn(a("b")),a:qn(a("a")*100)/100};return this._c(i)}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=a=>qn((this[a]*this.a+n[a]*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 a=qn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=qn(this.getSaturation()*100),r=qn(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]=Es(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,a){return parseInt(n[o]+n[a||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 m=qn(r*255);this.r=m,this.g=m,this.b=m}let a=0,i=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,i=d):c>=1&&c<2?(a=d,i=u):c>=2&&c<3?(i=u,s=d):c>=3&&c<4?(i=d,s=u):c>=4&&c<5?(a=d,s=u):c>=5&&c<6&&(a=u,s=d);const f=r-u/2;this.r=qn((a+f)*255),this.g=qn((i+f)*255),this.b=qn((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 a=qn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),c=i-s,u=qn(r*(1-n)*255),d=qn(r*(1-n*c)*255),f=qn(r*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=jp(t,sS);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=jp(t,sS);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=jp(t,(r,o)=>o.includes("%")?qn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Hu=2,cS=.16,o6=.05,a6=.05,i6=.15,q2=5,X2=4,l6=[{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 uS(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Hu*t:Math.round(e.h)+Hu*t:r=n?Math.round(e.h)+Hu*t:Math.round(e.h)-Hu*t,r<0?r+=360:r>=360&&(r-=360),r}function dS(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-cS*t:t===X2?r=e.s+cS:r=e.s+o6*t,r>1&&(r=1),n&&t===q2&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function fS(e,t,n){var r;return n?r=e.v+a6*t:r=e.v-i6*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Mi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Lt(e),o=r.toHsv(),a=q2;a>0;a-=1){var i=new Lt({h:uS(o,a,!0),s:dS(o,a,!0),v:fS(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=X2;s+=1){var c=new Lt({h:uS(o,s),s:dS(o,s),v:fS(o,s)});n.push(c)}return t.theme==="dark"?l6.map(function(u){var d=u.index,f=u.amount;return new Lt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Il={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"},Ag=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ag.primary=Ag[5];var Fg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Fg.primary=Fg[5];var Hg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Hg.primary=Hg[5];var df=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];df.primary=df[5];var Vg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Vg.primary=Vg[5];var Wg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Wg.primary=Wg[5];var Kg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Kg.primary=Kg[5];var Ug=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ug.primary=Ug[5];var Wl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Wl.primary=Wl[5];var Gg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Gg.primary=Gg[5];var qg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];qg.primary=qg[5];var Xg=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Xg.primary=Xg[5];var Yg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Yg.primary=Yg[5];var Tp={red:Ag,volcano:Fg,orange:Hg,gold:df,yellow:Vg,lime:Wg,green:Kg,cyan:Ug,blue:Wl,geekblue:Gg,purple:qg,magenta:Xg,grey:Yg};function Y2(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=t(s),f=t(r),m=t(o),p=t(a),g=t(i),y=n(c,u),h=e.colorLink||e.colorInfo,v=t(h),b=new Lt(p[1]).mix(new Lt(p[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:b,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[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 Lt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const s6=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 c6(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},s6(r))}const Q2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Id(e){return(e+8)/e}function u6(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Id(n)}))}const J2=e=>{const t=u6(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function d6(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 eo=(e,t)=>new Lt(e).setA(t).toRgbString(),Os=(e,t)=>new Lt(e).darken(t).toHexString(),f6=e=>{const t=Mi(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]}},m6=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:eo(r,.88),colorTextSecondary:eo(r,.65),colorTextTertiary:eo(r,.45),colorTextQuaternary:eo(r,.25),colorFill:eo(r,.15),colorFillSecondary:eo(r,.06),colorFillTertiary:eo(r,.04),colorFillQuaternary:eo(r,.02),colorBgSolid:eo(r,1),colorBgSolidHover:eo(r,.75),colorBgSolidActive:eo(r,.95),colorBgLayout:Os(n,4),colorBgContainer:Os(n,0),colorBgElevated:Os(n,0),colorBgSpotlight:eo(r,.85),colorBgBlur:"transparent",colorBorder:Os(n,15),colorBorderSecondary:Os(n,6)}};function sm(e){Il.pink=Il.magenta,Tp.pink=Tp.magenta;const t=Object.keys(ay).map(n=>{const r=e[n]===Il[n]?Tp[n]:Mi(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),Y2(e,{generateColorPalettes:f6,generateNeutralColorPalettes:m6})),J2(e.fontSize)),d6(e)),Q2(e)),c6(e))}const iy=cf(sm),Rc={token:Vl,override:{override:Vl},hashed:!0},ly=Q.createContext(Rc),Nc="ant",cm="anticon",p6=["outlined","borderless","filled","underlined"],v6=(e,t)=>t||(e?`${Nc}-${e}`:Nc),ot=l.createContext({getPrefixCls:v6,iconPrefixCls:cm}),{Consumer:yJ}=ot,mS={};function jn(e){const t=l.useContext(ot),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:mS,styles:mS},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const g6=`-ant-${Date.now()}-${Math.random()}`;function h6(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(i,s)=>{const c=new Lt(i),u=Mi(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Lt(t.primaryColor),s=Mi(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const c=new Lt(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.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"),`
|
|
86
|
+
:root {
|
|
87
|
+
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
88
|
+
`)}
|
|
89
|
+
}
|
|
90
|
+
`.trim()}function y6(e,t){const n=h6(e,t);Qn()&&ia(n,`${g6}-dynamic-theme`)}const Ir=l.createContext(!1),sy=({children:e,disabled:t})=>{const n=l.useContext(Ir);return l.createElement(Ir.Provider,{value:t??n},e)},ji=l.createContext(void 0),b6=({children:e,size:t})=>{const n=l.useContext(ji);return l.createElement(ji.Provider,{value:t||n},e)};function C6(){const e=l.useContext(Ir),t=l.useContext(ji);return{componentDisabled:e,componentSize:t}}var Z2=cn(function e(){sn(this,e)}),eO="CALC_UNIT",S6=new RegExp(eO,"g");function _p(e){return typeof e=="number"?"".concat(e).concat(eO):e}var x6=function(e){Jr(n,e);var t=ho(n);function n(r,o){var a;sn(this,n),a=t.call(this),D(Ve(a),"result",""),D(Ve(a),"unitlessCssVar",void 0),D(Ve(a),"lowPriority",void 0);var i=et(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=_p(r):i==="string"&&(a.result=r),a}return cn(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(_p(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(_p(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 a=this,i=o||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(S6,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Z2),$6=function(e){Jr(n,e);var t=ho(n);function n(r){var o;return sn(this,n),o=t.call(this),D(Ve(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return cn(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}(Z2),w6=function(t,n){var r=t==="css"?x6:$6;return function(o){return new r(o,n)}},pS=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=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Ti(e){var t=l.useRef(!1),n=l.useState(e),r=oe(n,2),o=r[0],a=r[1];l.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,c){c&&t.current||a(s)}return[o,i]}function zp(e){return e!==void 0}function rn(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=Ti(function(){return zp(o)?o:zp(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=oe(s,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=i?i(f):f,p=Gt(a),g=Ti([f]),y=oe(g,2),h=y[0],v=y[1];El(function(){var C=h[0];u!==C&&p(u,C)},[h]),El(function(){zp(o)||d(o)},[o]);var b=Gt(function(C,S){d(C,S),v([f],S)});return[m,b]}function vS(e,t,n,r){var o=W({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var c=oe(s,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var i=W(W({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var tO=typeof CSSINJS_STATISTIC<"u",Qg=!0;function Et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!tO)return Object.assign.apply(Object,[{}].concat(t));Qg=!1;var r={};return t.forEach(function(o){if(et(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Qg=!0,r}var gS={};function E6(){}var O6=function(t){var n,r=t,o=E6;return tO&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(Qg){var c;(c=n)===null||c===void 0||c.add(s)}return i[s]}}),o=function(i,s){var c;gS[i]={global:Array.from(n),component:W(W({},(c=gS[i])===null||c===void 0?void 0:c.component),s)}}),{token:r,keys:n,flush:o}};function hS(e,t,n){if(typeof n=="function"){var r;return n(Et(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function I6(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(a){return A(a)}).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(a){return A(a)}).join(","),")")}}}var P6=1e3*60*10,R6=function(){function e(){sn(this,e),D(this,"map",new Map),D(this,"objectIDMap",new WeakMap),D(this,"nextID",0),D(this,"lastAccessBeat",new Map),D(this,"accessBeat",0)}return cn(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(a){return a&&et(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(et(a),"_").concat(a)});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,a){r-o>P6&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),yS=new R6;function N6(e,t){return Q.useMemo(function(){var n=yS.get(t);if(n)return n;var r=e();return yS.set(t,r),r},t)}var M6=function(){return{}};function j6(e){var t=e.useCSP,n=t===void 0?M6:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(m,p,g,y){var h=Array.isArray(m)?m[0]:m;function v($){return"".concat(String(h)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var b=(y==null?void 0:y.unitless)||{},C=typeof s=="function"?s(m):{},S=W(W({},C),{},D({},v("zIndexPopup"),!0));Object.keys(b).forEach(function($){S[v($)]=b[$]});var x=W(W({},y),{},{unitless:S,prefixToken:v}),w=d(m,p,g,x),O=u(h,g,x);return function($){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,I=w($,E),R=oe(I,2),M=R[1],N=O(E),P=oe(N,2),_=P[0],j=P[1];return[_,M,j]}}function u(m,p,g){var y=g.unitless,h=g.injectStyle,v=h===void 0?!0:h,b=g.prefixToken,C=g.ignore,S=function(O){var $=O.rootCls,E=O.cssVar,I=E===void 0?{}:E,R=r(),M=R.realToken;return GT({path:[m],prefix:I.prefix,key:I.key,unitless:y,ignore:C,token:M,scope:$},function(){var N=hS(m,M,p),P=vS(m,M,N,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(N).forEach(function(_){P[b(_)]=P[_],delete P[_]}),P}),null},x=function(O){var $=r(),E=$.cssVar;return[function(I){return v&&E?Q.createElement(Q.Fragment,null,Q.createElement(S,{rootCls:O,cssVar:E,component:m}),I):I},E==null?void 0:E.key]};return x}function d(m,p,g){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(m)?m:[m,m],v=oe(h,1),b=v[0],C=h.join("-"),S=e.layer||{name:"antd"};return function(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,O=r(),$=O.theme,E=O.realToken,I=O.hashId,R=O.token,M=O.cssVar,N=o(),P=N.rootPrefixCls,_=N.iconPrefixCls,j=n(),T=M?"css":"js",z=N6(function(){var U=new Set;return M&&Object.keys(y.unitless||{}).forEach(function(G){U.add(Sd(G,M.prefix)),U.add(Sd(G,pS(b,M.prefix)))}),w6(T,U)},[T,b,M==null?void 0:M.prefix]),L=I6(T),k=L.max,H=L.min,K={theme:$,token:R,hashId:I,nonce:function(){return j.nonce},clientOnly:y.clientOnly,layer:S,order:y.order||-999};typeof a=="function"&&kg(W(W({},K),{},{clientOnly:!1,path:["Shared",P]}),function(){return a(R,{prefix:{rootPrefixCls:P,iconPrefixCls:_},csp:j})});var B=kg(W(W({},K),{},{path:[C,x,_]}),function(){if(y.injectStyle===!1)return[];var U=O6(R),G=U.token,q=U.flush,te=hS(b,E,g),Z=".".concat(x),ee=vS(b,E,te,{deprecatedTokens:y.deprecatedTokens});M&&te&&et(te)==="object"&&Object.keys(te).forEach(function(ae){te[ae]="var(".concat(Sd(ae,pS(b,M.prefix)),")")});var ue=Et(G,{componentCls:Z,prefixCls:x,iconCls:".".concat(_),antCls:".".concat(P),calc:z,max:k,min:H},M?te:ee),re=p(ue,{hashId:I,prefixCls:x,rootPrefixCls:P,iconPrefixCls:_});q(b,ee);var X=typeof i=="function"?i(ue,x,w,y.resetFont):null;return[y.resetStyle===!1?null:X,re]});return[B,I]}}function f(m,p,g){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=d(m,p,g,W({resetStyle:!1,order:-998},y)),v=function(C){var S=C.prefixCls,x=C.rootCls,w=x===void 0?S:x;return h(S,w),null};return v}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Wa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],T6="5.29.3";function Lp(e){return e>=0&&e<=255}function zs(e,t){const{r:n,g:r,b:o,a}=new Lt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:c}=new Lt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Lp(d)&&Lp(f)&&Lp(m))return new Lt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Lt({r:n,g:r,b:o,a:1}).toRgbString()}var _6=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 cy(e){const{override:t}=e,n=_6(e,["override"]),r=Object.assign({},t);Object.keys(Vl).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:zs(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:zs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:zs(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:zs(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:`
|
|
91
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
92
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
93
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
94
|
+
`,boxShadowSecondary:`
|
|
95
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
96
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
97
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
98
|
+
`,boxShadowTertiary:`
|
|
99
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
100
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
101
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
102
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
103
|
+
0 1px 2px -2px ${new Lt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
104
|
+
0 3px 6px 0 ${new Lt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
105
|
+
0 5px 12px 4px ${new Lt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
106
|
+
`,boxShadowDrawerRight:`
|
|
107
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
108
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
109
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
110
|
+
`,boxShadowDrawerLeft:`
|
|
111
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
112
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
113
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
114
|
+
`,boxShadowDrawerUp:`
|
|
115
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
116
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
117
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
118
|
+
`,boxShadowDrawerDown:`
|
|
119
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
120
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
121
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
122
|
+
`,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 bS=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 nO={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},z6={motionBase:!0,motionUnit:!0},L6={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},rO=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=bS(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=cy(i),a&&Object.entries(a).forEach(([s,c])=>{const{theme:u}=c,d=bS(c,["theme"]);let f=d;u&&(f=rO(Object.assign(Object.assign({},i),d),{override:d},u)),i[s]=f}),i};function tr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Q.useContext(ly),a=`${T6}-${t||""}`,i=n||iy,[s,c,u]=bT(i,[Vl,e],{salt:a,override:r,getComputedToken:rO,formatToken:cy,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:nO,ignore:z6,preserve:L6}});return[i,u,t?c:"",s,o]}const _o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Dt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ai=()=>({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"}}),Qo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),D6=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"}}}),B6=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},Jo=(e,t)=>({outline:`${A(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),zo=(e,t)=>({"&:focus-visible":Jo(e,t)}),oO=e=>({[`.${e}`]:Object.assign(Object.assign({},Ai()),{[`.${e} .${e}-icon`]:{display:"block"}})}),uy=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"},zo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Tt,genComponentStyleHook:k6,genSubStyleComponent:rs}=j6({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(ot);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}=l.useContext(ot);return e??{}},getResetStyles:(e,t)=>{var n;const r=D6(e);return[r,{"&":r},oO((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:cm)]},getCommonStyle:B6,getCompUnitless:()=>nO});function aO(e,t){return Wa.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const A6=(e,t)=>{const[n,r]=tr();return kg({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>oO(e))},F6=Object.assign({},Wc),{useId:CS}=F6,H6=()=>"",V6=typeof CS>"u"?H6:CS;function W6(e,t,n){var r;ni();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Rc),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Rc.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=V6();return ki(()=>{var s,c;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(s,c)=>s.some((u,d)=>{const f=c[d];return!Yo(u,f,!0)}))}var K6=["children"],iO=l.createContext({});function U6(e){var t=e.children,n=ft(e,K6);return l.createElement(iO.Provider,{value:n},t)}var G6=function(e){Jr(n,e);var t=ho(n);function n(){return sn(this,n),t.apply(this,arguments)}return cn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function q6(e){var t=l.useReducer(function(s){return s+1},0),n=oe(t,2),r=n[1],o=l.useRef(e),a=Gt(function(){return o.current}),i=Gt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var ya="none",Vu="appear",Wu="enter",Ku="leave",SS="none",wo="prepare",gl="start",hl="active",dy="end",lO="prepared";function xS(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 X6(e,t){var n={animationend:xS("Animation","AnimationEnd"),transitionend:xS("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Y6=X6(Qn(),typeof window<"u"?window:{}),sO={};if(Qn()){var Q6=document.createElement("div");sO=Q6.style}var Uu={};function cO(e){if(Uu[e])return Uu[e];var t=Y6[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in sO)return Uu[e]=t[a],Uu[e]}return""}var uO=cO("animationend"),dO=cO("transitionend"),fO=!!(uO&&dO),$S=uO||"animationend",wS=dO||"transitionend";function ES(e,t){if(!e)return null;if(et(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const J6=function(e){var t=l.useRef();function n(o){o&&(o.removeEventListener(wS,e),o.removeEventListener($S,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(wS,e),o.addEventListener($S,e),t.current=o)}return l.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var mO=Qn()?l.useLayoutEffect:l.useEffect;const Z6=function(){var e=l.useRef(null);function t(){jt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=jt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var e_=[wo,gl,hl,dy],t_=[wo,lO],pO=!1,n_=!0;function vO(e){return e===hl||e===dy}const r_=function(e,t,n){var r=Ti(SS),o=oe(r,2),a=o[0],i=o[1],s=Z6(),c=oe(s,2),u=c[0],d=c[1];function f(){i(wo,!0)}var m=t?t_:e_;return mO(function(){if(a!==SS&&a!==dy){var p=m.indexOf(a),g=m[p+1],y=n(a);y===pO?i(g,!0):g&&u(function(h){function v(){h.isCanceled()||i(g,!0)}y===!0?v():Promise.resolve(y).then(v)})}},[e,a]),l.useEffect(function(){return function(){d()}},[]),[f,a]};function o_(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,p=r.onEnterPrepare,g=r.onLeavePrepare,y=r.onAppearStart,h=r.onEnterStart,v=r.onLeaveStart,b=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,w=r.onEnterEnd,O=r.onLeaveEnd,$=r.onVisibleChanged,E=Ti(),I=oe(E,2),R=I[0],M=I[1],N=q6(ya),P=oe(N,2),_=P[0],j=P[1],T=Ti(null),z=oe(T,2),L=z[0],k=z[1],H=_(),K=l.useRef(!1),B=l.useRef(null);function U(){return n()}var G=l.useRef(!1);function q(){j(ya),k(null,!0)}var te=Gt(function(ie){var ge=_();if(ge!==ya){var de=U();if(!(ie&&!ie.deadline&&ie.target!==de)){var ve=G.current,Re;ge===Vu&&ve?Re=x==null?void 0:x(de,ie):ge===Wu&&ve?Re=w==null?void 0:w(de,ie):ge===Ku&&ve&&(Re=O==null?void 0:O(de,ie)),ve&&Re!==!1&&q()}}}),Z=J6(te),ee=oe(Z,1),ue=ee[0],re=function(ge){switch(ge){case Vu:return D(D(D({},wo,m),gl,y),hl,b);case Wu:return D(D(D({},wo,p),gl,h),hl,C);case Ku:return D(D(D({},wo,g),gl,v),hl,S);default:return{}}},X=l.useMemo(function(){return re(H)},[H]),ae=r_(H,!e,function(ie){if(ie===wo){var ge=X[wo];return ge?ge(U()):pO}if(Y in X){var de;k(((de=X[Y])===null||de===void 0?void 0:de.call(X,U(),null))||null)}return Y===hl&&H!==ya&&(ue(U()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){te({deadline:!0})},d))),Y===lO&&q(),n_}),ne=oe(ae,2),J=ne[0],Y=ne[1],se=vO(Y);G.current=se;var fe=l.useRef(null);mO(function(){if(!(K.current&&fe.current===t)){M(t);var ie=K.current;K.current=!0;var ge;!ie&&t&&s&&(ge=Vu),ie&&t&&a&&(ge=Wu),(ie&&!t&&u||!ie&&f&&!t&&u)&&(ge=Ku);var de=re(ge);ge&&(e||de[wo])?(j(ge),J()):j(ya),fe.current=t}},[t]),l.useEffect(function(){(H===Vu&&!s||H===Wu&&!a||H===Ku&&!u)&&j(ya)},[s,a,u]),l.useEffect(function(){return function(){K.current=!1,clearTimeout(B.current)}},[]);var $e=l.useRef(!1);l.useEffect(function(){R&&($e.current=!0),R!==void 0&&H===ya&&(($e.current||R)&&($==null||$(R)),$e.current=!0)},[R,H]);var Ce=L;return X[wo]&&Y===gl&&(Ce=W({transition:"none"},Ce)),[H,Y,Ce,R??t]}function a_(e){var t=e;et(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=l.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,p=o.leavedClassName,g=o.eventProps,y=l.useContext(iO),h=y.motion,v=n(o,h),b=l.useRef(),C=l.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:Cd(C.current)}catch{return null}}var x=o_(v,s,S,o),w=oe(x,4),O=w[0],$=w[1],E=w[2],I=w[3],R=l.useRef(I);I&&(R.current=!0);var M=l.useCallback(function(z){b.current=z,wc(a,z)},[a]),N,P=W(W({},g),{},{visible:s});if(!f)N=null;else if(O===ya)I?N=f(W({},P),M):!u&&R.current&&p?N=f(W(W({},P),{},{className:p}),M):d||!u&&!p?N=f(W(W({},P),{},{style:{display:"none"}}),M):N=null;else{var _;$===wo?_="prepare":vO($)?_="active":$===gl&&(_="start");var j=ES(m,"".concat(O,"-").concat(_));N=f(W(W({},P),{},{className:V(ES(m,O),D(D({},j,j&&_),m,typeof m=="string")),style:E}),M)}if(l.isValidElement(N)&&To(N)){var T=ti(N);T||(N=l.cloneElement(N,{ref:M}))}return l.createElement(G6,{ref:C},N)});return r.displayName="CSSMotion",r}const Nr=a_(fO);var Jg="add",Zg="keep",eh="remove",Dp="removed";function i_(e){var t;return e&&et(e)==="object"&&"key"in e?t=e:t={key:e},W(W({},t),{},{key:String(t.key)})}function th(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(i_)}function l_(){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,a=th(e),i=th(t);a.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=i[f];if(m.key===u.key){r<f&&(n=n.concat(i.slice(r,f).map(function(p){return W(W({},p),{},{status:Jg})})),r=f),n.push(W(W({},m),{},{status:Zg})),r+=1,d=!0;break}}d||n.push(W(W({},u),{},{status:eh}))}),r<o&&(n=n.concat(i.slice(r).map(function(u){return W(W({},u),{},{status:Jg})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(u){return s[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==eh}),n.forEach(function(d){d.key===u&&(d.status=Zg)})}),n}var s_=["component","children","onVisibleChanged","onAllRemoved"],c_=["status"],u_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function d_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nr,n=function(r){Jr(a,r);var o=ho(a);function a(){var i;sn(this,a);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return i=o.call.apply(o,[this].concat(c)),D(Ve(i),"state",{keyEntities:[]}),D(Ve(i),"removeKey",function(d){i.setState(function(f){var m=f.keyEntities.map(function(p){return p.key!==d?p:W(W({},p),{},{status:Dp})});return{keyEntities:m}},function(){var f=i.state.keyEntities,m=f.filter(function(p){var g=p.status;return g!==Dp}).length;m===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return cn(a,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var p=ft(u,s_),g=d||l.Fragment,y={};return u_.forEach(function(h){y[h]=p[h],delete p[h]}),delete p.keys,l.createElement(g,p,c.map(function(h,v){var b=h.status,C=ft(h,c_),S=b===Jg||b===Zg;return l.createElement(t,pe({},y,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(w){m==null||m(w,{key:C.key}),w||s.removeKey(C.key)}}),function(x,w){return f(W(W({},x),{},{index:v}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=s.keys,d=c.keyEntities,f=th(u),m=l_(d,f);return{keyEntities:m.filter(function(p){var g=d.find(function(y){var h=y.key;return p.key===h});return!(g&&g.status===Dp&&p.status===eh)})}}}]),a}(l.Component);return D(n,"defaultProps",{component:"div"}),n}const fy=d_(fO),OS=l.createContext(!0);function f_(e){const t=l.useContext(OS),{children:n}=e,[,r]=tr(),{motion:o}=r,a=l.useRef(!1);return a.current||(a.current=t!==o),a.current?l.createElement(OS.Provider,{value:o},l.createElement(U6,{motion:o},n)):n}const m_=()=>null;var p_=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 v_=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ff,gO,hO,yO;function Pd(){return ff||Nc}function g_(){return gO||cm}function h_(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const y_=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(ff=t),n!==void 0&&(gO=n),"holderRender"in e&&(yO=o),r&&(h_(r)?y6(Pd(),r):hO=r)},bO=()=>({getPrefixCls:(e,t)=>t||(e?`${Pd()}-${e}`:Pd()),getIconPrefixCls:g_,getRootPrefixCls:()=>ff||Pd(),getTheme:()=>hO,holderRender:yO}),b_=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:p,popupMatchSelectWidth:g,popupOverflow:y,legacyLocale:h,parentContext:v,iconPrefixCls:b,theme:C,componentDisabled:S,segmented:x,statistic:w,spin:O,calendar:$,carousel:E,cascader:I,collapse:R,typography:M,checkbox:N,descriptions:P,divider:_,drawer:j,skeleton:T,steps:z,image:L,layout:k,list:H,mentions:K,modal:B,progress:U,result:G,slider:q,breadcrumb:te,menu:Z,pagination:ee,input:ue,textArea:re,empty:X,badge:ae,radio:ne,rate:J,switch:Y,transfer:se,avatar:fe,message:$e,tag:Ce,table:ie,card:ge,tabs:de,timeline:ve,timePicker:Re,upload:_e,notification:Ue,tree:ke,colorPicker:De,datePicker:Ae,rangePicker:xe,flex:ye,wave:je,dropdown:Pe,warning:Be,tour:me,tooltip:Ie,popover:Te,popconfirm:Ne,floatButton:tt,floatButtonGroup:st,variant:Le,inputNumber:Ge,treeSelect:Qe}=e,Fe=l.useCallback((qe,yt)=>{const{prefixCls:Ye}=e;if(yt)return yt;const Ke=Ye||v.getPrefixCls("");return qe?`${Ke}-${qe}`:Ke},[v.getPrefixCls,e.prefixCls]),nt=b||v.iconPrefixCls||cm,bt=n||v.csp;A6(nt,bt);const le=W6(C,v.theme,{prefixCls:Fe("")}),ce={csp:bt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||h,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:g??p,popupOverflow:y,getPrefixCls:Fe,iconPrefixCls:nt,theme:le,segmented:x,statistic:w,spin:O,calendar:$,carousel:E,cascader:I,collapse:R,typography:M,checkbox:N,descriptions:P,divider:_,drawer:j,skeleton:T,steps:z,image:L,input:ue,textArea:re,layout:k,list:H,mentions:K,modal:B,progress:U,result:G,slider:q,breadcrumb:te,menu:Z,pagination:ee,empty:X,badge:ae,radio:ne,rate:J,switch:Y,transfer:se,avatar:fe,message:$e,tag:Ce,table:ie,card:ge,tabs:de,timeline:ve,timePicker:Re,upload:_e,notification:Ue,tree:ke,colorPicker:De,datePicker:Ae,rangePicker:xe,flex:ye,wave:je,dropdown:Pe,warning:Be,tour:me,tooltip:Ie,popover:Te,popconfirm:Ne,floatButton:tt,floatButtonGroup:st,variant:Le,inputNumber:Ge,treeSelect:Qe},Se=Object.assign({},v);Object.keys(ce).forEach(qe=>{ce[qe]!==void 0&&(Se[qe]=ce[qe])}),v_.forEach(qe=>{const yt=e[qe];yt&&(Se[qe]=yt)}),typeof r<"u"&&(Se.button=Object.assign({autoInsertSpace:r},Se.button));const he=ki(()=>Se,Se,(qe,yt)=>{const Ye=Object.keys(qe),Ke=Object.keys(yt);return Ye.length!==Ke.length||Ye.some(ct=>qe[ct]!==yt[ct])}),{layer:Ee}=l.useContext(Yc),Oe=l.useMemo(()=>({prefixCls:nt,csp:bt,layer:Ee?"antd":void 0}),[nt,bt,Ee]);let we=l.createElement(l.Fragment,null,l.createElement(m_,{dropdownMatchSelectWidth:p}),t);const Me=l.useMemo(()=>{var qe,yt,Ye,Ke;return vl(((qe=vo.Form)===null||qe===void 0?void 0:qe.defaultValidateMessages)||{},((Ye=(yt=he.locale)===null||yt===void 0?void 0:yt.Form)===null||Ye===void 0?void 0:Ye.defaultValidateMessages)||{},((Ke=he.form)===null||Ke===void 0?void 0:Ke.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[he,i==null?void 0:i.validateMessages]);Object.keys(Me).length>0&&(we=l.createElement(W2.Provider,{value:Me},we)),s&&(we=l.createElement(r6,{locale:s,_ANT_MARK__:n6},we)),we=l.createElement(ry.Provider,{value:Oe},we),c&&(we=l.createElement(b6,{size:c},we)),we=l.createElement(f_,null,we);const ze=l.useMemo(()=>{const qe=le||{},{algorithm:yt,token:Ye,components:Ke,cssVar:ct}=qe,Ot=p_(qe,["algorithm","token","components","cssVar"]),Nt=yt&&(!Array.isArray(yt)||yt.length>0)?cf(yt):iy,_t={};Object.entries(Ke||{}).forEach(([wt,kt])=>{const He=Object.assign({},kt);"algorithm"in He&&(He.algorithm===!0?He.theme=Nt:(Array.isArray(He.algorithm)||typeof He.algorithm=="function")&&(He.theme=cf(He.algorithm)),delete He.algorithm),_t[wt]=He});const Wt=Object.assign(Object.assign({},Vl),Ye);return Object.assign(Object.assign({},Ot),{theme:Nt,token:Wt,components:_t,override:Object.assign({override:Wt},_t),cssVar:ct})},[le]);return C&&(we=l.createElement(ly.Provider,{value:ze},we)),he.warning&&(we=l.createElement(JT.Provider,{value:he.warning},we)),S!==void 0&&(we=l.createElement(sy,{disabled:S},we)),l.createElement(ot.Provider,{value:he},we)},bo=e=>{const t=l.useContext(ot),n=l.useContext(oy);return l.createElement(b_,Object.assign({parentContext:t,legacyLocale:n},e))};bo.ConfigContext=ot;bo.SizeContext=ji;bo.config=y_;bo.useConfig=C6;Object.defineProperty(bo,"SizeContext",{get:()=>ji});var C_={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"};function CO(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function S_(e){return CO(e)instanceof ShadowRoot}function mf(e){return S_(e)?CO(e):null}function x_(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $_(e,t){an(e,"[@ant-design/icons] ".concat(t))}function IS(e){return et(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(et(e.icon)==="object"||typeof e.icon=="function")}function PS(){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[x_(n)]=r}return t},{})}function nh(e,t,n){return n?Q.createElement(e.tag,W(W({key:t},PS(e.attrs)),n),(e.children||[]).map(function(r,o){return nh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Q.createElement(e.tag,W({key:t},PS(e.attrs)),(e.children||[]).map(function(r,o){return nh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function SO(e){return Mi(e)[0]}function xO(e){return e?Array.isArray(e)?e:[e]:[]}var w_=`
|
|
123
|
+
.anticon {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
color: inherit;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
line-height: 0;
|
|
129
|
+
text-align: center;
|
|
130
|
+
text-transform: none;
|
|
131
|
+
vertical-align: -0.125em;
|
|
132
|
+
text-rendering: optimizeLegibility;
|
|
133
|
+
-webkit-font-smoothing: antialiased;
|
|
134
|
+
-moz-osx-font-smoothing: grayscale;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.anticon > * {
|
|
138
|
+
line-height: 1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.anticon svg {
|
|
142
|
+
display: inline-block;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.anticon::before {
|
|
146
|
+
display: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.anticon .anticon-icon {
|
|
150
|
+
display: block;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.anticon[tabindex] {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.anticon-spin::before,
|
|
158
|
+
.anticon-spin {
|
|
159
|
+
display: inline-block;
|
|
160
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
161
|
+
animation: loadingCircle 1s infinite linear;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@-webkit-keyframes loadingCircle {
|
|
165
|
+
100% {
|
|
166
|
+
-webkit-transform: rotate(360deg);
|
|
167
|
+
transform: rotate(360deg);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@keyframes loadingCircle {
|
|
172
|
+
100% {
|
|
173
|
+
-webkit-transform: rotate(360deg);
|
|
174
|
+
transform: rotate(360deg);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
`,E_=function(t){var n=l.useContext(ry),r=n.csp,o=n.prefixCls,a=n.layer,i=w_;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
|
|
178
|
+
`).concat(i,`
|
|
179
|
+
}`)),l.useEffect(function(){var s=t.current,c=mf(s);ia(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:c})},[])},O_=["icon","className","onClick","style","primaryColor","secondaryColor"],Qs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function I_(e){var t=e.primaryColor,n=e.secondaryColor;Qs.primaryColor=t,Qs.secondaryColor=n||SO(t),Qs.calculated=!!n}function P_(){return W({},Qs)}var os=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,c=ft(t,O_),u=l.useRef(),d=Qs;if(i&&(d={primaryColor:i,secondaryColor:s||SO(i)}),E_(u),$_(IS(n),"icon should be icon definiton, but got ".concat(n)),!IS(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=W(W({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),nh(f.icon,"svg-".concat(f.name),W(W({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};os.displayName="IconReact";os.getTwoToneColors=P_;os.setTwoToneColors=I_;function $O(e){var t=xO(e),n=oe(t,2),r=n[0],o=n[1];return os.setTwoToneColors({primaryColor:r,secondaryColor:o})}function R_(){var e=os.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var N_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];$O(Wl.primary);var ht=l.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=ft(e,N_),d=l.useContext(ry),f=d.prefixCls,m=f===void 0?"anticon":f,p=d.rootClassName,g=V(p,m,D(D({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),y=i;y===void 0&&s&&(y=-1);var h=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=xO(c),b=oe(v,2),C=b[0],S=b[1];return l.createElement("span",pe({role:"img","aria-label":r.name},u,{ref:t,tabIndex:y,onClick:s,className:g}),l.createElement(os,{icon:r,primaryColor:C,secondaryColor:S,style:h}))});ht.displayName="AntdIcon";ht.getTwoToneColor=R_;ht.setTwoToneColor=$O;var M_=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:C_}))},Qc=l.forwardRef(M_),j_={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"},T_=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:j_}))},Fi=l.forwardRef(T_),__={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"},z_=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:__}))},ri=l.forwardRef(z_),L_={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"},D_=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:L_}))},as=l.forwardRef(D_),B_={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"},k_=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:B_}))},my=l.forwardRef(k_),A_=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
180
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
181
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
182
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
183
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
184
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
185
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
186
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
187
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
188
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
189
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
190
|
+
summary tabIndex target title type useMap value width wmode wrap`,F_=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
191
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
192
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
193
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
194
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
195
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
196
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,H_="".concat(A_," ").concat(F_).split(/[\s\n]+/),V_="aria-",W_="data-";function RS(e,t){return e.indexOf(t)===0}function Jn(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=W({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||RS(o,V_))||n.data&&RS(o,W_)||n.attr&&H_.includes(o))&&(r[o]=e[o])}),r}function wO(e){return e&&Q.isValidElement(e)&&e.type===Q.Fragment}const py=(e,t,n)=>Q.isValidElement(e)?Q.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Dn(e,t){return py(e,e,t)}const Gu=(e,t,n,r,o)=>({background:e,border:`${A(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),K_=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:p,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},Dt(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
|
|
197
|
+
padding-top ${n} ${u}, padding-bottom ${n} ${u},
|
|
198
|
+
margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},U_=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:p}=e;return{[t]:{"&-success":Gu(o,r,n,e,t),"&-info":Gu(p,m,f,e,t),"&-warning":Gu(s,i,a,e,t),"&-error":Object.assign(Object.assign({},Gu(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},G_=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:A(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:s}}}}},q_=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),X_=Tt("Alert",e=>[K_(e),U_(e),G_(e)],q_);var NS=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 Y_={success:Qc,info:my,error:Fi,warning:as},Q_=e=>{const{icon:t,prefixCls:n,type:r}=e,o=Y_[r]||null;return t?py(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:V(`${n}-icon`,t.props.className)})):l.createElement(o,{className:`${n}-icon`})},J_=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:a}=e,i=r===!0||r===void 0?l.createElement(ri,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},a),i):null},EO=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:a,className:i,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:p,closable:g,closeText:y,closeIcon:h,action:v,id:b}=e,C=NS(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,x]=l.useState(!1),w=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:w.current}));const{getPrefixCls:O,direction:$,closable:E,closeIcon:I,className:R,style:M}=jn("alert"),N=O("alert",r),[P,_,j]=X_(N),T=G=>{var q;x(!0),(q=e.onClose)===null||q===void 0||q.call(e,G)},z=l.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),L=l.useMemo(()=>typeof g=="object"&&g.closeIcon||y?!0:typeof g=="boolean"?g:h!==!1&&h!==null&&h!==void 0?!0:!!E,[y,h,g,E]),k=a&&p===void 0?!0:p,H=V(N,`${N}-${z}`,{[`${N}-with-description`]:!!n,[`${N}-no-icon`]:!k,[`${N}-banner`]:!!a,[`${N}-rtl`]:$==="rtl"},R,i,s,j,_),K=Jn(C,{aria:!0,data:!0}),B=l.useMemo(()=>typeof g=="object"&&g.closeIcon?g.closeIcon:y||(h!==void 0?h:typeof E=="object"&&E.closeIcon?E.closeIcon:I),[h,g,E,y,I]),U=l.useMemo(()=>{const G=g??E;if(typeof G=="object"){const{closeIcon:q}=G;return NS(G,["closeIcon"])}return{}},[g,E]);return P(l.createElement(Nr,{visible:!S,motionName:`${N}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:G=>({maxHeight:G.offsetHeight}),onLeaveEnd:m},({className:G,style:q},te)=>l.createElement("div",Object.assign({id:b,ref:er(w,te),"data-show":!S,className:V(H,G),style:Object.assign(Object.assign(Object.assign({},M),c),q),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},K),k?l.createElement(Q_,{description:n,icon:e.icon,prefixCls:N,type:z}):null,l.createElement("div",{className:`${N}-content`},o?l.createElement("div",{className:`${N}-message`},o):null,n?l.createElement("div",{className:`${N}-description`},n):null),v?l.createElement("div",{className:`${N}-action`},v):null,l.createElement(J_,{isClosable:L,prefixCls:N,closeIcon:B,handleClose:T,ariaProps:U}))))});function Z_(e,t,n){return t=Ni(t),h2(e,om()?Reflect.construct(t,n||[],Ni(e).constructor):t.apply(e,n))}let e8=function(e){function t(){var n;return sn(this,t),n=Z_(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Jr(t,e),cn(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:a,children:i}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof o>"u"?u:o;return s?l.createElement(EO,{id:a,type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])}(l.Component);const Mc=EO;Mc.ErrorBoundary=e8;const MS=e=>typeof e=="object"&&e!=null&&e.nodeType===1,jS=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",qu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return jS(n.overflowY,t)||jS(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Xu=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,t8=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},TS=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:j=>j!==u;if(!MS(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,p=[];let g=e;for(;MS(g)&&f(g);){if(g=t8(g),g===m){p.push(g);break}g!=null&&g===document.body&&qu(g)&&!qu(document.documentElement)||g!=null&&qu(g,d)&&p.push(g)}const y=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:v,scrollY:b}=window,{height:C,width:S,top:x,right:w,bottom:O,left:$}=e.getBoundingClientRect(),{top:E,right:I,bottom:R,left:M}=(j=>{const T=window.getComputedStyle(j);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(e);let N=s==="start"||s==="nearest"?x-E:s==="end"?O+R:x+C/2-E+R,P=c==="center"?$+S/2-M+I:c==="end"?w+I:$-M;const _=[];for(let j=0;j<p.length;j++){const T=p[j],{height:z,width:L,top:k,right:H,bottom:K,left:B}=T.getBoundingClientRect();if(i==="if-needed"&&x>=0&&$>=0&&O<=h&&w<=y&&(T===m&&!qu(T)||x>=k&&O<=K&&$>=B&&w<=H))return _;const U=getComputedStyle(T),G=parseInt(U.borderLeftWidth,10),q=parseInt(U.borderTopWidth,10),te=parseInt(U.borderRightWidth,10),Z=parseInt(U.borderBottomWidth,10);let ee=0,ue=0;const re="offsetWidth"in T?T.offsetWidth-T.clientWidth-G-te:0,X="offsetHeight"in T?T.offsetHeight-T.clientHeight-q-Z:0,ae="offsetWidth"in T?T.offsetWidth===0?0:L/T.offsetWidth:0,ne="offsetHeight"in T?T.offsetHeight===0?0:z/T.offsetHeight:0;if(m===T)ee=s==="start"?N:s==="end"?N-h:s==="nearest"?Xu(b,b+h,h,q,Z,b+N,b+N+C,C):N-h/2,ue=c==="start"?P:c==="center"?P-y/2:c==="end"?P-y:Xu(v,v+y,y,G,te,v+P,v+P+S,S),ee=Math.max(0,ee+b),ue=Math.max(0,ue+v);else{ee=s==="start"?N-k-q:s==="end"?N-K+Z+X:s==="nearest"?Xu(k,K,z,q,Z+X,N,N+C,C):N-(k+z/2)+X/2,ue=c==="start"?P-B-G:c==="center"?P-(B+L/2)+re/2:c==="end"?P-H+te+re:Xu(B,H,L,G,te+re,P,P+S,S);const{scrollLeft:J,scrollTop:Y}=T;ee=ne===0?0:Math.max(0,Math.min(Y+ee/ne,T.scrollHeight-z/ne+X)),ue=ae===0?0:Math.max(0,Math.min(J+ue/ae,T.scrollWidth-L/ae+re)),N+=Y-ee,P+=J-ue}_.push({el:T,top:ee,left:ue})}return _},n8=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function r8(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(TS(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of TS(e,n8(t))){const s=a-n.top+n.bottom,c=i-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}function rh(e){return e!=null&&e===e.window}const o8=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return rh(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!rh(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function a8(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function i8(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=o8(a),s=Date.now(),c=()=>{const d=Date.now()-s,f=a8(d>o?o:d,i,e,o);rh(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d<o?jt(c):typeof r=="function"&&r()};jt(c)}const Vn=e=>{const[,,,,t]=tr();return t?`${e}-css-var`:""};var Xe={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},OO=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,p=e.closeIcon,g=p===void 0?"x":p,y=e.props,h=e.onClick,v=e.onNoticeClose,b=e.times,C=e.hovering,S=l.useState(!1),x=oe(S,2),w=x[0],O=x[1],$=l.useState(0),E=oe($,2),I=E[0],R=E[1],M=l.useState(0),N=oe(M,2),P=N[0],_=N[1],j=C||w,T=i>0&&s,z=function(){v(d)},L=function(G){(G.key==="Enter"||G.code==="Enter"||G.keyCode===Xe.ENTER)&&z()};l.useEffect(function(){if(!j&&i>0){var U=Date.now()-P,G=setTimeout(function(){z()},i*1e3-P);return function(){u&&clearTimeout(G),_(Date.now()-U)}}},[i,j,b]),l.useEffect(function(){if(!j&&T&&(u||P===0)){var U=performance.now(),G,q=function te(){cancelAnimationFrame(G),G=requestAnimationFrame(function(Z){var ee=Z+P-U,ue=Math.min(ee/(i*1e3),1);R(ue*100),ue<1&&te()})};return q(),function(){u&&cancelAnimationFrame(G)}}},[i,P,j,T,b]);var k=l.useMemo(function(){return et(m)==="object"&&m!==null?m:m?{closeIcon:g}:{}},[m,g]),H=Jn(k,!0),K=100-(!I||I<0?0:I>100?100:I),B="".concat(n,"-notice");return l.createElement("div",pe({},y,{ref:t,className:V(B,o,D({},"".concat(B,"-closable"),m)),style:r,onMouseEnter:function(G){var q;O(!0),y==null||(q=y.onMouseEnter)===null||q===void 0||q.call(y,G)},onMouseLeave:function(G){var q;O(!1),y==null||(q=y.onMouseLeave)===null||q===void 0||q.call(y,G)},onClick:h}),l.createElement("div",{className:"".concat(B,"-content")},f),m&&l.createElement("a",pe({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:L,"aria-label":"Close"},H,{onClick:function(G){G.preventDefault(),G.stopPropagation(),z()}}),k.closeIcon),T&&l.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:K},K+"%"))}),IO=Q.createContext({}),l8=function(t){var n=t.children,r=t.classNames;return Q.createElement(IO.Provider,{value:{classNames:r}},n)},_S=8,zS=3,LS=16,s8=function(t){var n={offset:_S,threshold:zS,gap:LS};if(t&&et(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:_S,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:zS,n.gap=(a=t.gap)!==null&&a!==void 0?a:LS}return[!!t,n]},c8=["className","style","classNames","styles"],u8=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(IO),m=f.classNames,p=l.useRef({}),g=l.useState(null),y=oe(g,2),h=y[0],v=y[1],b=l.useState([]),C=oe(b,2),S=C[0],x=C[1],w=n.map(function(j){return{config:j,key:String(j.key)}}),O=s8(d),$=oe(O,2),E=$[0],I=$[1],R=I.offset,M=I.threshold,N=I.gap,P=E&&(S.length>0||w.length<=M),_=typeof s=="function"?s(r):s;return l.useEffect(function(){E&&S.length>1&&x(function(j){return j.filter(function(T){return w.some(function(z){var L=z.key;return T===L})})})},[S,w,E]),l.useEffect(function(){var j;if(E&&p.current[(j=w[w.length-1])===null||j===void 0?void 0:j.key]){var T;v(p.current[(T=w[w.length-1])===null||T===void 0?void 0:T.key])}},[w,E]),Q.createElement(fy,pe({key:r,className:V(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,a,D(D({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),P)),style:i,keys:w,motionAppear:!0},_,{onAllRemoved:function(){c(r)}}),function(j,T){var z=j.config,L=j.className,k=j.style,H=j.index,K=z,B=K.key,U=K.times,G=String(B),q=z,te=q.className,Z=q.style,ee=q.classNames,ue=q.styles,re=ft(q,c8),X=w.findIndex(function(ve){return ve.key===G}),ae={};if(E){var ne=w.length-1-(X>-1?X:H-1),J=r==="top"||r==="bottom"?"-50%":"0";if(ne>0){var Y,se,fe;ae.height=P?(Y=p.current[G])===null||Y===void 0?void 0:Y.offsetHeight:h==null?void 0:h.offsetHeight;for(var $e=0,Ce=0;Ce<ne;Ce++){var ie;$e+=((ie=p.current[w[w.length-1-Ce].key])===null||ie===void 0?void 0:ie.offsetHeight)+N}var ge=(P?$e:ne*R)*(r.startsWith("top")?1:-1),de=!P&&h!==null&&h!==void 0&&h.offsetWidth&&(se=p.current[G])!==null&&se!==void 0&&se.offsetWidth?((h==null?void 0:h.offsetWidth)-R*2*(ne<3?ne:3))/((fe=p.current[G])===null||fe===void 0?void 0:fe.offsetWidth):1;ae.transform="translate3d(".concat(J,", ").concat(ge,"px, 0) scaleX(").concat(de,")")}else ae.transform="translate3d(".concat(J,", 0, 0)")}return Q.createElement("div",{ref:T,className:V("".concat(o,"-notice-wrapper"),L,ee==null?void 0:ee.wrapper),style:W(W(W({},k),ae),ue==null?void 0:ue.wrapper),onMouseEnter:function(){return x(function(Re){return Re.includes(G)?Re:[].concat(be(Re),[G])})},onMouseLeave:function(){return x(function(Re){return Re.filter(function(_e){return _e!==G})})}},Q.createElement(OO,pe({},re,{ref:function(Re){X>-1?p.current[G]=Re:delete p.current[G]},prefixCls:o,classNames:ee,styles:ue,className:V(te,m==null?void 0:m.notice),style:Z,times:U,key:B,eventKey:B,onNoticeClose:u,hovering:E&&S.length>0})))})},d8=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=l.useState([]),p=oe(m,2),g=p[0],y=p[1],h=function(E){var I,R=g.find(function(M){return M.key===E});R==null||(I=R.onClose)===null||I===void 0||I.call(R),y(function(M){return M.filter(function(N){return N.key!==E})})};l.useImperativeHandle(t,function(){return{open:function(E){y(function(I){var R=be(I),M=R.findIndex(function(_){return _.key===E.key}),N=W({},E);if(M>=0){var P;N.times=(((P=I[M])===null||P===void 0?void 0:P.times)||0)+1,R[M]=N}else N.times=0,R.push(N);return i>0&&R.length>i&&(R=R.slice(-i)),R})},close:function(E){h(E)},destroy:function(){y([])}}});var v=l.useState({}),b=oe(v,2),C=b[0],S=b[1];l.useEffect(function(){var $={};g.forEach(function(E){var I=E.placement,R=I===void 0?"topRight":I;R&&($[R]=$[R]||[],$[R].push(E))}),Object.keys(C).forEach(function(E){$[E]=$[E]||[]}),S($)},[g]);var x=function(E){S(function(I){var R=W({},I),M=R[E]||[];return M.length||delete R[E],R})},w=l.useRef(!1);if(l.useEffect(function(){Object.keys(C).length>0?w.current=!0:w.current&&(u==null||u(),w.current=!1)},[C]),!o)return null;var O=Object.keys(C);return mo.createPortal(l.createElement(l.Fragment,null,O.map(function($){var E=C[$],I=l.createElement(u8,{key:$,configList:E,placement:$,prefixCls:r,className:s==null?void 0:s($),style:c==null?void 0:c($),motion:a,onNoticeClose:h,onAllNoticeRemoved:x,stack:d});return f?f(I,{prefixCls:r,key:$}):I})),o)}),f8=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],m8=function(){return document.body},DS=0;function p8(){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(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function v8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?m8:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=ft(e,f8),m=l.useState(),p=oe(m,2),g=p[0],y=p[1],h=l.useRef(),v=l.createElement(d8,{container:g,ref:h,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),b=l.useState([]),C=oe(b,2),S=C[0],x=C[1],w=Gt(function($){var E=p8(f,$);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(DS),DS+=1),x(function(I){return[].concat(be(I),[{type:"open",config:E}])})}),O=l.useMemo(function(){return{open:w,close:function(E){x(function(I){return[].concat(be(I),[{type:"close",key:E}])})},destroy:function(){x(function(E){return[].concat(be(E),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){y(n())}),l.useEffect(function(){if(h.current&&S.length){S.forEach(function(I){switch(I.type){case"open":h.current.open(I.config);break;case"close":h.current.close(I.key);break;case"destroy":h.current.destroy();break}});var $,E;x(function(I){return($!==I||!E)&&($=I,E=I.filter(function(R){return!S.includes(R)})),E})}},[S]),[O,v]}var g8={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"},h8=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:g8}))},da=l.forwardRef(h8);function jc(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function pf(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function BS(e){const{closable:t,closeIcon:n}=e||{};return Q.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 y8={},PO=(e,t,n=y8)=>{const r=BS(e),o=BS(t),[a]=yo("global",vo.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=Q.useMemo(()=>Object.assign({closeIcon:Q.createElement(ri,null)},n),[n]),c=Q.useMemo(()=>r===!1?!1:r?jc(s,o,r):o===!1?!1:o?jc(s,o):s.closable?s:!1,[r,o,s]);return Q.useMemo(()=>{var u,d;if(c===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:m}=c;let p=m;const g=Jn(c,!0);return p!=null&&(f&&(p=f(m)),p=Q.isValidElement(p)?Q.cloneElement(p,Object.assign(Object.assign(Object.assign({},p.props),{"aria-label":(d=(u=p.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:a.close}),g)):Q.createElement("span",Object.assign({"aria-label":a.close},g),p)),[!0,p,i,g]},[i,a.close,c,s])},vy=()=>Q.useReducer(e=>e+1,0),b8=e=>{const[t,n]=l.useState(null);return[l.useCallback((o,a,i)=>{const s=t??o,c=Math.min(s||0,o),u=Math.max(s||0,o),d=a.slice(c,u+1).map(e),f=d.some(p=>!i.has(p)),m=[];return d.forEach(p=>{f?(i.has(p)||m.push(p),i.add(p)):(i.delete(p),m.push(p))}),n(f?u:null),m},[t]),n]},C8=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(o=>[].concat(be(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]};function S8(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const x8=(e,t)=>l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):S8(r,n)}),$8=e=>{const t=l.useRef(e),[,n]=vy();return[()=>t.current,r=>{t.current=r,n()}]},um=Q.createContext(void 0),ba=100,w8=10,RO=ba*w8,NO={Modal:ba,Drawer:ba,Popover:ba,Popconfirm:ba,Tooltip:ba,Tour:ba,FloatButton:ba},E8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function O8(e){return e in NO}const Jc=(e,t)=>{const[,n]=tr(),r=Q.useContext(um),o=O8(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+NO[e]:i+=E8[e],a=[r===void 0?t:i,i]}return a},I8=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:p,borderRadiusLG:g,zIndexPopup:y,contentPadding:h,contentBg:v}=e,b=`${t}-notice`,C=new Bt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),S=new Bt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${b}-content`]:{display:"inline-block",padding:h,background:v,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
199
|
+
${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Dt(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:y,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
200
|
+
${t}-move-up-appear,
|
|
201
|
+
${t}-move-up-enter
|
|
202
|
+
`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
203
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
204
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
205
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},P8=e=>({zIndexPopup:e.zIndexPopupBase+RO+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),MO=Tt("Message",e=>{const t=Et(e,{height:150});return I8(t)},P8);var R8=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 N8={info:l.createElement(my,null),success:l.createElement(Qc,null),error:l.createElement(Fi,null),warning:l.createElement(as,null),loading:l.createElement(da,null)},jO=({prefixCls:e,type:t,icon:n,children:r})=>l.createElement("div",{className:V(`${e}-custom-content`,`${e}-${t}`)},n||N8[t],l.createElement("span",null,r)),M8=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=R8(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(ot),c=t||s("message"),u=Vn(c),[d,f,m]=MO(c,u);return d(l.createElement(OO,Object.assign({},i,{prefixCls:c,className:V(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:l.createElement(jO,{prefixCls:c,type:r,icon:o},a)})))};function j8(e,t){return{motionName:t??`${e}-move-up`}}function gy(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var T8=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 _8=8,z8=3,L8=({children:e,prefixCls:t})=>{const n=Vn(t),[r,o,a]=MO(t,n);return r(l.createElement(l8,{classNames:{list:V(o,a,n)}},e))},D8=(e,{prefixCls:t,key:n})=>l.createElement(L8,{prefixCls:t,key:n},e),B8=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=z8,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:p}=l.useContext(ot),g=r||d("message"),y=()=>({left:"50%",transform:"translateX(-50%)",top:n??_8}),h=()=>V({[`${g}-rtl`]:s??p==="rtl"}),v=()=>j8(g,c),b=l.createElement("span",{className:`${g}-close-x`},l.createElement(ri,{className:`${g}-close-icon`})),[C,S]=v8({prefixCls:g,style:y,className:h,motion:v,closable:!1,closeIcon:b,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:D8});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:g,message:m})),S});let kS=0;function TO(e){const t=l.useRef(null);return ni(),[l.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},o=c=>{if(!t.current){const w=()=>{};return w.then=()=>{},w}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:p,icon:g,type:y,key:h,className:v,style:b,onClose:C}=c,S=T8(c,["content","icon","type","key","className","style","onClose"]);let x=h;return x==null&&(kS+=1,x=`antd-message-${kS}`),gy(w=>(u(Object.assign(Object.assign({},S),{key:x,content:l.createElement(jO,{prefixCls:d,type:y,icon:g},p),placement:"top",className:V(y&&`${m}-${y}`,v,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{C==null||C(),w()}})),()=>{r(x)}))},i={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let p;d&&typeof d=="object"&&"content"in d?p=d:p={content:d};let g,y;typeof f=="function"?y=f:(g=f,y=m);const h=Object.assign(Object.assign({onClose:y,duration:g},p),{type:c});return o(h)};i[c]=u}),i},[]),l.createElement(B8,Object.assign({key:"message-holder"},e,{ref:t}))]}function k8(e){return TO(e)}function _O(e,t){this.v=e,this.k=t}function mr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}mr=function(i,s,c,u){function d(f,m){mr(i,f,function(p){return this._invoke(f,m,p)})}s?o?o(i,s,{value:c,enumerable:!u,configurable:!u,writable:!u}):i[s]=c:(d("next",0),d("throw",1),d("return",2))},mr(e,t,n,r)}function hy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(p,g,y,h){var v=g&&g.prototype instanceof s?g:s,b=Object.create(v.prototype);return mr(b,"_invoke",function(C,S,x){var w,O,$,E=0,I=x||[],R=!1,M={p:0,n:0,v:e,a:N,f:N.bind(e,4),d:function(_,j){return w=_,O=0,$=e,M.n=j,i}};function N(P,_){for(O=P,$=_,t=0;!R&&E&&!j&&t<I.length;t++){var j,T=I[t],z=M.p,L=T[2];P>3?(j=L===_)&&($=T[(O=T[4])?5:(O=3,3)],T[4]=T[5]=e):T[0]<=z&&((j=P<2&&z<T[1])?(O=0,M.v=_,M.n=T[1]):z<L&&(j=P<3||T[0]>_||_>L)&&(T[4]=P,T[5]=_,M.n=L,O=0))}if(j||P>1)return i;throw R=!0,_}return function(P,_,j){if(E>1)throw TypeError("Generator is already running");for(R&&_===1&&N(_,j),O=_,$=j;(t=O<2?e:$)||!R;){w||(O?O<3?(O>1&&(M.n=-1),N(O,$)):M.n=$:M.v=$);try{if(E=2,w){if(O||(P="next"),t=w[P]){if(!(t=t.call(w,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,O<2&&(O=0)}else O===1&&(t=w.return)&&t.call(w),O<2&&($=TypeError("The iterator does not provide a '"+P+"' method"),O=1);w=e}else if((t=(R=M.n<0)?$:C.call(S,M))!==i)break}catch(T){w=e,O=1,$=T}finally{E=1}}return{value:t,done:R}}}(p,y,h),!0),b}var i={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(mr(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(d);function m(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,u):(p.__proto__=u,mr(p,o,"GeneratorFunction")),p.prototype=Object.create(f),p}return c.prototype=u,mr(f,"constructor",u),mr(u,"constructor",c),c.displayName="GeneratorFunction",mr(u,o,"GeneratorFunction"),mr(f),mr(f,o,"Generator"),mr(f,r,function(){return this}),mr(f,"toString",function(){return"[object Generator]"}),(hy=function(){return{w:a,m}})()}function vf(e,t){function n(o,a,i,s){try{var c=e[o](a),u=c.value;return u instanceof _O?t.resolve(u.v).then(function(d){n("next",d,i,s)},function(d){n("throw",d,i,s)}):t.resolve(u).then(function(d){c.value=d,i(c)},function(d){return n("throw",d,i,s)})}catch(d){s(d)}}var r;this.next||(mr(vf.prototype),mr(vf.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),mr(this,"_invoke",function(o,a,i){function s(){return new t(function(c,u){n(o,i,c,u)})}return r=r?r.then(s,s):s()},!0)}function zO(e,t,n,r,o){return new vf(hy().w(e,t,n,r),o||Promise)}function A8(e,t,n,r,o){var a=zO(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function F8(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function AS(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(et(e)+" is not iterable")}function Xt(){var e=hy(),t=e.m(Xt),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,c;return function(u){s||(s={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,o[f],m)},delegateYield:function(f,m,p){return s.resultName=m,c(u.d,AS(f),p)},finish:function(f){return c(u.f,f)}},c=function(f,m,p){u.p=s.prev,u.n=s.next;try{return f(m,p)}finally{s.next=u.n}}),s.resultName&&(s[s.resultName]=u.v,s.resultName=void 0),s.sent=u.v,s.next=u.n;try{return i.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(Xt=function(){return{wrap:function(c,u,d,f){return e.w(a(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new _O(c,u)},AsyncIterator:vf,async:function(c,u,d,f,m){return(r(u)?zO:A8)(a(c),u,d,f,m)},keys:F8,values:AS}})()}function FS(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function $r(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(c){FS(a,r,o,i,s,"next",c)}function s(c){FS(a,r,o,i,s,"throw",c)}i(void 0)})}}var Zc=W({},nM),H8=Zc.version,Bp=Zc.render,V8=Zc.unmountComponentAtNode,dm;try{var W8=Number((H8||"").split(".")[0]);W8>=18&&(dm=Zc.createRoot)}catch{}function HS(e){var t=Zc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&et(t)==="object"&&(t.usingClientEntryPoint=e)}var gf="__rc_react_root__";function K8(e,t){HS(!0);var n=t[gf]||dm(t);HS(!1),n.render(e),t[gf]=n}function U8(e,t){Bp==null||Bp(e,t)}function G8(e,t){if(dm){K8(e,t);return}U8(e,t)}function q8(e){return oh.apply(this,arguments)}function oh(){return oh=$r(Xt().mark(function e(t){return Xt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[gf])===null||o===void 0||o.unmount(),delete t[gf]}));case 1:case"end":return r.stop()}},e)})),oh.apply(this,arguments)}function X8(e){V8(e)}function Y8(e){return ah.apply(this,arguments)}function ah(){return ah=$r(Xt().mark(function e(t){return Xt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(dm===void 0){r.next=2;break}return r.abrupt("return",q8(t));case 2:X8(t);case 3:case"end":return r.stop()}},e)})),ah.apply(this,arguments)}const Q8=(e,t)=>(G8(e,t),()=>Y8(t));let J8=Q8;function yy(e){return J8}const kp=()=>({height:0,opacity:0}),VS=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Z8=e=>({height:e?e.offsetHeight:0}),Ap=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Kl=(e=Nc)=>({motionName:`${e}-motion-collapse`,onAppearStart:kp,onEnterStart:kp,onAppearActive:VS,onEnterActive:VS,onLeaveStart:Z8,onLeaveActive:kp,onAppearEnd:Ap,onEnterEnd:Ap,onLeaveEnd:Ap,motionDeadline:500}),Ka=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Qt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const eu=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(),a=o.width,i=o.height;if(a||i)return!0}}return!1},e5=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(",")}}}}},t5=k6("Wave",e5),fm=`${Nc}-wave-target`;function n5(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"&&e!=="canvastext"}function r5(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(n5))!==null&&t!==void 0?t:null}function Fp(e){return Number.isNaN(e)?0:e}const o5=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=l.useRef(null),i=l.useRef(null);l.useEffect(()=>{i.current=o()},[]);const[s,c]=l.useState(null),[u,d]=l.useState([]),[f,m]=l.useState(0),[p,g]=l.useState(0),[y,h]=l.useState(0),[v,b]=l.useState(0),[C,S]=l.useState(!1),x={left:f,top:p,width:y,height:v,borderRadius:u.map($=>`${$}px`).join(" ")};s&&(x["--wave-color"]=s);function w(){const $=getComputedStyle(n);c(r5(n));const E=$.position==="static",{borderLeftWidth:I,borderTopWidth:R}=$;m(E?n.offsetLeft:Fp(-Number.parseFloat(I))),g(E?n.offsetTop:Fp(-Number.parseFloat(R))),h(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:N,borderBottomLeftRadius:P,borderBottomRightRadius:_}=$;d([M,N,_,P].map(j=>Fp(Number.parseFloat(j))))}if(l.useEffect(()=>{if(n){const $=jt(()=>{w(),S(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(w),E.observe(n)),()=>{jt.cancel($),E==null||E.disconnect()}}},[n]),!C)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(fm));return l.createElement(Nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,E)=>{var I,R;if(E.deadline||E.propertyName==="opacity"){const M=(I=a.current)===null||I===void 0?void 0:I.parentElement;(R=i.current)===null||R===void 0||R.call(i).then(()=>{M==null||M.remove()})}return!1}},({className:$},E)=>l.createElement("div",{ref:er(a,E),className:V(t,$,{"wave-quick":O}),style:x}))},a5=(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 a=yy();let i=null;function s(){return i}i=a(l.createElement(o5,Object.assign({},t,{target:e,registerUnmount:s})),o)},i5=(e,t,n)=>{const{wave:r}=l.useContext(ot),[,o,a]=tr(),i=Gt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${fm}`)||d,{showEffect:m}=r||{};(m||a5)(f,{className:t,token:o,component:n,event:u,hashId:a})}),s=l.useRef(null);return u=>{jt.cancel(s.current),s.current=jt(()=>{i(u)})}},tu=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=l.useContext(ot),a=l.useRef(null),i=o("wave"),[,s]=t5(i),c=i5(a,V(i,s),r);if(Q.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!eu(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!Q.isValidElement(t))return t??null;const u=To(t)?er(ti(t),a):a;return Dn(t,{ref:u})},Wn=e=>{const t=Q.useContext(ji);return Q.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},l5=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},s5=Tt(["Space","Compact"],e=>[l5(e)],()=>({}),{resetStyle:!1});var LO=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 mm=l.createContext(null),oi=(e,t)=>{const n=l.useContext(mm),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return V(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${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}},c5=e=>{const{children:t}=e;return l.createElement(mm.Provider,{value:null},t)},u5=e=>{const{children:t}=e,n=LO(e,["children"]);return l.createElement(mm.Provider,{value:l.useMemo(()=>n,[n])},t)},d5=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ot),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=LO(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Wn(C=>r??C),m=t("space-compact",i),[p,g]=s5(m),y=V(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,c),h=l.useContext(mm),v=Fn(u),b=l.useMemo(()=>v.map((C,S)=>{const x=(C==null?void 0:C.key)||`${m}-item-${S}`;return l.createElement(u5,{key:x,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:S===v.length-1&&(!h||(h==null?void 0:h.isLastItem))},C)}),[v,h,o,f,m]);return v.length===0?null:p(l.createElement("div",Object.assign({className:y},d),b))};var f5=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 DO=l.createContext(void 0),m5=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ot),{prefixCls:r,size:o,className:a}=e,i=f5(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=tr(),u=l.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=V(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},a,c);return l.createElement(DO.Provider,{value:o},l.createElement("div",Object.assign({},i,{className:d})))},WS=/^[\u4E00-\u9FA5]{2}$/,ih=WS.test.bind(WS);function by(e){return e==="danger"?{danger:!0}:{type:e}}function KS(e){return typeof e=="string"}function Hp(e){return e==="text"||e==="link"}function p5(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&KS(e.type)&&ih(e.props.children)?Dn(e,{children:e.props.children.split("").join(n)}):KS(e)?ih(e)?Q.createElement("span",null,e.split("").join(n)):Q.createElement("span",null,e):wO(e)?Q.createElement("span",null,e):e}function v5(e,t){let n=!1;const r=[];return Q.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=i}),Q.Children.map(r,o=>p5(o,t))}["default","primary","danger"].concat(be(Wa));const BO=l.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=V(`${a}-icon`,n);return Q.createElement("span",{ref:t,className:i,style:r},o)}),US=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=V(`${n}-loading-icon`,r);return Q.createElement(BO,{prefixCls:n,className:i,style:o,ref:t},Q.createElement(da,{className:a}))}),Vp=()=>({width:0,opacity:0,transform:"scale(0)"}),Wp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),g5=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,s=!!n;return r?Q.createElement(US,{prefixCls:t,className:o,style:a}):Q.createElement(Nr,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Vp,onAppearActive:Wp,onEnterStart:Vp,onEnterActive:Wp,onLeaveStart:Wp,onLeaveActive:Vp},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},a),u);return Q.createElement(US,{prefixCls:t,className:V(o,c),style:f,ref:d})})},GS=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),h5=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=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}},GS(`${t}-primary`,o),GS(`${t}-danger`,a)]}};var y5=["b"],b5=["v"],Kp=function(t){return Math.round(Number(t||0))},C5=function(t){if(t instanceof Lt)return t;if(t&&et(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=ft(n,y5);return W(W({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Tc=function(e){Jr(n,e);var t=ho(n);function n(r){return sn(this,n),t.call(this,C5(r))}return cn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Kp(o.s*100),i=Kp(o.b*100),s=Kp(o.h),c=o.a,u="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=ft(o,b5);return W(W({},i),{},{b:a,a:this.a})}}]),n}(Lt),S5=function(t){return t instanceof Tc?t:new Tc(t)};S5("#1677ff");const x5=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",$5=(e,t)=>e?x5(e,t):"";let lh=function(){function e(t){sn(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(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new Tc(this.colors[0].color.metaColor)):this.metaColor=new Tc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return cn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return $5(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 a=n.colors[o];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var w5={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"},E5=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:w5}))},Ul=l.forwardRef(E5),kO=Q.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,a=e.style,i=e.children,s=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=Q.useState(s||r),m=oe(f,2),p=m[0],g=m[1];return Q.useEffect(function(){(r||s)&&g(!0)},[r,s]),p?Q.createElement("div",{ref:t,className:V("".concat(n,"-content"),D(D({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:a,role:c},Q.createElement("div",{className:V("".concat(n,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},i)):null});kO.displayName="PanelContent";var O5=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],AO=Q.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,a=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,m=f===void 0?{}:f,p=e.prefixCls,g=e.collapsible,y=e.accordion,h=e.panelKey,v=e.extra,b=e.header,C=e.expandIcon,S=e.openMotion,x=e.destroyInactivePanel,w=e.children,O=ft(e,O5),$=g==="disabled",E=v!=null&&typeof v!="boolean",I=D(D(D({onClick:function(){i==null||i(h)},onKeyDown:function(T){(T.key==="Enter"||T.keyCode===Xe.ENTER||T.which===Xe.ENTER)&&(i==null||i(h))},role:y?"tab":"button"},"aria-expanded",a),"aria-disabled",$),"tabIndex",$?-1:0),R=typeof C=="function"?C(e):Q.createElement("i",{className:"arrow"}),M=R&&Q.createElement("div",pe({className:"".concat(p,"-expand-icon")},["header","icon"].includes(g)?I:{}),R),N=V("".concat(p,"-item"),D(D({},"".concat(p,"-item-active"),a),"".concat(p,"-item-disabled"),$),c),P=V(o,"".concat(p,"-header"),D({},"".concat(p,"-collapsible-").concat(g),!!g),d.header),_=W({className:P,style:m.header},["header","icon"].includes(g)?{}:I);return Q.createElement("div",pe({},O,{ref:t,className:N}),Q.createElement("div",_,r&&M,Q.createElement("span",pe({className:"".concat(p,"-header-text")},g==="header"?I:{}),b),E&&Q.createElement("div",{className:"".concat(p,"-extra")},v)),Q.createElement(Nr,pe({visible:a,leavedClassName:"".concat(p,"-content-hidden")},S,{forceRender:s,removeOnLeave:x}),function(j,T){var z=j.className,L=j.style;return Q.createElement(kO,{ref:T,prefixCls:p,className:z,classNames:d,style:L,styles:m,isActive:a,forceRender:s,role:y?"tabpanel":void 0},w)}))}),I5=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],P5=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var p=f.children,g=f.label,y=f.key,h=f.collapsible,v=f.onItemClick,b=f.destroyInactivePanel,C=ft(f,I5),S=String(y??m),x=h??a,w=b??i,O=function(I){x!=="disabled"&&(s(I),v==null||v(I))},$=!1;return o?$=c[0]===S:$=c.indexOf(S)>-1,Q.createElement(AO,pe({},C,{prefixCls:r,key:S,panelKey:S,isActive:$,accordion:o,openMotion:u,expandIcon:d,header:g,collapsible:x,onItemClick:O,destroyInactivePanel:w}),p)})},R5=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),p=t.props,g=p.header,y=p.headerClass,h=p.destroyInactivePanel,v=p.collapsible,b=p.onItemClick,C=!1;a?C=u[0]===m:C=u.indexOf(m)>-1;var S=v??i,x=function($){S!=="disabled"&&(c($),b==null||b($))},w={key:m,panelKey:m,header:g,headerClass:y,isActive:C,prefixCls:o,destroyInactivePanel:h??s,openMotion:d,accordion:a,children:t.props.children,onItemClick:x,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(w).forEach(function(O){typeof w[O]>"u"&&delete w[O]}),Q.cloneElement(t,w))};function N5(e,t,n){return Array.isArray(e)?P5(e,n):Fn(t).map(function(r,o){return R5(r,o,n)})}function M5(e){var t=e;if(!Array.isArray(t)){var n=et(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var j5=Q.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,p=e.activeKey,g=e.defaultActiveKey,y=e.onChange,h=e.items,v=V(r,c),b=rn([],{value:p,onChange:function(E){return y==null?void 0:y(E)},defaultValue:g,postState:M5}),C=oe(b,2),S=C[0],x=C[1],w=function(E){return x(function(){if(s)return S[0]===E?[]:[E];var I=S.indexOf(E),R=I>-1;return R?S.filter(function(M){return M!==E}):[].concat(be(S),[E])})};an(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var O=N5(h,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:a,onItemClick:w,activeKey:S});return Q.createElement("div",pe({ref:t,className:v,style:i,role:s?"tablist":void 0},Jn(e,{aria:!0,data:!0})),O)});const Cy=Object.assign(j5,{Panel:AO});Cy.Panel;const T5=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(ot),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=V({[`${i}-no-arrow`]:!a},o);return l.createElement(Cy.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),nu=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
206
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
207
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),_5=e=>({animationDuration:e,animationFillMode:"both"}),z5=e=>({animationDuration:e,animationFillMode:"both"}),pm=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
|
|
208
|
+
${a}${e}-enter,
|
|
209
|
+
${a}${e}-appear
|
|
210
|
+
`]:Object.assign(Object.assign({},_5(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},z5(r)),{animationPlayState:"paused"}),[`
|
|
211
|
+
${a}${e}-enter${e}-enter-active,
|
|
212
|
+
${a}${e}-appear${e}-appear-active
|
|
213
|
+
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},L5=new Bt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),D5=new Bt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),FO=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[pm(r,L5,D5,e.motionDurationMid,t),{[`
|
|
214
|
+
${o}${r}-enter,
|
|
215
|
+
${o}${r}-appear
|
|
216
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},B5=new Bt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k5=new Bt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A5=new Bt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),F5=new Bt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),H5=new Bt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V5=new Bt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),W5=new Bt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),K5=new Bt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),U5={"move-up":{inKeyframes:W5,outKeyframes:K5},"move-down":{inKeyframes:B5,outKeyframes:k5},"move-left":{inKeyframes:A5,outKeyframes:F5},"move-right":{inKeyframes:H5,outKeyframes:V5}},hf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=U5[t];return[pm(r,o,a,e.motionDurationMid),{[`
|
|
217
|
+
${r}-enter,
|
|
218
|
+
${r}-appear
|
|
219
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Sy=new Bt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xy=new Bt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$y=new Bt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wy=new Bt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),G5=new Bt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),q5=new Bt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),X5=new Bt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Y5=new Bt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Q5={"slide-up":{inKeyframes:Sy,outKeyframes:xy},"slide-down":{inKeyframes:$y,outKeyframes:wy},"slide-left":{inKeyframes:G5,outKeyframes:q5},"slide-right":{inKeyframes:X5,outKeyframes:Y5}},Ua=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Q5[t];return[pm(r,o,a,e.motionDurationMid),{[`
|
|
220
|
+
${r}-enter,
|
|
221
|
+
${r}-appear
|
|
222
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ey=new Bt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),J5=new Bt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qS=new Bt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),XS=new Bt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Z5=new Bt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ez=new Bt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),tz=new Bt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),nz=new Bt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),rz=new Bt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oz=new Bt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),az=new Bt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),iz=new Bt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),lz={zoom:{inKeyframes:Ey,outKeyframes:J5},"zoom-big":{inKeyframes:qS,outKeyframes:XS},"zoom-big-fast":{inKeyframes:qS,outKeyframes:XS},"zoom-left":{inKeyframes:tz,outKeyframes:nz},"zoom-right":{inKeyframes:rz,outKeyframes:oz},"zoom-up":{inKeyframes:Z5,outKeyframes:ez},"zoom-down":{inKeyframes:az,outKeyframes:iz}},ru=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=lz[t];return[pm(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
223
|
+
${r}-enter,
|
|
224
|
+
${r}-appear
|
|
225
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},sz=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:p,colorTextDisabled:g,fontSizeLG:y,lineHeight:h,lineHeightLG:v,marginSM:b,paddingSM:C,paddingLG:S,paddingXS:x,motionDurationSlow:w,fontSizeIcon:O,contentPadding:$,fontHeight:E,fontHeightLG:I}=e,R=`${A(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Dt(e)),{backgroundColor:o,border:R,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:R,"&:first-child":{[`
|
|
226
|
+
&,
|
|
227
|
+
& > ${t}-header`]:{borderRadius:`${A(c)} ${A(c)} 0 0`}},"&:last-child":{[`
|
|
228
|
+
&,
|
|
229
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${A(c)} ${A(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:h,cursor:"pointer",transition:`all ${w}, visibility 0s`},zo(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},Ai()),{fontSize:O,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:R,[`& > ${t}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:y,lineHeight:v,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:I,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${A(c)} ${A(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},cz=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},uz=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
|
|
230
|
+
> ${t}-item:last-child,
|
|
231
|
+
> ${t}-item:last-child ${t}-header
|
|
232
|
+
`]:{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}}}},dz=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}}}}}},fz=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"}),mz=Tt("Collapse",e=>{const t=Et(e,{collapseHeaderPaddingSM:`${A(e.paddingXS)} ${A(e.paddingSM)}`,collapseHeaderPaddingLG:`${A(e.padding)} ${A(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[sz(t),uz(t),dz(t),cz(t),nu(t)]},fz),pz=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:a,style:i}=jn("collapse"),{prefixCls:s,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:m,size:p,expandIconPosition:g="start",children:y,destroyInactivePanel:h,destroyOnHidden:v,expandIcon:b}=e,C=Wn(_=>{var j;return(j=p??_)!==null&&j!==void 0?j:"middle"}),S=n("collapse",s),x=n(),[w,O,$]=mz(S),E=l.useMemo(()=>g==="left"?"start":g==="right"?"end":g,[g]),I=b??o,R=l.useCallback((_={})=>{const j=typeof I=="function"?I(_):l.createElement(Ul,{rotate:_.isActive?r==="rtl"?-90:90:void 0,"aria-label":_.isActive?"expanded":"collapsed"});return Dn(j,()=>{var T;return{className:V((T=j.props)===null||T===void 0?void 0:T.className,`${S}-arrow`)}})},[I,S,r]),M=V(`${S}-icon-position-${E}`,{[`${S}-borderless`]:!f,[`${S}-rtl`]:r==="rtl",[`${S}-ghost`]:!!m,[`${S}-${C}`]:C!=="middle"},a,c,u,O,$),N=l.useMemo(()=>Object.assign(Object.assign({},Kl(x)),{motionAppear:!1,leavedClassName:`${S}-content-hidden`}),[x,S]),P=l.useMemo(()=>y?Fn(y).map((_,j)=>{var T,z;const L=_.props;if(L!=null&&L.disabled){const k=(T=_.key)!==null&&T!==void 0?T:String(j),H=Object.assign(Object.assign({},Qt(_.props,["disabled"])),{key:k,collapsible:(z=L.collapsible)!==null&&z!==void 0?z:"disabled"});return Dn(_,H)}return _}):null,[y]);return w(l.createElement(Cy,Object.assign({ref:t,openMotion:N},Qt(e,["rootClassName"]),{expandIcon:R,prefixCls:S,className:M,style:Object.assign(Object.assign({},i),d),destroyInactivePanel:v??h}),P))}),vz=Object.assign(pz,{Panel:T5}),gz=e=>e instanceof lh?e:new lh(e),hz=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new Tc(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},HO=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Et(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},VO=e=>{var t,n,r,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:Id(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Id(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Id(u),p=hz(new lh(e.colorBgSolid),"#fff")?"#000":"#fff",g=Wa.reduce((y,h)=>Object.assign(Object.assign({},y),{[`${h}ShadowColor`]:`0 ${A(e.controlOutlineWidth)} 0 ${zs(e[`${h}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},g),{fontWeight:400,iconGap:e.marginXS,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:p,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},yz=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${A(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`]:Ai(),"> a":{color:"currentColor"},"&:not(:disabled)":zo(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}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},WO=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),bz=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Cz=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vm=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},WO(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Sz=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Cz(e))}),xz=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),gm=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?xz:Sz;return Object.assign(Object.assign({},a(e)),WO(e.componentCls,t,n))},hm=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},gm(e,r,o))}),ym=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},gm(e,r,o))}),bm=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Cm=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},gm(e,n,r))}),Zo=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},gm(e,r,o,n))}),$z=e=>{const{componentCls:t}=e;return Wa.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],u=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`]},hm(e,e.colorTextLightSolid,o,{background:i},{background:u})),ym(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),bm(e)),Cm(e,a,{color:o,background:s},{color:o,background:c})),Zo(e,o,"link",{color:i},{color:u})),Zo(e,o,"text",{color:i,background:a},{color:u,background:c}))})},{})},wz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},hm(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),bm(e)),Cm(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),vm(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})),Ez=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ym(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),bm(e)),Cm(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,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})),vm(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Oz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},hm(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ym(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bm(e)),Cm(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,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})),vm(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Iz=e=>Object.assign(Object.assign({},Zo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),vm(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Pz=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:wz(e),[`${t}-color-primary`]:Ez(e),[`${t}-color-dangerous`]:Oz(e),[`${t}-color-link`]:Iz(e)},$z(e))},Rz=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ym(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})),hm(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})),Oy=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${A(c)} ${A(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:bz(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Nz=e=>{const t=Et(e,{fontSize:e.contentFontSize});return Oy(t,e.componentCls)},Mz=e=>{const t=Et(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Oy(t,`${e.componentCls}-sm`)},jz=e=>{const t=Et(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Oy(t,`${e.componentCls}-lg`)},Tz=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},_z=Tt("Button",e=>{const t=HO(e);return[yz(t),Nz(t),Mz(t),jz(t),Tz(t),Pz(t),Rz(t),h5(t)]},VO,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function zz(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,s=i?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Lz(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 ou(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,a=`${o}-compact`;return{[a]:Object.assign(Object.assign({},zz(e,a,t,o)),Lz(o,a,t))}}function Dz(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Bz(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 kz(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Dz(e,t,e.componentCls)),Bz(e.componentCls,t))}}const Az=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=s=>{const c=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},Fz=rs(["Button","compact"],e=>{const t=HO(e);return[ou(t),kz(t),Az(t)]},VO);var Hz=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 Vz(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 Wz={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Kz=Q.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:p,className:g,rootClassName:y,children:h,icon:v,iconPosition:b="start",ghost:C=!1,block:S=!1,htmlType:x="button",classNames:w,style:O={},autoInsertSpace:$,autoFocus:E}=e,I=Hz(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),R=c||"default",{button:M}=Q.useContext(ot),N=d||(M==null?void 0:M.shape)||"default",[P,_]=l.useMemo(()=>{if(i&&s)return[i,s];if(c||u){const Ne=Wz[R]||[];return u?["danger",Ne[1]]:Ne}return M!=null&&M.color&&(M!=null&&M.variant)?[M.color,M.variant]:["default","outlined"]},[i,s,c,u,M==null?void 0:M.color,M==null?void 0:M.variant,R]),T=P==="danger"?"dangerous":P,{getPrefixCls:z,direction:L,autoInsertSpace:k,className:H,style:K,classNames:B,styles:U}=jn("button"),G=(n=$??k)!==null&&n!==void 0?n:!0,q=z("btn",a),[te,Z,ee]=_z(q),ue=l.useContext(Ir),re=p??ue,X=l.useContext(DO),ae=l.useMemo(()=>Vz(o),[o]),[ne,J]=l.useState(ae.loading),[Y,se]=l.useState(!1),fe=l.useRef(null),$e=pa(t,fe),Ce=l.Children.count(h)===1&&!v&&!Hp(_),ie=l.useRef(!0);Q.useEffect(()=>(ie.current=!1,()=>{ie.current=!0}),[]),Pt(()=>{let Ne=null;ae.delay>0?Ne=setTimeout(()=>{Ne=null,J(!0)},ae.delay):J(ae.loading);function tt(){Ne&&(clearTimeout(Ne),Ne=null)}return tt},[ae.delay,ae.loading]),l.useEffect(()=>{if(!fe.current||!G)return;const Ne=fe.current.textContent||"";Ce&&ih(Ne)?Y||se(!0):Y&&se(!1)}),l.useEffect(()=>{E&&fe.current&&fe.current.focus()},[]);const ge=Q.useCallback(Ne=>{var tt;if(ne||re){Ne.preventDefault();return}(tt=e.onClick)===null||tt===void 0||tt.call(e,("href"in e,Ne))},[e.onClick,ne,re]),{compactSize:de,compactItemClassnames:ve}=oi(q,L),Re={large:"lg",small:"sm",middle:void 0},_e=Wn(Ne=>{var tt,st;return(st=(tt=f??de)!==null&&tt!==void 0?tt:X)!==null&&st!==void 0?st:Ne}),Ue=_e&&(r=Re[_e])!==null&&r!==void 0?r:"",ke=ne?"loading":v,De=Qt(I,["navigate"]),Ae=V(q,Z,ee,{[`${q}-${N}`]:N!=="default"&&N,[`${q}-${R}`]:R,[`${q}-dangerous`]:u,[`${q}-color-${T}`]:T,[`${q}-variant-${_}`]:_,[`${q}-${Ue}`]:Ue,[`${q}-icon-only`]:!h&&h!==0&&!!ke,[`${q}-background-ghost`]:C&&!Hp(_),[`${q}-loading`]:ne,[`${q}-two-chinese-chars`]:Y&&G&&!ne,[`${q}-block`]:S,[`${q}-rtl`]:L==="rtl",[`${q}-icon-end`]:b==="end"},ve,g,y,H),xe=Object.assign(Object.assign({},K),O),ye=V(w==null?void 0:w.icon,B.icon),je=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),U.icon||{}),Pe=Ne=>Q.createElement(BO,{prefixCls:q,className:ye,style:je},Ne),Be=()=>Q.createElement(g5,{existIcon:!!v,prefixCls:q,loading:ne,mount:ie.current});let me;v&&!ne?me=Pe(v):o&&typeof o=="object"&&o.icon?me=Pe(o.icon):me=Be();const Ie=h||h===0?v5(h,Ce&&G):null;if(De.href!==void 0)return te(Q.createElement("a",Object.assign({},De,{className:V(Ae,{[`${q}-disabled`]:re}),href:re?void 0:De.href,style:xe,onClick:ge,ref:$e,tabIndex:re?-1:0,"aria-disabled":re}),me,Ie));let Te=Q.createElement("button",Object.assign({},I,{type:x,className:Ae,style:xe,onClick:ge,disabled:re,ref:$e}),me,Ie,ve&&Q.createElement(Fz,{prefixCls:q}));return Hp(_)||(Te=Q.createElement(tu,{component:"Button",disabled:ne},Te)),te(Te)}),It=Kz;It.Group=m5;It.__ANT_BUTTON=!0;const Up=e=>typeof(e==null?void 0:e.then)=="function",Iy=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),m=l.useRef(null),[p,g]=Ti(!1),y=(...b)=>{a==null||a.apply(void 0,b)};l.useEffect(()=>{let b=null;return i&&(b=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[i]);const h=b=>{Up(b)&&(g(!0),b.then((...C)=>{g(!1,!0),y.apply(void 0,C),f.current=!1},C=>{if(g(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(C)}))},v=b=>{if(f.current)return;if(f.current=!0,!d){y();return}let C;if(s){if(C=d(b),u&&!Up(C)){f.current=!1,y(b);return}}else if(d.length)C=d(a),f.current=!1;else if(C=d(),!Up(C)){y();return}h(C)};return l.createElement(It,Object.assign({},by(t),{onClick:v,loading:p,prefixCls:r},o,{ref:m}),n)},au=Q.createContext({}),{Provider:KO}=au,YS=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:c}=l.useContext(au);return o?Q.createElement(Iy,{isSilent:r,actionFn:s,close:(...u)=>{i==null||i.apply(void 0,u),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},QS=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:c}=l.useContext(au);return Q.createElement(Iy,{isSilent:n,type:i||"primary",actionFn:c,close:(...u)=>{t==null||t.apply(void 0,u),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)};var UO=l.createContext(null),JS=[];function Uz(e,t){var n=l.useState(function(){if(!Qn())return null;var g=document.createElement("div");return g}),r=oe(n,1),o=r[0],a=l.useRef(!1),i=l.useContext(UO),s=l.useState(JS),c=oe(s,2),u=c[0],d=c[1],f=i||(a.current?void 0:function(g){d(function(y){var h=[g].concat(be(y));return h})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function p(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Pt(function(){return e?i?i(m):m():p(),p},[e]),Pt(function(){u.length&&(u.forEach(function(g){return g()}),d(JS))},[u]),[o,f]}var Gp;function GO(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,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";ia(`
|
|
233
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
234
|
+
`).concat(d,`
|
|
235
|
+
`).concat(f,`
|
|
236
|
+
}`),t)}catch(g){console.error(g),o=c,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,p=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ic(t),{width:m,height:p}}function ZS(e){return typeof document>"u"?0:(Gp===void 0&&(Gp=GO()),Gp.width)}function sh(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:GO(e)}function Gz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var qz="rc-util-locker-".concat(Date.now()),e1=0;function Xz(e){var t=!!e,n=l.useState(function(){return e1+=1,"".concat(qz,"_").concat(e1)}),r=oe(n,1),o=r[0];Pt(function(){if(t){var a=sh(document.body).width,i=Gz();ia(`
|
|
237
|
+
html body {
|
|
238
|
+
overflow-y: hidden;
|
|
239
|
+
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
240
|
+
}`),o)}else Ic(o);return function(){Ic(o)}},[t,o])}var Yz=!1;function Qz(e){return Yz}var t1=function(t){return t===!1?!1:!Qn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Py=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,c=l.useState(n),u=oe(c,2),d=u[0],f=u[1],m=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var p=l.useState(function(){return t1(o)}),g=oe(p,2),y=g[0],h=g[1];l.useEffect(function(){var R=t1(o);h(R??null)});var v=Uz(m&&!y),b=oe(v,2),C=b[0],S=b[1],x=y??C;Xz(r&&n&&Qn()&&(x===C||x===document.body));var w=null;if(s&&To(s)&&t){var O=s;w=O.ref}var $=pa(w,t);if(!m||!Qn()||y===void 0)return null;var E=x===!1||Qz(),I=s;return t&&(I=l.cloneElement(s,{ref:$})),l.createElement(UO.Provider,{value:S},E?I:mo.createPortal(I,x))}),qO=l.createContext({});function Jz(){var e=W({},Wc);return e.useId}var n1=0,r1=Jz();const Sm=r1?function(t){var n=r1();return t||n}:function(t){var n=l.useState("ssr-id"),r=oe(n,2),o=r[0],a=r[1];return l.useEffect(function(){var i=n1;n1+=1,a("rc_unique_".concat(i))},[]),t||o};function o1(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function a1(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 Zz(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=a1(o),n.top+=a1(o,!0),n}const eL=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var tL={width:0,height:0,overflow:"hidden",outline:"none"},nL={outline:"none"},XO=Q.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,p=e.bodyProps,g=e.modalRender,y=e.onMouseDown,h=e.onMouseUp,v=e.holderRef,b=e.visible,C=e.forceRender,S=e.width,x=e.height,w=e.classNames,O=e.styles,$=Q.useContext(qO),E=$.panel,I=pa(v,E),R=l.useRef(),M=l.useRef();Q.useImperativeHandle(t,function(){return{focus:function(){var K;(K=R.current)===null||K===void 0||K.focus({preventScroll:!0})},changeActive:function(K){var B=document,U=B.activeElement;K&&U===M.current?R.current.focus({preventScroll:!0}):!K&&U===R.current&&M.current.focus({preventScroll:!0})}}});var N={};S!==void 0&&(N.width=S),x!==void 0&&(N.height=x);var P=s?Q.createElement("div",{className:V("".concat(n,"-footer"),w==null?void 0:w.footer),style:W({},O==null?void 0:O.footer)},s):null,_=a?Q.createElement("div",{className:V("".concat(n,"-header"),w==null?void 0:w.header),style:W({},O==null?void 0:O.header)},Q.createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,j=l.useMemo(function(){return et(c)==="object"&&c!==null?c:c?{closeIcon:u??Q.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),T=Jn(j,!0),z=et(c)==="object"&&c.disabled,L=c?Q.createElement("button",pe({type:"button",onClick:d,"aria-label":"Close"},T,{className:"".concat(n,"-close"),disabled:z}),j.closeIcon):null,k=Q.createElement("div",{className:V("".concat(n,"-content"),w==null?void 0:w.content),style:O==null?void 0:O.content},L,_,Q.createElement("div",pe({className:V("".concat(n,"-body"),w==null?void 0:w.body),style:W(W({},m),O==null?void 0:O.body)},p),f),P);return Q.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:I,style:W(W({},o),N),className:V(n,r),onMouseDown:y,onMouseUp:h},Q.createElement("div",{ref:R,tabIndex:0,style:nL},Q.createElement(eL,{shouldUpdate:b||C},g?g(k):k)),Q.createElement("div",{tabIndex:0,ref:M,style:tL}))}),YO=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,p=l.useRef(),g=l.useState(),y=oe(g,2),h=y[0],v=y[1],b={};h&&(b.transformOrigin=h);function C(){var S=Zz(p.current);v(m&&(m.x||m.y)?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return l.createElement(Nr,{visible:i,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:u,removeOnLeave:c,ref:p},function(S,x){var w=S.className,O=S.style;return l.createElement(XO,pe({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:x,style:W(W(W({},O),o),b),className:V(a,w)}))})});YO.displayName="Content";var rL=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,i=t.motionName,s=t.className;return l.createElement(Nr,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return l.createElement("div",pe({ref:u,style:W(W({},f),r),className:V("".concat(n,"-mask"),d,s)},a))})},oL=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,a=t.visible,i=a===void 0?!1:a,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,p=t.wrapProps,g=t.onClose,y=t.afterOpenChange,h=t.afterClose,v=t.transitionName,b=t.animation,C=t.closable,S=C===void 0?!0:C,x=t.mask,w=x===void 0?!0:x,O=t.maskTransitionName,$=t.maskAnimation,E=t.maskClosable,I=E===void 0?!0:E,R=t.maskStyle,M=t.maskProps,N=t.rootClassName,P=t.classNames,_=t.styles,j=l.useRef(),T=l.useRef(),z=l.useRef(),L=l.useState(i),k=oe(L,2),H=k[0],K=k[1],B=Sm();function U(){jg(T.current,document.activeElement)||(j.current=document.activeElement)}function G(){if(!jg(T.current,document.activeElement)){var J;(J=z.current)===null||J===void 0||J.focus()}}function q(J){if(J)G();else{if(K(!1),w&&j.current&&d){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}H&&(h==null||h())}y==null||y(J)}function te(J){g==null||g(J)}var Z=l.useRef(!1),ee=l.useRef(),ue=function(){clearTimeout(ee.current),Z.current=!0},re=function(){ee.current=setTimeout(function(){Z.current=!1})},X=null;I&&(X=function(Y){Z.current?Z.current=!1:T.current===Y.target&&te(Y)});function ae(J){if(c&&J.keyCode===Xe.ESC){J.stopPropagation(),te(J);return}i&&J.keyCode===Xe.TAB&&z.current.changeActive(!J.shiftKey)}l.useEffect(function(){i&&(K(!0),U())},[i]),l.useEffect(function(){return function(){clearTimeout(ee.current)}},[]);var ne=W(W(W({zIndex:o},f),_==null?void 0:_.wrapper),{},{display:H?null:"none"});return l.createElement("div",pe({className:V("".concat(r,"-root"),N)},Jn(t,{data:!0})),l.createElement(rL,{prefixCls:r,visible:w&&i,motionName:o1(r,O,$),style:W(W({zIndex:o},R),_==null?void 0:_.mask),maskProps:M,className:P==null?void 0:P.mask}),l.createElement("div",pe({tabIndex:-1,onKeyDown:ae,className:V("".concat(r,"-wrap"),m,P==null?void 0:P.wrapper),ref:T,onClick:X,style:ne},p),l.createElement(YO,pe({},t,{onMouseDown:ue,onMouseUp:re,ref:z,closable:S,ariaId:B,prefixCls:r,visible:i&&H,onClose:te,onVisibleChanged:q,motionName:o1(r,v,b)}))))},QO=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=oe(u,2),f=d[0],m=d[1],p=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&m(!0)},[n]),!o&&i&&!f?null:l.createElement(qO.Provider,{value:p},l.createElement(Py,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(oL,pe({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),m(!1)}}))))};QO.displayName="Dialog";var yi="RC_FORM_INTERNAL_HOOKS",tn=function(){an(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_i=l.createContext({getFieldValue:tn,getFieldsValue:tn,getFieldError:tn,getFieldWarning:tn,getFieldsError:tn,isFieldsTouched:tn,isFieldTouched:tn,isFieldValidating:tn,isFieldsValidating:tn,resetFields:tn,setFields:tn,setFieldValue:tn,setFieldsValue:tn,validateFields:tn,submit:tn,getInternalHooks:function(){return tn(),{dispatch:tn,initEntityValue:tn,registerField:tn,useSubscribe:tn,setInitialValues:tn,destroyForm:tn,setCallbacks:tn,registerWatch:tn,getFields:tn,setValidateMessages:tn,setPreserve:tn,getInitialValue:tn}}}),_c=l.createContext(null);function ch(e){return e==null?[]:Array.isArray(e)?e:[e]}function aL(e){return e&&!!e._init}function uh(){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",tel:"%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 dh=uh();function iL(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function lL(e,t,n){if(om())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ec(o,n.prototype),o}function fh(e){var t=typeof Map=="function"?new Map:void 0;return fh=function(r){if(r===null||!iL(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 lL(r,arguments,Ni(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ec(o,r)},fh(e)}var sL=/%[sdj%]/g,cL=function(){};function mh(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 Gr(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,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(sL,function(s){if(s==="%%")return"%";if(o>=a)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 i}return e}function uL(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||uL(t)&&typeof e=="string"&&!e)}function dL(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,be(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function i1(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function fL(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,be(e[n]||[]))}),t}var l1=function(e){Jr(n,e);var t=ho(n);function n(r,o){var a;return sn(this,n),a=t.call(this,"Async Validation Error"),D(Ve(a),"errors",void 0),D(Ve(a),"fields",void 0),a.errors=r,a.fields=o,a}return cn(n)}(fh(Error));function mL(e,t,n,r,o){if(t.first){var a=new Promise(function(m,p){var g=function(v){return r(v),v.length?p(new l1(v,mh(v))):m(o)},y=fL(e);i1(y,n,g)});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,u=0,d=[],f=new Promise(function(m,p){var g=function(h){if(d.push.apply(d,h),u++,u===c)return r(d),d.length?p(new l1(d,mh(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(y){var h=e[y];i.indexOf(y)!==-1?i1(h,n,g):dL(h,n,g)})});return f.catch(function(m){return m}),f}function pL(e){return!!(e&&e.message!==void 0)}function vL(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function s1(e,t){return function(n){var r;return e.fullFields?r=vL(t,e.fullFields):r=t[n.field||e.fullField],pL(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 c1(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];et(r)==="object"&&et(e[n])==="object"?e[n]=W(W({},e[n]),r):e[n]=r}}return e}var Ui="enum",gL=function(t,n,r,o,a){t[Ui]=Array.isArray(t[Ui])?t[Ui]:[],t[Ui].indexOf(n)===-1&&o.push(Gr(a.messages[Ui],t.fullField,t[Ui].join(", ")))},hL=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Gr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Gr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},yL=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(m?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),p&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(Gr(a.messages[f].len,t.fullField,t.len)):s&&!c&&d<t.min?o.push(Gr(a.messages[f].min,t.fullField,t.min)):c&&!s&&d>t.max?o.push(Gr(a.messages[f].max,t.fullField,t.max)):s&&c&&(d<t.min||d>t.max)&&o.push(Gr(a.messages[f].range,t.fullField,t.min,t.max))},JO=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||Hn(n,i||t.type))&&o.push(Gr(a.messages.required,t.fullField))},Yu;const bL=function(){if(Yu)return Yu;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(i).concat(t(w),")"),"g")};d.v4=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},d.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,g=d.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(g,"|").concat(y).concat(h).concat(v,")").concat(b).concat(C);return Yu=new RegExp("(?:^".concat(S,"$)"),"i"),Yu};var qp={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ls={integer:function(t){return Ls.number(t)&&parseInt(t,10)===t},float:function(t){return Ls.number(t)&&!Ls.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 et(t)==="object"&&!Ls.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qp.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(qp.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(bL())},hex:function(t){return typeof t=="string"&&!!t.match(qp.hex)}},CL=function(t,n,r,o,a){if(t.required&&n===void 0){JO(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Ls[s](n)||o.push(Gr(a.messages.types[s],t.fullField,t.type)):s&&et(n)!==t.type&&o.push(Gr(a.messages.types[s],t.fullField,t.type))},SL=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(Gr(a.messages.whitespace,t.fullField))};const Vt={required:JO,whitespace:SL,type:CL,range:yL,enum:gL,pattern:hL};var xL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a)}r(i)},$L=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Vt.required(t,n,o,i,a,"array"),n!=null&&(Vt.type(t,n,o,i,a),Vt.range(t,n,o,i,a))}r(i)},wL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),n!==void 0&&Vt.type(t,n,o,i,a)}r(i)},EL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"date")&&!t.required)return r();if(Vt.required(t,n,o,i,a),!Hn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Vt.type(t,c,o,i,a),c&&Vt.range(t,c.getTime(),o,i,a)}}r(i)},OL="enum",IL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),n!==void 0&&Vt[OL](t,n,o,i,a)}r(i)},PL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),n!==void 0&&(Vt.type(t,n,o,i,a),Vt.range(t,n,o,i,a))}r(i)},RL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),n!==void 0&&(Vt.type(t,n,o,i,a),Vt.range(t,n,o,i,a))}r(i)},NL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),n!==void 0&&Vt.type(t,n,o,i,a)}r(i)},ML=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),n!==void 0&&(Vt.type(t,n,o,i,a),Vt.range(t,n,o,i,a))}r(i)},jL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),n!==void 0&&Vt.type(t,n,o,i,a)}r(i)},TL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"string")&&!t.required)return r();Vt.required(t,n,o,i,a),Hn(n,"string")||Vt.pattern(t,n,o,i,a)}r(i)},_L=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return r();Vt.required(t,n,o,i,a),Hn(n)||Vt.type(t,n,o,i,a)}r(i)},zL=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":et(n);Vt.required(t,n,o,i,a,s),r(i)},LL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"string")&&!t.required)return r();Vt.required(t,n,o,i,a,"string"),Hn(n,"string")||(Vt.type(t,n,o,i,a),Vt.range(t,n,o,i,a),Vt.pattern(t,n,o,i,a),t.whitespace===!0&&Vt.whitespace(t,n,o,i,a))}r(i)},Qu=function(t,n,r,o,a){var i=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(Hn(n,i)&&!t.required)return r();Vt.required(t,n,o,s,a,i),Hn(n,i)||Vt.type(t,n,o,s,a)}r(s)};const Js={string:LL,method:NL,number:ML,boolean:wL,regexp:_L,integer:RL,float:PL,array:$L,object:jL,enum:IL,pattern:TL,date:EL,url:Qu,hex:Qu,email:Qu,tel:Qu,required:zL,any:xL};var iu=function(){function e(t){sn(this,e),D(this,"rules",null),D(this,"_messages",dh),this.define(t)}return cn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(et(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=c1(uh(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=o,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(g){var y=[],h={};function v(C){if(Array.isArray(C)){var S;y=(S=y).concat.apply(S,be(C))}else y.push(C)}for(var b=0;b<g.length;b++)v(g[b]);y.length?(h=mh(y),c(y,h)):c(null,i)}if(s.messages){var d=this.messages();d===dh&&(d=uh()),c1(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(g){var y=r.rules[g],h=i[g];y.forEach(function(v){var b=v;typeof b.transform=="function"&&(i===n&&(i=W({},i)),h=i[g]=b.transform(h),h!=null&&(b.type=b.type||(Array.isArray(h)?"array":et(h)))),typeof b=="function"?b={validator:b}:b=W({},b),b.validator=r.getValidationMethod(b),b.validator&&(b.field=g,b.fullField=b.fullField||g,b.type=r.getType(b),f[g]=f[g]||[],f[g].push({rule:b,value:h,source:i,field:g}))})});var p={};return mL(f,s,function(g,y){var h=g.rule,v=(h.type==="object"||h.type==="array")&&(et(h.fields)==="object"||et(h.defaultField)==="object");v=v&&(h.required||!h.required&&g.value),h.field=g.field;function b(O,$){return W(W({},$),{},{fullField:"".concat(h.fullField,".").concat(O),fullFields:h.fullFields?[].concat(be(h.fullFields),[O]):[O]})}function C(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(O)?O:[O];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&h.message!==void 0&&h.message!==null&&($=[].concat(h.message));var E=$.map(s1(h,i));if(s.first&&E.length)return p[h.field]=1,y(E);if(!v)y(E);else{if(h.required&&!g.value)return h.message!==void 0?E=[].concat(h.message).map(s1(h,i)):s.error&&(E=[s.error(h,Gr(s.messages.required,h.field))]),y(E);var I={};h.defaultField&&Object.keys(g.value).map(function(N){I[N]=h.defaultField}),I=W(W({},I),g.rule.fields);var R={};Object.keys(I).forEach(function(N){var P=I[N],_=Array.isArray(P)?P:[P];R[N]=_.map(b.bind(null,N))});var M=new e(R);M.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),M.validate(g.value,g.rule.options||s,function(N){var P=[];E&&E.length&&P.push.apply(P,be(E)),N&&N.length&&P.push.apply(P,be(N)),y(P.length?P:null)})}}var S;if(h.asyncValidator)S=h.asyncValidator(h,g.value,C,g.source,s);else if(h.validator){try{S=h.validator(h,g.value,C,g.source,s)}catch(O){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,O),s.suppressValidatorError||setTimeout(function(){throw O},0),C(O.message)}S===!0?C():S===!1?C(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):S instanceof Array?C(S):S instanceof Error&&C(S.message)}S&&S.then&&S.then(function(){return C()},function(O){return C(O)})},function(g){u(g)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Js.hasOwnProperty(n.type))throw new Error(Gr("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"?Js.required:Js[this.getType(n)]||void 0}}]),e}();D(iu,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Js[t]=n});D(iu,"warning",cL);D(iu,"messages",dh);D(iu,"validators",Js);var Fr="'${name}' is not a valid ${type}",ZO={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:Fr,method:Fr,array:Fr,object:Fr,number:Fr,date:Fr,boolean:Fr,integer:Fr,float:Fr,regexp:Fr,email:Fr,url:Fr,hex:Fr},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}"}},u1=iu;function DL(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 d1="CODE_LOGIC_ERROR";function ph(e,t,n,r,o){return vh.apply(this,arguments)}function vh(){return vh=$r(Xt().mark(function e(t,n,r,o,a){var i,s,c,u,d,f,m,p,g;return Xt().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=W({},r),delete i.ruleIndex,u1.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(d1)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new u1(D({},t,[i])),d=vl(ZO,o.validateMessages),u.messages(d),f=[],h.prev=10,h.next=13,Promise.resolve(u.validate(D({},t,n),W({},o)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(v,b){var C=v.message,S=C===d1?d.default:C;return l.isValidElement(S)?l.cloneElement(S,{key:"error_".concat(b)}):S}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){h.next=23;break}return h.next=21,Promise.all(n.map(function(v,b){return ph("".concat(t,".").concat(b),v,c,o,a)}));case 21:return m=h.sent,h.abrupt("return",m.reduce(function(v,b){return[].concat(be(v),be(b))},[]));case 23:return p=W(W({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=f.map(function(v){return typeof v=="string"?DL(v,p):v}),h.abrupt("return",g);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),vh.apply(this,arguments)}function BL(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(d,f){var m=d.validator,p=W(W({},d),{},{ruleIndex:f});return m&&(p.validator=function(g,y,h){var v=!1,b=function(){for(var x=arguments.length,w=new Array(x),O=0;O<x;O++)w[O]=arguments[O];Promise.resolve().then(function(){an(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||h.apply(void 0,w)})},C=m(g,y,b);v=C&&typeof C.then=="function"&&typeof C.catch=="function",an(v,"`callback` is deprecated. Please return a promise instead."),v&&C.then(function(){h()}).catch(function(S){h(S||" ")})}),p}).sort(function(d,f){var m=d.warningOnly,p=d.ruleIndex,g=f.warningOnly,y=f.ruleIndex;return!!m==!!g?p-y:m?1:-1}),c;if(o===!0)c=new Promise(function(){var d=$r(Xt().mark(function f(m,p){var g,y,h;return Xt().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:g=0;case 1:if(!(g<s.length)){b.next=12;break}return y=s[g],b.next=5,ph(i,t,y,r,a);case 5:if(h=b.sent,!h.length){b.next=9;break}return p([{errors:h,rule:y}]),b.abrupt("return");case 9:g+=1,b.next=1;break;case 12:m([]);case 13:case"end":return b.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return ph(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});c=(o?AL(u):kL(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function kL(e){return gh.apply(this,arguments)}function gh(){return gh=$r(Xt().mark(function e(t){return Xt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,be(o));return i}));case 1:case"end":return r.stop()}},e)})),gh.apply(this,arguments)}function AL(e){return hh.apply(this,arguments)}function hh(){return hh=$r(Xt().mark(function e(t){var n;return Xt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),hh.apply(this,arguments)}function Rn(e){return ch(e)}function f1(e,t){var n={};return t.forEach(function(r){var o=xr(e,r);n=ao(n,r,o)}),n}function Pl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return eI(t,r,n)})}function eI(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 FL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||et(e)!=="object"||et(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return be(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function HL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&et(t.target)==="object"&&e in t.target?t.target[e]:t}function m1(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(be(e.slice(0,n)),[o],be(e.slice(n,t)),be(e.slice(t+1,r))):a<0?[].concat(be(e.slice(0,t)),be(e.slice(t+1,n+1)),[o],be(e.slice(n+1,r))):e}var VL=["name"],to=[];function Xp(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Ry=function(e){Jr(n,e);var t=ho(n);function n(r){var o;if(sn(this,n),o=t.call(this,r),D(Ve(o),"state",{resetCount:0}),D(Ve(o),"cancelRegisterFunc",null),D(Ve(o),"mounted",!1),D(Ve(o),"touched",!1),D(Ve(o),"dirty",!1),D(Ve(o),"validatePromise",void 0),D(Ve(o),"prevValidating",void 0),D(Ve(o),"errors",to),D(Ve(o),"warnings",to),D(Ve(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Rn(f)),o.cancelRegisterFunc=null}),D(Ve(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(be(m),be(u)):[]}),D(Ve(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),D(Ve(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),D(Ve(o),"metaCache",null),D(Ve(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=W(W({},o.getMeta()),{},{destroy:c});Yo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),D(Ve(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,p=f.dependencies,g=p===void 0?[]:p,y=f.onReset,h=d.store,v=o.getNamePath(),b=o.getValue(c),C=o.getValue(h),S=u&&Pl(u,v);switch(d.type==="valueUpdate"&&d.source==="external"&&!Yo(b,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=to,o.warnings=to,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=to,o.warnings=to,o.triggerMetaEvent(),y==null||y(),o.refresh();return}break;case"remove":{if(m&&Xp(m,c,h,b,C,d)){o.reRender();return}break}case"setField":{var x=d.data;if(S){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||to),"warnings"in x&&(o.warnings=x.warnings||to),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&Pl(u,v,!0)){o.reRender();return}if(m&&!v.length&&Xp(m,c,h,b,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var w=g.map(Rn);if(w.some(function(O){return Pl(d.relatedFields,O)})){o.reRender();return}break}default:if(S||(!g.length||v.length||m)&&Xp(m,c,h,b,C,d)){o.reRender();return}break}m===!0&&o.reRender()}),D(Ve(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,p=f.validateOnly,g=p===void 0?!1:p,y=Promise.resolve().then($r(Xt().mark(function h(){var v,b,C,S,x,w,O;return Xt().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(v=o.props,b=v.validateFirst,C=b===void 0?!1:b,S=v.messageVariables,x=v.validateDebounce,w=o.getRules(),m&&(w=w.filter(function(I){return I}).filter(function(I){var R=I.validateTrigger;if(!R)return!0;var M=ch(R);return M.includes(m)})),!(x&&m)){E.next=10;break}return E.next=8,new Promise(function(I){setTimeout(I,x)});case 8:if(o.validatePromise===y){E.next=10;break}return E.abrupt("return",[]);case 10:return O=BL(u,d,w,c,C,S),O.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:to;if(o.validatePromise===y){var R;o.validatePromise=null;var M=[],N=[];(R=I.forEach)===null||R===void 0||R.call(I,function(P){var _=P.rule.warningOnly,j=P.errors,T=j===void 0?to:j;_?N.push.apply(N,be(T)):M.push.apply(M,be(T))}),o.errors=M,o.warnings=N,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",O);case 13:case"end":return E.stop()}},h)})));return g||(o.validatePromise=y,o.dirty=!0,o.errors=to,o.warnings=to,o.triggerMetaEvent(),o.reRender()),y}),D(Ve(o),"isFieldValidating",function(){return!!o.validatePromise}),D(Ve(o),"isFieldTouched",function(){return o.touched}),D(Ve(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(yi),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),D(Ve(o),"getErrors",function(){return o.errors}),D(Ve(o),"getWarnings",function(){return o.warnings}),D(Ve(o),"isListField",function(){return o.props.isListField}),D(Ve(o),"isList",function(){return o.props.isList}),D(Ve(o),"isPreserve",function(){return o.props.preserve}),D(Ve(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),D(Ve(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return W(W({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=Fn(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),D(Ve(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return xr(c||u(!0),d)}),D(Ve(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,p=u.getValueFromEvent,g=u.normalize,y=u.valuePropName,h=u.getValueProps,v=u.fieldContext,b=m!==void 0?m:v.validateTrigger,C=o.getNamePath(),S=v.getInternalHooks,x=v.getFieldsValue,w=S(yi),O=w.dispatch,$=o.getValue(),E=h||function(P){return D({},y,P)},I=c[f],R=d!==void 0?E($):{},M=W(W({},c),R);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var P,_=arguments.length,j=new Array(_),T=0;T<_;T++)j[T]=arguments[T];p?P=p.apply(void 0,j):P=HL.apply(void 0,[y].concat(j)),g&&(P=g(P,$,x(!0))),P!==$&&O({type:"updateValue",namePath:C,value:P}),I&&I.apply(void 0,j)};var N=ch(b||[]);return N.forEach(function(P){var _=M[P];M[P]=function(){_&&_.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&O({type:"validateField",namePath:C,triggerName:P})}}),M}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(yi),s=i.initEntityValue;s(Ve(o))}return o}return cn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,c=s(yi),u=c.registerField;this.cancelRegisterFunc=u(this)}a===!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,a=this.props.children,i=this.getOnlyChild(a),s=i.child,c=i.isFunction,u;return c?u=s:l.isValidElement(s)?u=l.cloneElement(s,this.getControlled(s.props)):(an(!s,"`children` of Field is not validate ReactElement."),u=s),l.createElement(l.Fragment,{key:o},u)}}]),n}(l.Component);D(Ry,"contextType",_i);D(Ry,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ny(e){var t,n=e.name,r=ft(e,VL),o=l.useContext(_i),a=l.useContext(_c),i=n!==void 0?Rn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,c="keep";return s||(c="_".concat((i||[]).join("_"))),l.createElement(Ry,pe({key:c,name:i,isListField:s},r,{fieldContext:o}))}function tI(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=l.useContext(_i),c=l.useContext(_c),u=l.useRef({keys:[],id:0}),d=u.current,f=l.useMemo(function(){var y=Rn(s.prefixName)||[];return[].concat(be(y),be(Rn(t)))},[s.prefixName,t]),m=l.useMemo(function(){return W(W({},s),{},{prefixName:f})},[s,f]),p=l.useMemo(function(){return{getKey:function(h){var v=f.length,b=h[v];return[d.keys[b],h.slice(v+1)]}}},[f]);if(typeof r!="function")return an(!1,"Form.List only accepts function as children."),null;var g=function(h,v,b){var C=b.source;return C==="internal"?!1:h!==v};return l.createElement(_c.Provider,{value:p},l.createElement(_i.Provider,{value:m},l.createElement(Ny,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!c},function(y,h){var v=y.value,b=v===void 0?[]:v,C=y.onChange,S=s.getFieldValue,x=function(){var E=S(f||[]);return E||[]},w={add:function(E,I){var R=x();I>=0&&I<=R.length?(d.keys=[].concat(be(d.keys.slice(0,I)),[d.id],be(d.keys.slice(I))),C([].concat(be(R.slice(0,I)),[E],be(R.slice(I))))):(d.keys=[].concat(be(d.keys),[d.id]),C([].concat(be(R),[E]))),d.id+=1},remove:function(E){var I=x(),R=new Set(Array.isArray(E)?E:[E]);R.size<=0||(d.keys=d.keys.filter(function(M,N){return!R.has(N)}),C(I.filter(function(M,N){return!R.has(N)})))},move:function(E,I){if(E!==I){var R=x();E<0||E>=R.length||I<0||I>=R.length||(d.keys=m1(d.keys,E,I),C(m1(R,E,I)))}}},O=b||[];return Array.isArray(O)||(O=[]),r(O.map(function($,E){var I=d.keys[E];return I===void 0&&(d.keys[E]=d.id,I=d.keys[E],d.id+=1),{name:E,key:I,isListField:!0}}),w,h)})))}function WL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var nI="__@field_split__";function Yp(e){return e.map(function(t){return"".concat(et(t),":").concat(t)}).join(nI)}var Gi=function(){function e(){sn(this,e),D(this,"kvs",new Map)}return cn(e,[{key:"set",value:function(n,r){this.kvs.set(Yp(n),r)}},{key:"get",value:function(n){return this.kvs.get(Yp(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Yp(n))}},{key:"map",value:function(n){return be(this.kvs.entries()).map(function(r){var o=oe(r,2),a=o[0],i=o[1],s=a.split(nI);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=oe(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),KL=["name"],UL=cn(function e(t){var n=this;sn(this,e),D(this,"formHooked",!1),D(this,"forceRootUpdate",void 0),D(this,"subscribable",!0),D(this,"store",{}),D(this,"fieldEntities",[]),D(this,"initialValues",{}),D(this,"callbacks",{}),D(this,"validateMessages",null),D(this,"preserve",null),D(this,"lastValidatePromise",null),D(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}}),D(this,"getInternalHooks",function(r){return r===yi?(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)}),D(this,"useSubscribe",function(r){n.subscribable=r}),D(this,"prevWithoutPreserves",null),D(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=vl(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;i=ao(i,c,xr(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),D(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Gi;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),D(this,"getInitialValue",function(r){var o=xr(n.initialValues,r);return r.length?vl(o):o}),D(this,"setCallbacks",function(r){n.callbacks=r}),D(this,"setValidateMessages",function(r){n.validateMessages=r}),D(this,"setPreserve",function(r){n.preserve=r}),D(this,"watchList",[]),D(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),D(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),D(this,"timeoutId",null),D(this,"warningUnhooked",function(){}),D(this,"updateStore",function(r){n.store=r}),D(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}),D(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Gi;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),D(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Rn(a);return o.get(i)||{INVALIDATE_NAME_PATH:Rn(a)}})}),D(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&et(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var g,y;if((g=(y=d).isList)!==null&&g!==void 0&&g.call(y))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(p);else{var h="getMeta"in d?d.getMeta():null;i(h)&&u.push(p)}}),f1(n.store,u.map(Rn))}),D(this,"getFieldValue",function(r){n.warningUnhooked();var o=Rn(r);return xr(n.store,o)}),D(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Rn(r[i]),errors:[],warnings:[]}})}),D(this,"getFieldError",function(r){n.warningUnhooked();var o=Rn(r),a=n.getFieldsError([o])[0];return a.errors}),D(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Rn(r),a=n.getFieldsError([o])[0];return a.warnings}),D(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(i)?(c=i.map(Rn),u=!1):(c=null,u=i):(c=i.map(Rn),u=s);var d=n.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!c)return u?d.every(function(y){return f(y)||y.isList()}):d.some(f);var m=new Gi;c.forEach(function(y){m.set(y,[])}),d.forEach(function(y){var h=y.getNamePath();c.forEach(function(v){v.every(function(b,C){return h[C]===b})&&m.update(v,function(b){return[].concat(be(b),[y])})})});var p=function(h){return h.some(f)},g=m.map(function(y){var h=y.value;return h});return u?g.every(p):g.some(p)}),D(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),D(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(Rn);return o.some(function(i){var s=i.getNamePath();return Pl(a,s)&&i.isFieldValidating()})}),D(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),D(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Gi,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),p=n.getInitialValue(m);if(p!==void 0)an(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var g=o.get(m);if(g&&g.size>1)an(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var y=n.getFieldValue(m),h=d.isListField();!h&&(!r.skipExist||y===void 0)&&n.updateStore(ao(n.store,m,be(g)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,be(be(u).map(function(f){return f.entity})))}})):s=a,i(s)}),D(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(vl(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Rn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(ao(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),D(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,c=ft(i,KL),u=Rn(s);a.push(u),"value"in c&&n.updateStore(ao(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),D(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),c=W(W({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),D(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=xr(n.store,a);i===void 0&&n.updateStore(ao(n.store,a,o))}}),D(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),D(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!eI(f.getNamePath(),o)})){var d=n.store;n.updateStore(ao(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),D(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),D(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=W(W({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,i)})}else n.forceRootUpdate()}),D(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(be(a))}),a}),D(this,"updateValue",function(r,o){var a=Rn(r),i=n.store;n.updateStore(ao(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),c=n.callbacks.onValuesChange;if(c){var u=f1(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(be(s)))}),D(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=vl(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),D(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),D(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Gi;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Rn(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),D(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Gi;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return Pl(r,d)});c.length&&a(c,i)}}),D(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,c=s?a.map(Rn):[],u=[],d=String(Date.now()),f=new Set,m=i||{},p=m.recursive,g=m.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||c.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(g&&!b.isFieldDirty())){var C=b.getNamePath();if(f.add(C.join(d)),!s||Pl(c,C,p)){var S=b.validateRules(W({validateMessages:W(W({},ZO),n.validateMessages)},i));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(x){var w,O=[],$=[];return(w=x.forEach)===null||w===void 0||w.call(x,function(E){var I=E.rule.warningOnly,R=E.errors;I?$.push.apply($,be(R)):O.push.apply(O,be(R))}),O.length?Promise.reject({name:C,errors:O,warnings:$}):{name:C,errors:O,warnings:$}}))}}});var y=WL(u);n.lastValidatePromise=y,y.catch(function(b){return b}).then(function(b){var C=b.map(function(S){var x=S.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,b)});var h=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(b){var C=b.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:C,outOfDate:n.lastValidatePromise!==y})});h.catch(function(b){return b});var v=c.filter(function(b){return f.has(b.join(d))});return n.triggerOnFieldsChange(v),h}),D(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function My(e){var t=l.useRef(),n=l.useState({}),r=oe(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new UL(a);t.current=i.getForm()}return[t.current]}var yh=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),rI=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=l.useContext(yh),s=l.useRef({});return l.createElement(yh.Provider,{value:W(W({},i),{},{validateMessages:W(W({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=W(W({},s.current),{},D({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=W({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},a)},GL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],qL=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,p=m===void 0?"onChange":m,g=t.onValuesChange,y=t.onFieldsChange,h=t.onFinish,v=t.onFinishFailed,b=t.clearOnDestroy,C=ft(t,GL),S=l.useRef(null),x=l.useContext(yh),w=My(i),O=oe(w,1),$=O[0],E=$.getInternalHooks(yi),I=E.useSubscribe,R=E.setInitialValues,M=E.setCallbacks,N=E.setValidateMessages,P=E.setPreserve,_=E.destroyForm;l.useImperativeHandle(n,function(){return W(W({},$),{},{nativeElement:S.current})}),l.useEffect(function(){return x.registerForm(r,$),function(){x.unregisterForm(r)}},[x,$,r]),N(W(W({},x.validateMessages),f)),M({onValuesChange:g,onFieldsChange:function(U){if(x.triggerFormChange(r,U),y){for(var G=arguments.length,q=new Array(G>1?G-1:0),te=1;te<G;te++)q[te-1]=arguments[te];y.apply(void 0,[U].concat(q))}},onFinish:function(U){x.triggerFormFinish(r,U),h&&h(U)},onFinishFailed:v}),P(s);var j=l.useRef(null);R(o,!j.current),j.current||(j.current=!0),l.useEffect(function(){return function(){return _(b)}},[]);var T,z=typeof c=="function";if(z){var L=$.getFieldsValue(!0);T=c(L,$)}else T=c;I(!z);var k=l.useRef();l.useEffect(function(){FL(k.current||[],a||[])||$.setFields(a||[]),k.current=a},[a,$]);var H=l.useMemo(function(){return W(W({},$),{},{validateTrigger:p})},[$,p]),K=l.createElement(_c.Provider,{value:null},l.createElement(_i.Provider,{value:H},T));return d===!1?K:l.createElement(d,pe({},C,{ref:S,onSubmit:function(U){U.preventDefault(),U.stopPropagation(),$.submit()},onReset:function(U){var G;U.preventDefault(),$.resetFields(),(G=C.onReset)===null||G===void 0||G.call(C,U)}}),K)};function p1(e){try{return JSON.stringify(e)}catch{return Math.random()}}function oI(){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],a=o===void 0?{}:o,i=aL(a)?{form:a}:a,s=i.form,c=l.useState(),u=oe(c,2),d=u[0],f=u[1],m=l.useMemo(function(){return p1(d)},[d]),p=l.useRef(m);p.current=m;var g=l.useContext(_i),y=s||g,h=y&&y._init,v=Rn(r),b=l.useRef(v);return b.current=v,l.useEffect(function(){if(h){var C=y.getFieldsValue,S=y.getInternalHooks,x=S(yi),w=x.registerWatch,O=function(R,M){var N=i.preserve?M:R;return typeof r=="function"?r(N):xr(N,b.current)},$=w(function(I,R){var M=O(I,R),N=p1(M);p.current!==N&&(p.current=N,f(M))}),E=O(C(),C(!0));return d!==E&&f(E),$}},[h]),d}var XL=l.forwardRef(qL),is=XL;is.FormProvider=rI;is.Field=Ny;is.List=tI;is.useForm=My;is.useWatch=oI;const fa=l.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),aI=l.createContext(null),iI=e=>{const t=Qt(e,["prefixCls"]);return l.createElement(rI,Object.assign({},t))},jy=l.createContext({prefixCls:""}),lr=l.createContext({}),lI=({children:e,status:t,override:n})=>{const r=l.useContext(lr),o=l.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return l.createElement(lr.Provider,{value:o},e)},sI=l.createContext(void 0),Ga=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=Q.createElement(lI,{override:!0,status:!0},o)),t&&(o=Q.createElement(c5,null,o)),o};var cI=function(t){if(Qn()&&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},YL=function(t,n){if(!cI(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function bh(e,t){return!Array.isArray(e)&&t!==void 0?YL(e,t):cI(e)}const QL=()=>Qn()&&window.document.documentElement,xm=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=V({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=V({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),c=l.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return l.createElement("span",{className:V(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},JL=new Bt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$m=e=>({height:e,lineHeight:A(e)}),Rl=e=>Object.assign({width:e},$m(e)),ZL=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:JL,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Qp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},$m(e)),eD=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Rl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Rl(o)),[`${t}${t}-sm`]:Object.assign({},Rl(a))}},tD=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Qp(t,s)),[`${r}-lg`]:Object.assign({},Qp(o,s)),[`${r}-sm`]:Object.assign({},Qp(a,s))}},v1=e=>Object.assign({width:e},$m(e)),nD=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},v1(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},v1(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Jp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Zp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},$m(e)),rD=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Zp(r,s))},Jp(e,r,n)),{[`${n}-lg`]:Object.assign({},Zp(o,s))}),Jp(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Zp(a,s))}),Jp(e,a,`${n}-sm`))},oD=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:p,borderRadius:g,titleHeight:y,blockRadius:h,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Rl(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Rl(u)),[`${n}-sm`]:Object.assign({},Rl(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:y,background:f,borderRadius:h,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:f,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},rD(e)),eD(e)),tD(e)),nD(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
241
|
+
${r},
|
|
242
|
+
${o} > li,
|
|
243
|
+
${n},
|
|
244
|
+
${a},
|
|
245
|
+
${i},
|
|
246
|
+
${s}
|
|
247
|
+
`]:Object.assign({},ZL(e))}}},aD=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}},ls=Tt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Et(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 oD(r)},aD,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),iD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(ot),c=s("skeleton",t),[u,d,f]=ls(c),m=Qt(e,["prefixCls","className"]),p=V(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(l.createElement("div",{className:p},l.createElement(xm,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:i},m))))},lD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(ot),c=s("skeleton",t),[u,d,f]=ls(c),m=Qt(e,["prefixCls"]),p=V(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(l.createElement("div",{className:p},l.createElement(xm,Object.assign({prefixCls:`${c}-button`,size:i},m))))},sD="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",cD=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=l.useContext(ot),s=i("skeleton",t),[c,u,d]=ls(s),f=V(s,`${s}-element`,{[`${s}-active`]:a},n,r,u,d);return c(l.createElement("div",{className:f},l.createElement("div",{className:V(`${s}-image`,n),style:o},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:sD,className:`${s}-image-path`})))))},uD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=l.useContext(ot),c=s("skeleton",t),[u,d,f]=ls(c),m=Qt(e,["prefixCls"]),p=V(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(l.createElement("div",{className:p},l.createElement(xm,Object.assign({prefixCls:`${c}-input`,size:i},m))))},dD=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=l.useContext(ot),c=s("skeleton",t),[u,d,f]=ls(c),m=V(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,f);return u(l.createElement("div",{className:m},l.createElement("div",{className:V(`${c}-image`,n),style:o},i)))},fD=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},mD=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,a=Array.from({length:o}).map((i,s)=>l.createElement("li",{key:s,style:{width:fD(s,e)}}));return l.createElement("ul",{className:V(t,n),style:r},a)},pD=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:V(e,t),style:Object.assign({width:n},r)});function ev(e){return e&&typeof e=="object"?e:{}}function vD(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function gD(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function hD(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Hi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:p,className:g,style:y}=jn("skeleton"),h=m("skeleton",t),[v,b,C]=ls(h);if(n||!("loading"in e)){const S=!!s,x=!!c,w=!!u;let O;if(S){const I=Object.assign(Object.assign({prefixCls:`${h}-avatar`},vD(x,w)),ev(s));O=l.createElement("div",{className:`${h}-header`},l.createElement(xm,Object.assign({},I)))}let $;if(x||w){let I;if(x){const M=Object.assign(Object.assign({prefixCls:`${h}-title`},gD(S,w)),ev(c));I=l.createElement(pD,Object.assign({},M))}let R;if(w){const M=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},hD(S,x)),ev(u));R=l.createElement(mD,Object.assign({},M))}$=l.createElement("div",{className:`${h}-content`},I,R)}const E=V(h,{[`${h}-with-avatar`]:S,[`${h}-active`]:d,[`${h}-rtl`]:p==="rtl",[`${h}-round`]:f},g,r,o,b,C);return v(l.createElement("div",{className:E,style:Object.assign(Object.assign({},y),a)},O,$))}return i??null};Hi.Button=lD;Hi.Avatar=iD;Hi.Input=uD;Hi.Image=cD;Hi.Node=dD;function g1(){}const yD=l.createContext({add:g1,remove:g1});function bD(e){const t=l.useContext(yD),n=l.useRef(null);return Gt(o=>{if(o){const a=e?o.querySelector(e):o;a&&(t.add(a),n.current=a)}else t.remove(n.current)})}const h1=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(au);return Q.createElement(It,Object.assign({onClick:n},e),t)},y1=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=l.useContext(au);return Q.createElement(It,Object.assign({},by(n),{loading:e,onClick:o},t),r)};function uI(e,t){return Q.createElement("span",{className:`${e}-close-x`},t||Q.createElement(ri,{className:`${e}-close-icon`}))}const dI=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=yo("Modal",G2()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),p=Q.useMemo(()=>({confirmLoading:o,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i}),[o,s,c,f,m,n,a,i]);let g;return typeof u=="function"||typeof u>"u"?(g=Q.createElement(Q.Fragment,null,Q.createElement(h1,null),Q.createElement(y1,null)),typeof u=="function"&&(g=u(g,{OkBtn:y1,CancelBtn:h1})),g=Q.createElement(KO,{value:p},g)):g=u,Q.createElement(sy,{disabled:!1},g)},CD=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"}}}},SD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},xD=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Ch=(e,t)=>xD(e,t),$D=(e,t,n)=>({[`@media (min-width: ${A(t)})`]:Object.assign({},Ch(e,n))}),wD=()=>({}),ED=()=>({}),OD=Tt("Grid",CD,wD),fI=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),ID=Tt("Grid",e=>{const t=Et(e,{gridColumns:24}),n=fI(t);return delete n.xs,[SD(t),Ch(t,""),Ch(t,"-xs"),Object.keys(n).map(r=>$D(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},ED);function b1(e){return{position:e,inset:0}}const PD=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({},b1("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},b1("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:FO(e)}]},RD=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:`${A(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Dt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${A(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:A(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},zo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${A(e.borderRadiusLG)} ${A(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:`${A(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,
|
|
248
|
+
${t}-body,
|
|
249
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ND=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},MD=e=>{const{componentCls:t}=e,n=fI(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,a=Object.keys(r).map(i=>({[`@media (min-width: ${A(r[i])})`]:{width:`var(${o}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(be(Object.keys(n).map((i,s)=>{const c=Object.keys(n)[s-1];return c?{[`${o}${i}-width`]:`var(${o}${c}-width)`}:null})),[{width:`var(${o}xs-width)`}],be(a))}}},mI=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Et(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()})},pI=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${A(e.paddingMD)} ${A(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${A(e.padding)} ${A(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${A(e.paddingXS)} ${A(e.padding)}`:0,footerBorderTop:e.wireframe?`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${A(e.padding*2)} ${A(e.padding*2)} ${A(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),vI=Tt("Modal",e=>{const t=mI(e);return[RD(t),ND(t),PD(t),ru(t,"zoom"),MD(t)]},pI,{unitless:{titleLineHeight:!0}});var jD=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 Sh;const TD=e=>{Sh={x:e.pageX,y:e.pageY},setTimeout(()=>{Sh=null},100)};QL()&&document.documentElement.addEventListener("click",TD,!0);const gI=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:a,centered:i,getContainer:s,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:p,styles:g,children:y,loading:h,confirmLoading:v,zIndex:b,mousePosition:C,onOk:S,onCancel:x,destroyOnHidden:w,destroyOnClose:O,panelRef:$=null,modalRender:E}=e,I=jD(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:R,getPrefixCls:M,direction:N,modal:P}=l.useContext(ot),_=fe=>{v||x==null||x(fe)},j=fe=>{S==null||S(fe)},T=M("modal",t),z=M(),L=Vn(T),[k,H,K]=vI(T,L),B=V(a,{[`${T}-centered`]:i??(P==null?void 0:P.centered),[`${T}-wrap-rtl`]:N==="rtl"}),U=m!==null&&!h?l.createElement(dI,Object.assign({},e,{onOk:j,onCancel:_})):null,[G,q,te,Z]=PO(pf(e),pf(P),{closable:!0,closeIcon:l.createElement(ri,{className:`${T}-close-icon`}),closeIconRender:fe=>uI(T,fe)}),ee=E?fe=>l.createElement("div",{className:`${T}-render`},E(fe)):void 0,ue=`.${T}-${E?"render":"content"}`,re=bD(ue),X=er($,re),[ae,ne]=Jc("Modal",b),[J,Y]=l.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),se=l.useMemo(()=>{const fe={};return Y&&Object.keys(Y).forEach($e=>{const Ce=Y[$e];Ce!==void 0&&(fe[`--${T}-${$e}-width`]=typeof Ce=="number"?`${Ce}px`:Ce)}),fe},[T,Y]);return k(l.createElement(Ga,{form:!0,space:!0},l.createElement(um.Provider,{value:ne},l.createElement(QO,Object.assign({width:J},I,{zIndex:ae,getContainer:s===void 0?R:s,prefixCls:T,rootClassName:V(H,r,K,L),footer:U,visible:o??d,mousePosition:C??Sh,onClose:_,closable:G&&Object.assign({disabled:te,closeIcon:q},Z),closeIcon:q,focusTriggerAfterClose:c,transitionName:Ka(z,"zoom",e.transitionName),maskTransitionName:Ka(z,"fade",e.maskTransitionName),className:V(H,n,P==null?void 0:P.className),style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),u),se),classNames:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.classNames),p),{wrapper:V(B,p==null?void 0:p.wrapper)}),styles:Object.assign(Object.assign({},P==null?void 0:P.styles),g),panelRef:X,destroyOnClose:w??O,modalRender:ee}),h?l.createElement(Hi,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):y))))},_D=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Qo()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${A(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${A(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
|
|
250
|
+
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},zD=rs(["Modal","confirm"],e=>{const t=mI(e);return _D(t)},pI,{order:-1e3});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 hI=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:c,locale:u}=e,d=LD(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=l.createElement(my,null);break;case"success":f=l.createElement(Qc,null);break;case"error":f=l.createElement(Fi,null);break;default:f=l.createElement(as,null)}const m=s??i==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[g]=yo("Modal"),y=u||g,h=r||(m?y==null?void 0:y.okText:y==null?void 0:y.justOkText),v=o||(y==null?void 0:y.cancelText),b=l.useMemo(()=>Object.assign({autoFocusButton:p,cancelTextLocale:v,okTextLocale:h,mergedOkCancel:m},d),[p,v,h,m,d]),C=l.createElement(l.Fragment,null,l.createElement(YS,null),l.createElement(QS,null)),S=e.title!==void 0&&e.title!==null,x=`${a}-body`;return l.createElement("div",{className:`${a}-body-wrapper`},l.createElement("div",{className:V(x,{[`${x}-has-title`]:S})},f,l.createElement("div",{className:`${a}-paragraph`},S&&l.createElement("span",{className:`${a}-title`},e.title),l.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(KO,{value:b},l.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(C,{OkBtn:QS,CancelBtn:YS}):C)):c,l.createElement(zD,{prefixCls:t}))},DD=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:a,wrapClassName:i,rootPrefixCls:s,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m}=e,p=`${a}-confirm`,g=e.width||416,y=e.style||{},h=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,b=V(p,`${p}-${e.type}`,{[`${p}-rtl`]:o==="rtl"},e.className),[,C]=tr(),S=l.useMemo(()=>n!==void 0?n:C.zIndexPopupBase+RO,[n,C]);return l.createElement(gI,Object.assign({},e,{className:b,wrapClassName:V({[`${p}-centered`]:!!e.centered},i),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:Ka(s||"","zoom",e.transitionName),maskTransitionName:Ka(s||"","fade",e.maskTransitionName),mask:h,maskClosable:v,style:y,styles:Object.assign({body:c,mask:r},f),width:g,zIndex:S,closable:u}),l.createElement(hI,Object.assign({},e,{confirmPrefixCls:p})))},yI=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return l.createElement(bo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},l.createElement(DD,Object.assign({},e)))},bi=[];let bI="";function CI(){return bI}const BD=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=G2(),s=l.useContext(ot),c=CI()||s.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0),Q.createElement(yI,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function lu(e){const t=bO(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),o,a;function i(...d){var f;if(d.some(g=>g==null?void 0:g.triggerCancel)){var p;(f=e.onCancel)===null||f===void 0||(p=f).call.apply(p,[e,()=>{}].concat(be(d.slice(1))))}for(let g=0;g<bi.length;g++)if(bi[g]===c){bi.splice(g,1);break}a()}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,CI()),m=t.getIconPrefixCls(),p=t.getTheme(),g=Q.createElement(BD,Object.assign({},d));a=yy()(Q.createElement(bo,{prefixCls:f,iconPrefixCls:m,theme:p},typeof t.holderRender=="function"?t.holderRender(g):g),n)})};function c(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),s(r)}return s(r),bi.push(c),{destroy:c,update:u}}function SI(e){return Object.assign(Object.assign({},e),{type:"warning"})}function xI(e){return Object.assign(Object.assign({},e),{type:"info"})}function $I(e){return Object.assign(Object.assign({},e),{type:"success"})}function wI(e){return Object.assign(Object.assign({},e),{type:"error"})}function EI(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function kD({rootPrefixCls:e}){bI=e}var AD=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 FD=(e,t)=>{var n,{afterClose:r,config:o}=e,a=AD(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(o),{direction:d,getPrefixCls:f}=l.useContext(ot),m=f("modal"),p=f(),g=()=>{var b;r(),(b=c.afterClose)===null||b===void 0||b.call(c)},y=(...b)=>{var C;if(s(!1),b.some(w=>w==null?void 0:w.triggerCancel)){var x;(C=c.onCancel)===null||C===void 0||(x=C).call.apply(x,[c,()=>{}].concat(be(b.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:y,update:b=>{u(C=>{const S=typeof b=="function"?b(C):b;return Object.assign(Object.assign({},C),S)})}}));const h=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[v]=yo("Modal",vo.Modal);return l.createElement(yI,Object.assign({prefixCls:m,rootPrefixCls:p},c,{close:y,open:i,afterClose:g,okText:c.okText||(h?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:c.direction||d,cancelText:c.cancelText||(v==null?void 0:v.cancelText)},a))},HD=l.forwardRef(FD);let C1=0;const VD=l.memo(l.forwardRef((e,t)=>{const[n,r]=C8();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function WD(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(be(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(a=>function(s){var c;C1+=1;const u=l.createRef();let d;const f=new Promise(h=>{d=h});let m=!1,p;const g=l.createElement(HD,{key:`modal-${C1}`,config:a(s),ref:u,afterClose:()=>{p==null||p()},isSilent:()=>m,onConfirm:h=>{d(h)}});return p=(c=e.current)===null||c===void 0?void 0:c.patchElement(g),p&&bi.push(p),{destroy:()=>{function h(){var v;(v=u.current)===null||v===void 0||v.destroy()}u.current?h():n(v=>[].concat(be(v),[h]))},update:h=>{function v(){var b;(b=u.current)===null||b===void 0||b.update(h)}u.current?v():n(b=>[].concat(be(b),[v]))},then:h=>(m=!0,f.then(h))}},[]);return[l.useMemo(()=>({info:r(xI),success:r($I),error:r(wI),warning:r(SI),confirm:r(EI)}),[r]),l.createElement(VD,{key:"modal-holder",ref:e})]}const KD=Q.createContext({});function OI(e){return t=>l.createElement(bo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const II=(e,t,n,r,o)=>OI(i=>{const{prefixCls:s,style:c}=i,u=l.useRef(null),[d,f]=l.useState(0),[m,p]=l.useState(0),[g,y]=rn(!1,{value:i.open}),{getPrefixCls:h}=l.useContext(ot),v=h(r||"select",s);l.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(w=>{const O=w[0].target;f(O.offsetHeight+8),p(O.offsetWidth)}),x=setInterval(()=>{var w;const O=o?`.${o(v)}`:`.${v}-dropdown`,$=(w=u.current)===null||w===void 0?void 0:w.querySelector(O);$&&(clearInterval(x),S.observe($))},10);return()=>{clearInterval(x),S.disconnect()}}},[v]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:d,position:"relative",minWidth:m};return l.createElement("div",{ref:u,style:C},l.createElement(e,Object.assign({},b)))}),wm=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 Em=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:V(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},UD=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=Q.useMemo(function(){if(et(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=Q.useMemo(function(){return!!(!i&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,i,r.length,s,c]);return{allowClear:d,clearIcon:Q.createElement(Em,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},PI=l.createContext(null);function GD(){return l.useContext(PI)}function qD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=oe(t,2),r=n[0],o=n[1],a=l.useRef(null),i=function(){window.clearTimeout(a.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,i]}function RI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.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 XD(e,t,n,r){var o=l.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function YD(e){return e&&![Xe.ESC,Xe.SHIFT,Xe.BACKSPACE,Xe.TAB,Xe.WIN_KEY,Xe.ALT,Xe.META,Xe.WIN_KEY_RIGHT,Xe.CTRL,Xe.SEMICOLON,Xe.EQUALS,Xe.CAPS_LOCK,Xe.CONTEXT_MENU,Xe.F1,Xe.F2,Xe.F3,Xe.F4,Xe.F5,Xe.F6,Xe.F7,Xe.F8,Xe.F9,Xe.F10,Xe.F11,Xe.F12].includes(e)}var QD=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qi=void 0;function JD(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,p=e.display,g=e.order,y=e.component,h=y===void 0?"div":y,v=ft(e,QD),b=i&&!p;function C($){c(u,$)}l.useEffect(function(){return function(){C(null)}},[]);var S=a&&o!==qi?a(o,{index:g}):m,x;r||(x={opacity:b?0:1,height:b?0:qi,overflowY:b?"hidden":qi,order:i?g:qi,pointerEvents:b?"none":qi,position:b?"absolute":qi});var w={};b&&(w["aria-hidden"]=!0);var O=l.createElement(h,pe({className:V(!r&&n,d),style:W(W({},x),f)},w,v,{ref:t}),S);return i&&(O=l.createElement(Or,{onResize:function(E){var I=E.offsetWidth;C(I)},disabled:s},O)),O}var yl=l.forwardRef(JD);yl.displayName="Item";function ZD(e){if(typeof MessageChannel>"u")jt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function eB(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],ZD(function(){mo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Xi(e,t){var n=l.useState(t),r=oe(n,2),o=r[0],a=r[1],i=Gt(function(s){e(function(){a(s)})});return[o,i]}var yf=Q.createContext(null),tB=["component"],nB=["className"],rB=["className"],oB=function(t,n){var r=l.useContext(yf);if(!r){var o=t.component,a=o===void 0?"div":o,i=ft(t,tB);return l.createElement(a,pe({},i,{ref:n}))}var s=r.className,c=ft(r,nB),u=t.className,d=ft(t,rB);return l.createElement(yf.Provider,{value:null},l.createElement(yl,pe({ref:n,className:V(s,u)},c,d)))},NI=l.forwardRef(oB);NI.displayName="RawItem";var aB=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],MI="responsive",jI="invalidate";function iB(e){return"+ ".concat(e.length," ...")}function lB(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,p=e.className,g=e.maxCount,y=e.renderRest,h=e.renderRawRest,v=e.prefix,b=e.suffix,C=e.component,S=C===void 0?"div":C,x=e.itemComponent,w=e.onVisibleChange,O=ft(e,aB),$=f==="full",E=eB(),I=Xi(E,null),R=oe(I,2),M=R[0],N=R[1],P=M||0,_=Xi(E,new Map),j=oe(_,2),T=j[0],z=j[1],L=Xi(E,0),k=oe(L,2),H=k[0],K=k[1],B=Xi(E,0),U=oe(B,2),G=U[0],q=U[1],te=Xi(E,0),Z=oe(te,2),ee=Z[0],ue=Z[1],re=Xi(E,0),X=oe(re,2),ae=X[0],ne=X[1],J=l.useState(null),Y=oe(J,2),se=Y[0],fe=Y[1],$e=l.useState(null),Ce=oe($e,2),ie=Ce[0],ge=Ce[1],de=l.useMemo(function(){return ie===null&&$?Number.MAX_SAFE_INTEGER:ie||0},[ie,M]),ve=l.useState(!1),Re=oe(ve,2),_e=Re[0],Ue=Re[1],ke="".concat(r,"-item"),De=Math.max(H,G),Ae=g===MI,xe=a.length&&Ae,ye=g===jI,je=xe||typeof g=="number"&&a.length>g,Pe=l.useMemo(function(){var Oe=a;return xe?M===null&&$?Oe=a:Oe=a.slice(0,Math.min(a.length,P/d)):typeof g=="number"&&(Oe=a.slice(0,g)),Oe},[a,d,M,g,xe]),Be=l.useMemo(function(){return xe?a.slice(de+1):a.slice(Pe.length)},[a,Pe,xe,de]),me=l.useCallback(function(Oe,we){var Me;return typeof c=="function"?c(Oe):(Me=c&&(Oe==null?void 0:Oe[c]))!==null&&Me!==void 0?Me:we},[c]),Ie=l.useCallback(i||function(Oe){return Oe},[i]);function Te(Oe,we,Me){ie===Oe&&(we===void 0||we===se)||(ge(Oe),Me||(Ue(Oe<a.length-1),w==null||w(Oe)),we!==void 0&&fe(we))}function Ne(Oe,we){N(we.clientWidth)}function tt(Oe,we){z(function(Me){var ze=new Map(Me);return we===null?ze.delete(Oe):ze.set(Oe,we),ze})}function st(Oe,we){q(we),K(G)}function Le(Oe,we){ue(we)}function Ge(Oe,we){ne(we)}function Qe(Oe){return T.get(me(Pe[Oe],Oe))}Pt(function(){if(P&&typeof De=="number"&&Pe){var Oe=ee+ae,we=Pe.length,Me=we-1;if(!we){Te(0,null);return}for(var ze=0;ze<we;ze+=1){var qe=Qe(ze);if($&&(qe=qe||0),qe===void 0){Te(ze-1,void 0,!0);break}if(Oe+=qe,Me===0&&Oe<=P||ze===Me-1&&Oe+Qe(Me)<=P){Te(Me,null);break}else if(Oe+De>P){Te(ze-1,Oe-qe-ae+G);break}}b&&Qe(0)+ae>P&&fe(null)}},[P,T,G,ee,ae,me,Pe]);var Fe=_e&&!!Be.length,nt={};se!==null&&xe&&(nt={position:"absolute",left:se,top:0});var bt={prefixCls:ke,responsive:xe,component:x,invalidate:ye},le=s?function(Oe,we){var Me=me(Oe,we);return l.createElement(yf.Provider,{key:Me,value:W(W({},bt),{},{order:we,item:Oe,itemKey:Me,registerSize:tt,display:we<=de})},s(Oe,we))}:function(Oe,we){var Me=me(Oe,we);return l.createElement(yl,pe({},bt,{order:we,key:Me,item:Oe,renderItem:Ie,itemKey:Me,registerSize:tt,display:we<=de}))},ce={order:Fe?de:Number.MAX_SAFE_INTEGER,className:"".concat(ke,"-rest"),registerSize:st,display:Fe},Se=y||iB,he=h?l.createElement(yf.Provider,{value:W(W({},bt),ce)},h(Be)):l.createElement(yl,pe({},bt,ce),typeof Se=="function"?Se(Be):Se),Ee=l.createElement(S,pe({className:V(!ye&&r,p),style:m,ref:t},O),v&&l.createElement(yl,pe({},bt,{responsive:Ae,responsiveDisabled:!xe,order:-1,className:"".concat(ke,"-prefix"),registerSize:Le,display:!0}),v),Pe.map(le),je?he:null,b&&l.createElement(yl,pe({},bt,{responsive:Ae,responsiveDisabled:!xe,order:de,className:"".concat(ke,"-suffix"),registerSize:Ge,display:!0,style:nt}),b));return Ae?l.createElement(Or,{onResize:Ne,disabled:!xe},Ee):Ee}var Xo=l.forwardRef(lB);Xo.displayName="Overflow";Xo.Item=NI;Xo.RESPONSIVE=MI;Xo.INVALIDATE=jI;function sB(e,t,n){var r=W(W({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return a.apply(void 0,c),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(c))})}),r}var cB=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],uB=function(t,n){var r=t.prefixCls,o=t.id,a=t.inputElement,i=t.autoFocus,s=t.autoComplete,c=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,p=ft(t,cB),g=a||l.createElement("input",null),y=g,h=y.ref,v=y.props;return"maxLength"in g.props,g=l.cloneElement(g,W(W(W({type:"search"},sB(p,v)),{},{id:o,ref:er(n,h),autoComplete:s||"off",autoFocus:i,className:V("".concat(r,"-selection-search-input"),v==null?void 0:v.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?u:void 0},m),{},{value:c?d:"",readOnly:!c,unselectable:c?null:"on",style:W(W({},v.style),{},{opacity:c?null:0})})),g},TI=l.forwardRef(uB);function _I(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var dB=typeof window<"u"&&window.document&&window.document.documentElement,fB=dB;function mB(e){return e!=null}function pB(e){return!e&&e!==0}function S1(e){return["string","number"].includes(et(e))}function zI(e){var t=void 0;return e&&(S1(e.title)?t=e.title.toString():S1(e.label)&&(t=e.label.toString())),t}function vB(e,t){fB?l.useLayoutEffect(e,t):l.useEffect(e,t)}function gB(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var x1=function(t){t.preventDefault(),t.stopPropagation()},hB=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,p=t.autoFocus,g=t.autoComplete,y=t.activeDescendantId,h=t.tabIndex,v=t.removeIcon,b=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,x=S===void 0?function(ne){return"+ ".concat(ne.length," ...")}:S,w=t.tagRender,O=t.onToggleOpen,$=t.onRemove,E=t.onInputChange,I=t.onInputPaste,R=t.onInputKeyDown,M=t.onInputMouseDown,N=t.onInputCompositionStart,P=t.onInputCompositionEnd,_=t.onInputBlur,j=l.useRef(null),T=l.useState(0),z=oe(T,2),L=z[0],k=z[1],H=l.useState(!1),K=oe(H,2),B=K[0],U=K[1],G="".concat(r,"-selection"),q=a||f==="multiple"&&s===!1||f==="tags"?i:"",te=f==="tags"||f==="multiple"&&s===!1||m&&(a||B);vB(function(){k(j.current.scrollWidth)},[q]);var Z=function(J,Y,se,fe,$e){return l.createElement("span",{title:zI(J),className:V("".concat(G,"-item"),D({},"".concat(G,"-item-disabled"),se))},l.createElement("span",{className:"".concat(G,"-item-content")},Y),fe&&l.createElement(Em,{className:"".concat(G,"-item-remove"),onMouseDown:x1,onClick:$e,customizeIcon:v},"×"))},ee=function(J,Y,se,fe,$e,Ce){var ie=function(de){x1(de),O(!a)};return l.createElement("span",{onMouseDown:ie},w({label:Y,value:J,disabled:se,closable:fe,onClose:$e,isMaxTag:!!Ce}))},ue=function(J){var Y=J.disabled,se=J.label,fe=J.value,$e=!d&&!Y,Ce=se;if(typeof C=="number"&&(typeof se=="string"||typeof se=="number")){var ie=String(Ce);ie.length>C&&(Ce="".concat(ie.slice(0,C),"..."))}var ge=function(ve){ve&&ve.stopPropagation(),$(J)};return typeof w=="function"?ee(fe,Ce,Y,$e,ge):Z(J,Ce,Y,$e,ge)},re=function(J){if(!o.length)return null;var Y=typeof x=="function"?x(J):x;return typeof w=="function"?ee(void 0,Y,!1,!1,void 0,!0):Z({title:Y},Y,!1)},X=l.createElement("div",{className:"".concat(G,"-search"),style:{width:L},onFocus:function(){U(!0)},onBlur:function(){U(!1)}},l.createElement(TI,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:p,autoComplete:g,editable:te,activeDescendantId:y,value:q,onKeyDown:R,onMouseDown:M,onChange:E,onPaste:I,onCompositionStart:N,onCompositionEnd:P,onBlur:_,tabIndex:h,attrs:Jn(t,!0)}),l.createElement("span",{ref:j,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q," ")),ae=l.createElement(Xo,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:ue,renderRest:re,suffix:X,itemKey:gB,maxCount:b});return l.createElement("span",{className:"".concat(G,"-wrap")},ae,!o.length&&!q&&l.createElement("span",{className:"".concat(G,"-placeholder")},u))},yB=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,p=t.placeholder,g=t.tabIndex,y=t.showSearch,h=t.searchValue,v=t.activeValue,b=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,x=t.onInputChange,w=t.onInputPaste,O=t.onInputCompositionStart,$=t.onInputCompositionEnd,E=t.onInputBlur,I=t.title,R=l.useState(!1),M=oe(R,2),N=M[0],P=M[1],_=d==="combobox",j=_||y,T=m[0],z=h||"";_&&v&&!N&&(z=v),l.useEffect(function(){_&&P(!1)},[_,v]);var L=d!=="combobox"&&!f&&!y?!1:!!z,k=I===void 0?zI(T):I,H=l.useMemo(function(){return T?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},p)},[T,L,p,r]);return l.createElement("span",{className:"".concat(r,"-selection-wrap")},l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(TI,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:j,activeDescendantId:u,value:z,onKeyDown:C,onMouseDown:S,onChange:function(B){P(!0),x(B)},onPaste:w,onCompositionStart:O,onCompositionEnd:$,onBlur:E,tabIndex:g,attrs:Jn(t,!0),maxLength:_?b:void 0})),!_&&T?l.createElement("span",{className:"".concat(r,"-selection-item"),title:k,style:L?{visibility:"hidden"}:void 0},T.label):null,H)},bB=function(t,n){var r=l.useRef(null),o=l.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,p=t.onSearch,g=t.onSearchSubmit,y=t.onToggleOpen,h=t.onInputKeyDown,v=t.onInputBlur,b=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(k){r.current.focus(k)},blur:function(){r.current.blur()}}});var C=RI(0),S=oe(C,2),x=S[0],w=S[1],O=function(k){var H=k.which,K=r.current instanceof HTMLTextAreaElement;!K&&i&&(H===Xe.UP||H===Xe.DOWN)&&k.preventDefault(),h&&h(k),H===Xe.ENTER&&s==="tags"&&!o.current&&!i&&(g==null||g(k.target.value)),!(K&&!i&&~[Xe.UP,Xe.DOWN,Xe.LEFT,Xe.RIGHT].indexOf(H))&&YD(H)&&y(!0)},$=function(){w(!0)},E=l.useRef(null),I=function(k){p(k,!0,o.current)!==!1&&y(!0)},R=function(){o.current=!0},M=function(k){o.current=!1,s!=="combobox"&&I(k.target.value)},N=function(k){var H=k.target.value;if(u&&E.current&&/[\r\n]/.test(E.current)){var K=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(K,E.current)}E.current=null,I(H)},P=function(k){var H=k.clipboardData,K=H==null?void 0:H.getData("text");E.current=K||""},_=function(k){var H=k.target;if(H!==r.current){var K=document.body.style.msTouchAction!==void 0;K?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(k){var H=x();k.target!==r.current&&!H&&!(s==="combobox"&&d)&&k.preventDefault(),(s!=="combobox"&&(!c||!H)||!i)&&(i&&m!==!1&&p("",!0,!1),y())},T={inputRef:r,onInputKeyDown:O,onInputMouseDown:$,onInputChange:N,onInputPaste:P,onInputCompositionStart:R,onInputCompositionEnd:M,onInputBlur:v},z=s==="multiple"||s==="tags"?l.createElement(hB,pe({},t,T)):l.createElement(yB,pe({},t,T));return l.createElement("div",{ref:b,className:"".concat(a,"-selector"),onClick:_,onMouseDown:j},f&&l.createElement("div",{className:"".concat(a,"-prefix")},f),z)},CB=l.forwardRef(bB);function SB(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=l.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],y=n.points[1],h=g[0],v=g[1],b=y[0],C=y[1];h===b||!["t","b"].includes(h)?p.top=f:h==="t"?p.top=0:p.bottom=0,v===C||!["l","r"].includes(v)?p.left=u:v==="l"?p.left=0:p.right=0}return l.createElement("div",{ref:m,className:V("".concat(t,"-arrow"),i),style:p},s)}function xB(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?l.createElement(Nr,pe({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:V("".concat(t,"-mask"),s)})}):null}var $B=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),wB=l.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,p=e.arrow,g=e.arrowPos,y=e.align,h=e.motion,v=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,x=e.portal,w=e.zIndex,O=e.onMouseEnter,$=e.onMouseLeave,E=e.onPointerEnter,I=e.onPointerDownCapture,R=e.ready,M=e.offsetX,N=e.offsetY,P=e.offsetR,_=e.offsetB,j=e.onAlign,T=e.onPrepare,z=e.stretch,L=e.targetWidth,k=e.targetHeight,H=typeof n=="function"?n():n,K=c||u,B=(C==null?void 0:C.length)>0,U=l.useState(!C||!B),G=oe(U,2),q=G[0],te=G[1];if(Pt(function(){!q&&B&&i&&te(!0)},[q,B,i]),!q)return null;var Z="auto",ee={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(R||!c){var ue,re=y.points,X=y.dynamicInset||((ue=y._experimental)===null||ue===void 0?void 0:ue.dynamicInset),ae=X&&re[0][1]==="r",ne=X&&re[0][0]==="b";ae?(ee.right=P,ee.left=Z):(ee.left=M,ee.right=Z),ne?(ee.bottom=_,ee.top=Z):(ee.top=N,ee.bottom=Z)}var J={};return z&&(z.includes("height")&&k?J.height=k:z.includes("minHeight")&&k&&(J.minHeight=k),z.includes("width")&&L?J.width=L:z.includes("minWidth")&&L&&(J.minWidth=L)),c||(J.pointerEvents="none"),l.createElement(x,{open:b||K,getContainer:C&&function(){return C(i)},autoDestroy:S},l.createElement(xB,{prefixCls:o,open:c,zIndex:w,mask:m,motion:v}),l.createElement(Or,{onResize:j,disabled:!c},function(Y){return l.createElement(Nr,pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:T,onEnterPrepare:T,visible:c,onVisibleChanged:function(fe){var $e;h==null||($e=h.onVisibleChanged)===null||$e===void 0||$e.call(h,fe),s(fe)}}),function(se,fe){var $e=se.className,Ce=se.style,ie=V(o,$e,r);return l.createElement("div",{ref:er(Y,t,fe),className:ie,style:W(W(W(W({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},ee),J),Ce),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:O,onMouseLeave:$,onPointerEnter:E,onClick:f,onPointerDownCapture:I},p&&l.createElement(SB,{prefixCls:o,arrow:p,arrowPos:g,align:y}),l.createElement($B,{cache:!c&&!d},H))})}))}),EB=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=To(n),a=l.useCallback(function(s){wc(t,r?r(s):s)},[r]),i=pa(a,ti(n));return o?l.cloneElement(n,{ref:i}):n}),$1=l.createContext(null);function w1(e){return e?Array.isArray(e)?e:[e]:[]}function OB(e,t,n,r){return l.useMemo(function(){var o=w1(n??t),a=w1(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function IB(){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 PB(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,c=a[i];if(IB((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function E1(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function su(e){return e.ownerDocument.defaultView}function xh(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=su(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function zc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Is(e){return zc(parseFloat(e),0)}function O1(e,t){var n=W({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=su(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,p=r.clientHeight,g=r.offsetWidth,y=r.clientWidth,h=Is(s),v=Is(c),b=Is(u),C=Is(d),S=zc(Math.round(f.width/g*1e3)/1e3),x=zc(Math.round(f.height/m*1e3)/1e3),w=(g-y-b-C)*S,O=(m-p-h-v)*x,$=h*x,E=v*x,I=b*S,R=C*S,M=0,N=0;if(a==="clip"){var P=Is(i);M=P*S,N=P*x}var _=f.x+I-M,j=f.y+$-N,T=_+f.width+2*M-I-R-w,z=j+f.height+2*N-$-E-O;n.left=Math.max(n.left,_),n.top=Math.max(n.top,j),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,z)}}),n}function I1(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 P1(e,t){var n=t||[],r=oe(n,2),o=r[0],a=r[1];return[I1(e.width,o),I1(e.height,a)]}function R1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Yi(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function ga(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 RB(e,t,n,r,o,a,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=oe(s,2),u=c[0],d=c[1],f=l.useRef(0),m=l.useMemo(function(){return t?xh(t):[]},[t]),p=l.useRef({}),g=function(){p.current={}};e||g();var y=Gt(function(){if(t&&n&&e){let In=function(Mr,jr){var ko=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Re,Cu=K.x+Mr,Su=K.y+jr,Zm=Cu+ne,pt=Su+ae,$t=Math.max(Cu,ko.left),mn=Math.max(Su,ko.top),Pn=Math.min(Zm,ko.right),pn=Math.min(pt,ko.bottom);return Math.max(0,(Pn-$t)*(pn-mn))},Cr=function(){Nt=K.y+Se,_t=Nt+ae,Wt=K.x+ce,wt=Wt+ne};var br=In,Cn=Cr,b,C,S,x,w=t,O=w.ownerDocument,$=su(w),E=$.getComputedStyle(w),I=E.position,R=w.style.left,M=w.style.top,N=w.style.right,P=w.style.bottom,_=w.style.overflow,j=W(W({},o[r]),a),T=O.createElement("div");(b=w.parentElement)===null||b===void 0||b.appendChild(T),T.style.left="".concat(w.offsetLeft,"px"),T.style.top="".concat(w.offsetTop,"px"),T.style.position=I,T.style.height="".concat(w.offsetHeight,"px"),T.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var L,k,H=n.getBoundingClientRect();H.x=(L=H.x)!==null&&L!==void 0?L:H.left,H.y=(k=H.y)!==null&&k!==void 0?k:H.top,z={x:H.x,y:H.y,width:H.width,height:H.height}}var K=w.getBoundingClientRect(),B=$.getComputedStyle(w),U=B.height,G=B.width;K.x=(C=K.x)!==null&&C!==void 0?C:K.left,K.y=(S=K.y)!==null&&S!==void 0?S:K.top;var q=O.documentElement,te=q.clientWidth,Z=q.clientHeight,ee=q.scrollWidth,ue=q.scrollHeight,re=q.scrollTop,X=q.scrollLeft,ae=K.height,ne=K.width,J=z.height,Y=z.width,se={left:0,top:0,right:te,bottom:Z},fe={left:-X,top:-re,right:ee-X,bottom:ue-re},$e=j.htmlRegion,Ce="visible",ie="visibleFirst";$e!=="scroll"&&$e!==ie&&($e=Ce);var ge=$e===ie,de=O1(fe,m),ve=O1(se,m),Re=$e===Ce?ve:de,_e=ge?ve:Re;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ue=w.getBoundingClientRect();w.style.left=R,w.style.top=M,w.style.right=N,w.style.bottom=P,w.style.overflow=_,(x=w.parentElement)===null||x===void 0||x.removeChild(T);var ke=zc(Math.round(ne/parseFloat(G)*1e3)/1e3),De=zc(Math.round(ae/parseFloat(U)*1e3)/1e3);if(ke===0||De===0||$c(n)&&!eu(n))return;var Ae=j.offset,xe=j.targetOffset,ye=P1(K,Ae),je=oe(ye,2),Pe=je[0],Be=je[1],me=P1(z,xe),Ie=oe(me,2),Te=Ie[0],Ne=Ie[1];z.x-=Te,z.y-=Ne;var tt=j.points||[],st=oe(tt,2),Le=st[0],Ge=st[1],Qe=R1(Ge),Fe=R1(Le),nt=Yi(z,Qe),bt=Yi(K,Fe),le=W({},j),ce=nt.x-bt.x+Pe,Se=nt.y-bt.y+Be,he=In(ce,Se),Ee=In(ce,Se,ve),Oe=Yi(z,["t","l"]),we=Yi(K,["t","l"]),Me=Yi(z,["b","r"]),ze=Yi(K,["b","r"]),qe=j.overflow||{},yt=qe.adjustX,Ye=qe.adjustY,Ke=qe.shiftX,ct=qe.shiftY,Ot=function(jr){return typeof jr=="boolean"?jr:jr>=0},Nt,_t,Wt,wt;Cr();var kt=Ot(Ye),He=Fe[0]===Qe[0];if(kt&&Fe[0]==="t"&&(_t>_e.bottom||p.current.bt)){var Ze=Se;He?Ze-=ae-J:Ze=Oe.y-ze.y-Be;var gt=In(ce,Ze),mt=In(ce,Ze,ve);gt>he||gt===he&&(!ge||mt>=Ee)?(p.current.bt=!0,Se=Ze,Be=-Be,le.points=[ga(Fe,0),ga(Qe,0)]):p.current.bt=!1}if(kt&&Fe[0]==="b"&&(Nt<_e.top||p.current.tb)){var it=Se;He?it+=ae-J:it=Me.y-we.y-Be;var rt=In(ce,it),Ct=In(ce,it,ve);rt>he||rt===he&&(!ge||Ct>=Ee)?(p.current.tb=!0,Se=it,Be=-Be,le.points=[ga(Fe,0),ga(Qe,0)]):p.current.tb=!1}var Mt=Ot(yt),Je=Fe[1]===Qe[1];if(Mt&&Fe[1]==="l"&&(wt>_e.right||p.current.rl)){var ut=ce;Je?ut-=ne-Y:ut=Oe.x-ze.x-Pe;var xt=In(ut,Se),un=In(ut,Se,ve);xt>he||xt===he&&(!ge||un>=Ee)?(p.current.rl=!0,ce=ut,Pe=-Pe,le.points=[ga(Fe,1),ga(Qe,1)]):p.current.rl=!1}if(Mt&&Fe[1]==="r"&&(Wt<_e.left||p.current.lr)){var wn=ce;Je?wn+=ne-Y:wn=Me.x-we.x-Pe;var nr=In(wn,Se),rr=In(wn,Se,ve);nr>he||nr===he&&(!ge||rr>=Ee)?(p.current.lr=!0,ce=wn,Pe=-Pe,le.points=[ga(Fe,1),ga(Qe,1)]):p.current.lr=!1}Cr();var Bn=Ke===!0?0:Ke;typeof Bn=="number"&&(Wt<ve.left&&(ce-=Wt-ve.left-Pe,z.x+Y<ve.left+Bn&&(ce+=z.x-ve.left+Y-Bn)),wt>ve.right&&(ce-=wt-ve.right-Pe,z.x>ve.right-Bn&&(ce+=z.x-ve.right+Bn)));var sr=ct===!0?0:ct;typeof sr=="number"&&(Nt<ve.top&&(Se-=Nt-ve.top-Be,z.y+J<ve.top+sr&&(Se+=z.y-ve.top+J-sr)),_t>ve.bottom&&(Se-=_t-ve.bottom-Be,z.y>ve.bottom-sr&&(Se+=z.y-ve.bottom+sr)));var cr=K.x+ce,yr=cr+ne,ur=K.y+Se,Kt=ur+ae,lt=z.x,at=lt+Y,Ht=z.y,At=Ht+J,Yt=Math.max(cr,lt),on=Math.min(yr,at),Kn=(Yt+on)/2,En=Kn-cr,Un=Math.max(ur,Ht),Tn=Math.min(Kt,At),Gn=(Un+Tn)/2,Zr=Gn-ur;i==null||i(t,le);var St=Ue.right-K.x-(ce+K.width),Rt=Ue.bottom-K.y-(Se+K.height);ke===1&&(ce=Math.floor(ce),St=Math.floor(St)),De===1&&(Se=Math.floor(Se),Rt=Math.floor(Rt));var On={ready:!0,offsetX:ce/ke,offsetY:Se/De,offsetR:St/ke,offsetB:Rt/De,arrowX:En/ke,arrowY:Zr/De,scaleX:ke,scaleY:De,align:le};d(On)}}),h=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&y()})},v=function(){d(function(C){return W(W({},C),{},{ready:!1})})};return Pt(v,[r]),Pt(function(){e||v()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,h]}function NB(e,t,n,r,o){Pt(function(){if(e&&t&&n){let m=function(){r(),o()};var f=m,a=t,i=n,s=xh(a),c=xh(i),u=su(i),d=new Set([u].concat(be(s),be(c)));return d.forEach(function(p){p.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function MB(e,t,n,r,o,a,i,s){var c=l.useRef(e);c.current=e;var u=l.useRef(!1);l.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){u.current=!1},m=function(h){var v;c.current&&!i(((v=h.composedPath)===null||v===void 0||(v=v.call(h))===null||v===void 0?void 0:v[0])||h.target)&&!u.current&&s(!1)},p=su(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);var g=mf(n);return g&&(g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0)),function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),g&&(g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,a]);function d(){u.current=!0}return d}var jB=["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 TB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Py,t=l.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,p=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,y=n.mouseEnterDelay,h=n.mouseLeaveDelay,v=h===void 0?.1:h,b=n.focusDelay,C=n.blurDelay,S=n.mask,x=n.maskClosable,w=x===void 0?!0:x,O=n.getPopupContainer,$=n.forceRender,E=n.autoDestroy,I=n.destroyPopupOnHide,R=n.popup,M=n.popupClassName,N=n.popupStyle,P=n.popupPlacement,_=n.builtinPlacements,j=_===void 0?{}:_,T=n.popupAlign,z=n.zIndex,L=n.stretch,k=n.getPopupClassNameFromAlign,H=n.fresh,K=n.alignPoint,B=n.onPopupClick,U=n.onPopupAlign,G=n.arrow,q=n.popupMotion,te=n.maskMotion,Z=n.popupTransitionName,ee=n.popupAnimation,ue=n.maskTransitionName,re=n.maskAnimation,X=n.className,ae=n.getTriggerDOMNode,ne=ft(n,jB),J=E||I||!1,Y=l.useState(!1),se=oe(Y,2),fe=se[0],$e=se[1];Pt(function(){$e(wm())},[]);var Ce=l.useRef({}),ie=l.useContext($1),ge=l.useMemo(function(){return{registerSubPopup:function($t,mn){Ce.current[$t]=mn,ie==null||ie.registerSubPopup($t,mn)}}},[ie]),de=Sm(),ve=l.useState(null),Re=oe(ve,2),_e=Re[0],Ue=Re[1],ke=l.useRef(null),De=Gt(function(pt){ke.current=pt,$c(pt)&&_e!==pt&&Ue(pt),ie==null||ie.registerSubPopup(de,pt)}),Ae=l.useState(null),xe=oe(Ae,2),ye=xe[0],je=xe[1],Pe=l.useRef(null),Be=Gt(function(pt){$c(pt)&&ye!==pt&&(je(pt),Pe.current=pt)}),me=l.Children.only(i),Ie=(me==null?void 0:me.props)||{},Te={},Ne=Gt(function(pt){var $t,mn,Pn=ye;return(Pn==null?void 0:Pn.contains(pt))||(($t=mf(Pn))===null||$t===void 0?void 0:$t.host)===pt||pt===Pn||(_e==null?void 0:_e.contains(pt))||((mn=mf(_e))===null||mn===void 0?void 0:mn.host)===pt||pt===_e||Object.values(Ce.current).some(function(pn){return(pn==null?void 0:pn.contains(pt))||pt===pn})}),tt=E1(a,q,ee,Z),st=E1(a,te,re,ue),Le=l.useState(m||!1),Ge=oe(Le,2),Qe=Ge[0],Fe=Ge[1],nt=f??Qe,bt=Gt(function(pt){f===void 0&&Fe(pt)});Pt(function(){Fe(f||!1)},[f]);var le=l.useRef(nt);le.current=nt;var ce=l.useRef([]);ce.current=[];var Se=Gt(function(pt){var $t;bt(pt),(($t=ce.current[ce.current.length-1])!==null&&$t!==void 0?$t:nt)!==pt&&(ce.current.push(pt),p==null||p(pt))}),he=l.useRef(),Ee=function(){clearTimeout(he.current)},Oe=function($t){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ee(),mn===0?Se($t):he.current=setTimeout(function(){Se($t)},mn*1e3)};l.useEffect(function(){return Ee},[]);var we=l.useState(!1),Me=oe(we,2),ze=Me[0],qe=Me[1];Pt(function(pt){(!pt||nt)&&qe(!0)},[nt]);var yt=l.useState(null),Ye=oe(yt,2),Ke=Ye[0],ct=Ye[1],Ot=l.useState(null),Nt=oe(Ot,2),_t=Nt[0],Wt=Nt[1],wt=function($t){Wt([$t.clientX,$t.clientY])},kt=RB(nt,_e,K&&_t!==null?_t:ye,P,j,T,U),He=oe(kt,11),Ze=He[0],gt=He[1],mt=He[2],it=He[3],rt=He[4],Ct=He[5],Mt=He[6],Je=He[7],ut=He[8],xt=He[9],un=He[10],wn=OB(fe,c,u,d),nr=oe(wn,2),rr=nr[0],Bn=nr[1],sr=rr.has("click"),cr=Bn.has("click")||Bn.has("contextMenu"),yr=Gt(function(){ze||un()}),ur=function(){le.current&&K&&cr&&Oe(!1)};NB(nt,ye,_e,yr,ur),Pt(function(){yr()},[_t,P]),Pt(function(){nt&&!(j!=null&&j[P])&&yr()},[JSON.stringify(T)]);var Kt=l.useMemo(function(){var pt=PB(j,a,xt,K);return V(pt,k==null?void 0:k(xt))},[xt,k,j,a,K]);l.useImperativeHandle(r,function(){return{nativeElement:Pe.current,popupElement:ke.current,forceAlign:yr}});var lt=l.useState(0),at=oe(lt,2),Ht=at[0],At=at[1],Yt=l.useState(0),on=oe(Yt,2),Kn=on[0],En=on[1],Un=function(){if(L&&ye){var $t=ye.getBoundingClientRect();At($t.width),En($t.height)}},Tn=function(){Un(),yr()},Gn=function($t){qe(!1),un(),g==null||g($t)},Zr=function(){return new Promise(function($t){Un(),ct(function(){return $t})})};Pt(function(){Ke&&(un(),Ke(),ct(null))},[Ke]);function St(pt,$t,mn,Pn){Te[pt]=function(pn){var xu;Pn==null||Pn(pn),Oe($t,mn);for(var ep=arguments.length,Eb=new Array(ep>1?ep-1:0),$u=1;$u<ep;$u++)Eb[$u-1]=arguments[$u];(xu=Ie[pt])===null||xu===void 0||xu.call.apply(xu,[Ie,pn].concat(Eb))}}(sr||cr)&&(Te.onClick=function(pt){var $t;le.current&&cr?Oe(!1):!le.current&&sr&&(wt(pt),Oe(!0));for(var mn=arguments.length,Pn=new Array(mn>1?mn-1:0),pn=1;pn<mn;pn++)Pn[pn-1]=arguments[pn];($t=Ie.onClick)===null||$t===void 0||$t.call.apply($t,[Ie,pt].concat(Pn))});var Rt=MB(nt,cr,ye,_e,S,w,Ne,Oe),On=rr.has("hover"),br=Bn.has("hover"),Cn,In;On&&(St("onMouseEnter",!0,y,function(pt){wt(pt)}),St("onPointerEnter",!0,y,function(pt){wt(pt)}),Cn=function($t){(nt||ze)&&_e!==null&&_e!==void 0&&_e.contains($t.target)&&Oe(!0,y)},K&&(Te.onMouseMove=function(pt){var $t;($t=Ie.onMouseMove)===null||$t===void 0||$t.call(Ie,pt)})),br&&(St("onMouseLeave",!1,v),St("onPointerLeave",!1,v),In=function(){Oe(!1,v)}),rr.has("focus")&&St("onFocus",!0,b),Bn.has("focus")&&St("onBlur",!1,C),rr.has("contextMenu")&&(Te.onContextMenu=function(pt){var $t;le.current&&Bn.has("contextMenu")?Oe(!1):(wt(pt),Oe(!0)),pt.preventDefault();for(var mn=arguments.length,Pn=new Array(mn>1?mn-1:0),pn=1;pn<mn;pn++)Pn[pn-1]=arguments[pn];($t=Ie.onContextMenu)===null||$t===void 0||$t.call.apply($t,[Ie,pt].concat(Pn))}),X&&(Te.className=V(Ie.className,X));var Cr=l.useRef(!1);Cr.current||(Cr.current=$||nt||ze);var Mr=W(W({},Ie),Te),jr={},ko=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ko.forEach(function(pt){ne[pt]&&(jr[pt]=function(){for(var $t,mn=arguments.length,Pn=new Array(mn),pn=0;pn<mn;pn++)Pn[pn]=arguments[pn];($t=Mr[pt])===null||$t===void 0||$t.call.apply($t,[Mr].concat(Pn)),ne[pt].apply(ne,Pn)})});var Cu=l.cloneElement(me,W(W({},Mr),jr)),Su={x:Ct,y:Mt},Zm=G?W({},G!==!0?G:{}):null;return l.createElement(l.Fragment,null,l.createElement(Or,{disabled:!nt,ref:Be,onResize:Tn},l.createElement(EB,{getTriggerDOMNode:ae},Cu)),Cr.current&&l.createElement($1.Provider,{value:ge},l.createElement(wB,{portal:e,ref:De,prefixCls:a,popup:R,className:V(M,Kt),style:N,target:ye,onMouseEnter:Cn,onMouseLeave:In,onPointerEnter:Cn,zIndex:z,open:nt,keepDom:ze,fresh:H,onClick:B,onPointerDownCapture:Rt,mask:S,motion:tt,maskMotion:st,onVisibleChanged:Gn,onPrepare:Zr,forceRender:$,autoDestroy:J,getPopupContainer:O,align:xt,arrow:Zm,arrowPos:Su,ready:Ze,offsetX:gt,offsetY:mt,offsetR:it,offsetB:rt,onAlign:yr,stretch:L,targetWidth:Ht/Je,targetHeight:Kn/ut})))});return t}const Om=TB(Py);var _B=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],zB=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"}}},LB=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,p=t.placement,g=t.builtinPlacements,y=t.dropdownMatchSelectWidth,h=t.dropdownRender,v=t.dropdownAlign,b=t.getPopupContainer,C=t.empty,S=t.getTriggerDOMNode,x=t.onPopupVisibleChange,w=t.onPopupMouseEnter,O=ft(t,_B),$="".concat(r,"-dropdown"),E=i;h&&(E=h(i));var I=l.useMemo(function(){return g||zB(y)},[g,y]),R=s?"".concat($,"-").concat(s):c,M=typeof y=="number",N=l.useMemo(function(){return M?null:y===!1?"minWidth":"width"},[y,M]),P=u;M&&(P=W(W({},P),{},{width:y}));var _=l.useRef(null);return l.useImperativeHandle(n,function(){return{getPopupElement:function(){var T;return(T=_.current)===null||T===void 0?void 0:T.popupElement}}}),l.createElement(Om,pe({},O,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:p||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:$,popupTransitionName:R,popup:l.createElement("div",{onMouseEnter:w},E),ref:_,stretch:N,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:V(d,D({},"".concat($,"-empty"),C)),popupStyle:P,getTriggerDOMNode:S,onPopupVisibleChange:x}),a)},DB=l.forwardRef(LB);function N1(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 $h(e){return typeof e<"u"&&!Number.isNaN(e)}function LI(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function BB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=LI(n,!1),i=a.label,s=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(p){if(m||!(c in p)){var g=p[s];o.push({key:N1(p,o.length),groupOption:m,data:p,label:p[i],value:g})}else{var y=p[u];y===void 0&&r&&(y=p.label),o.push({key:N1(p,o.length),group:!0,data:p,label:y}),d(p[c],!0)}})}return d(e,!1),o}function wh(e){var t=W({},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 kB=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function s(c,u){var d=H2(u),f=d[0],m=d.slice(1);if(!f)return[c];var p=c.split(f);return o=o||p.length>1,p.reduce(function(g,y){return[].concat(be(g),be(s(y,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},Ty=l.createContext(null);function AB(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.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 a=o.label,i=o.value;return["number","string"].includes(et(a))?a:i}).join(", ")),n.length>r?", ...":null)}var FB=["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"],HB=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Eh=function(t){return t==="tags"||t==="multiple"},VB=l.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,p=e.notFoundContent,g=p===void 0?"Not Found":p,y=e.onClear,h=e.mode,v=e.disabled,b=e.loading,C=e.getInputElement,S=e.getRawInputElement,x=e.open,w=e.defaultOpen,O=e.onDropdownVisibleChange,$=e.activeValue,E=e.onActiveValueChange,I=e.activeDescendantId,R=e.searchValue,M=e.autoClearSearchValue,N=e.onSearch,P=e.onSearchSplit,_=e.tokenSeparators,j=e.allowClear,T=e.prefix,z=e.suffixIcon,L=e.clearIcon,k=e.OptionList,H=e.animation,K=e.transitionName,B=e.dropdownStyle,U=e.dropdownClassName,G=e.dropdownMatchSelectWidth,q=e.dropdownRender,te=e.dropdownAlign,Z=e.placement,ee=e.builtinPlacements,ue=e.getPopupContainer,re=e.showAction,X=re===void 0?[]:re,ae=e.onFocus,ne=e.onBlur,J=e.onKeyUp,Y=e.onKeyDown,se=e.onMouseDown,fe=ft(e,FB),$e=Eh(h),Ce=(i!==void 0?i:$e)||h==="combobox",ie=W({},fe);HB.forEach(function(lt){delete ie[lt]}),u==null||u.forEach(function(lt){delete ie[lt]});var ge=l.useState(!1),de=oe(ge,2),ve=de[0],Re=de[1];l.useEffect(function(){Re(wm())},[]);var _e=l.useRef(null),Ue=l.useRef(null),ke=l.useRef(null),De=l.useRef(null),Ae=l.useRef(null),xe=l.useRef(!1),ye=qD(),je=oe(ye,3),Pe=je[0],Be=je[1],me=je[2];l.useImperativeHandle(t,function(){var lt,at;return{focus:(lt=De.current)===null||lt===void 0?void 0:lt.focus,blur:(at=De.current)===null||at===void 0?void 0:at.blur,scrollTo:function(At){var Yt;return(Yt=Ae.current)===null||Yt===void 0?void 0:Yt.scrollTo(At)},nativeElement:_e.current||Ue.current}});var Ie=l.useMemo(function(){var lt;if(h!=="combobox")return R;var at=(lt=d[0])===null||lt===void 0?void 0:lt.value;return typeof at=="string"||typeof at=="number"?String(at):""},[R,h,d]),Te=h==="combobox"&&typeof C=="function"&&C()||null,Ne=typeof S=="function"&&S(),tt=pa(Ue,Ne==null||(n=Ne.props)===null||n===void 0?void 0:n.ref),st=l.useState(!1),Le=oe(st,2),Ge=Le[0],Qe=Le[1];Pt(function(){Qe(!0)},[]);var Fe=rn(!1,{defaultValue:w,value:x}),nt=oe(Fe,2),bt=nt[0],le=nt[1],ce=Ge?bt:!1,Se=!g&&m;(v||Se&&ce&&h==="combobox")&&(ce=!1);var he=Se?!1:ce,Ee=l.useCallback(function(lt){var at=lt!==void 0?lt:!ce;v||(le(at),ce!==at&&(O==null||O(at)))},[v,ce,le,O]),Oe=l.useMemo(function(){return(_||[]).some(function(lt){return[`
|
|
251
|
+
`,`\r
|
|
252
|
+
`].includes(lt)})},[_]),we=l.useContext(Ty)||{},Me=we.maxCount,ze=we.rawValues,qe=function(at,Ht,At){if(!($e&&$h(Me)&&(ze==null?void 0:ze.size)>=Me)){var Yt=!0,on=at;E==null||E(null);var Kn=kB(at,_,$h(Me)?Me-ze.size:void 0),En=At?null:Kn;return h!=="combobox"&&En&&(on="",P==null||P(En),Ee(!1),Yt=!1),N&&Ie!==on&&N(on,{source:Ht?"typing":"effect"}),Yt}},yt=function(at){!at||!at.trim()||N(at,{source:"submit"})};l.useEffect(function(){!ce&&!$e&&h!=="combobox"&&qe("",!1,!1)},[ce]),l.useEffect(function(){bt&&v&&le(!1),v&&!xe.current&&Be(!1)},[v]);var Ye=RI(),Ke=oe(Ye,2),ct=Ke[0],Ot=Ke[1],Nt=l.useRef(!1),_t=function(at){var Ht=ct(),At=at.key,Yt=At==="Enter";if(Yt&&(h!=="combobox"&&at.preventDefault(),ce||Ee(!0)),Ot(!!Ie),At==="Backspace"&&!Ht&&$e&&!Ie&&d.length){for(var on=be(d),Kn=null,En=on.length-1;En>=0;En-=1){var Un=on[En];if(!Un.disabled){on.splice(En,1),Kn=Un;break}}Kn&&f(on,{type:"remove",values:[Kn]})}for(var Tn=arguments.length,Gn=new Array(Tn>1?Tn-1:0),Zr=1;Zr<Tn;Zr++)Gn[Zr-1]=arguments[Zr];if(ce&&(!Yt||!Nt.current)){var St;Yt&&(Nt.current=!0),(St=Ae.current)===null||St===void 0||St.onKeyDown.apply(St,[at].concat(Gn))}Y==null||Y.apply(void 0,[at].concat(Gn))},Wt=function(at){for(var Ht=arguments.length,At=new Array(Ht>1?Ht-1:0),Yt=1;Yt<Ht;Yt++)At[Yt-1]=arguments[Yt];if(ce){var on;(on=Ae.current)===null||on===void 0||on.onKeyUp.apply(on,[at].concat(At))}at.key==="Enter"&&(Nt.current=!1),J==null||J.apply(void 0,[at].concat(At))},wt=function(at){var Ht=d.filter(function(At){return At!==at});f(Ht,{type:"remove",values:[at]})},kt=function(){Nt.current=!1},He=l.useRef(!1),Ze=function(){Be(!0),v||(ae&&!He.current&&ae.apply(void 0,arguments),X.includes("focus")&&Ee(!0)),He.current=!0},gt=function(){xe.current=!0,Be(!1,function(){He.current=!1,xe.current=!1,Ee(!1)}),!v&&(Ie&&(h==="tags"?N(Ie,{source:"submit"}):h==="multiple"&&N("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},mt=[];l.useEffect(function(){return function(){mt.forEach(function(lt){return clearTimeout(lt)}),mt.splice(0,mt.length)}},[]);var it=function(at){var Ht,At=at.target,Yt=(Ht=ke.current)===null||Ht===void 0?void 0:Ht.getPopupElement();if(Yt&&Yt.contains(At)){var on=setTimeout(function(){var Tn=mt.indexOf(on);if(Tn!==-1&&mt.splice(Tn,1),me(),!ve&&!Yt.contains(document.activeElement)){var Gn;(Gn=De.current)===null||Gn===void 0||Gn.focus()}});mt.push(on)}for(var Kn=arguments.length,En=new Array(Kn>1?Kn-1:0),Un=1;Un<Kn;Un++)En[Un-1]=arguments[Un];se==null||se.apply(void 0,[at].concat(En))},rt=l.useState({}),Ct=oe(rt,2),Mt=Ct[1];function Je(){Mt({})}var ut;Ne&&(ut=function(at){Ee(at)}),XD(function(){var lt;return[_e.current,(lt=ke.current)===null||lt===void 0?void 0:lt.getPopupElement()]},he,Ee,!!Ne);var xt=l.useMemo(function(){return W(W({},e),{},{notFoundContent:g,open:ce,triggerOpen:he,id:r,showSearch:Ce,multiple:$e,toggleOpen:Ee})},[e,g,he,ce,r,Ce,$e,Ee]),un=!!z||b,wn;un&&(wn=l.createElement(Em,{className:V("".concat(o,"-arrow"),D({},"".concat(o,"-arrow-loading"),b)),customizeIcon:z,customizeIconProps:{loading:b,searchValue:Ie,open:ce,focused:Pe,showSearch:Ce}}));var nr=function(){var at;y==null||y(),(at=De.current)===null||at===void 0||at.focus(),f([],{type:"clear",values:d}),qe("",!1,!1)},rr=UD(o,nr,d,j,L,v,Ie,h),Bn=rr.allowClear,sr=rr.clearIcon,cr=l.createElement(k,{ref:Ae}),yr=V(o,a,D(D(D(D(D(D(D(D(D(D({},"".concat(o,"-focused"),Pe),"".concat(o,"-multiple"),$e),"".concat(o,"-single"),!$e),"".concat(o,"-allow-clear"),j),"".concat(o,"-show-arrow"),un),"".concat(o,"-disabled"),v),"".concat(o,"-loading"),b),"".concat(o,"-open"),ce),"".concat(o,"-customize-input"),Te),"".concat(o,"-show-search"),Ce)),ur=l.createElement(DB,{ref:ke,disabled:v,prefixCls:o,visible:he,popupElement:cr,animation:H,transitionName:K,dropdownStyle:B,dropdownClassName:U,direction:c,dropdownMatchSelectWidth:G,dropdownRender:q,dropdownAlign:te,placement:Z,builtinPlacements:ee,getPopupContainer:ue,empty:m,getTriggerDOMNode:function(at){return Ue.current||at},onPopupVisibleChange:ut,onPopupMouseEnter:Je},Ne?l.cloneElement(Ne,{ref:tt}):l.createElement(CB,pe({},e,{domRef:Ue,prefixCls:o,inputElement:Te,ref:De,id:r,prefix:T,showSearch:Ce,autoClearSearchValue:M,mode:h,activeDescendantId:I,tagRender:s,values:d,open:ce,onToggleOpen:Ee,activeValue:$,searchValue:Ie,onSearch:qe,onSearchSubmit:yt,onRemove:wt,tokenWithEnter:Oe,onInputBlur:kt}))),Kt;return Ne?Kt=ur:Kt=l.createElement("div",pe({className:yr},ie,{ref:_e,onMouseDown:it,onKeyDown:_t,onKeyUp:Wt,onFocus:Ze,onBlur:gt}),l.createElement(AB,{visible:Pe&&!ce,values:d}),ur,wn,Bn&&sr),l.createElement(PI.Provider,{value:xt},Kt)}),_y=function(){return null};_y.isSelectOptGroup=!0;var zy=function(){return null};zy.isSelectOption=!0;var DI=l.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=W(W({},m),{},D(D(D(D(D({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:f},l.createElement(Or,{onResize:function(g){var y=g.offsetHeight;y&&s&&s()}},l.createElement("div",pe({style:m,className:V(D({},"".concat(i,"-holder-inner"),i)),ref:t},c),a,d)))});DI.displayName="Filler";function WB(e){var t=e.children,n=e.setRef,r=l.useCallback(function(o){n(o)},[]);return l.cloneElement(t,{ref:r})}function KB(e,t,n,r,o,a,i,s){var c=s.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=i(u,f,{style:{width:r},offsetX:o}),p=c(u);return l.createElement(WB,{key:p,setRef:function(y){return a(u,y)}},m)})}function UB(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function c(g){return g!==void 0?n(g):s}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var m=c(a[f]),p=c(i[f]);if(m!==p){u=f,d=d||m!==c(i[f+1]);break}}return u===null?null:{index:u,multiple:d}}function GB(e,t,n){var r=l.useState(e),o=oe(r,2),a=o[0],i=o[1],s=l.useState(null),c=oe(s,2),u=c[0],d=c[1];return l.useEffect(function(){var f=UB(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[u]}var M1=(typeof navigator>"u"?"undefined":et(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const BI=function(e,t,n,r){var o=l.useRef(!1),a=l.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=l.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(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}};function qB(e,t,n,r,o,a,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=BI(t,n,r,o);function m(b,C){if(jt.cancel(c.current),!f(!1,C)){var S=b;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=C,u.current=C,M1||S.preventDefault(),c.current=jt(function(){var x=d.current?10:1;i(s.current*x,!1),s.current=0})}}function p(b,C){i(C,!0),M1||b.preventDefault()}var g=l.useRef(null),y=l.useRef(null);function h(b){if(e){jt.cancel(y.current),y.current=jt(function(){g.current=null},2);var C=b.deltaX,S=b.deltaY,x=b.shiftKey,w=C,O=S;(g.current==="sx"||!g.current&&x&&S&&!C)&&(w=S,O=0,g.current="sx");var $=Math.abs(w),E=Math.abs(O);g.current===null&&(g.current=a&&$>E?"x":"y"),g.current==="y"?m(b,O):p(b,w)}}function v(b){e&&(d.current=b.detail===u.current)}return[h,v]}function XB(e,t,n,r){var o=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=oe(o,2),i=a[0],s=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),p=i.get(f);if(m===void 0||p===void 0)for(var g=e.length,y=s.length;y<g;y+=1){var h,v=e[y],b=t(v);i.set(b,y);var C=(h=n.get(b))!==null&&h!==void 0?h:r;if(s[y]=(s[y-1]||0)+C,b===d&&(m=y),b===f&&(p=y),m!==void 0&&p!==void 0)break}return{top:s[m-1]||0,bottom:s[p]}};return c}var YB=function(){function e(){sn(this,e),D(this,"maps",void 0),D(this,"id",0),D(this,"diffRecords",new Map),this.maps=Object.create(null)}return cn(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 j1(e){var t=parseFloat(e);return isNaN(t)?0:t}function QB(e,t,n){var r=l.useState(0),o=oe(r,2),a=o[0],i=o[1],s=l.useRef(new Map),c=l.useRef(new YB),u=l.useRef(0);function d(){u.current+=1}function f(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){var v=!1;s.current.forEach(function(b,C){if(b&&b.offsetParent){var S=b.offsetHeight,x=getComputedStyle(b),w=x.marginTop,O=x.marginBottom,$=j1(w),E=j1(O),I=S+$+E;c.current.get(C)!==I&&(c.current.set(C,I),v=!0)}}),v&&i(function(b){return b+1})};if(p)g();else{u.current+=1;var y=u.current;Promise.resolve().then(function(){y===u.current&&g()})}}function m(p,g){var y=e(p);s.current.get(y),g?(s.current.set(y,g),f()):s.current.delete(y)}return l.useEffect(function(){return d},[]),[m,f,c.current,a]}var T1=14/15;function JB(e,t,n){var r=l.useRef(!1),o=l.useRef(0),a=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(p){if(r.current){var g=Math.ceil(p.touches[0].pageX),y=Math.ceil(p.touches[0].pageY),h=o.current-g,v=a.current-y,b=Math.abs(h)>Math.abs(v);b?o.current=g:a.current=y;var C=n(b,b?h:v,!1,p);C&&p.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){b?h*=T1:v*=T1;var S=Math.floor(b?h:v);(!n(b,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},f=function(p){c(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Pt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}function _1(e){return Math.floor(Math.pow(e,.5))}function Oh(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){l.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,s=function(){jt.cancel(a)},c=function m(){s(),a=jt(function(){n(i),m()})},u=function(){o=!1,s()},d=function(p){if(!(p.target.draggable||p.button!==0)){var g=p;g._virtualHandled||(g._virtualHandled=!0,o=!0)}},f=function(p){if(o){var g=Oh(p,!1),y=r.getBoundingClientRect(),h=y.top,v=y.bottom;if(g<=h){var b=h-g;i=-_1(b),c()}else if(g>=v){var C=g-v;i=_1(C),c()}else s()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),s()}}},[e])}var ek=10;function tk(e,t,n,r,o,a,i,s){var c=l.useRef(),u=l.useState(null),d=oe(u,2),f=d[0],m=d[1];return Pt(function(){if(f&&f.times<ek){if(!e.current){m(function(L){return W({},L)});return}a();var p=f.targetAlign,g=f.originAlign,y=f.index,h=f.offset,v=e.current.clientHeight,b=!1,C=p,S=null;if(v){for(var x=p||g,w=0,O=0,$=0,E=Math.min(t.length-1,y),I=0;I<=E;I+=1){var R=o(t[I]);O=w;var M=n.get(R);$=O+(M===void 0?r:M),w=$}for(var N=x==="top"?h:v-h,P=E;P>=0;P-=1){var _=o(t[P]),j=n.get(_);if(j===void 0){b=!0;break}if(N-=j,N<=0)break}switch(x){case"top":S=O-h;break;case"bottom":S=$-v+h;break;default:{var T=e.current.scrollTop,z=T+v;O<T?C="top":$>z&&(C="bottom")}}S!==null&&i(S),S!==f.lastTop&&(b=!0)}b&&m(W(W({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}},[f,e.current]),function(p){if(p==null){s();return}if(jt.cancel(c.current),typeof p=="number")i(p);else if(p&&et(p)==="object"){var g,y=p.align;"index"in p?g=p.index:g=t.findIndex(function(b){return o(b)===p.key});var h=p.offset,v=h===void 0?0:h;m({times:0,index:g,offset:v,originAlign:y})}}}var z1=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,p=e.thumbStyle,g=e.showScrollBar,y=l.useState(!1),h=oe(y,2),v=h[0],b=h[1],C=l.useState(null),S=oe(C,2),x=S[0],w=S[1],O=l.useState(null),$=oe(O,2),E=$[0],I=$[1],R=!r,M=l.useRef(),N=l.useRef(),P=l.useState(g),_=oe(P,2),j=_[0],T=_[1],z=l.useRef(),L=function(){g===!0||g===!1||(clearTimeout(z.current),T(!0),z.current=setTimeout(function(){T(!1)},3e3))},k=a-f||0,H=f-d||0,K=l.useMemo(function(){if(o===0||k===0)return 0;var re=o/k;return re*H},[o,k,H]),B=function(X){X.stopPropagation(),X.preventDefault()},U=l.useRef({top:K,dragging:v,pageY:x,startTop:E});U.current={top:K,dragging:v,pageY:x,startTop:E};var G=function(X){b(!0),w(Oh(X,u)),I(U.current.top),i(),X.stopPropagation(),X.preventDefault()};l.useEffect(function(){var re=function(J){J.preventDefault()},X=M.current,ae=N.current;return X.addEventListener("touchstart",re,{passive:!1}),ae.addEventListener("touchstart",G,{passive:!1}),function(){X.removeEventListener("touchstart",re),ae.removeEventListener("touchstart",G)}},[]);var q=l.useRef();q.current=k;var te=l.useRef();te.current=H,l.useEffect(function(){if(v){var re,X=function(J){var Y=U.current,se=Y.dragging,fe=Y.pageY,$e=Y.startTop;jt.cancel(re);var Ce=M.current.getBoundingClientRect(),ie=f/(u?Ce.width:Ce.height);if(se){var ge=(Oh(J,u)-fe)*ie,de=$e;!R&&u?de-=ge:de+=ge;var ve=q.current,Re=te.current,_e=Re?de/Re:0,Ue=Math.ceil(_e*ve);Ue=Math.max(Ue,0),Ue=Math.min(Ue,ve),re=jt(function(){c(Ue,u)})}},ae=function(){b(!1),s()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",ae,{passive:!0}),window.addEventListener("touchend",ae,{passive:!0}),function(){window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",ae),window.removeEventListener("touchend",ae),jt.cancel(re)}}},[v]),l.useEffect(function(){return L(),function(){clearTimeout(z.current)}},[o]),l.useImperativeHandle(t,function(){return{delayHidden:L}});var Z="".concat(n,"-scrollbar"),ee={position:"absolute",visibility:j?null:"hidden"},ue={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(ee,{height:8,left:0,right:0,bottom:0}),Object.assign(ue,D({height:"100%",width:d},R?"left":"right",K))):(Object.assign(ee,D({width:8,top:0,bottom:0},R?"right":"left",0)),Object.assign(ue,{width:"100%",height:d,top:K})),l.createElement("div",{ref:M,className:V(Z,D(D(D({},"".concat(Z,"-horizontal"),u),"".concat(Z,"-vertical"),!u),"".concat(Z,"-visible"),j)),style:W(W({},ee),m),onMouseDown:B,onMouseMove:L},l.createElement("div",{ref:N,className:V("".concat(Z,"-thumb"),D({},"".concat(Z,"-thumb-moving"),v)),style:W(W({},ue),p),onMouseDown:G}))}),nk=20;function L1(){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,nk),Math.floor(n)}var rk=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ok=[],ak={overflowY:"auto",overflowAnchor:"none"};function ik(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,p=e.virtual,g=e.direction,y=e.scrollWidth,h=e.component,v=h===void 0?"div":h,b=e.onScroll,C=e.onVirtualScroll,S=e.onVisibleChange,x=e.innerProps,w=e.extraRender,O=e.styles,$=e.showScrollBar,E=$===void 0?"optional":$,I=ft(e,rk),R=l.useCallback(function(He){return typeof m=="function"?m(He):He==null?void 0:He[m]},[m]),M=QB(R),N=oe(M,4),P=N[0],_=N[1],j=N[2],T=N[3],z=!!(p!==!1&&a&&i),L=l.useMemo(function(){return Object.values(j.maps).reduce(function(He,Ze){return He+Ze},0)},[j.id,j.maps]),k=z&&d&&(Math.max(i*d.length,L)>a||!!y),H=g==="rtl",K=V(r,D({},"".concat(r,"-rtl"),H),o),B=d||ok,U=l.useRef(),G=l.useRef(),q=l.useRef(),te=l.useState(0),Z=oe(te,2),ee=Z[0],ue=Z[1],re=l.useState(0),X=oe(re,2),ae=X[0],ne=X[1],J=l.useState(!1),Y=oe(J,2),se=Y[0],fe=Y[1],$e=function(){fe(!0)},Ce=function(){fe(!1)},ie={getKey:R};function ge(He){ue(function(Ze){var gt;typeof He=="function"?gt=He(Ze):gt=He;var mt=Qe(gt);return U.current.scrollTop=mt,mt})}var de=l.useRef({start:0,end:B.length}),ve=l.useRef(),Re=GB(B,R),_e=oe(Re,1),Ue=_e[0];ve.current=Ue;var ke=l.useMemo(function(){if(!z)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!k){var He;return{scrollHeight:((He=G.current)===null||He===void 0?void 0:He.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var Ze=0,gt,mt,it,rt=B.length,Ct=0;Ct<rt;Ct+=1){var Mt=B[Ct],Je=R(Mt),ut=j.get(Je),xt=Ze+(ut===void 0?i:ut);xt>=ee&>===void 0&&(gt=Ct,mt=Ze),xt>ee+a&&it===void 0&&(it=Ct),Ze=xt}return gt===void 0&&(gt=0,mt=0,it=Math.ceil(a/i)),it===void 0&&(it=B.length-1),it=Math.min(it+1,B.length-1),{scrollHeight:Ze,start:gt,end:it,offset:mt}},[k,z,ee,B,T,a]),De=ke.scrollHeight,Ae=ke.start,xe=ke.end,ye=ke.offset;de.current.start=Ae,de.current.end=xe,l.useLayoutEffect(function(){var He=j.getRecord();if(He.size===1){var Ze=Array.from(He.keys())[0],gt=He.get(Ze),mt=B[Ae];if(mt&>===void 0){var it=R(mt);if(it===Ze){var rt=j.get(Ze),Ct=rt-i;ge(function(Mt){return Mt+Ct})}}}j.resetRecord()},[De]);var je=l.useState({width:0,height:a}),Pe=oe(je,2),Be=Pe[0],me=Pe[1],Ie=function(Ze){me({width:Ze.offsetWidth,height:Ze.offsetHeight})},Te=l.useRef(),Ne=l.useRef(),tt=l.useMemo(function(){return L1(Be.width,y)},[Be.width,y]),st=l.useMemo(function(){return L1(Be.height,De)},[Be.height,De]),Le=De-a,Ge=l.useRef(Le);Ge.current=Le;function Qe(He){var Ze=He;return Number.isNaN(Ge.current)||(Ze=Math.min(Ze,Ge.current)),Ze=Math.max(Ze,0),Ze}var Fe=ee<=0,nt=ee>=Le,bt=ae<=0,le=ae>=y,ce=BI(Fe,nt,bt,le),Se=function(){return{x:H?-ae:ae,y:ee}},he=l.useRef(Se()),Ee=Gt(function(He){if(C){var Ze=W(W({},Se()),He);(he.current.x!==Ze.x||he.current.y!==Ze.y)&&(C(Ze),he.current=Ze)}});function Oe(He,Ze){var gt=He;Ze?(mo.flushSync(function(){ne(gt)}),Ee()):ge(gt)}function we(He){var Ze=He.currentTarget.scrollTop;Ze!==ee&&ge(Ze),b==null||b(He),Ee()}var Me=function(Ze){var gt=Ze,mt=y?y-Be.width:0;return gt=Math.max(gt,0),gt=Math.min(gt,mt),gt},ze=Gt(function(He,Ze){Ze?(mo.flushSync(function(){ne(function(gt){var mt=gt+(H?-He:He);return Me(mt)})}),Ee()):ge(function(gt){var mt=gt+He;return mt})}),qe=qB(z,Fe,nt,bt,le,!!y,ze),yt=oe(qe,2),Ye=yt[0],Ke=yt[1];JB(z,U,function(He,Ze,gt,mt){var it=mt;return ce(He,Ze,gt)?!1:!it||!it._virtualHandled?(it&&(it._virtualHandled=!0),Ye({preventDefault:function(){},deltaX:He?Ze:0,deltaY:He?0:Ze}),!0):!1}),ZB(k,U,function(He){ge(function(Ze){return Ze+He})}),Pt(function(){function He(gt){var mt=Fe&>.detail<0,it=nt&>.detail>0;z&&!mt&&!it&>.preventDefault()}var Ze=U.current;return Ze.addEventListener("wheel",Ye,{passive:!1}),Ze.addEventListener("DOMMouseScroll",Ke,{passive:!0}),Ze.addEventListener("MozMousePixelScroll",He,{passive:!1}),function(){Ze.removeEventListener("wheel",Ye),Ze.removeEventListener("DOMMouseScroll",Ke),Ze.removeEventListener("MozMousePixelScroll",He)}},[z,Fe,nt]),Pt(function(){if(y){var He=Me(ae);ne(He),Ee({x:He})}},[Be.width,y]);var ct=function(){var Ze,gt;(Ze=Te.current)===null||Ze===void 0||Ze.delayHidden(),(gt=Ne.current)===null||gt===void 0||gt.delayHidden()},Ot=tk(U,B,j,i,R,function(){return _(!0)},ge,ct);l.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:Se,scrollTo:function(Ze){function gt(mt){return mt&&et(mt)==="object"&&("left"in mt||"top"in mt)}gt(Ze)?(Ze.left!==void 0&&ne(Me(Ze.left)),Ot(Ze.top)):Ot(Ze)}}}),Pt(function(){if(S){var He=B.slice(Ae,xe+1);S(He,B)}},[Ae,xe,B]);var Nt=XB(B,R,j,i),_t=w==null?void 0:w({start:Ae,end:xe,virtual:k,offsetX:ae,offsetY:ye,rtl:H,getSize:Nt}),Wt=KB(B,Ae,xe,y,ae,P,f,ie),wt=null;a&&(wt=W(D({},c?"height":"maxHeight",a),ak),z&&(wt.overflowY="hidden",y&&(wt.overflowX="hidden"),se&&(wt.pointerEvents="none")));var kt={};return H&&(kt.dir="rtl"),l.createElement("div",pe({ref:q,style:W(W({},u),{},{position:"relative"}),className:K},kt,I),l.createElement(Or,{onResize:Ie},l.createElement(v,{className:"".concat(r,"-holder"),style:wt,ref:U,onScroll:we,onMouseEnter:ct},l.createElement(DI,{prefixCls:r,height:De,offsetX:ae,offsetY:ye,scrollWidth:y,onInnerResize:_,ref:G,innerProps:x,rtl:H,extra:_t},Wt))),k&&De>a&&l.createElement(z1,{ref:Te,prefixCls:r,scrollOffset:ee,scrollRange:De,rtl:H,onScroll:Oe,onStartMove:$e,onStopMove:Ce,spinSize:st,containerSize:Be.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb,showScrollBar:E}),k&&y>Be.width&&l.createElement(z1,{ref:Ne,prefixCls:r,scrollOffset:ae,scrollRange:y,rtl:H,onScroll:Oe,onStartMove:$e,onStopMove:Ce,spinSize:tt,containerSize:Be.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb,showScrollBar:E}))}var Im=l.forwardRef(ik);Im.displayName="List";function lk(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sk=["disabled","title","children","style","className"];function D1(e){return typeof e=="string"||typeof e=="number"}var ck=function(t,n){var r=GD(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,p=l.useContext(Ty),g=p.maxCount,y=p.flattenOptions,h=p.onActiveValue,v=p.defaultActiveFirstOption,b=p.onSelect,C=p.menuItemSelectedIcon,S=p.rawValues,x=p.fieldNames,w=p.virtual,O=p.direction,$=p.listHeight,E=p.listItemHeight,I=p.optionRender,R="".concat(o,"-item"),M=ki(function(){return y},[i,y],function(re,X){return X[0]&&re[1]!==X[1]}),N=l.useRef(null),P=l.useMemo(function(){return s&&$h(g)&&(S==null?void 0:S.size)>=g},[s,g,S==null?void 0:S.size]),_=function(X){X.preventDefault()},j=function(X){var ae;(ae=N.current)===null||ae===void 0||ae.scrollTo(typeof X=="number"?{index:X}:X)},T=l.useCallback(function(re){return c==="combobox"?!1:S.has(re)},[c,be(S).toString(),S.size]),z=function(X){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ne=M.length,J=0;J<ne;J+=1){var Y=(X+J*ae+ne)%ne,se=M[Y]||{},fe=se.group,$e=se.data;if(!fe&&!($e!=null&&$e.disabled)&&(T($e.value)||!P))return Y}return-1},L=l.useState(function(){return z(0)}),k=oe(L,2),H=k[0],K=k[1],B=function(X){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;K(X);var ne={source:ae?"keyboard":"mouse"},J=M[X];if(!J){h(null,-1,ne);return}h(J.value,X,ne)};l.useEffect(function(){B(v!==!1?z(0):-1)},[M.length,u]);var U=l.useCallback(function(re){return c==="combobox"?String(re).toLowerCase()===u.toLowerCase():S.has(re)},[c,u,be(S).toString(),S.size]);l.useEffect(function(){var re=setTimeout(function(){if(!s&&i&&S.size===1){var ae=Array.from(S)[0],ne=M.findIndex(function(J){var Y=J.data;return u?String(Y.value).startsWith(u):Y.value===ae});ne!==-1&&(B(ne),j(ne))}});if(i){var X;(X=N.current)===null||X===void 0||X.scrollTo(void 0)}return function(){return clearTimeout(re)}},[i,u]);var G=function(X){X!==void 0&&b(X,{selected:!S.has(X)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(X){var ae=X.which,ne=X.ctrlKey;switch(ae){case Xe.N:case Xe.P:case Xe.UP:case Xe.DOWN:{var J=0;if(ae===Xe.UP?J=-1:ae===Xe.DOWN?J=1:lk()&&ne&&(ae===Xe.N?J=1:ae===Xe.P&&(J=-1)),J!==0){var Y=z(H+J,J);j(Y),B(Y,!0)}break}case Xe.TAB:case Xe.ENTER:{var se,fe=M[H];fe&&!(fe!=null&&(se=fe.data)!==null&&se!==void 0&&se.disabled)&&!P?G(fe.value):G(void 0),i&&X.preventDefault();break}case Xe.ESC:d(!1),i&&X.stopPropagation()}},onKeyUp:function(){},scrollTo:function(X){j(X)}}}),M.length===0)return l.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(R,"-empty"),onMouseDown:_},f);var q=Object.keys(x).map(function(re){return x[re]}),te=function(X){return X.label};function Z(re,X){var ae=re.group;return{role:ae?"presentation":"option",id:"".concat(a,"_list_").concat(X)}}var ee=function(X){var ae=M[X];if(!ae)return null;var ne=ae.data||{},J=ne.value,Y=ae.group,se=Jn(ne,!0),fe=te(ae);return ae?l.createElement("div",pe({"aria-label":typeof fe=="string"&&!Y?fe:null},se,{key:X},Z(ae,X),{"aria-selected":U(J)}),J):null},ue={role:"listbox",id:"".concat(a,"_list")};return l.createElement(l.Fragment,null,w&&l.createElement("div",pe({},ue,{style:{height:0,width:0,overflow:"hidden"}}),ee(H-1),ee(H),ee(H+1)),l.createElement(Im,{itemKey:"key",ref:N,data:M,height:$,itemHeight:E,fullHeight:!1,onMouseDown:_,onScroll:m,virtual:w,direction:O,innerProps:w?null:ue},function(re,X){var ae=re.group,ne=re.groupOption,J=re.data,Y=re.label,se=re.value,fe=J.key;if(ae){var $e,Ce=($e=J.title)!==null&&$e!==void 0?$e:D1(Y)?Y.toString():void 0;return l.createElement("div",{className:V(R,"".concat(R,"-group"),J.className),title:Ce},Y!==void 0?Y:fe)}var ie=J.disabled,ge=J.title;J.children;var de=J.style,ve=J.className,Re=ft(J,sk),_e=Qt(Re,q),Ue=T(se),ke=ie||!Ue&&P,De="".concat(R,"-option"),Ae=V(R,De,ve,D(D(D(D({},"".concat(De,"-grouped"),ne),"".concat(De,"-active"),H===X&&!ke),"".concat(De,"-disabled"),ke),"".concat(De,"-selected"),Ue)),xe=te(re),ye=!C||typeof C=="function"||Ue,je=typeof xe=="number"?xe:xe||se,Pe=D1(je)?je.toString():void 0;return ge!==void 0&&(Pe=ge),l.createElement("div",pe({},Jn(_e),w?{}:Z(re,X),{"aria-selected":U(se),className:Ae,title:Pe,onMouseMove:function(){H===X||ke||B(X)},onClick:function(){ke||G(se)},style:de}),l.createElement("div",{className:"".concat(De,"-content")},typeof I=="function"?I(re,{index:X}):je),l.isValidElement(C)||Ue,ye&&l.createElement(Em,{className:"".concat(R,"-option-state"),customizeIcon:C,customizeIconProps:{value:se,disabled:ke,isSelected:Ue}},Ue?"✓":null))}))},uk=l.forwardRef(ck);const dk=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var a=n.current,i=a.values,s=a.options,c=e.map(function(f){if(f.label===void 0){var m;return W(W({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=l.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function tv(e,t){return _I(e).join("").toUpperCase().includes(t)}const fk=function(e,t,n,r,o){return l.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(p,g){return o?tv(g[o],d):g[a]?tv(g[i!=="children"?i:"label"],d):tv(g[s],d)},m=u?function(p){return wh(p)}:function(p){return p};return e.forEach(function(p){if(p[a]){var g=f(n,m(p));if(g)c.push(p);else{var y=p[a].filter(function(h){return f(n,m(h))});y.length&&c.push(W(W({},p),{},D({},a,y)))}return}f(n,m(p))&&c.push(p)}),c},[e,r,o,n,t])};var B1=0,mk=Qn();function pk(){var e;return mk?(e=B1,B1+=1):e="TEST_OR_SSR",e}function vk(e){var t=l.useState(),n=oe(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_select_".concat(pk()))},[]),e||r}var gk=["children","value"],hk=["children"];function yk(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=ft(r,gk);return W({key:n,value:a!==void 0?a:n,children:o},i)}function kI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Fn(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,c=s.children,u=ft(s,hk);return t||!a?yk(n):W(W({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:kI(c)})}).filter(function(n){return n})}var bk=function(t,n,r,o,a){return l.useMemo(function(){var i=t,s=!t;s&&(i=kI(n));var c=new Map,u=new Map,d=function(p,g,y){y&&typeof y=="string"&&p.set(g[y],g)},f=function m(p){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y<p.length;y+=1){var h=p[y];!h[r.options]||g?(c.set(h[r.value],h),d(u,h,r.label),d(u,h,o),d(u,h,a)):m(h[r.options],!0)}};return f(i),{options:i,valueOptions:c,labelOptions:u}},[t,n,r,o,a])};function k1(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Ck=["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"],Sk=["inputValue"];function xk(e){return!e||et(e)!=="object"}var $k=l.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,p=e.onSelect,g=e.onDeselect,y=e.dropdownMatchSelectWidth,h=y===void 0?!0:y,v=e.filterOption,b=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,x=e.options,w=e.optionRender,O=e.children,$=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,I=e.virtual,R=e.direction,M=e.listHeight,N=M===void 0?200:M,P=e.listItemHeight,_=P===void 0?20:P,j=e.labelRender,T=e.value,z=e.defaultValue,L=e.labelInValue,k=e.onChange,H=e.maxCount,K=ft(e,Ck),B=vk(n),U=Eh(r),G=!!(!x&&O),q=l.useMemo(function(){return v===void 0&&r==="combobox"?!1:v},[v,r]),te=l.useMemo(function(){return LI(s,G)},[JSON.stringify(s),G]),Z=rn("",{value:u!==void 0?u:c,postState:function(Oe){return Oe||""}}),ee=oe(Z,2),ue=ee[0],re=ee[1],X=bk(x,O,te,C,S),ae=X.valueOptions,ne=X.labelOptions,J=X.options,Y=l.useCallback(function(Ee){var Oe=_I(Ee);return Oe.map(function(we){var Me,ze,qe,yt,Ye;if(xk(we))Me=we;else{var Ke;qe=we.key,ze=we.label,Me=(Ke=we.value)!==null&&Ke!==void 0?Ke:qe}var ct=ae.get(Me);if(ct){var Ot;ze===void 0&&(ze=ct==null?void 0:ct[S||te.label]),qe===void 0&&(qe=(Ot=ct==null?void 0:ct.key)!==null&&Ot!==void 0?Ot:Me),yt=ct==null?void 0:ct.disabled,Ye=ct==null?void 0:ct.title}return{label:ze,value:Me,key:qe,disabled:yt,title:Ye}})},[te,S,ae]),se=rn(z,{value:T}),fe=oe(se,2),$e=fe[0],Ce=fe[1],ie=l.useMemo(function(){var Ee,Oe=U&&$e===null?[]:$e,we=Y(Oe);return r==="combobox"&&pB((Ee=we[0])===null||Ee===void 0?void 0:Ee.value)?[]:we},[$e,Y,r,U]),ge=dk(ie,ae),de=oe(ge,2),ve=de[0],Re=de[1],_e=l.useMemo(function(){if(!r&&ve.length===1){var Ee=ve[0];if(Ee.value===null&&(Ee.label===null||Ee.label===void 0))return[]}return ve.map(function(Oe){var we;return W(W({},Oe),{},{label:(we=typeof j=="function"?j(Oe):Oe.label)!==null&&we!==void 0?we:Oe.value})})},[r,ve,j]),Ue=l.useMemo(function(){return new Set(ve.map(function(Ee){return Ee.value}))},[ve]);l.useEffect(function(){if(r==="combobox"){var Ee,Oe=(Ee=ve[0])===null||Ee===void 0?void 0:Ee.value;re(mB(Oe)?String(Oe):"")}},[ve]);var ke=k1(function(Ee,Oe){var we=Oe??Ee;return D(D({},te.value,Ee),te.label,we)}),De=l.useMemo(function(){if(r!=="tags")return J;var Ee=be(J),Oe=function(Me){return ae.has(Me)};return be(ve).sort(function(we,Me){return we.value<Me.value?-1:1}).forEach(function(we){var Me=we.value;Oe(Me)||Ee.push(ke(Me,we.label))}),Ee},[ke,J,ae,ve,r]),Ae=fk(De,te,ue,q,C),xe=l.useMemo(function(){return r!=="tags"||!ue||Ae.some(function(Ee){return Ee[C||"value"]===ue})||Ae.some(function(Ee){return Ee[te.value]===ue})?Ae:[ke(ue)].concat(be(Ae))},[ke,C,r,Ae,ue,te]),ye=function Ee(Oe){var we=be(Oe).sort(function(Me,ze){return b(Me,ze,{searchValue:ue})});return we.map(function(Me){return Array.isArray(Me.options)?W(W({},Me),{},{options:Me.options.length>0?Ee(Me.options):Me.options}):Me})},je=l.useMemo(function(){return b?ye(xe):xe},[xe,b,ue]),Pe=l.useMemo(function(){return BB(je,{fieldNames:te,childrenAsData:G})},[je,te,G]),Be=function(Oe){var we=Y(Oe);if(Ce(we),k&&(we.length!==ve.length||we.some(function(qe,yt){var Ye;return((Ye=ve[yt])===null||Ye===void 0?void 0:Ye.value)!==(qe==null?void 0:qe.value)}))){var Me=L?we:we.map(function(qe){return qe.value}),ze=we.map(function(qe){return wh(Re(qe.value))});k(U?Me:Me[0],U?ze:ze[0])}},me=l.useState(null),Ie=oe(me,2),Te=Ie[0],Ne=Ie[1],tt=l.useState(0),st=oe(tt,2),Le=st[0],Ge=st[1],Qe=$!==void 0?$:r!=="combobox",Fe=l.useCallback(function(Ee,Oe){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Me=we.source,ze=Me===void 0?"keyboard":Me;Ge(Oe),i&&r==="combobox"&&Ee!==null&&ze==="keyboard"&&Ne(String(Ee))},[i,r]),nt=function(Oe,we,Me){var ze=function(){var wt,kt=Re(Oe);return[L?{label:kt==null?void 0:kt[te.label],value:Oe,key:(wt=kt==null?void 0:kt.key)!==null&&wt!==void 0?wt:Oe}:Oe,wh(kt)]};if(we&&p){var qe=ze(),yt=oe(qe,2),Ye=yt[0],Ke=yt[1];p(Ye,Ke)}else if(!we&&g&&Me!=="clear"){var ct=ze(),Ot=oe(ct,2),Nt=Ot[0],_t=Ot[1];g(Nt,_t)}},bt=k1(function(Ee,Oe){var we,Me=U?Oe.selected:!0;Me?we=U?[].concat(be(ve),[Ee]):[Ee]:we=ve.filter(function(ze){return ze.value!==Ee}),Be(we),nt(Ee,Me),r==="combobox"?Ne(""):(!Eh||m)&&(re(""),Ne(""))}),le=function(Oe,we){Be(Oe);var Me=we.type,ze=we.values;(Me==="remove"||Me==="clear")&&ze.forEach(function(qe){nt(qe.value,!1,Me)})},ce=function(Oe,we){if(re(Oe),Ne(null),we.source==="submit"){var Me=(Oe||"").trim();if(Me){var ze=Array.from(new Set([].concat(be(Ue),[Me])));Be(ze),nt(Me,!0),re("")}return}we.source!=="blur"&&(r==="combobox"&&Be(Oe),d==null||d(Oe))},Se=function(Oe){var we=Oe;r!=="tags"&&(we=Oe.map(function(ze){var qe=ne.get(ze);return qe==null?void 0:qe.value}).filter(function(ze){return ze!==void 0}));var Me=Array.from(new Set([].concat(be(Ue),be(we))));Be(Me),Me.forEach(function(ze){nt(ze,!0)})},he=l.useMemo(function(){var Ee=I!==!1&&h!==!1;return W(W({},X),{},{flattenOptions:Pe,onActiveValue:Fe,defaultActiveFirstOption:Qe,onSelect:bt,menuItemSelectedIcon:E,rawValues:Ue,fieldNames:te,virtual:Ee,direction:R,listHeight:N,listItemHeight:_,childrenAsData:G,maxCount:H,optionRender:w})},[H,X,Pe,Fe,Qe,bt,E,Ue,te,I,h,R,N,_,G,w]);return l.createElement(Ty.Provider,{value:he},l.createElement(VB,pe({},K,{id:B,prefixCls:a,ref:t,omitDomProps:Sk,mode:r,displayValues:_e,onDisplayValuesChange:le,direction:R,searchValue:ue,onSearch:ce,autoClearSearchValue:m,onSearchSplit:Se,dropdownMatchSelectWidth:h,OptionList:uk,emptyOptions:!Pe.length,activeValue:Te,activeDescendantId:"".concat(B,"_list_").concat(Le)})))}),Ly=$k;Ly.Option=zy;Ly.OptGroup=_y;function Gl(e,t,n){return V({[`${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 cu=(e,t)=>t||e,wk=()=>{const[,e]=tr(),[t]=yo("Empty"),r=new Lt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ek=()=>{const[,e]=tr(),[t]=yo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:c}=l.useMemo(()=>({borderColor:new Lt(n).onBackground(a).toHexString(),shadowColor:new Lt(r).onBackground(a).toHexString(),contentColor:new Lt(o).onBackground(a).toHexString()}),[n,r,o,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:i},l.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"}),l.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:c}))))},Ok=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,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}}}}},Ik=Tt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Et(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Ok(o)});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 AI=l.createElement(wk,null),FI=l.createElement(Ek,null),Sn=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:s,imageStyle:c,style:u,classNames:d,styles:f}=e,m=Pk(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:g,className:y,style:h,classNames:v,styles:b,image:C}=jn("empty"),S=p("empty",o),[x,w,O]=Ik(S),[$]=yo("Empty"),E=typeof i<"u"?i:$==null?void 0:$.description,I=typeof E=="string"?E:"empty",R=(t=a??C)!==null&&t!==void 0?t:AI;let M=null;return typeof R=="string"?M=l.createElement("img",{draggable:!1,alt:I,src:R}):M=R,x(l.createElement("div",Object.assign({className:V(w,O,S,y,{[`${S}-normal`]:R===FI,[`${S}-rtl`]:g==="rtl"},n,r,v.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},b.root),h),f==null?void 0:f.root),u)},m),l.createElement("div",{className:V(`${S}-image`,v.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),b.image),f==null?void 0:f.image)},M),E&&l.createElement("div",{className:V(`${S}-description`,v.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},b.description),f==null?void 0:f.description)},E),s&&l.createElement("div",{className:V(`${S}-footer`,v.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},b.footer),f==null?void 0:f.footer)},s)))};Sn.PRESENTED_IMAGE_DEFAULT=AI;Sn.PRESENTED_IMAGE_SIMPLE=FI;const Dy=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(ot),r=n("empty");switch(t){case"Table":case"List":return Q.createElement(Sn,{image:Sn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Q.createElement(Sn,{image:Sn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Q.createElement(Sn,null)}},uu=(e,t,n)=>{var r,o;const{variant:a,[e]:i}=l.useContext(ot),s=l.useContext(sI),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=s??c)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=p6.includes(u);return[u,d]},Rk=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 Nk(e,t){return e||Rk(t)}const A1=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"}},Mk=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Dt(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,[`
|
|
253
|
+
${o}${s}bottomLeft,
|
|
254
|
+
${a}${s}bottomLeft
|
|
255
|
+
`]:{animationName:Sy},[`
|
|
256
|
+
${o}${s}topLeft,
|
|
257
|
+
${a}${s}topLeft,
|
|
258
|
+
${o}${s}topRight,
|
|
259
|
+
${a}${s}topRight
|
|
260
|
+
`]:{animationName:$y},[`${i}${s}bottomLeft`]:{animationName:xy},[`
|
|
261
|
+
${i}${s}topLeft,
|
|
262
|
+
${i}${s}topRight
|
|
263
|
+
`]:{animationName:wy},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},A1(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"},_o),"&-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({},A1(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Ua(e,"slide-up"),Ua(e,"slide-down"),hf(e,"move-up"),hf(e,"move-down")]},jk=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:A(t),itemLineHeight:A(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Tk=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},_k=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Ai()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},zk=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=Tk(e),s=t?`${n}-${t}`:"",c=jk(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},_k(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${A(r)} 0`,lineHeight:A(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:A(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:A(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
264
|
+
${n}-prefix + ${n}-selection-wrap
|
|
265
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:A(a),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(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function nv(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
266
|
+
&${n}-show-arrow ${n}-selector,
|
|
267
|
+
&${n}-allow-clear ${n}-selector
|
|
268
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[zk(e,t),o]}const Lk=e=>{const{componentCls:t}=e,n=Et(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Et(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[nv(e),nv(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},nv(r,"lg")]};function rv(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Dt(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:A(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
269
|
+
${n}-selection-item,
|
|
270
|
+
${n}-selection-placeholder
|
|
271
|
+
`]:{display:"block",padding:0,lineHeight:A(a),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"'}}),[`
|
|
272
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
273
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
274
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
275
|
+
`]:{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 ${A(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:A(a)}}},[`&${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 ${A(r)}`,"&:after":{display:"none"}}}}}}}function Dk(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[rv(e),rv(Et(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${A(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
276
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
277
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
278
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},rv(Et(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Bk=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:p,colorBgContainer:g,colorFillSecondary:y,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:C,controlOutline:S}=e,x=s*2,w=r*2,O=Math.min(o-x,o-w),$=Math.min(a-x,a-w),E=Math.min(i-x,i-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:i,multipleItemBg:y,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:$,multipleItemHeightLG:E,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:C,activeOutlineColor:S,selectAffixPadding:s}},HI=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${A(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 ${A(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},F1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},HI(e,t))}),kk=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},HI(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),F1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),F1(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:`${A(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),VI=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${A(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}}}},H1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},VI(e,t))}),Ak=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},VI(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),H1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),H1(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:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Fk=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${A(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:`${A(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}}}}),WI=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${A(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},V1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},WI(e,t))}),Hk=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},WI(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),V1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),V1(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:`${A(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Vk=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},kk(e)),Ak(e)),Fk(e)),Hk(e))}),Wk=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"}}}},Kk=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"}}}},Uk=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Dt(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Wk(e)),Kk(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},_o),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},_o),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ai()),{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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Gk=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Uk(e),Dk(e),Lk(e),Mk(e),{[`${t}-rtl`]:{direction:"rtl"}},ou(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},qk=Tt("Select",(e,{rootPrefixCls:t})=>{const n=Et(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Gk(n),Vk(n)]},Bk,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Xk={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"},Yk=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:Xk}))},By=l.forwardRef(Yk),Qk={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"},Jk=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:Qk}))},ky=l.forwardRef(Jk),Zk={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"},e7=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:Zk}))},Pm=l.forwardRef(e7);function t7({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??l.createElement(Fi,null),p=v=>e===null&&!i&&!d?null:l.createElement(l.Fragment,null,c!==!1&&v,i&&u);let g=null;if(e!==void 0)g=p(e);else if(o)g=p(l.createElement(da,{spin:!0}));else{const v=`${s}-suffix`;g=({open:b,showSearch:C})=>p(b&&C?l.createElement(Pm,{className:v}):l.createElement(ky,{className:v}))}let y=null;n!==void 0?y=n:a?y=l.createElement(By,null):y=null;let h=null;return r!==void 0?h=r:h=l.createElement(ri,null),{clearIcon:m,suffixIcon:g,itemIcon:y,removeIcon:h}}function n7(e){return Q.useMemo(()=>{if(e)return(...t)=>Q.createElement(Ga,{space:!0},e.apply(void 0,t))},[e])}function r7(e,t){return t!==void 0?t:e!==null}var o7=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 KI="SECRET_COMBOBOX_MODE_DO_NOT_USE",a7=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:p,listHeight:g=256,placement:y,listItemHeight:h,size:v,disabled:b,notFoundContent:C,status:S,builtinPlacements:x,dropdownMatchSelectWidth:w,popupMatchSelectWidth:O,direction:$,style:E,allowClear:I,variant:R,dropdownStyle:M,transitionName:N,tagRender:P,maxCount:_,prefix:j,dropdownRender:T,popupRender:z,onDropdownVisibleChange:L,onOpenChange:k,styles:H,classNames:K}=e,B=o7(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:U,getPrefixCls:G,renderEmpty:q,direction:te,virtual:Z,popupMatchSelectWidth:ee,popupOverflow:ue}=l.useContext(ot),{showSearch:re,style:X,styles:ae,className:ne,classNames:J}=jn("select"),[,Y]=tr(),se=h??(Y==null?void 0:Y.controlHeight),fe=G("select",s),$e=G(),Ce=$??te,{compactSize:ie,compactItemClassnames:ge}=oi(fe,Ce),[de,ve]=uu("select",R,c),Re=Vn(fe),[_e,Ue,ke]=qk(fe,Re),De=l.useMemo(()=>{const{mode:Me}=e;if(Me!=="combobox")return Me===KI?"combobox":Me},[e.mode]),Ae=De==="multiple"||De==="tags",xe=r7(e.suffixIcon,e.showArrow),ye=(n=O??w)!==null&&n!==void 0?n:ee,je=((r=H==null?void 0:H.popup)===null||r===void 0?void 0:r.root)||((o=ae.popup)===null||o===void 0?void 0:o.root)||M,Pe=n7(z||T),Be=k||L,{status:me,hasFeedback:Ie,isFormItemInput:Te,feedbackIcon:Ne}=l.useContext(lr),tt=cu(me,S);let st;C!==void 0?st=C:De==="combobox"?st=null:st=(q==null?void 0:q("Select"))||l.createElement(Dy,{componentName:"Select"});const{suffixIcon:Le,itemIcon:Ge,removeIcon:Qe,clearIcon:Fe}=t7(Object.assign(Object.assign({},B),{multiple:Ae,hasFeedback:Ie,feedbackIcon:Ne,showSuffixIcon:xe,prefixCls:fe,componentName:"Select"})),nt=I===!0?{clearIcon:Fe}:I,bt=Qt(B,["suffixIcon","itemIcon"]),le=V(((a=K==null?void 0:K.popup)===null||a===void 0?void 0:a.root)||((i=J==null?void 0:J.popup)===null||i===void 0?void 0:i.root)||m||p,{[`${fe}-dropdown-${Ce}`]:Ce==="rtl"},d,J.root,K==null?void 0:K.root,ke,Re,Ue),ce=Wn(Me=>{var ze;return(ze=v??ie)!==null&&ze!==void 0?ze:Me}),Se=l.useContext(Ir),he=b??Se,Ee=V({[`${fe}-lg`]:ce==="large",[`${fe}-sm`]:ce==="small",[`${fe}-rtl`]:Ce==="rtl",[`${fe}-${de}`]:ve,[`${fe}-in-form-item`]:Te},Gl(fe,tt,Ie),ge,ne,u,J.root,K==null?void 0:K.root,d,ke,Re,Ue),Oe=l.useMemo(()=>y!==void 0?y:Ce==="rtl"?"bottomRight":"bottomLeft",[y,Ce]),[we]=Jc("SelectLike",je==null?void 0:je.zIndex);return _e(l.createElement(Ly,Object.assign({ref:t,virtual:Z,showSearch:re},bt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ae.root),H==null?void 0:H.root),X),E),dropdownMatchSelectWidth:ye,transitionName:Ka($e,"slide-up",N),builtinPlacements:Nk(x,ue),listHeight:g,listItemHeight:se,mode:De,prefixCls:fe,placement:Oe,direction:Ce,prefix:j,suffixIcon:Le,menuItemSelectedIcon:Ge,removeIcon:Qe,allowClear:nt,notFoundContent:st,className:Ee,getPopupContainer:f||U,dropdownClassName:le,disabled:he,dropdownStyle:Object.assign(Object.assign({},je),{zIndex:we}),maxCount:Ae?_:void 0,tagRender:Ae?P:void 0,dropdownRender:Pe,onDropdownVisibleChange:Be})))},Mo=l.forwardRef(a7),i7=II(Mo,"dropdownAlign");Mo.SECRET_COMBOBOX_MODE_DO_NOT_USE=KI;Mo.Option=zy;Mo.OptGroup=_y;Mo._InternalPanelDoNotUseOrYouWillBeFired=i7;const UI=(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)},GI=(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)},qa=["xxl","xl","lg","md","sm","xs"],l7=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)`}),s7=e=>{const t=e,n=[].concat(qa).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const c=`screen${a}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e},qI=(e,t)=>{if(t){for(const n of qa)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},c7=()=>{const[,e]=tr(),t=l7(s7(e));return Q.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:u}))},c=window.matchMedia(i);UI(c,s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];GI(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[t])};function du(e=!0,t={}){const n=l.useRef(t),[,r]=vy(),o=c7();return Pt(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}const ql=e=>e?typeof e=="function"?e():e:null;function Ay(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return l.createElement("div",{className:V("".concat(n,"-content"),i),style:s},l.createElement("div",{className:V("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Qi={shiftX:64,adjustY:1},Ji={adjustX:1,shiftY:!0},no=[0,0],u7={left:{points:["cr","cl"],overflow:Ji,offset:[-4,0],targetOffset:no},right:{points:["cl","cr"],overflow:Ji,offset:[4,0],targetOffset:no},top:{points:["bc","tc"],overflow:Qi,offset:[0,-4],targetOffset:no},bottom:{points:["tc","bc"],overflow:Qi,offset:[0,4],targetOffset:no},topLeft:{points:["bl","tl"],overflow:Qi,offset:[0,-4],targetOffset:no},leftTop:{points:["tr","tl"],overflow:Ji,offset:[-4,0],targetOffset:no},topRight:{points:["br","tr"],overflow:Qi,offset:[0,-4],targetOffset:no},rightTop:{points:["tl","tr"],overflow:Ji,offset:[4,0],targetOffset:no},bottomRight:{points:["tr","br"],overflow:Qi,offset:[0,4],targetOffset:no},rightBottom:{points:["bl","br"],overflow:Ji,offset:[4,0],targetOffset:no},bottomLeft:{points:["tl","bl"],overflow:Qi,offset:[0,4],targetOffset:no},leftBottom:{points:["br","bl"],overflow:Ji,offset:[-4,0],targetOffset:no}},d7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],f7=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,p=t.children,g=t.onVisibleChange,y=t.afterVisibleChange,h=t.transitionName,v=t.animation,b=t.motion,C=t.placement,S=C===void 0?"right":C,x=t.align,w=x===void 0?{}:x,O=t.destroyTooltipOnHide,$=O===void 0?!1:O,E=t.defaultVisible,I=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,N=t.id,P=t.showArrow,_=P===void 0?!0:P,j=t.classNames,T=t.styles,z=ft(t,d7),L=Sm(N),k=l.useRef(null);l.useImperativeHandle(n,function(){return k.current});var H=W({},z);"visible"in t&&(H.popupVisible=t.visible);var K=function(){return l.createElement(Ay,{key:"content",prefixCls:m,id:L,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:W(W({},R),T==null?void 0:T.body)},M)},B=function(){var G=l.Children.only(p),q=(G==null?void 0:G.props)||{},te=W(W({},q),{},{"aria-describedby":M?L:null});return l.cloneElement(p,te)};return l.createElement(Om,pe({popupClassName:V(r,j==null?void 0:j.root),prefixCls:m,popup:K,action:a,builtinPlacements:u7,popupPlacement:S,ref:k,popupAlign:w,getPopupContainer:I,onPopupVisibleChange:g,afterPopupVisibleChange:y,popupTransitionName:h,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:$,mouseLeaveDelay:u,popupStyle:W(W({},d),T==null?void 0:T.root),mouseEnterDelay:s,arrow:_},H),B())};const m7=l.forwardRef(f7);function Fy(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,p=2*o-s,g=c,y=2*o-a,h=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),C=`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${p} ${g} A ${r} ${r} 0 0 0 ${y} ${h} Z')`;return{arrowShadowWidth:v,arrowPath:S,arrowPolygon:C}}const p7=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${A(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},XI=8;function Rm(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?XI:r}}function Ju(e,t){return e?t:{}}function Hy(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},p7(e,t,o)),{"&:before":{background:t}})]},Ju(!!c.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":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${A(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ju(!!c.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":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${A(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ju(!!c.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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Ju(!!c.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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function v7(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const W1={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"]}},g7={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"]}},h7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function YI(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,c={},u=Rm({contentRadius:a,limitVerticalRadius:!0});return Object.keys(W1).forEach(d=>{const f=r&&g7[d]||W1[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,h7.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=s+o;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-s;break}m.overflow=v7(d,u,t,n),i&&(m.htmlRegion="visibleFirst")}),c}const y7=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:p}=e,g=t(i).add(p).add(m).equal(),y=t(i).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Dt(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":a,[`${n}-inner`]:{minWidth:y,minHeight:c,padding:`${A(e.calc(d).div(2).equal())} ${A(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,XI)}},[`${n}-content`]:{position:"relative"}}),aO(e,(h,{darkColor:v})=>({[`&${n}-${h}`]:{[`${n}-inner`]:{backgroundColor:v},[`${n}-arrow`]:{"--antd-arrow-background-color":v}}}))),{"&-rtl":{direction:"rtl"}})},Hy(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},b7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Rm({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Fy(Et(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),QI=(e,t=!0)=>Tt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,s=Et(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[y7(s),ru(r,"zoom-big-fast")]},b7,{resetStyle:!1,injectStyle:t})(e),C7=Wa.map(e=>`${e}-inverse`),S7=["success","processing","error","default","warning"];function JI(e,t=!0){return t?[].concat(be(C7),be(Wa)).includes(e):Wa.includes(e)}function x7(e){return S7.includes(e)}function ZI(e,t){const n=JI(t),r=V({[`${e}-${t}`]:t&&n}),o={},a={},i=gz(t).toRgb(),c=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=c,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const $7=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(ot),c=s("tooltip",t),[u,d,f]=QI(c),m=ZI(c,a),p=m.arrowStyle,g=Object.assign(Object.assign({},i),m.overlayStyle),y=V(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(l.createElement("div",{className:y,style:p},l.createElement("div",{className:`${c}-arrow`}),l.createElement(Ay,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))};var w7=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 E7=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:p,arrow:g=!0,title:y,overlay:h,builtinPlacements:v,arrowPointAtCenter:b=!1,autoAdjustOverflow:C=!0,motion:S,getPopupContainer:x,placement:w="top",mouseEnterDelay:O=.1,mouseLeaveDelay:$=.1,overlayStyle:E,rootClassName:I,overlayClassName:R,styles:M,classNames:N}=e,P=w7(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"]),_=!!g,[,j]=tr(),{getPopupContainer:T,getPrefixCls:z,direction:L,className:k,style:H,classNames:K,styles:B}=jn("tooltip"),U=ni(),G=l.useRef(null),q=()=>{var xe;(xe=G.current)===null||xe===void 0||xe.forceAlign()};l.useImperativeHandle(t,()=>{var xe,ye;return{forceAlign:q,forcePopupAlign:()=>{U.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(xe=G.current)===null||xe===void 0?void 0:xe.nativeElement,popupElement:(ye=G.current)===null||ye===void 0?void 0:ye.popupElement}});const[te,Z]=rn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ee=!y&&!h&&y!==0,ue=xe=>{var ye,je;Z(ee?!1:xe),ee||((ye=e.onOpenChange)===null||ye===void 0||ye.call(e,xe),(je=e.onVisibleChange)===null||je===void 0||je.call(e,xe))},re=l.useMemo(()=>{var xe,ye;let je=b;return typeof g=="object"&&(je=(ye=(xe=g.pointAtCenter)!==null&&xe!==void 0?xe:g.arrowPointAtCenter)!==null&&ye!==void 0?ye:b),v||YI({arrowPointAtCenter:je,autoAdjustOverflow:C,arrowWidth:_?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0})},[b,g,v,j]),X=l.useMemo(()=>y===0?y:h||y||"",[h,y]),ae=l.createElement(Ga,{space:!0},typeof X=="function"?X():X),ne=z("tooltip",o),J=z(),Y=e["data-popover-inject"];let se=te;!("open"in e)&&!("visible"in e)&&ee&&(se=!1);const fe=l.isValidElement(u)&&!wO(u)?u:l.createElement("span",null,u),$e=fe.props,Ce=!$e.className||typeof $e.className=="string"?V($e.className,a||`${ne}-open`):$e.className,[ie,ge,de]=QI(ne,!Y),ve=ZI(ne,s),Re=ve.arrowStyle,_e=V(R,{[`${ne}-rtl`]:L==="rtl"},ve.className,I,ge,de,k,K.root,N==null?void 0:N.root),Ue=V(K.body,N==null?void 0:N.body),[ke,De]=Jc("Tooltip",P.zIndex),Ae=l.createElement(m7,Object.assign({},P,{zIndex:ke,showArrow:_,placement:w,mouseEnterDelay:O,mouseLeaveDelay:$,prefixCls:ne,classNames:{root:_e,body:Ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),B.root),H),E),M==null?void 0:M.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),c),M==null?void 0:M.body),ve.overlayStyle)},getTooltipContainer:x||i||T,ref:G,builtinPlacements:re,overlay:ae,visible:se,onVisibleChange:ue,afterVisibleChange:d??f,arrowContent:l.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:Ka(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p??!!m}),se?Dn(fe,{className:Ce}):fe);return ie(l.createElement(um.Provider,{value:De},Ae))}),Lo=E7;Lo._InternalPanelDoNotUseOrYouWillBeFired=$7;const O7=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:p,innerContentPadding:g,titlePadding:y}=e;return[{[t]:Object.assign(Object.assign({},Dt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,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:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:p,padding:y},[`${t}-inner-content`]:{color:n,padding:g}})},Hy(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},I7=e=>{const{componentCls:t}=e;return{[t]:Wa.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},P7=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,p=m/2,g=m/2-t,y=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Fy(e)),Rm({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${y}px ${g}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${y}px`:0})},eP=Tt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Et(e,{popoverBg:t,popoverColor:n});return[O7(r),I7(r),ru(r,"zoom-big")]},P7,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var R7=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 tP=({title:e,content:t,prefixCls:n})=>!e&&!t?null:l.createElement(l.Fragment,null,e&&l.createElement("div",{className:`${n}-title`},e),t&&l.createElement("div",{className:`${n}-inner-content`},t)),N7=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:c}=e,u=ql(i),d=ql(s),f=V(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return l.createElement("div",{className:f,style:o},l.createElement("div",{className:`${n}-arrow`}),l.createElement(Ay,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement(tP,{prefixCls:n,title:u,content:d})))},nP=e=>{const{prefixCls:t,className:n}=e,r=R7(e,["prefixCls","className"]),{getPrefixCls:o}=l.useContext(ot),a=o("popover",t),[i,s,c]=eP(a);return i(l.createElement(N7,Object.assign({},r,{prefixCls:a,hashId:s,className:V(n,c)})))};var M7=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=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:a,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:p,overlayStyle:g={},styles:y,classNames:h}=e,v=M7(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:C,style:S,classNames:x,styles:w}=jn("popover"),O=b("popover",o),[$,E,I]=eP(O),R=b(),M=V(s,E,I,C,x.root,h==null?void 0:h.root),N=V(x.body,h==null?void 0:h.body),[P,_]=rn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=(H,K)=>{_(H,!0),p==null||p(H,K)},T=H=>{H.keyCode===Xe.ESC&&j(!1,H)},z=H=>{j(H)},L=ql(a),k=ql(i);return $(l.createElement(Lo,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},v,{prefixCls:O,classNames:{root:M,body:N},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),S),g),y==null?void 0:y.root),body:Object.assign(Object.assign({},w.body),y==null?void 0:y.body)},ref:t,open:P,onOpenChange:z,overlay:L||k?l.createElement(tP,{prefixCls:O,title:L,content:k}):null,transitionName:Ka(R,"zoom-big",v.transitionName),"data-popover-inject":!0}),Dn(d,{onKeyDown:H=>{var K,B;l.isValidElement(d)&&((B=d==null?void 0:(K=d.props).onKeyDown)===null||B===void 0||B.call(K,H)),T(H)}})))}),rP=j7;rP._InternalPanelDoNotUseOrYouWillBeFired=nP;var T7={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"},_7=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:T7}))},Lc=l.forwardRef(_7),z7=Xe.ESC,L7=Xe.TAB;function D7(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case z7:s();break;case L7:{var m=!1;i.current||(m=c()),m?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&jt(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var B7=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=er(t,ti(a));return Q.createElement(Q.Fragment,null,r&&Q.createElement("div",{className:"".concat(o,"-arrow")}),Q.cloneElement(a,{ref:To(a)?i:void 0}))}),Zi={adjustX:1,adjustY:1},el=[0,0],k7={topLeft:{points:["bl","tl"],overflow:Zi,offset:[0,-4],targetOffset:el},top:{points:["bc","tc"],overflow:Zi,offset:[0,-4],targetOffset:el},topRight:{points:["br","tr"],overflow:Zi,offset:[0,-4],targetOffset:el},bottomLeft:{points:["tl","bl"],overflow:Zi,offset:[0,4],targetOffset:el},bottom:{points:["tc","bc"],overflow:Zi,offset:[0,4],targetOffset:el},bottomRight:{points:["tr","br"],overflow:Zi,offset:[0,4],targetOffset:el}},A7=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function F7(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,p=m===void 0?k7:m,g=e.getPopupContainer,y=e.showAction,h=e.hideAction,v=e.overlayClassName,b=e.overlayStyle,C=e.visible,S=e.trigger,x=S===void 0?["hover"]:S,w=e.autoFocus,O=e.overlay,$=e.children,E=e.onVisibleChange,I=ft(e,A7),R=Q.useState(),M=oe(R,2),N=M[0],P=M[1],_="visible"in e?C:N,j=Q.useRef(null),T=Q.useRef(null),z=Q.useRef(null);Q.useImperativeHandle(t,function(){return j.current});var L=function(Z){P(Z),E==null||E(Z)};D7({visible:_,triggerRef:z,onVisibleChange:L,autoFocus:w,overlayRef:T});var k=function(Z){var ee=e.onOverlayClick;P(!1),ee&&ee(Z)},H=function(){return Q.createElement(B7,{ref:T,overlay:O,prefixCls:i,arrow:o})},K=function(){return typeof O=="function"?H:H()},B=function(){var Z=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!ee},U=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(i,"-open")},G=Q.cloneElement($,{className:V((n=$.props)===null||n===void 0?void 0:n.className,_&&U()),ref:To($)?er(z,ti($)):void 0}),q=h;return!q&&x.indexOf("contextMenu")!==-1&&(q=["click"]),Q.createElement(Om,pe({builtinPlacements:p},I,{prefixCls:i,ref:j,popupClassName:V(v,D({},"".concat(i,"-show-arrow"),o)),popupStyle:b,action:x,showAction:y,hideAction:q,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:_,stretch:B()?"minWidth":"",popup:K(),onPopupVisibleChange:L,onPopupClick:k,getPopupContainer:g}),G)}const oP=Q.forwardRef(F7),H7=e=>typeof e!="object"&&typeof e!="function"||e===null;var aP=l.createContext(null);function iP(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function lP(e){var t=l.useContext(aP);return iP(t,e)}var V7=["children","locked"],Do=l.createContext(null);function W7(e,t){var n=W({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Dc(e){var t=e.children,n=e.locked,r=ft(e,V7),o=l.useContext(Do),a=ki(function(){return W7(o,r)},[o,r],function(i,s){return!n&&(i[0]!==s[0]||!Yo(i[1],s[1],!0))});return l.createElement(Do.Provider,{value:a},t)}var K7=[],sP=l.createContext(null);function Nm(){return l.useContext(sP)}var cP=l.createContext(K7);function ss(e){var t=l.useContext(cP);return l.useMemo(function(){return e!==void 0?[].concat(be(t),[e]):t},[t,e])}var uP=l.createContext(null),Vy=l.createContext({});function K1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(eu(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function U7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=be(e.querySelectorAll("*")).filter(function(r){return K1(r,t)});return K1(e,t)&&n.unshift(e),n}var Ih=Xe.LEFT,Ph=Xe.RIGHT,Rh=Xe.UP,Rd=Xe.DOWN,Nd=Xe.ENTER,dP=Xe.ESC,Ps=Xe.HOME,Rs=Xe.END,U1=[Rh,Rd,Ih,Ph];function G7(e,t,n,r){var o,a="prev",i="next",s="children",c="parent";if(e==="inline"&&r===Nd)return{inlineTrigger:!0};var u=D(D({},Rh,a),Rd,i),d=D(D(D(D({},Ih,n?i:a),Ph,n?a:i),Rd,s),Nd,s),f=D(D(D(D(D(D({},Rh,a),Rd,i),Nd,s),dP,c),Ih,n?s:c),Ph,n?c:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},p=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(p){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function q7(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function X7(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Wy(e,t){var n=U7(e,!0);return n.filter(function(r){return t.has(r)})}function G1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Wy(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Nh=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(iP(n,i),"']"));s&&(r.add(s),a.set(s,i),o.set(i,s))}),{elements:r,key2element:o,element2key:a}};function Y7(e,t,n,r,o,a,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var m=function(){jt.cancel(d.current)};return l.useEffect(function(){return function(){m()}},[]),function(p){var g=p.which;if([].concat(U1,[Nd,dP,Ps,Rs]).includes(g)){var y=a(),h=Nh(y,r),v=h,b=v.elements,C=v.key2element,S=v.element2key,x=C.get(t),w=X7(x,b),O=S.get(w),$=G7(e,i(O,!0).length===1,n,g);if(!$&&g!==Ps&&g!==Rs)return;(U1.includes(g)||[Ps,Rs].includes(g))&&p.preventDefault();var E=function(T){if(T){var z=T,L=T.querySelector("a");L!=null&&L.getAttribute("href")&&(z=L);var k=S.get(T);s(k),m(),d.current=jt(function(){f.current===k&&z.focus()})}};if([Ps,Rs].includes(g)||$.sibling||!w){var I;!w||e==="inline"?I=o.current:I=q7(w);var R,M=Wy(I,b);g===Ps?R=M[0]:g===Rs?R=M[M.length-1]:R=G1(I,b,w,$.offset),E(R)}else if($.inlineTrigger)c(O);else if($.offset>0)c(O,!0),m(),d.current=jt(function(){h=Nh(y,r);var j=w.getAttribute("aria-controls"),T=document.getElementById(j),z=G1(T,h.elements);E(z)},5);else if($.offset<0){var N=i(O,!0),P=N[N.length-2],_=C.get(P);c(P,!1),E(_)}}u==null||u(p)}}function Q7(e){Promise.resolve().then(e)}var Ky="__RC_UTIL_PATH_SPLIT__",q1=function(t){return t.join(Ky)},J7=function(t){return t.split(Ky)},Mh="rc-menu-more";function Z7(){var e=l.useState({}),t=oe(e,2),n=t[1],r=l.useRef(new Map),o=l.useRef(new Map),a=l.useState([]),i=oe(a,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},m=l.useCallback(function(C,S){var x=q1(S);o.current.set(x,C),r.current.set(C,x),u.current+=1;var w=u.current;Q7(function(){w===u.current&&f()})},[]),p=l.useCallback(function(C,S){var x=q1(S);o.current.delete(x),r.current.delete(C)},[]),g=l.useCallback(function(C){c(C)},[]),y=l.useCallback(function(C,S){var x=r.current.get(C)||"",w=J7(x);return S&&s.includes(w[0])&&w.unshift(Mh),w},[s]),h=l.useCallback(function(C,S){return C.filter(function(x){return x!==void 0}).some(function(x){var w=y(x,!0);return w.includes(S)})},[y]),v=function(){var S=be(r.current.keys());return s.length&&S.push(Mh),S},b=l.useCallback(function(C){var S="".concat(r.current.get(C)).concat(Ky),x=new Set;return be(o.current.keys()).forEach(function(w){w.startsWith(S)&&x.add(o.current.get(w))}),x},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:h,getKeyPath:y,getKeys:v,getSubPathKeys:b}}function Ds(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var eA=Math.random().toFixed(5).toString().slice(2),X1=0;function tA(e){var t=rn(e,{value:e}),n=oe(t,2),r=n[0],o=n[1];return l.useEffect(function(){X1+=1;var a="".concat(eA,"-").concat(X1);o("rc-menu-uuid-".concat(a))},[]),r}function fP(e,t,n,r){var o=l.useContext(Do),a=o.activeKey,i=o.onActive,s=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),i(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function mP(e){var t=l.useContext(Do),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function pP(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=l.createElement(t,W({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var nA=["item"];function bf(e){var t=e.item,n=ft(e,nA);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 rA=["title","attribute","elementRef"],oA=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],aA=["active"],iA=function(e){Jr(n,e);var t=ho(n);function n(){return sn(this,n),t.apply(this,arguments)}return cn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,c=ft(o,rA),u=Qt(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return an(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Xo.Item,pe({},i,{title:typeof a=="string"?a:void 0},u,{ref:s}))}}]),n}(l.Component),lA=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,i=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,m=e.onKeyDown,p=e.onFocus,g=ft(e,oA),y=lP(o),h=l.useContext(Do),v=h.prefixCls,b=h.onItemClick,C=h.disabled,S=h.overflowDisabled,x=h.itemIcon,w=h.selectedKeys,O=h.onActive,$=l.useContext(Vy),E=$._internalRenderMenuItem,I="".concat(v,"-item"),R=l.useRef(),M=l.useRef(),N=C||a,P=pa(t,M),_=ss(o),j=function(ee){return{key:o,keyPath:be(_).reverse(),item:R.current,domEvent:ee}},T=i||x,z=fP(o,N,u,d),L=z.active,k=ft(z,aA),H=w.includes(o),K=mP(_.length),B=function(ee){if(!N){var ue=j(ee);f==null||f(bf(ue)),b(ue)}},U=function(ee){if(m==null||m(ee),ee.which===Xe.ENTER){var ue=j(ee);f==null||f(bf(ue)),b(ue)}},G=function(ee){O(o),p==null||p(ee)},q={};e.role==="option"&&(q["aria-selected"]=H);var te=l.createElement(iA,pe({ref:R,elementRef:P,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&y?null:y},Qt(g,["extra"]),k,q,{component:"li","aria-disabled":a,style:W(W({},K),n),className:V(I,D(D(D({},"".concat(I,"-active"),L),"".concat(I,"-selected"),H),"".concat(I,"-disabled"),N),r),onClick:B,onKeyDown:U,onFocus:G}),s,l.createElement(pP,{props:W(W({},e),{},{isSelected:H}),icon:T}));return E&&(te=E(te,e,{selected:H})),te});function sA(e,t){var n=e.eventKey,r=Nm(),o=ss(n);return l.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:l.createElement(lA,pe({},e,{ref:t}))}const fu=l.forwardRef(sA);var cA=["className","children"],uA=function(t,n){var r=t.className,o=t.children,a=ft(t,cA),i=l.useContext(Do),s=i.prefixCls,c=i.mode,u=i.rtl;return l.createElement("ul",pe({className:V(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Uy=l.forwardRef(uA);Uy.displayName="SubMenuList";function Gy(e,t){return Fn(e).map(function(n,r){if(l.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,c=s==null;c&&(s="tmp_key-".concat([].concat(be(t),[r]).join("-")));var u={key:s,eventKey:s};return l.cloneElement(n,u)}return n})}var pr={adjustX:1,adjustY:1},dA={topLeft:{points:["bl","tl"],overflow:pr},topRight:{points:["br","tr"],overflow:pr},bottomLeft:{points:["tl","bl"],overflow:pr},bottomRight:{points:["tr","br"],overflow:pr},leftTop:{points:["tr","tl"],overflow:pr},leftBottom:{points:["br","bl"],overflow:pr},rightTop:{points:["tl","tr"],overflow:pr},rightBottom:{points:["bl","br"],overflow:pr}},fA={topLeft:{points:["bl","tl"],overflow:pr},topRight:{points:["br","tr"],overflow:pr},bottomLeft:{points:["tl","bl"],overflow:pr},bottomRight:{points:["tr","br"],overflow:pr},rightTop:{points:["tr","tl"],overflow:pr},rightBottom:{points:["br","bl"],overflow:pr},leftTop:{points:["tl","tr"],overflow:pr},leftBottom:{points:["bl","br"],overflow:pr}};function vP(e,t,n){if(t)return t;if(n)return n[e]||n.other}var mA={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pA(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=l.useContext(Do),m=f.getPopupContainer,p=f.rtl,g=f.subMenuOpenDelay,y=f.subMenuCloseDelay,h=f.builtinPlacements,v=f.triggerSubMenuAction,b=f.forceSubMenuRender,C=f.rootClassName,S=f.motion,x=f.defaultMotions,w=l.useState(!1),O=oe(w,2),$=O[0],E=O[1],I=W(p?W({},fA):W({},dA),h),R=mA[u],M=vP(u,S,x),N=l.useRef(M);u!=="inline"&&(N.current=M);var P=W(W({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=l.useRef();return l.useEffect(function(){return _.current=jt(function(){E(n)}),function(){jt.cancel(_.current)}},[n]),l.createElement(Om,{prefixCls:t,popupClassName:V("".concat(t,"-popup"),D({},"".concat(t,"-rtl"),p),i,C),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:R,popupVisible:$,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[v],mouseEnterDelay:g,mouseLeaveDelay:y,onPopupVisibleChange:d,forceRender:b,popupMotion:P,fresh:!0},r)}function vA(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=l.useContext(Do),s=i.prefixCls,c=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,m=l.useRef(!1);m.current=f===a;var p=l.useState(!m.current),g=oe(p,2),y=g[0],h=g[1],v=m.current?n:!1;l.useEffect(function(){m.current&&h(!1)},[f]);var b=W({},vP(a,u,d));r.length>1&&(b.motionAppear=!1);var C=b.onVisibleChanged;return b.onVisibleChanged=function(S){return!m.current&&!S&&h(!0),C==null?void 0:C(S)},y?null:l.createElement(Dc,{mode:a,locked:!m.current},l.createElement(Nr,pe({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var x=S.className,w=S.style;return l.createElement(Uy,{id:t,className:x,style:w},o)}))}var gA=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],hA=["active"],yA=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,p=e.popupStyle,g=e.onClick,y=e.onMouseEnter,h=e.onMouseLeave,v=e.onTitleClick,b=e.onTitleMouseEnter,C=e.onTitleMouseLeave,S=ft(e,gA),x=lP(a),w=l.useContext(Do),O=w.prefixCls,$=w.mode,E=w.openKeys,I=w.disabled,R=w.overflowDisabled,M=w.activeKey,N=w.selectedKeys,P=w.itemIcon,_=w.expandIcon,j=w.onItemClick,T=w.onOpenChange,z=w.onActive,L=l.useContext(Vy),k=L._internalRenderSubMenuItem,H=l.useContext(uP),K=H.isSubPathKey,B=ss(),U="".concat(O,"-submenu"),G=I||i,q=l.useRef(),te=l.useRef(),Z=u??P,ee=d??_,ue=E.includes(a),re=!R&&ue,X=K(N,a),ae=fP(a,G,b,C),ne=ae.active,J=ft(ae,hA),Y=l.useState(!1),se=oe(Y,2),fe=se[0],$e=se[1],Ce=function(me){G||$e(me)},ie=function(me){Ce(!0),y==null||y({key:a,domEvent:me})},ge=function(me){Ce(!1),h==null||h({key:a,domEvent:me})},de=l.useMemo(function(){return ne||($!=="inline"?fe||K([M],a):!1)},[$,ne,M,fe,a,K]),ve=mP(B.length),Re=function(me){G||(v==null||v({key:a,domEvent:me}),$==="inline"&&T(a,!ue))},_e=Ds(function(Be){g==null||g(bf(Be)),j(Be)}),Ue=function(me){$!=="inline"&&T(a,me)},ke=function(){z(a)},De=x&&"".concat(x,"-popup"),Ae=l.useMemo(function(){return l.createElement(pP,{icon:$!=="horizontal"?ee:void 0,props:W(W({},e),{},{isOpen:re,isSubMenu:!0})},l.createElement("i",{className:"".concat(U,"-arrow")}))},[$,ee,e,re,U]),xe=l.createElement("div",pe({role:"menuitem",style:ve,className:"".concat(U,"-title"),tabIndex:G?null:-1,ref:q,title:typeof o=="string"?o:null,"data-menu-id":R&&x?null:x,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":G,onClick:Re,onFocus:ke},J),o,Ae),ye=l.useRef($);if($!=="inline"&&B.length>1?ye.current="vertical":ye.current=$,!R){var je=ye.current;xe=l.createElement(pA,{mode:je,prefixCls:U,visible:!s&&re&&$!=="inline",popupClassName:f,popupOffset:m,popupStyle:p,popup:l.createElement(Dc,{mode:je==="horizontal"?"vertical":je},l.createElement(Uy,{id:De,ref:te},c)),disabled:G,onVisibleChange:Ue},xe)}var Pe=l.createElement(Xo.Item,pe({ref:t,role:"none"},S,{component:"li",style:n,className:V(U,"".concat(U,"-").concat($),r,D(D(D(D({},"".concat(U,"-open"),re),"".concat(U,"-active"),de),"".concat(U,"-selected"),X),"".concat(U,"-disabled"),G)),onMouseEnter:ie,onMouseLeave:ge}),xe,!R&&l.createElement(vA,{id:De,open:re,keyPath:B},c));return k&&(Pe=k(Pe,e,{selected:X,active:de,open:re,disabled:G})),l.createElement(Dc,{onItemClick:_e,mode:$==="horizontal"?"vertical":$,itemIcon:Z,expandIcon:ee},Pe)}),Mm=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ss(n),a=Gy(r,o),i=Nm();l.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var s;return i?s=a:s=l.createElement(yA,pe({ref:t},e),a),l.createElement(cP.Provider,{value:o},s)});function qy(e){var t=e.className,n=e.style,r=l.useContext(Do),o=r.prefixCls,a=Nm();return a?null:l.createElement("li",{role:"separator",className:V("".concat(o,"-item-divider"),t),style:n})}var bA=["className","title","eventKey","children"],CA=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=ft(e,bA),i=l.useContext(Do),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",pe({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:V(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Xy=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ss(n),a=Gy(r,o),i=Nm();return i?a:l.createElement(CA,pe({ref:t},Qt(e,["warnKey"])),a)}),SA=["label","children","key","type","extra"];function jh(e,t,n){var r=t.item,o=t.group,a=t.submenu,i=t.divider;return(e||[]).map(function(s,c){if(s&&et(s)==="object"){var u=s,d=u.label,f=u.children,m=u.key,p=u.type,g=u.extra,y=ft(u,SA),h=m??"tmp-".concat(c);return f||p==="group"?p==="group"?l.createElement(o,pe({key:h},y,{title:d}),jh(f,t,n)):l.createElement(a,pe({key:h},y,{title:d}),jh(f,t,n)):p==="divider"?l.createElement(i,pe({key:h},y)):l.createElement(r,pe({key:h},y,{extra:g}),d,(!!g||g===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},g))}return null}).filter(function(s){return s})}function Y1(e,t,n,r,o){var a=e,i=W({divider:qy,item:fu,group:Xy,submenu:Mm},r);return t&&(a=jh(t,i,o)),Gy(a,n)}var xA=["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"],ai=[],$A=l.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,p=r.direction,g=r.id,y=r.mode,h=y===void 0?"vertical":y,v=r.inlineCollapsed,b=r.disabled,C=r.disabledOverflow,S=r.subMenuOpenDelay,x=S===void 0?.1:S,w=r.subMenuCloseDelay,O=w===void 0?.1:w,$=r.forceSubMenuRender,E=r.defaultOpenKeys,I=r.openKeys,R=r.activeKey,M=r.defaultActiveFirst,N=r.selectable,P=N===void 0?!0:N,_=r.multiple,j=_===void 0?!1:_,T=r.defaultSelectedKeys,z=r.selectedKeys,L=r.onSelect,k=r.onDeselect,H=r.inlineIndent,K=H===void 0?24:H,B=r.motion,U=r.defaultMotions,G=r.triggerSubMenuAction,q=G===void 0?"hover":G,te=r.builtinPlacements,Z=r.itemIcon,ee=r.expandIcon,ue=r.overflowedIndicator,re=ue===void 0?"...":ue,X=r.overflowedIndicatorPopupClassName,ae=r.getPopupContainer,ne=r.onClick,J=r.onOpenChange,Y=r.onKeyDown;r.openAnimation,r.openTransitionName;var se=r._internalRenderMenuItem,fe=r._internalRenderSubMenuItem,$e=r._internalComponents,Ce=ft(r,xA),ie=l.useMemo(function(){return[Y1(m,f,ai,$e,a),Y1(m,f,ai,{},a)]},[m,f,$e]),ge=oe(ie,2),de=ge[0],ve=ge[1],Re=l.useState(!1),_e=oe(Re,2),Ue=_e[0],ke=_e[1],De=l.useRef(),Ae=tA(g),xe=p==="rtl",ye=rn(E,{value:I,postState:function(lt){return lt||ai}}),je=oe(ye,2),Pe=je[0],Be=je[1],me=function(lt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ht(){Be(lt),J==null||J(lt)}at?mo.flushSync(Ht):Ht()},Ie=l.useState(Pe),Te=oe(Ie,2),Ne=Te[0],tt=Te[1],st=l.useRef(!1),Le=l.useMemo(function(){return(h==="inline"||h==="vertical")&&v?["vertical",v]:[h,!1]},[h,v]),Ge=oe(Le,2),Qe=Ge[0],Fe=Ge[1],nt=Qe==="inline",bt=l.useState(Qe),le=oe(bt,2),ce=le[0],Se=le[1],he=l.useState(Fe),Ee=oe(he,2),Oe=Ee[0],we=Ee[1];l.useEffect(function(){Se(Qe),we(Fe),st.current&&(nt?Be(Ne):me(ai))},[Qe,Fe]);var Me=l.useState(0),ze=oe(Me,2),qe=ze[0],yt=ze[1],Ye=qe>=de.length-1||ce!=="horizontal"||C;l.useEffect(function(){nt&&tt(Pe)},[Pe]),l.useEffect(function(){return st.current=!0,function(){st.current=!1}},[]);var Ke=Z7(),ct=Ke.registerPath,Ot=Ke.unregisterPath,Nt=Ke.refreshOverflowKeys,_t=Ke.isSubPathKey,Wt=Ke.getKeyPath,wt=Ke.getKeys,kt=Ke.getSubPathKeys,He=l.useMemo(function(){return{registerPath:ct,unregisterPath:Ot}},[ct,Ot]),Ze=l.useMemo(function(){return{isSubPathKey:_t}},[_t]);l.useEffect(function(){Nt(Ye?ai:de.slice(qe+1).map(function(Kt){return Kt.key}))},[qe,Ye]);var gt=rn(R||M&&((n=de[0])===null||n===void 0?void 0:n.key),{value:R}),mt=oe(gt,2),it=mt[0],rt=mt[1],Ct=Ds(function(Kt){rt(Kt)}),Mt=Ds(function(){rt(void 0)});l.useImperativeHandle(t,function(){return{list:De.current,focus:function(lt){var at,Ht=wt(),At=Nh(Ht,Ae),Yt=At.elements,on=At.key2element,Kn=At.element2key,En=Wy(De.current,Yt),Un=it??(En[0]?Kn.get(En[0]):(at=de.find(function(Zr){return!Zr.props.disabled}))===null||at===void 0?void 0:at.key),Tn=on.get(Un);if(Un&&Tn){var Gn;Tn==null||(Gn=Tn.focus)===null||Gn===void 0||Gn.call(Tn,lt)}}}});var Je=rn(T||[],{value:z,postState:function(lt){return Array.isArray(lt)?lt:lt==null?ai:[lt]}}),ut=oe(Je,2),xt=ut[0],un=ut[1],wn=function(lt){if(P){var at=lt.key,Ht=xt.includes(at),At;j?Ht?At=xt.filter(function(on){return on!==at}):At=[].concat(be(xt),[at]):At=[at],un(At);var Yt=W(W({},lt),{},{selectedKeys:At});Ht?k==null||k(Yt):L==null||L(Yt)}!j&&Pe.length&&ce!=="inline"&&me(ai)},nr=Ds(function(Kt){ne==null||ne(bf(Kt)),wn(Kt)}),rr=Ds(function(Kt,lt){var at=Pe.filter(function(At){return At!==Kt});if(lt)at.push(Kt);else if(ce!=="inline"){var Ht=kt(Kt);at=at.filter(function(At){return!Ht.has(At)})}Yo(Pe,at,!0)||me(at,!0)}),Bn=function(lt,at){var Ht=at??!Pe.includes(lt);rr(lt,Ht)},sr=Y7(ce,it,xe,Ae,De,wt,Wt,rt,Bn,Y);l.useEffect(function(){ke(!0)},[]);var cr=l.useMemo(function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:fe}},[se,fe]),yr=ce!=="horizontal"||C?de:de.map(function(Kt,lt){return l.createElement(Dc,{key:Kt.key,overflowDisabled:lt>qe},Kt)}),ur=l.createElement(Xo,pe({id:g,ref:De,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:fu,className:V(a,"".concat(a,"-root"),"".concat(a,"-").concat(ce),c,D(D({},"".concat(a,"-inline-collapsed"),Oe),"".concat(a,"-rtl"),xe),i),dir:p,style:s,role:"menu",tabIndex:d,data:yr,renderRawItem:function(lt){return lt},renderRawRest:function(lt){var at=lt.length,Ht=at?de.slice(-at):null;return l.createElement(Mm,{eventKey:Mh,title:re,disabled:Ye,internalPopupClose:at===0,popupClassName:X},Ht)},maxCount:ce!=="horizontal"||C?Xo.INVALIDATE:Xo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(lt){yt(lt)},onKeyDown:sr},Ce));return l.createElement(Vy.Provider,{value:cr},l.createElement(aP.Provider,{value:Ae},l.createElement(Dc,{prefixCls:a,rootClassName:i,mode:ce,openKeys:Pe,rtl:xe,disabled:b,motion:Ue?B:null,defaultMotions:Ue?U:null,activeKey:it,onActive:Ct,onInactive:Mt,selectedKeys:xt,inlineIndent:K,subMenuOpenDelay:x,subMenuCloseDelay:O,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:q,getPopupContainer:ae,itemIcon:Z,expandIcon:ee,onItemClick:nr,onOpenChange:rr},l.createElement(uP.Provider,{value:Ze},ur),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(sP.Provider,{value:He},ve)))))}),cs=$A;cs.Item=fu;cs.SubMenu=Mm;cs.ItemGroup=Xy;cs.Divider=qy;var wA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},EA=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:wA}))},OA=l.forwardRef(EA);const gP=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),IA=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:i,headerColor:s,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:i,color:s,lineHeight:A(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},hP=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},yP=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],bP=Tt("Layout",IA,hP,{deprecatedTokens:yP}),PA=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:a,triggerHeight:i,triggerColor:s,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:p,lightTriggerColor:g,lightTriggerBg:y,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:s,lineHeight:A(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${A(m)} ${A(m)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${A(m)} 0 0 ${A(m)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:g,background:y},[`${t}-zero-width-trigger`]:{color:g,background:y,border:`1px solid ${h}`,borderInlineStart:0}}}}},RA=Tt(["Layout","Sider"],PA,hP,{deprecatedTokens:yP});var NA=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 Q1={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},MA=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),jm=l.createContext({}),jA=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),CP=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:p,breakpoint:g,onCollapse:y,onBreakpoint:h}=e,v=NA(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=l.useContext(gP),[C,S]=l.useState("collapsed"in e?e.collapsed:i),[x,w]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const O=(Z,ee)=>{"collapsed"in e||S(Z),y==null||y(Z,ee)},{getPrefixCls:$,direction:E}=l.useContext(ot),I=$("layout-sider",n),[R,M,N]=RA(I),P=l.useRef(null);P.current=Z=>{w(Z.matches),h==null||h(Z.matches),C!==Z.matches&&O(Z.matches,"responsive")},l.useEffect(()=>{function Z(ue){var re;return(re=P.current)===null||re===void 0?void 0:re.call(P,ue)}let ee;return typeof(window==null?void 0:window.matchMedia)<"u"&&g&&g in Q1&&(ee=window.matchMedia(`screen and (max-width: ${Q1[g]})`),UI(ee,Z),Z(ee)),()=>{GI(ee,Z)}},[g]),l.useEffect(()=>{const Z=jA("ant-sider-");return b.addSider(Z),()=>b.removeSider(Z)},[]);const _=()=>{O(!C,"clickTrigger")},j=Qt(v,["collapsed"]),T=C?m:f,z=MA(T)?`${T}px`:String(T),L=Number.parseFloat(String(m||0))===0?l.createElement("span",{onClick:_,className:V(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${d?"right":"left"}`),style:p},o||l.createElement(OA,null)):null,k=E==="rtl"==!d,B={expanded:k?l.createElement(Ul,null):l.createElement(Lc,null),collapsed:k?l.createElement(Lc,null):l.createElement(Ul,null)}[C?"collapsed":"expanded"],U=o!==null?L||l.createElement("div",{className:`${I}-trigger`,onClick:_,style:{width:z}},o||B):null,G=Object.assign(Object.assign({},c),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),q=V(I,`${I}-${s}`,{[`${I}-collapsed`]:!!C,[`${I}-has-trigger`]:u&&o!==null&&!L,[`${I}-below`]:!!x,[`${I}-zero-width`]:Number.parseFloat(z)===0},r,M,N),te=l.useMemo(()=>({siderCollapsed:C}),[C]);return R(l.createElement(jm.Provider,{value:te},l.createElement("aside",Object.assign({className:q},j,{style:G,ref:t}),l.createElement("div",{className:`${I}-children`},a),u||x&&L?U:null)))});var TA={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"},_A=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:TA}))},Yy=l.forwardRef(_A);const Cf=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var zA=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 SP=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=zA(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=l.useContext(ot),i=a("menu",t),s=V({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(qy,Object.assign({className:s},o))},xP=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i,extra:s}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=l.useContext(Cf),p=C=>{const S=r==null?void 0:r[0],x=l.createElement("span",{className:V(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},r);return(!o||l.isValidElement(r)&&r.type==="span")&&r&&C&&u&&typeof S=="string"?l.createElement("div",{className:`${c}-inline-collapsed-noicon`},S.charAt(0)):x},{siderCollapsed:g}=l.useContext(jm);let y=a;typeof a>"u"?y=u?r:"":a===!1&&(y="");const h={title:y};!g&&!m&&(h.title=null,h.open=!1);const v=Fn(r).length;let b=l.createElement(fu,Object.assign({},Qt(e,["title","icon","danger"]),{className:V({[`${c}-item-danger`]:i,[`${c}-item-only-child`]:(o?v+1:v)===1},n),title:typeof a=="string"?a:void 0}),Dn(o,{className:V(l.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),p(m));return f||(b=l.createElement(Lo,Object.assign({},h,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),b)),b};var LA=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 Sf=l.createContext(null),$P=l.forwardRef((e,t)=>{const{children:n}=e,r=LA(e,["children"]),o=l.useContext(Sf),a=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=hj(n),s=pa(t,i?ti(n):null);return l.createElement(Sf.Provider,{value:a},l.createElement(Ga,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),DA=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${A(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
|
|
279
|
+
> ${t}-item-active,
|
|
280
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},BA=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
281
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${A(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${A(t)})`}}}}),J1=e=>Jo(e),Z1=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:s,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:y,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:C,colorSplit:S,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:O,dangerItemSelectedColor:$,dangerItemActiveBg:E,dangerItemSelectedBg:I,popupBg:R,itemHoverBg:M,itemActiveBg:N,menuSubMenuBg:P,horizontalItemSelectedColor:_,horizontalItemSelectedBg:j,horizontalItemBorderRadius:T,horizontalItemHoverBg:z}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},J1(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},J1(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:I}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:R},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:R},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${A(d)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:z,"&::after":{borderBottomWidth:d,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:d,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${A(m)} ${C} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${A(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${y}`,`opacity ${v} ${y}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(",")}}}}}},ex=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:A(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
|
|
282
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:A(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
283
|
+
${t}-submenu-title`]:{paddingInlineEnd:d}}},kA=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:g,collapsedWidth:y,collapsedIconSize:h}=e,v={height:r,lineHeight:A(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ex(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ex(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${A(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:y,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
|
284
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
285
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
286
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${A(e.calc(h).div(2).equal())} - ${A(u)})`,textOverflow:"clip",[`
|
|
287
|
+
${t}-submenu-arrow,
|
|
288
|
+
${t}-submenu-expand-icon
|
|
289
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:A(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},_o),{paddingInline:p})}}]},tx=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Ai()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},nx=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${A(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${A(i)})`}}}}},AA=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:y,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},Qo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e)),Qo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${A(s)} ${A(c)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:h,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${A(e.calc(r).mul(2).equal())} ${A(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},tx(e)),nx(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),nx(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
290
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${A(y)})`},"&::after":{transform:`rotate(45deg) translateX(${A(e.calc(y).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${A(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${A(e.calc(y).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${A(y)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},FA=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:p,lineWidthBold:g,controlItemBgActive:y,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:C,marginXXS:S,padding:x,fontSize:w,controlHeightSM:O,fontSizeLG:$,colorTextLightSolid:E,colorErrorHover:I}=e,R=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,N=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,P=new Lt(E).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:m,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:v*2,popupBg:C,itemMarginBlock:S,itemPaddingInline:x,horizontalLineHeight:`${v*1.15}px`,iconSize:w,iconMarginInlineEnd:O-w,collapsedIconSize:$,groupTitleFontSize:w,darkItemDisabledColor:new Lt(E).setA(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:E,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:R?`calc(100% + ${M}px)`:`calc(100% - ${N*2}px)`}},HA=(e,t=e,n=!0)=>Tt("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:g,darkItemHoverBg:y,darkGroupTitleColor:h,darkItemHoverColor:v,darkItemDisabledColor:b,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:x,popupBg:w,darkPopupBg:O}=o,$=o.calc(s).div(7).mul(5).equal(),E=Et(o,{menuArrowSize:$,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc($).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:w}),I=Et(E,{itemColor:c,itemHoverColor:v,groupTitleColor:h,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:O,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:y,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:x,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[AA(E),DA(E),kA(E),Z1(E,"light"),Z1(I,"dark"),BA(E),nu(E),Ua(E,"slide-up"),Ua(E,"slide-down"),ru(E,"zoom-big")]},FA,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),wP=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=l.useContext(Cf),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=ss();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const g=l.isValidElement(o)&&o.type==="span";f=l.createElement(l.Fragment,null,Dn(r,{className:V(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),g?o:l.createElement("span",{className:`${s}-title-content`},o))}const m=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[p]=Jc("Menu");return l.createElement(Cf.Provider,{value:m},l.createElement(Mm,Object.assign({},Qt(e,["icon"]),{title:f,popupClassName:V(s,n,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var VA=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 ov(e){return e===null||e===!1}const WA={item:xP,submenu:wP,divider:SP},KA=l.forwardRef((e,t)=>{var n;const r=l.useContext(Sf),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:s,menu:c}=l.useContext(ot),u=a(),{prefixCls:d,className:f,style:m,theme:p="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:h,siderCollapsed:v,rootClassName:b,mode:C,selectable:S,onClick:x,overflowedIndicatorPopupClassName:w}=e,O=VA(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),$=Qt(O,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:C});const E=Gt((...K)=>{var B;x==null||x.apply(void 0,K),(B=o.onClick)===null||B===void 0||B.call(o)}),I=o.mode||C,R=S??o.selectable,M=h??v,N={horizontal:{motionName:`${u}-slide-up`},inline:Kl(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||o.prefixCls),_=Vn(P),[j,T,z]=HA(P,_,!r),L=V(`${P}-${p}`,c==null?void 0:c.className,f),k=l.useMemo(()=>{var K,B;if(typeof g=="function"||ov(g))return g||null;if(typeof o.expandIcon=="function"||ov(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||ov(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const U=(K=g??(o==null?void 0:o.expandIcon))!==null&&K!==void 0?K:c==null?void 0:c.expandIcon;return Dn(U,{className:V(`${P}-submenu-expand-icon`,l.isValidElement(U)?(B=U.props)===null||B===void 0?void 0:B.className:void 0)})},[g,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,P]),H=l.useMemo(()=>({prefixCls:P,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:p,mode:I,disableMenuItemTitleTooltip:y}),[P,M,s,y,p]);return j(l.createElement(Sf.Provider,{value:null},l.createElement(Cf.Provider,{value:H},l.createElement(cs,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(Yy,null),overflowedIndicatorPopupClassName:V(P,`${P}-${p}`,w),mode:I,selectable:R,onClick:E},$,{inlineCollapsed:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:L,prefixCls:P,direction:s,defaultMotions:N,expandIcon:k,ref:t,rootClassName:V(b,T,o.rootClassName,z,_),_internalComponents:WA})))))}),Vi=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(jm);return l.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),l.createElement(KA,Object.assign({ref:n},e,r))});Vi.Item=xP;Vi.SubMenu=wP;Vi.Divider=SP;Vi.ItemGroup=Xy;const UA=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},GA=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:g,colorBgElevated:y}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
291
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
292
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
|
|
293
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
|
|
294
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
|
|
295
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Sy},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
|
|
296
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
|
|
297
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
|
|
298
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
|
|
299
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
|
|
300
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:$y},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
301
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
|
|
302
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:xy},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
|
|
303
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
|
|
304
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:wy}}},Hy(e,y,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Dt(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},zo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${A(u)} ${A(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${A(u)} ${A(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},zo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${A(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${A(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ua(e,"slide-up"),Ua(e,"slide-down"),hf(e,"move-up"),hf(e,"move-down"),ru(e,"zoom-big")]]},qA=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Rm({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Fy(e)),XA=Tt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=Et(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[GA(a),UA(a)]},qA,{resetStyle:!1}),Tm=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:a,trigger:i,disabled:s,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:p,open:g,onOpenChange:y,visible:h,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:S=!0,placement:x="",overlay:w,transitionName:O,destroyOnHidden:$,destroyPopupOnHide:E}=e,{getPopupContainer:I,getPrefixCls:R,direction:M,dropdown:N}=l.useContext(ot),P=u||c;ni();const _=l.useMemo(()=>{const se=R();return O!==void 0?O:x.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[R,x,O]),j=l.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:M==="rtl"?"bottomRight":"bottomLeft",[x,M]),T=R("dropdown",o),z=Vn(T),[L,k,H]=XA(T,z),[,K]=tr(),B=l.Children.only(H7(a)?l.createElement("span",null,a):a),U=Dn(B,{className:V(`${T}-trigger`,{[`${T}-rtl`]:M==="rtl"},B.props.className),disabled:(t=B.props.disabled)!==null&&t!==void 0?t:s}),G=s?[]:i,q=!!(G!=null&&G.includes("contextMenu")),[te,Z]=rn(!1,{value:g??h}),ee=Gt(se=>{y==null||y(se,{source:"trigger"}),v==null||v(se),Z(se)}),ue=V(f,m,k,H,z,N==null?void 0:N.className,{[`${T}-rtl`]:M==="rtl"}),re=YI({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:K.marginXXS,arrowWidth:r?K.sizePopupArrow:0,borderRadius:K.borderRadius}),X=Gt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(y==null||y(!1,{source:"menu"}),Z(!1))}),ae=()=>{let se;return n!=null&&n.items?se=l.createElement(Vi,Object.assign({},n)):typeof w=="function"?se=w():se=w,P&&(se=P(se)),se=l.Children.only(typeof se=="string"?l.createElement("span",null,se):se),l.createElement($P,{prefixCls:`${T}-menu`,rootClassName:V(H,z),expandIcon:l.createElement("span",{className:`${T}-menu-submenu-arrow`},M==="rtl"?l.createElement(Lc,{className:`${T}-menu-submenu-arrow-icon`}):l.createElement(Ul,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:({mode:fe})=>{}},se)},[ne,J]=Jc("Dropdown",p==null?void 0:p.zIndex);let Y=l.createElement(oP,Object.assign({alignPoint:q},Qt(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:C,visible:te,builtinPlacements:re,arrow:!!r,overlayClassName:ue,prefixCls:T,getPopupContainer:d||I,transitionName:_,trigger:G,overlay:ae,placement:j,onVisibleChange:ee,overlayStyle:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),p),{zIndex:ne}),autoDestroy:$??E}),U);return ne&&(Y=l.createElement(um.Provider,{value:J},Y)),L(Y)},YA=II(Tm,"align",void 0,"dropdown",e=>e),QA=e=>l.createElement(YA,Object.assign({},e),l.createElement("span",null));Tm._InternalPanelDoNotUseOrYouWillBeFired=QA;const EP=l.createContext(null),JA=EP.Provider,OP=l.createContext(null),ZA=OP.Provider;var eF=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],IP=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,p=e.onChange,g=ft(e,eF),y=l.useRef(null),h=l.useRef(null),v=rn(u,{value:i}),b=oe(v,2),C=b[0],S=b[1];l.useImperativeHandle(t,function(){return{focus:function($){var E;(E=y.current)===null||E===void 0||E.focus($)},blur:function(){var $;($=y.current)===null||$===void 0||$.blur()},input:y.current,nativeElement:h.current}});var x=V(r,o,D(D({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),s)),w=function($){s||("checked"in e||S($.target.checked),p==null||p({target:W(W({},e),{},{type:f,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation()},preventDefault:function(){$.preventDefault()},nativeEvent:$.nativeEvent}))};return l.createElement("span",{className:x,title:m,style:a,ref:h},l.createElement("input",pe({},g,{className:"".concat(r,"-input"),ref:y,onChange:w,disabled:s,checked:!!C,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});function PP(e){const t=Q.useRef(null),n=()=>{jt.cancel(t.current),t.current=null};return[()=>{n(),t.current=jt(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const tF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Dt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},nF=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:p,dotColorDisabled:g,lineType:y,radioColor:h,radioBgColor:v,calc:b}=e,C=`${t}-inner`,x=b(o).sub(b(4).mul(2)),w=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Dt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${A(d)} ${y} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Dt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
305
|
+
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Jo(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${b(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},rF=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:p,paddingXS:g,borderRadius:y,borderRadiusSM:h,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:C,colorTextDisabled:S,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:O,colorPrimary:$,colorPrimaryHover:E,colorPrimaryActive:I,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:N,calc:P}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:A(P(n).sub(P(o).mul(2)).equal()),background:d,border:`${A(o)} ${a} ${i}`,borderBlockStartWidth:P(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:P(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${A(o)} ${a} ${i}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:A(P(m).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:p,paddingInline:P(g).sub(o).equal(),paddingBlock:0,lineHeight:A(P(p).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Jo(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:b,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:R,borderColor:R,"&:hover":{color:C,background:M,borderColor:M},"&:active":{color:C,background:N,borderColor:N}},"&-disabled":{color:S,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:w,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},oF=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:p,colorWhite:g}=e,y=4,h=a,v=t?h-y*2:h-(y+o)*2;return{radioSize:h,dotSize:v,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:g,radioBgColor:t?s:f}},RP=Tt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${A(n)} ${t}`,a=Et(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[tF(a),nF(a),rF(a)]},oF,{unitless:{radioSize:!0,dotSize:!0}});var aF=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 iF=(e,t)=>{var n,r;const o=l.useContext(EP),a=l.useContext(OP),{getPrefixCls:i,direction:s,radio:c}=l.useContext(ot),u=l.useRef(null),d=er(t,u),{isFormItemInput:f}=l.useContext(lr),m=j=>{var T,z;(T=e.onChange)===null||T===void 0||T.call(e,j),(z=o==null?void 0:o.onChange)===null||z===void 0||z.call(o,j)},{prefixCls:p,className:g,rootClassName:y,children:h,style:v,title:b}=e,C=aF(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",p),x=((o==null?void 0:o.optionType)||a)==="button",w=x?`${S}-button`:S,O=Vn(S),[$,E,I]=RP(S,O),R=Object.assign({},C),M=l.useContext(Ir);o&&(R.name=o.name,R.onChange=m,R.checked=e.value===o.value,R.disabled=(n=R.disabled)!==null&&n!==void 0?n:o.disabled),R.disabled=(r=R.disabled)!==null&&r!==void 0?r:M;const N=V(`${w}-wrapper`,{[`${w}-wrapper-checked`]:R.checked,[`${w}-wrapper-disabled`]:R.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:f,[`${w}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,g,y,E,I,O),[P,_]=PP(R.onClick);return $(l.createElement(tu,{component:"Radio",disabled:R.disabled},l.createElement("label",{className:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:P},l.createElement(IP,Object.assign({},R,{className:V(R.className,{[fm]:!x}),type:"radio",prefixCls:w,ref:d,onClick:_})),h!==void 0?l.createElement("span",{className:`${w}-label`},h):null)))},xf=l.forwardRef(iF),lF=["parentNode"],sF="form_item";function Zs(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function NP(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:lF.includes(n)?`${sF}_${n}`:n}function MP(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var cF=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 Th(e){return Zs(e).join("_")}function rx(e,t){const n=t.getFieldInstance(e),r=Xc(n);if(r)return r;const o=NP(Zs(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function jP(e){const[t]=My(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Th(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=cF(a,["focus"]),c=rx(o,r);c&&(r8(c,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=rx(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=Th(o);return n.current[a]}}),[e,t]);return[r]}const uF=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ot),{name:o}=l.useContext(lr),a=Sm(Th(o)),{prefixCls:i,className:s,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:p,style:g,id:y,optionType:h,name:v=a,defaultValue:b,value:C,block:S=!1,onChange:x,onMouseEnter:w,onMouseLeave:O,onFocus:$,onBlur:E}=e,[I,R]=rn(b,{value:C}),M=l.useCallback(B=>{const U=I,G=B.target.value;"value"in e||R(G),G!==U&&(x==null||x(B))},[I,R,x]),N=n("radio",i),P=`${N}-group`,_=Vn(N),[j,T,z]=RP(N,_);let L=m;u&&u.length>0&&(L=u.map(B=>typeof B=="string"||typeof B=="number"?l.createElement(xf,{key:B.toString(),prefixCls:N,disabled:f,value:B,checked:I===B},B):l.createElement(xf,{key:`radio-group-value-options-${B.value}`,prefixCls:N,disabled:B.disabled||f,value:B.value,checked:I===B.value,title:B.title,style:B.style,className:B.className,id:B.id,required:B.required},B.label)));const k=Wn(p),H=V(P,`${P}-${d}`,{[`${P}-${k}`]:k,[`${P}-rtl`]:r==="rtl",[`${P}-block`]:S},s,c,T,z,_),K=l.useMemo(()=>({onChange:M,value:I,disabled:f,name:v,optionType:h,block:S}),[M,I,f,v,h,S]);return j(l.createElement("div",Object.assign({},Jn(e,{aria:!0,data:!0}),{className:H,style:g,onMouseEnter:w,onMouseLeave:O,onFocus:$,onBlur:E,id:y,ref:t}),l.createElement(JA,{value:K},L)))}),dF=l.memo(uF);var fF=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 mF=(e,t)=>{const{getPrefixCls:n}=l.useContext(ot),{prefixCls:r}=e,o=fF(e,["prefixCls"]),a=n("radio",r);return l.createElement(ZA,{value:"button"},l.createElement(xf,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},pF=l.forwardRef(mF),mu=xf;mu.Button=pF;mu.Group=dF;mu.__ANT_RADIO=!0;function us(e){return Et(e,{inputAffixPadding:e.paddingXXS})}const ds=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:p,colorPrimary:g,controlOutlineWidth:y,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:C,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:w}=e,O=S||n,$=w||O,E=x||s,I=Math.round((t-O*r)/2*10)/10-o,R=Math.round((a-$*r)/2*10)/10-o,M=Math.ceil((i-E*c)/2*10)/10-o;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(R,0),paddingBlockLG:Math.max(M,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:p,activeShadow:`0 0 0 ${y}px ${h}`,errorActiveShadow:`0 0 0 ${y}px ${v}`,warningActiveShadow:`0 0 0 ${y}px ${b}`,hoverBg:C,activeBg:C,inputFontSize:O,inputFontSizeLG:E,inputFontSizeSM:$}},vF=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_m=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({},vF(Et(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Qy=(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}}),ox=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),TP=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_m(e))}),ox(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ox(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ax=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_P=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ax(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),ax(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},_m(e))}})}),zP=(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)}},LP=(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}}},ix=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},LP(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),DP=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},LP(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_m(e))}),ix(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ix(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),lx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),BP=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},lx(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),lx(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:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),kP=(e,t)=>({background:e.colorBgContainer,borderWidth:`${A(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),sx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},kP(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`}}),AP=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kP(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"}}),sx(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),sx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),FP=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),HP=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${A(t)} ${A(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Jy=e=>({padding:`${A(e.paddingBlockSM)} ${A(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),pu=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${A(e.paddingBlock)} ${A(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},FP(e.colorTextPlaceholder)),{"&-lg":Object.assign({},HP(e)),"&-sm":Object.assign({},Jy(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),VP=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({},HP(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Jy(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 ${A(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${A(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${A(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:`${A(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${A(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"},Qo()),{[`${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},[`
|
|
306
|
+
& > ${t}-affix-wrapper,
|
|
307
|
+
& > ${t}-number-affix-wrapper,
|
|
308
|
+
& > ${n}-picker-range
|
|
309
|
+
`]:{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,
|
|
310
|
+
& > ${n}-select-auto-complete ${t},
|
|
311
|
+
& > ${n}-cascader-picker ${t},
|
|
312
|
+
& > ${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,
|
|
313
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
314
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
315
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
316
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
317
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
318
|
+
& > ${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}}}})}},gF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=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({},Dt(e)),pu(e)),TP(e)),DP(e)),zP(e)),AP(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},hF=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 ${A(e.inputAffixPadding)}`}}}},yF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},pu(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}}}),hF(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},bF=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Dt(e)),VP(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}}},_P(e)),BP(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}}})})}},CF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{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-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset: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,
|
|
319
|
+
> ${t},
|
|
320
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},SF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},WP=Tt(["Input","Shared"],e=>{const t=Et(e,us(e));return[gF(t),yF(t)]},ds,{resetFont:!1}),KP=Tt(["Input","Component"],e=>{const t=Et(e,us(e));return[bF(t),CF(t),SF(t),ou(t)]},ds,{resetFont:!1});var xF={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"},$F=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:xF}))},Vo=l.forwardRef($F);const zm=l.createContext(null);var wF=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=oe(d,2),m=f[0],p=f[1],g=l.useRef(),y=Q.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function h(){jt.cancel(g.current)}return l.useEffect(function(){var v={};if(n)if(r){v.width=y(n.width);var b=o?"right":"left";u==="start"&&(v[b]=n[b]),u==="center"&&(v[b]=n[b]+n.width/2,v.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(v[b]=n[b]+n.width,v.transform="translateX(-100%)")}else v.height=y(n.height),u==="start"&&(v.top=n.top),u==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),u==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return h(),g.current=jt(function(){var C=m&&v&&Object.keys(v).every(function(S){var x=v[S],w=m[S];return typeof x=="number"&&typeof w=="number"?Math.round(x)===Math.round(w):x===w});C||p(v)}),h},[JSON.stringify(n),r,o,u,y]),{style:m}},cx={width:0,height:0,left:0,top:0};function EF(e,t,n){return l.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||cx,i=a.left+a.width,s=0;s<e.length;s+=1){var c=e[s].key,u=t.get(c);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||cx}var f=o.get(c)||W({},u);f.right=i-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function ux(e,t){var n=l.useRef(e),r=l.useState({}),o=oe(r,2),a=o[1];function i(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,a({})}return[n.current,i]}var OF=.1,dx=.01,Md=20,fx=Math.pow(.995,Md);function IF(e,t){var n=l.useState(),r=oe(n,2),o=r[0],a=r[1],i=l.useState(0),s=oe(i,2),c=s[0],u=s[1],d=l.useState(0),f=oe(d,2),m=f[0],p=f[1],g=l.useState(),y=oe(g,2),h=y[0],v=y[1],b=l.useRef();function C(E){var I=E.touches[0],R=I.screenX,M=I.screenY;a({x:R,y:M}),window.clearInterval(b.current)}function S(E){if(o){var I=E.touches[0],R=I.screenX,M=I.screenY;a({x:R,y:M});var N=R-o.x,P=M-o.y;t(N,P);var _=Date.now();u(_),p(_-c),v({x:N,y:P})}}function x(){if(o&&(a(null),v(null),h)){var E=h.x/m,I=h.y/m,R=Math.abs(E),M=Math.abs(I);if(Math.max(R,M)<OF)return;var N=E,P=I;b.current=window.setInterval(function(){if(Math.abs(N)<dx&&Math.abs(P)<dx){window.clearInterval(b.current);return}N*=fx,P*=fx,t(N*Md,P*Md)},Md)}}var w=l.useRef();function O(E){var I=E.deltaX,R=E.deltaY,M=0,N=Math.abs(I),P=Math.abs(R);N===P?M=w.current==="x"?I:R:N>P?(M=I,w.current="x"):(M=R,w.current="y"),t(-M,-M)&&E.preventDefault()}var $=l.useRef(null);$.current={onTouchStart:C,onTouchMove:S,onTouchEnd:x,onWheel:O},l.useEffect(function(){function E(N){$.current.onTouchStart(N)}function I(N){$.current.onTouchMove(N)}function R(N){$.current.onTouchEnd(N)}function M(N){$.current.onWheel(N)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",R,{passive:!0}),e.current.addEventListener("touchstart",E,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",R)}},[])}function UP(e){var t=l.useState(0),n=oe(t,2),r=n[0],o=n[1],a=l.useRef(0),i=l.useRef();return i.current=e,El(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function PF(e){var t=l.useRef([]),n=l.useState({}),r=oe(n,2),o=r[1],a=l.useRef(typeof e=="function"?e():e),i=UP(function(){var c=a.current;t.current.forEach(function(u){c=u(c)}),t.current=[],a.current=c,o({})});function s(c){t.current.push(c),i()}return[a.current,s]}var mx={width:0,height:0,left:0,top:0,right:0};function RF(e,t,n,r,o,a,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,g=p,y=0;y<p;y+=1){var h=e.get(s[y].key)||mx;if(Math.floor(h[f]+h[d])>Math.floor(m+t)){g=y-1;break}}for(var v=0,b=p-1;b>=0;b-=1){var C=e.get(s[b].key)||mx;if(C[f]<m){v=b+1;break}}return v>g?[0,-1]:[v,g]},[e,t,r,o,a,m,c,s.map(function(p){return p.key}).join("_"),u])}function px(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var NF="TABS_DQ";function GP(e){return String(e).replace(/"/g,NF)}function Zy(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var qP=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),vx=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return et(o)==="object"&&!l.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),MF=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,p=e.rtl,g=e.removeAriaLabel,y=e.onTabClick,h=e.getPopupContainer,v=e.popupClassName,b=l.useState(!1),C=oe(b,2),S=C[0],x=C[1],w=l.useState(null),O=oe(w,2),$=O[0],E=O[1],I=c.icon,R=I===void 0?"More":I,M="".concat(r,"-more-popup"),N="".concat(n,"-dropdown"),P=$!==null?"".concat(M,"-").concat($):null,_=a==null?void 0:a.dropdownAriaLabel;function j(B,U){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:U,event:B})}var T=l.createElement(cs,{onClick:function(U){var G=U.key,q=U.domEvent;y(G,q),x(!1)},prefixCls:"".concat(N,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[$],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(function(B){var U=B.closable,G=B.disabled,q=B.closeIcon,te=B.key,Z=B.label,ee=Zy(U,q,f,G);return l.createElement(fu,{key:te,id:"".concat(M,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:G},l.createElement("span",null,Z),ee&&l.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),j(re,te)}},q||f.removeIcon||"×"))}));function z(B){for(var U=o.filter(function(ee){return!ee.disabled}),G=U.findIndex(function(ee){return ee.key===$})||0,q=U.length,te=0;te<q;te+=1){G=(G+B+q)%q;var Z=U[G];if(!Z.disabled){E(Z.key);return}}}function L(B){var U=B.which;if(!S){[Xe.DOWN,Xe.SPACE,Xe.ENTER].includes(U)&&(x(!0),B.preventDefault());return}switch(U){case Xe.UP:z(-1),B.preventDefault();break;case Xe.DOWN:z(1),B.preventDefault();break;case Xe.ESC:x(!1);break;case Xe.SPACE:case Xe.ENTER:$!==null&&y($,B);break}}l.useEffect(function(){var B=document.getElementById(P);B&&B.scrollIntoView&&B.scrollIntoView(!1)},[$]),l.useEffect(function(){S||E(null)},[S]);var k=D({},p?"marginRight":"marginLeft",m);o.length||(k.visibility="hidden",k.order=1);var H=V(D({},"".concat(N,"-rtl"),p)),K=i?null:l.createElement(oP,pe({prefixCls:N,overlay:T,visible:o.length?S:!1,onVisibleChange:x,overlayClassName:V(H,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},c),l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:k,"aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:L},R));return l.createElement("div",{className:V("".concat(n,"-nav-operations"),d),style:u,ref:t},K,l.createElement(qP,{prefixCls:n,locale:a,editable:f}))});const jF=l.memo(MF,function(e,t){return t.tabMoving});var TF=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.focus,i=t.tab,s=i.key,c=i.label,u=i.disabled,d=i.closeIcon,f=i.icon,m=t.closable,p=t.renderWrapper,g=t.removeAriaLabel,y=t.editable,h=t.onClick,v=t.onFocus,b=t.onBlur,C=t.onKeyDown,S=t.onMouseDown,x=t.onMouseUp,w=t.style,O=t.tabCount,$=t.currentPosition,E="".concat(n,"-tab"),I=Zy(m,d,y,u);function R(j){u||h(j)}function M(j){j.preventDefault(),j.stopPropagation(),y.onEdit("remove",{key:s,event:j})}var N=l.useMemo(function(){return f&&typeof c=="string"?l.createElement("span",null,c):c},[c,f]),P=l.useRef(null);l.useEffect(function(){a&&P.current&&P.current.focus()},[a]);var _=l.createElement("div",{key:s,"data-node-key":GP(s),className:V(E,D(D(D(D({},"".concat(E,"-with-remove"),I),"".concat(E,"-active"),o),"".concat(E,"-disabled"),u),"".concat(E,"-focus"),a)),style:w,onClick:R},l.createElement("div",{ref:P,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(E,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(T){T.stopPropagation(),R(T)},onKeyDown:C,onMouseDown:S,onMouseUp:x,onFocus:v,onBlur:b},a&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat($," of ").concat(O)),f&&l.createElement("span",{className:"".concat(E,"-icon")},f),c&&N),I&&l.createElement("button",{type:"button",role:"tab","aria-label":g||"remove",tabIndex:o?0:-1,className:"".concat(E,"-remove"),onClick:function(T){T.stopPropagation(),M(T)}},d||y.removeIcon||"×"));return p?p(_):_},_F=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,u=s.height,d=s.left,f=s.top;return Math.abs(c-r)<1?[c,u,d-n.left,f-n.top]:[r,o,i,a]},tl=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,u=s.height;if(Math.abs(c-o)<1)return[c,u]}return[o,i]},Zu=function(t,n){return t[n?0:1]},gx=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,i=e.activeKey,s=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,p=e.children,g=e.onTabClick,y=e.onTabScroll,h=e.indicator,v=l.useContext(zm),b=v.prefixCls,C=v.tabs,S=l.useRef(null),x=l.useRef(null),w=l.useRef(null),O=l.useRef(null),$=l.useRef(null),E=l.useRef(null),I=l.useRef(null),R=f==="top"||f==="bottom",M=ux(0,function(it,rt){R&&y&&y({direction:it>rt?"left":"right"})}),N=oe(M,2),P=N[0],_=N[1],j=ux(0,function(it,rt){!R&&y&&y({direction:it>rt?"top":"bottom"})}),T=oe(j,2),z=T[0],L=T[1],k=l.useState([0,0]),H=oe(k,2),K=H[0],B=H[1],U=l.useState([0,0]),G=oe(U,2),q=G[0],te=G[1],Z=l.useState([0,0]),ee=oe(Z,2),ue=ee[0],re=ee[1],X=l.useState([0,0]),ae=oe(X,2),ne=ae[0],J=ae[1],Y=PF(new Map),se=oe(Y,2),fe=se[0],$e=se[1],Ce=EF(C,fe,q[0]),ie=Zu(K,R),ge=Zu(q,R),de=Zu(ue,R),ve=Zu(ne,R),Re=Math.floor(ie)<Math.floor(ge+de),_e=Re?ie-ve:ie-de,Ue="".concat(b,"-nav-operations-hidden"),ke=0,De=0;R&&s?(ke=0,De=Math.max(0,ge-_e)):(ke=Math.min(0,_e-ge),De=0);function Ae(it){return it<ke?ke:it>De?De:it}var xe=l.useRef(null),ye=l.useState(),je=oe(ye,2),Pe=je[0],Be=je[1];function me(){Be(Date.now())}function Ie(){xe.current&&clearTimeout(xe.current)}IF(O,function(it,rt){function Ct(Mt,Je){Mt(function(ut){var xt=Ae(ut+Je);return xt})}return Re?(R?Ct(_,it):Ct(L,rt),Ie(),me(),!0):!1}),l.useEffect(function(){return Ie(),Pe&&(xe.current=setTimeout(function(){Be(0)},100)),Ie},[Pe]);var Te=RF(Ce,_e,R?P:z,ge,de,ve,W(W({},e),{},{tabs:C})),Ne=oe(Te,2),tt=Ne[0],st=Ne[1],Le=Gt(function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,rt=Ce.get(it)||{width:0,height:0,left:0,right:0,top:0};if(R){var Ct=P;s?rt.right<P?Ct=rt.right:rt.right+rt.width>P+_e&&(Ct=rt.right+rt.width-_e):rt.left<-P?Ct=-rt.left:rt.left+rt.width>-P+_e&&(Ct=-(rt.left+rt.width-_e)),L(0),_(Ae(Ct))}else{var Mt=z;rt.top<-z?Mt=-rt.top:rt.top+rt.height>-z+_e&&(Mt=-(rt.top+rt.height-_e)),_(0),L(Ae(Mt))}}),Ge=l.useState(),Qe=oe(Ge,2),Fe=Qe[0],nt=Qe[1],bt=l.useState(!1),le=oe(bt,2),ce=le[0],Se=le[1],he=C.filter(function(it){return!it.disabled}).map(function(it){return it.key}),Ee=function(rt){var Ct=he.indexOf(Fe||i),Mt=he.length,Je=(Ct+rt+Mt)%Mt,ut=he[Je];nt(ut)},Oe=function(rt,Ct){var Mt=he.indexOf(rt),Je=C.find(function(xt){return xt.key===rt}),ut=Zy(Je==null?void 0:Je.closable,Je==null?void 0:Je.closeIcon,u,Je==null?void 0:Je.disabled);ut&&(Ct.preventDefault(),Ct.stopPropagation(),u.onEdit("remove",{key:rt,event:Ct}),Mt===he.length-1?Ee(-1):Ee(1))},we=function(rt,Ct){Se(!0),Ct.button===1&&Oe(rt,Ct)},Me=function(rt){var Ct=rt.code,Mt=s&&R,Je=he[0],ut=he[he.length-1];switch(Ct){case"ArrowLeft":{R&&Ee(Mt?1:-1);break}case"ArrowRight":{R&&Ee(Mt?-1:1);break}case"ArrowUp":{rt.preventDefault(),R||Ee(-1);break}case"ArrowDown":{rt.preventDefault(),R||Ee(1);break}case"Home":{rt.preventDefault(),nt(Je);break}case"End":{rt.preventDefault(),nt(ut);break}case"Enter":case"Space":{rt.preventDefault(),g(Fe??i,rt);break}case"Backspace":case"Delete":{Oe(Fe,rt);break}}},ze={};R?ze[s?"marginRight":"marginLeft"]=m:ze.marginTop=m;var qe=C.map(function(it,rt){var Ct=it.key;return l.createElement(TF,{id:o,prefixCls:b,key:Ct,tab:it,style:rt===0?void 0:ze,closable:it.closable,editable:u,active:Ct===i,focus:Ct===Fe,renderWrapper:p,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:he.length,currentPosition:rt+1,onClick:function(Je){g(Ct,Je)},onKeyDown:Me,onFocus:function(){ce||nt(Ct),Le(Ct),me(),O.current&&(s||(O.current.scrollLeft=0),O.current.scrollTop=0)},onBlur:function(){nt(void 0)},onMouseDown:function(Je){return we(Ct,Je)},onMouseUp:function(){Se(!1)}})}),yt=function(){return $e(function(){var rt,Ct=new Map,Mt=(rt=$.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return C.forEach(function(Je){var ut,xt=Je.key,un=(ut=$.current)===null||ut===void 0?void 0:ut.querySelector('[data-node-key="'.concat(GP(xt),'"]'));if(un){var wn=_F(un,Mt),nr=oe(wn,4),rr=nr[0],Bn=nr[1],sr=nr[2],cr=nr[3];Ct.set(xt,{width:rr,height:Bn,left:sr,top:cr})}}),Ct})};l.useEffect(function(){yt()},[C.map(function(it){return it.key}).join("_")]);var Ye=UP(function(){var it=tl(S),rt=tl(x),Ct=tl(w);B([it[0]-rt[0]-Ct[0],it[1]-rt[1]-Ct[1]]);var Mt=tl(I);re(Mt);var Je=tl(E);J(Je);var ut=tl($);te([ut[0]-Mt[0],ut[1]-Mt[1]]),yt()}),Ke=C.slice(0,tt),ct=C.slice(st+1),Ot=[].concat(be(Ke),be(ct)),Nt=Ce.get(i),_t=wF({activeTabOffset:Nt,horizontal:R,indicator:h,rtl:s}),Wt=_t.style;l.useEffect(function(){Le()},[i,ke,De,px(Nt),px(Ce),R]),l.useEffect(function(){Ye()},[s]);var wt=!!Ot.length,kt="".concat(b,"-nav-wrap"),He,Ze,gt,mt;return R?s?(Ze=P>0,He=P!==De):(He=P<0,Ze=P!==ke):(gt=z<0,mt=z!==ke),l.createElement(Or,{onResize:Ye},l.createElement("div",{ref:pa(t,S),role:"tablist","aria-orientation":R?"horizontal":"vertical",className:V("".concat(b,"-nav"),n),style:r,onKeyDown:function(){me()}},l.createElement(vx,{ref:x,position:"left",extra:c,prefixCls:b}),l.createElement(Or,{onResize:Ye},l.createElement("div",{className:V(kt,D(D(D(D({},"".concat(kt,"-ping-left"),He),"".concat(kt,"-ping-right"),Ze),"".concat(kt,"-ping-top"),gt),"".concat(kt,"-ping-bottom"),mt)),ref:O},l.createElement(Or,{onResize:Ye},l.createElement("div",{ref:$,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(z,"px)"),transition:Pe?"none":void 0}},qe,l.createElement(qP,{ref:I,prefixCls:b,locale:d,editable:u,style:W(W({},qe.length===0?void 0:ze),{},{visibility:wt?"hidden":null})}),l.createElement("div",{className:V("".concat(b,"-ink-bar"),D({},"".concat(b,"-ink-bar-animated"),a.inkBar)),style:Wt}))))),l.createElement(jF,pe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:E,prefixCls:b,tabs:Ot,className:!wt&&Ue,tabMoving:!!Pe})),l.createElement(vx,{ref:w,position:"right",extra:c,prefixCls:b})))}),XP=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:V(n,i&&"".concat(n,"-active"),r),ref:t},c)}),zF=["renderTabBar"],LF=["label","key"],DF=function(t){var n=t.renderTabBar,r=ft(t,zF),o=l.useContext(zm),a=o.tabs;if(n){var i=W(W({},r),{},{panes:a.map(function(s){var c=s.label,u=s.key,d=ft(s,LF);return l.createElement(XP,pe({tab:c,key:u,tabKey:u},d))})});return n(i,gx)}return l.createElement(gx,r)},BF=["key","forceRender","style","className","destroyInactiveTabPane"],kF=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(zm),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:V("".concat(c,"-content-holder"))},l.createElement("div",{className:V("".concat(c,"-content"),"".concat(c,"-content-").concat(a),D({},"".concat(c,"-content-animated"),d))},u.map(function(m){var p=m.key,g=m.forceRender,y=m.style,h=m.className,v=m.destroyInactiveTabPane,b=ft(m,BF),C=p===r;return l.createElement(Nr,pe({key:p,visible:C,forceRender:g,removeOnLeave:!!(i||v),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,x){var w=S.style,O=S.className;return l.createElement(XP,pe({},b,{prefixCls:f,id:n,tabKey:p,animated:d,active:C,style:W(W({},y),w),className:V(h,O),ref:x}))})})))};function AF(){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=W({inkBar:!0},et(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var FF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],hx=0,HF=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,p=m===void 0?"top":m,g=e.tabBarGutter,y=e.tabBarStyle,h=e.tabBarExtraContent,v=e.locale,b=e.more,C=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,$=e.getPopupContainer,E=e.popupClassName,I=e.indicator,R=ft(e,FF),M=l.useMemo(function(){return(i||[]).filter(function(ne){return ne&&et(ne)==="object"&&"key"in ne})},[i]),N=s==="rtl",P=AF(f),_=l.useState(!1),j=oe(_,2),T=j[0],z=j[1];l.useEffect(function(){z(wm())},[]);var L=rn(function(){var ne;return(ne=M[0])===null||ne===void 0?void 0:ne.key},{value:c,defaultValue:u}),k=oe(L,2),H=k[0],K=k[1],B=l.useState(function(){return M.findIndex(function(ne){return ne.key===H})}),U=oe(B,2),G=U[0],q=U[1];l.useEffect(function(){var ne=M.findIndex(function(Y){return Y.key===H});if(ne===-1){var J;ne=Math.max(0,Math.min(G,M.length-1)),K((J=M[ne])===null||J===void 0?void 0:J.key)}q(ne)},[M.map(function(ne){return ne.key}).join("_"),H,G]);var te=rn(null,{value:n}),Z=oe(te,2),ee=Z[0],ue=Z[1];l.useEffect(function(){n||(ue("rc-tabs-".concat(hx)),hx+=1)},[]);function re(ne,J){w==null||w(ne,J);var Y=ne!==H;K(ne),Y&&(x==null||x(ne))}var X={id:ee,activeKey:H,animated:P,tabPosition:p,rtl:N,mobile:T},ae=W(W({},X),{},{editable:d,locale:v,more:b,tabBarGutter:g,onTabClick:re,onTabScroll:O,extra:h,style:y,panes:null,getPopupContainer:$,popupClassName:E,indicator:I});return l.createElement(zm.Provider,{value:{tabs:M,prefixCls:o}},l.createElement("div",pe({ref:t,id:n,className:V(o,"".concat(o,"-").concat(p),D(D(D({},"".concat(o,"-mobile"),T),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),N),a)},R),l.createElement(DF,pe({},ae,{renderTabBar:S})),l.createElement(kF,pe({destroyInactiveTabPane:C},X,{animated:P}))))});const VF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function WF(e,t={inkBar:!0,tabPane:!1}){let 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({},VF),{motionName:Ka(e,"switch")})),n}var KF=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 UF(e){return e.filter(t=>t)}function GF(e,t){if(e)return e.map(r=>{var o;const a=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:a})});const n=Fn(t).map(r=>{if(l.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,c=KF(i,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return UF(n)}const qF=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}`}}}}},[Ua(e,"slide-up"),Ua(e,"slide-down")]]},XF=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${A(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Jo(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:A(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:A(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${A(e.borderRadiusLG)} 0 0 ${A(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 ${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},YF=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Dt(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:`${A(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({},_o),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${A(e.paddingXXS)} ${A(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"}}})}})}},QF=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,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:`${A(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
321
|
+
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,
|
|
322
|
+
> 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:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:A(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${A(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:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},JF=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:i,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,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 ${A(e.borderRadius)} ${A(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${A(e.borderRadius)} ${A(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${A(e.borderRadius)} ${A(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${A(e.borderRadius)} 0 0 ${A(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},ZF=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,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}},zo(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:Jo(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},eH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=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:A(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:A(e.marginXS)},marginLeft:{_skip_check_:!0,value:A(a(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"}}}}},tH=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Dt(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:`${A(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},zo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ZF(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},zo(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"}}}}}},nH=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:a}=e,i=t||a,s=n||o,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-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}},rH=Tt("Tabs",e=>{const t=Et(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${A(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${A(e.horizontalItemGutter)}`});return[JF(t),eH(t),QF(t),YF(t),XF(t),tH(t),qF(t)]},nH),oH=()=>null;var aH=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 iH=l.forwardRef((e,t)=>{var n,r,o,a,i,s,c,u,d,f,m;const{type:p,className:g,rootClassName:y,size:h,onEdit:v,hideAdd:b,centered:C,addIcon:S,removeIcon:x,moreIcon:w,more:O,popupClassName:$,children:E,items:I,animated:R,style:M,indicatorSize:N,indicator:P,destroyInactiveTabPane:_,destroyOnHidden:j}=e,T=aH(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:z}=T,{direction:L,tabs:k,getPrefixCls:H,getPopupContainer:K}=l.useContext(ot),B=H("tabs",z),U=Vn(B),[G,q,te]=rH(B,U),Z=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:Z.current}));let ee;p==="editable-card"&&(ee={onEdit:(Y,{key:se,event:fe})=>{v==null||v(Y==="add"?fe:se,Y)},removeIcon:(n=x??(k==null?void 0:k.removeIcon))!==null&&n!==void 0?n:l.createElement(ri,null),addIcon:(S??(k==null?void 0:k.addIcon))||l.createElement(Vo,null),showAdd:b!==!0});const ue=H(),re=Wn(h),X=GF(I,E),ae=WF(B,R),ne=Object.assign(Object.assign({},k==null?void 0:k.style),M),J={align:(r=P==null?void 0:P.align)!==null&&r!==void 0?r:(o=k==null?void 0:k.indicator)===null||o===void 0?void 0:o.align,size:(c=(i=(a=P==null?void 0:P.size)!==null&&a!==void 0?a:N)!==null&&i!==void 0?i:(s=k==null?void 0:k.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:k==null?void 0:k.indicatorSize};return G(l.createElement(HF,Object.assign({ref:Z,direction:L,getPopupContainer:K},T,{items:X,className:V({[`${B}-${re}`]:re,[`${B}-card`]:["card","editable-card"].includes(p),[`${B}-editable-card`]:p==="editable-card",[`${B}-centered`]:C},k==null?void 0:k.className,g,y,q,te,U),popupClassName:V($,q,te,U),style:ne,editable:ee,more:Object.assign({icon:(m=(f=(d=(u=k==null?void 0:k.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:k==null?void 0:k.moreIcon)!==null&&f!==void 0?f:w)!==null&&m!==void 0?m:l.createElement(Yy,null),transitionName:`${ue}-slide-up`},O),prefixCls:B,animated:ae,indicator:J,destroyInactiveTabPane:j??_})))}),YP=iH;YP.TabPane=oH;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 QP=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=lH(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=l.useContext(ot),i=a("card",t),s=V(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},o,{className:s}))},sH=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${A(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)} 0 0`},Qo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},_o),{[`
|
|
323
|
+
> ${n}-typography,
|
|
324
|
+
> ${n}-typography-edit-content
|
|
325
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},cH=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
326
|
+
${A(o)} 0 0 0 ${n},
|
|
327
|
+
0 ${A(o)} 0 0 ${n},
|
|
328
|
+
${A(o)} ${A(o)} 0 0 ${n},
|
|
329
|
+
${A(o)} 0 0 0 ${n} inset,
|
|
330
|
+
0 ${A(o)} 0 0 ${n} inset;
|
|
331
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},uH=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${A(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)}`},Qo()),{"& > 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:A(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:A(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${A(e.lineWidth)} ${e.lineType} ${a}`}}})},dH=e=>Object.assign(Object.assign({margin:`${A(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Qo()),{"&-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},_o),"&-description":{color:e.colorTextDescription}}),fH=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${A(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${A(e.padding)} ${A(o)}`}}},mH=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},pH=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Dt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:sH(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)}`},[`${t}-grid`]:cH(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${A(e.borderRadiusLG)} ${A(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:uH(e),[`${t}-meta`]:dH(e)}),[`${t}-bordered`]:{border:`${A(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:`${A(e.borderRadiusLG)} ${A(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`]:fH(e),[`${t}-loading`]:mH(e),[`${t}-rtl`]:{direction:"rtl"}}},vH=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${A(r)}`,fontSize:a,[`> ${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"}}}}},gH=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}},hH=Tt("Card",e=>{const t=Et(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[pH(t),vH(t)]},gH);var yx=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 yH=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,o))}))},bH=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:p,type:g,cover:y,actions:h,tabList:v,children:b,activeTabKey:C,defaultActiveTabKey:S,tabBarExtraContent:x,hoverable:w,tabProps:O={},classNames:$,styles:E}=e,I=yx(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:R,direction:M,card:N}=l.useContext(ot),[P]=uu("card",m,f),_=Ce=>{var ie;(ie=e.onTabChange)===null||ie===void 0||ie.call(e,Ce)},j=Ce=>{var ie;return V((ie=N==null?void 0:N.classNames)===null||ie===void 0?void 0:ie[Ce],$==null?void 0:$[Ce])},T=Ce=>{var ie;return Object.assign(Object.assign({},(ie=N==null?void 0:N.styles)===null||ie===void 0?void 0:ie[Ce]),E==null?void 0:E[Ce])},z=l.useMemo(()=>{let Ce=!1;return l.Children.forEach(b,ie=>{(ie==null?void 0:ie.type)===QP&&(Ce=!0)}),Ce},[b]),L=R("card",n),[k,H,K]=hH(L),B=l.createElement(Hi,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),U=C!==void 0,G=Object.assign(Object.assign({},O),{[U?"activeKey":"defaultActiveKey"]:U?C:S,tabBarExtraContent:x});let q;const te=Wn(p),Z=!te||te==="default"?"large":te,ee=v?l.createElement(YP,Object.assign({size:Z},G,{className:`${L}-head-tabs`,onChange:_,items:v.map(Ce=>{var{tab:ie}=Ce,ge=yx(Ce,["tab"]);return Object.assign({label:ie},ge)})})):null;if(u||i||ee){const Ce=V(`${L}-head`,j("header")),ie=V(`${L}-head-title`,j("title")),ge=V(`${L}-extra`,j("extra")),de=Object.assign(Object.assign({},s),T("header"));q=l.createElement("div",{className:Ce,style:de},l.createElement("div",{className:`${L}-head-wrapper`},u&&l.createElement("div",{className:ie,style:T("title")},u),i&&l.createElement("div",{className:ge,style:T("extra")},i)),ee)}const ue=V(`${L}-cover`,j("cover")),re=y?l.createElement("div",{className:ue,style:T("cover")},y):null,X=V(`${L}-body`,j("body")),ae=Object.assign(Object.assign({},c),T("body")),ne=l.createElement("div",{className:X,style:ae},d?B:b),J=V(`${L}-actions`,j("actions")),Y=h!=null&&h.length?l.createElement(yH,{actionClasses:J,actionStyle:T("actions"),actions:h}):null,se=Qt(I,["onTabChange"]),fe=V(L,N==null?void 0:N.className,{[`${L}-loading`]:d,[`${L}-bordered`]:P!=="borderless",[`${L}-hoverable`]:w,[`${L}-contain-grid`]:z,[`${L}-contain-tabs`]:v==null?void 0:v.length,[`${L}-${te}`]:te,[`${L}-type-${g}`]:!!g,[`${L}-rtl`]:M==="rtl"},r,o,H,K),$e=Object.assign(Object.assign({},N==null?void 0:N.style),a);return k(l.createElement("div",Object.assign({ref:t},se,{className:fe,style:$e}),q,re,ne,Y))});var CH=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 SH=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=CH(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(ot),c=s("card",t),u=V(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?l.createElement("div",{className:`${c}-meta-title`},o):null,m=a?l.createElement("div",{className:`${c}-meta-description`},a):null,p=f||m?l.createElement("div",{className:`${c}-meta-detail`},f,m):null;return l.createElement("div",Object.assign({},i,{className:u}),d,p)},Oo=bH;Oo.Grid=QP;Oo.Meta=SH;function xH(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function p(){d&&clearTimeout(d)}function g(h){var v=h||{},b=v.upcomingOnly,C=b===void 0?!1:b;p(),f=!C}function y(){for(var h=arguments.length,v=new Array(h),b=0;b<h;b++)v[b]=arguments[b];var C=this,S=Date.now()-m;if(f)return;function x(){m=Date.now(),t.apply(C,v)}function w(){d=void 0}!s&&u&&!d&&x(),p(),u===void 0&&S>e?s?(m=Date.now(),a||(d=setTimeout(u?w:x,e))):x():a!==!0&&(d=setTimeout(u?w:x,u===void 0?e-S:e))}return y.cancel=g,y}function $H(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return xH(e,t,{debounceMode:a!==!1})}function _r(e,t){return e[t]}var wH=["children"];function JP(e,t){return"".concat(e,"-").concat(t)}function EH(e){return e&&e.type&&e.type.isTreeNode}function vu(e,t){return e??t}function Xl(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function ZP(e){function t(n){var r=Fn(n);return r.map(function(o){if(!EH(o))return an(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,s=i.children,c=ft(i,wH),u=W({key:a},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function av(e,t,n){var r=Xl(n),o=r._title,a=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,p){for(var g=JP(f?f.pos:"0",p),y=vu(m[a],g),h,v=0;v<o.length;v+=1){var b=o[v];if(m[b]!==void 0){h=m[b];break}}var C=Object.assign(Qt(m,[].concat(be(o),[a,i])),{title:h,key:y,parent:f,pos:g,children:null,data:m,isStart:[].concat(be(f?f.isStart:[]),[p===0]),isEnd:[].concat(be(f?f.isEnd:[]),[p===d.length-1])});return c.push(C),t===!0||s.has(y)?C.children=u(m[i]||[],C):C.children=[],C})}return u(e),c}function OH(e,t,n){var r={};et(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,a=o.childrenPropName,i=o.externalGetKey,s=o.fieldNames,c=Xl(s),u=c.key,d=c.children,f=a||d,m;i?typeof i=="string"?m=function(y){return y[i]}:typeof i=="function"&&(m=function(y){return i(y)}):m=function(y,h){return vu(y[u],h)};function p(g,y,h,v){var b=g?g[f]:e,C=g?JP(h.pos,y):"0",S=g?[].concat(be(v),[g]):[];if(g){var x=m(g,C),w={node:g,index:y,pos:C,key:x,parentPos:h.node?h.pos:null,level:h.level+1,nodes:S};t(w)}b&&b.forEach(function(O,$){p(O,$,{node:g,pos:C,level:h?h.level+1:-1},S)})}p(null)}function eb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),OH(e,function(p){var g=p.node,y=p.index,h=p.pos,v=p.key,b=p.parentPos,C=p.level,S=p.nodes,x={node:g,nodes:S,index:y,key:v,pos:h,level:C},w=vu(v,h);d[h]=x,f[w]=x,x.parent=d[b],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,m)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),o&&o(m),m}function ec(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=_r(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function _n(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,p=e.eventKey,g=W(W({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:p});return"props"in g||Object.defineProperty(g,"props",{get:function(){return an(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function eR(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function IH(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function PH(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var m=f.key,p=f.node,g=f.children,y=g===void 0?[]:g;o.has(m)&&!r(p)&&y.filter(function(h){return!r(h.node)}).forEach(function(h){o.add(h.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,p=f.node;if(!(r(p)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var g=!0,y=!1;(m.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var v=h.key,b=o.has(v);g&&!b&&(g=!1),!y&&(b||a.has(v))&&(y=!0)}),g&&o.add(m.key),y&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(eR(a,o))}}function RH(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var p=m.key,g=m.node,y=m.children,h=y===void 0?[]:y;!a.has(p)&&!i.has(p)&&!o(g)&&h.filter(function(v){return!o(v.node)}).forEach(function(v){a.delete(v.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var p=m.parent,g=m.node;if(!(o(g)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(p.key);return}var y=!0,h=!1;(p.children||[]).filter(function(v){return!o(v.node)}).forEach(function(v){var b=v.key,C=a.has(b);y&&!C&&(y=!1),!h&&(C||i.has(b))&&(h=!0)}),y||a.delete(p.key),h&&i.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(eR(i,a))}}function Nl(e,t,n,r){var o=[],a;r?a=r:a=IH;var i=new Set(e.filter(function(d){var f=!!_r(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,p=s.get(m);p||(p=new Set,s.set(m,p)),p.add(f),c=Math.max(c,m)}),an(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=PH(i,s,c,a):u=RH(i,t.halfCheckedKeys,s,c,a),u}const NH=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Dt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Dt(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({},Dt(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`]:Jo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${A(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:`${A(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}})},{[`
|
|
332
|
+
${n}:not(${n}-disabled),
|
|
333
|
+
${t}:not(${t}-disabled)
|
|
334
|
+
`]:{[`&: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}`}}},[`
|
|
335
|
+
${n}-checked:not(${n}-disabled),
|
|
336
|
+
${t}-checked:not(${t}-disabled)
|
|
337
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&: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}`,borderColor:`${e.colorPrimary}`}}}}},{[`${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 tR(e,t){const n=Et(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return NH(n)}const nR=Tt("Checkbox",(e,{prefixCls:t})=>[tR(t,e)]),rR=Q.createContext(null);var MH=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 jH=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,p=MH(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:y,checkbox:h}=l.useContext(ot),v=l.useContext(rR),{isFormItemInput:b}=l.useContext(lr),C=l.useContext(Ir),S=(n=(v==null?void 0:v.disabled)||m)!==null&&n!==void 0?n:C,x=l.useRef(p.value),w=l.useRef(null),O=er(t,w);l.useEffect(()=>{v==null||v.registerValue(p.value)},[]),l.useEffect(()=>{if(!f)return p.value!==x.current&&(v==null||v.cancelValue(x.current),v==null||v.registerValue(p.value),x.current=p.value),()=>v==null?void 0:v.cancelValue(p.value)},[p.value]),l.useEffect(()=>{var z;!((z=w.current)===null||z===void 0)&&z.input&&(w.current.input.indeterminate=s)},[s]);const $=g("checkbox",r),E=Vn($),[I,R,M]=nR($,E),N=Object.assign({},p);v&&!f&&(N.onChange=(...z)=>{p.onChange&&p.onChange.apply(p,z),v.toggleOption&&v.toggleOption({label:i,value:p.value})},N.name=v.name,N.checked=v.value.includes(p.value));const P=V(`${$}-wrapper`,{[`${$}-rtl`]:y==="rtl",[`${$}-wrapper-checked`]:N.checked,[`${$}-wrapper-disabled`]:S,[`${$}-wrapper-in-form-item`]:b},h==null?void 0:h.className,o,a,M,E,R),_=V({[`${$}-indeterminate`]:s},fm,R),[j,T]=PP(N.onClick);return I(l.createElement(tu,{component:"Checkbox",disabled:S},l.createElement("label",{className:P,style:Object.assign(Object.assign({},h==null?void 0:h.style),c),onMouseEnter:u,onMouseLeave:d,onClick:j},l.createElement(IP,Object.assign({},N,{onClick:T,prefixCls:$,className:_,disabled:S,ref:O})),i!=null&&l.createElement("span",{className:`${$}-label`},i))))},oR=l.forwardRef(jH);var TH=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 _H=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:c,onChange:u}=e,d=TH(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=l.useContext(ot),[p,g]=l.useState(d.value||n||[]),[y,h]=l.useState([]);l.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const v=l.useMemo(()=>o.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_),[o]),b=_=>{h(j=>j.filter(T=>T!==_))},C=_=>{h(j=>[].concat(be(j),[_]))},S=_=>{const j=p.indexOf(_.value),T=be(p);j===-1?T.push(_.value):T.splice(j,1),"value"in d||g(T),u==null||u(T.filter(z=>y.includes(z)).sort((z,L)=>{const k=v.findIndex(K=>K.value===z),H=v.findIndex(K=>K.value===L);return k-H}))},x=f("checkbox",a),w=`${x}-group`,O=Vn(x),[$,E,I]=nR(x,O),R=Qt(d,["value","disabled"]),M=o.length?v.map(_=>l.createElement(oR,{prefixCls:x,key:_.value.toString(),disabled:"disabled"in _?_.disabled:d.disabled,value:_.value,checked:p.includes(_.value),onChange:_.onChange,className:V(`${w}-item`,_.className),style:_.style,title:_.title,id:_.id,required:_.required},_.label)):r,N=l.useMemo(()=>({toggleOption:S,value:p,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:b}),[S,p,d.disabled,d.name,C,b]),P=V(w,{[`${w}-rtl`]:m==="rtl"},i,s,I,O,E);return $(l.createElement("div",Object.assign({className:P,style:c},R,{ref:t}),l.createElement(rR.Provider,{value:N},M)))}),Yl=oR;Yl.Group=_H;Yl.__ANT_CHECKBOX=!0;const aR=l.createContext({});var zH=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 bx(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const LH=["xs","sm","md","lg","xl","xxl"],tb=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ot),{gutter:o,wrap:a}=l.useContext(aR),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:m,children:p,flex:g,style:y}=e,h=zH(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",i),[b,C,S]=ID(v),x={};let w={};LH.forEach(E=>{let I={};const R=e[E];typeof R=="number"?I.span=R:typeof R=="object"&&(I=R||{}),delete h[E],w=Object.assign(Object.assign({},w),{[`${v}-${E}-${I.span}`]:I.span!==void 0,[`${v}-${E}-order-${I.order}`]:I.order||I.order===0,[`${v}-${E}-offset-${I.offset}`]:I.offset||I.offset===0,[`${v}-${E}-push-${I.push}`]:I.push||I.push===0,[`${v}-${E}-pull-${I.pull}`]:I.pull||I.pull===0,[`${v}-rtl`]:r==="rtl"}),I.flex&&(w[`${v}-${E}-flex`]=!0,x[`--${v}-${E}-flex`]=bx(I.flex))});const O=V(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${c}`]:c,[`${v}-offset-${u}`]:u,[`${v}-push-${d}`]:d,[`${v}-pull-${f}`]:f},m,w,C,S),$={};if(o!=null&&o[0]){const E=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;$.paddingLeft=E,$.paddingRight=E}return g&&($.flex=bx(g),a===!1&&!$.minWidth&&($.minWidth=0)),b(l.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},$),y),x),className:O,ref:t}),p))});function DH(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((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<qa.length;s++){const c=qa[s];if(o[c]&&a[c]!==void 0){n[i]=a[c];break}}else n[i]=a}),n}var BH=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 Cx(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<qa.length;a++){const i=qa[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return l.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const iR=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:c=0,wrap:u}=e,d=BH(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=l.useContext(ot),p=du(!0,null),g=Cx(o,p),y=Cx(r,p),h=f("row",n),[v,b,C]=OD(h),S=DH(c,p),x=V(h,{[`${h}-no-wrap`]:u===!1,[`${h}-${y}`]:y,[`${h}-${g}`]:g,[`${h}-rtl`]:m==="rtl"},a,b,C),w={};if(S!=null&&S[0]){const I=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;w.marginLeft=I,w.marginRight=I}const[O,$]=S;w.rowGap=$;const E=l.useMemo(()=>({gutter:[O,$],wrap:u}),[O,$,u]);return v(l.createElement(aR.Provider,{value:E},l.createElement("div",Object.assign({},d,{className:x,style:Object.assign(Object.assign({},w),i),ref:t}),s)))}),kH=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},AH=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Dt(e)),{borderBlockStart:`${A(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${A(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${A(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${A(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${A(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${A(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${A(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},FH=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),HH=Tt("Divider",e=>{const t=Et(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[AH(t),kH(t)]},FH,{unitless:{orientationMargin:!0}});var VH=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 WH={small:"sm",middle:"md"},iv=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=jn("divider"),{prefixCls:a,type:i="horizontal",orientation:s="center",orientationMargin:c,className:u,rootClassName:d,children:f,dashed:m,variant:p="solid",plain:g,style:y,size:h}=e,v=VH(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),b=t("divider",a),[C,S,x]=HH(b),w=Wn(h),O=WH[w],$=!!f,E=l.useMemo(()=>s==="left"?n==="rtl"?"end":"start":s==="right"?n==="rtl"?"start":"end":s,[n,s]),I=E==="start"&&c!=null,R=E==="end"&&c!=null,M=V(b,r,S,x,`${b}-${i}`,{[`${b}-with-text`]:$,[`${b}-with-text-${E}`]:$,[`${b}-dashed`]:!!m,[`${b}-${p}`]:p!=="solid",[`${b}-plain`]:!!g,[`${b}-rtl`]:n==="rtl",[`${b}-no-default-orientation-margin-start`]:I,[`${b}-no-default-orientation-margin-end`]:R,[`${b}-${O}`]:!!O},u,d),N=l.useMemo(()=>typeof c=="number"?c:/^\d+$/.test(c)?Number(c):c,[c]),P={marginInlineStart:I?N:void 0,marginInlineEnd:R?N:void 0};return C(l.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},o),y)},v,{role:"separator"}),f&&i!=="vertical"&&l.createElement("span",{className:`${b}-inner-text`,style:P},f)))};var KH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},UH=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:KH}))},GH=l.forwardRef(UH);function _h(){return typeof BigInt=="function"}function lR(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function wi(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function Lm(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function sR(e){var t=e.toLowerCase().split("e"),n=oe(t,2),r=n[0],o=n[1],a=o===void 0?"0":o,i=r.startsWith("-"),s=i?r.slice(1):r,c=s.split("."),u=oe(c,2),d=u[0],f=d===void 0?"0":d,m=u[1],p=m===void 0?"":m,g="".concat(f).concat(p).replace(/^0+/,"")||"0";return{decimal:p,digits:g,exponent:Number(a),integer:f,negative:i}}function qH(e){var t=e.decimal,n=e.digits,r=e.exponent,o=e.integer,a=e.negative;if(n==="0")return"0";var i=o.replace(/^0+/,"").length,s=(t.match(/^0*/)||[""])[0].length,c=i||-s,u=c+r,d="";return u<=0?d="0.".concat("0".repeat(-u)).concat(n):u>=n.length?d="".concat(n).concat("0".repeat(u-n.length)):d="".concat(n.slice(0,u),".").concat(n.slice(u)),"".concat(a?"-":"").concat(d)}function cR(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function fi(e){var t=String(e);return Lm(e)?cR(sR(t)):t.includes(".")&&nb(t)?t.length-t.indexOf(".")-1:0}function Dm(e){var t=String(e);if(Lm(e)){if(e>Number.MAX_SAFE_INTEGER)return String(_h()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(_h()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=sR(t),r=cR(n);t=r>100?qH(n):e.toFixed(r)}return wi(t).fullStr}function nb(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var XH=function(){function e(t){if(sn(this,e),D(this,"origin",""),D(this,"negative",void 0),D(this,"integer",void 0),D(this,"decimal",void 0),D(this,"decimalLen",void 0),D(this,"empty",void 0),D(this,"nan",void 0),lR(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Lm(n)&&(n=Number(n)),n=typeof n=="string"?n:Dm(n),nb(n)){var r=wi(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return cn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(a),s=n.alignDecimal(a),c=r(i,s).toString(),u=o(a),d=wi(c),f=d.negativeStr,m=d.trimStr,p="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(p.slice(0,-u),".").concat(p.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,a){return o+a},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,a){return o*a},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":wi("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),YH=function(){function e(t){if(sn(this,e),D(this,"origin",""),D(this,"number",void 0),D(this,"empty",void 0),lR(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return cn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(fi(this.number),fi(r));return new e(o.toFixed(a))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(fi(this.number),fi(r));return new e(o.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Lm(this.number)&&fi(this.number)>100?String(this.number):Dm(this.number):this.origin}}]),e}();function So(e){return _h()?new XH(e):new YH(e)}function jd(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=wi(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(a).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=So(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return jd(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function QH(e){return!!(e.addonBefore||e.addonAfter)}function JH(e){return!!(e.prefix||e.suffix||e.allowClear)}function Sx(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 $f(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Sx(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Sx(t,e,r),n(o);return}n(o)}}function rb(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 ob=Q.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,s=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,p=e.style,g=e.disabled,y=e.readOnly,h=e.focused,v=e.triggerFocus,b=e.allowClear,C=e.value,S=e.handleReset,x=e.hidden,w=e.classes,O=e.classNames,$=e.dataAttrs,E=e.styles,I=e.components,R=e.onClear,M=i??a,N=(I==null?void 0:I.affixWrapper)||"span",P=(I==null?void 0:I.groupWrapper)||"span",_=(I==null?void 0:I.wrapper)||"span",j=(I==null?void 0:I.groupAddon)||"span",T=l.useRef(null),z=function(J){var Y;(Y=T.current)!==null&&Y!==void 0&&Y.contains(J.target)&&(v==null||v())},L=JH(e),k=l.cloneElement(M,{value:C,className:V((n=M.props)===null||n===void 0?void 0:n.className,!L&&(O==null?void 0:O.variant))||null}),H=l.useRef(null);if(Q.useImperativeHandle(t,function(){return{nativeElement:H.current||T.current}}),L){var K=null;if(b){var B=!g&&!y&&C,U="".concat(s,"-clear-icon"),G=et(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";K=Q.createElement("button",{type:"button",tabIndex:-1,onClick:function(J){S==null||S(J),R==null||R()},onMouseDown:function(J){return J.preventDefault()},className:V(U,D(D({},"".concat(U,"-hidden"),!B),"".concat(U,"-has-suffix"),!!u))},G)}var q="".concat(s,"-affix-wrapper"),te=V(q,D(D(D(D(D({},"".concat(s,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),h),"".concat(q,"-readonly"),y),"".concat(q,"-input-with-clear-btn"),u&&b&&C),w==null?void 0:w.affixWrapper,O==null?void 0:O.affixWrapper,O==null?void 0:O.variant),Z=(u||b)&&Q.createElement("span",{className:V("".concat(s,"-suffix"),O==null?void 0:O.suffix),style:E==null?void 0:E.suffix},K,u);k=Q.createElement(N,pe({className:te,style:E==null?void 0:E.affixWrapper,onClick:z},$==null?void 0:$.affixWrapper,{ref:T}),c&&Q.createElement("span",{className:V("".concat(s,"-prefix"),O==null?void 0:O.prefix),style:E==null?void 0:E.prefix},c),k,Z)}if(QH(e)){var ee="".concat(s,"-group"),ue="".concat(ee,"-addon"),re="".concat(ee,"-wrapper"),X=V("".concat(s,"-wrapper"),ee,w==null?void 0:w.wrapper,O==null?void 0:O.wrapper),ae=V(re,D({},"".concat(re,"-disabled"),g),w==null?void 0:w.group,O==null?void 0:O.groupWrapper);k=Q.createElement(P,{className:ae,ref:H},Q.createElement(_,{className:X},d&&Q.createElement(j,{className:ue},d),k,f&&Q.createElement(j,{className:ue},f)))}return Q.cloneElement(k,{className:V((r=k.props)===null||r===void 0?void 0:r.className,m)||null,style:W(W({},(o=k.props)===null||o===void 0?void 0:o.style),p),hidden:x})}),ZH=["show"];function uR(e,t){return l.useMemo(function(){var n={};t&&(n.show=et(t)==="object"&&t.formatter?t.formatter:!!t),n=W(W({},n),e);var r=n,o=r.show,a=ft(r,ZH);return W(W({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var e9=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],t9=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,p=e.className,g=e.maxLength,y=e.suffix,h=e.showCount,v=e.count,b=e.type,C=b===void 0?"text":b,S=e.classes,x=e.classNames,w=e.styles,O=e.onCompositionStart,$=e.onCompositionEnd,E=ft(e,e9),I=l.useState(!1),R=oe(I,2),M=R[0],N=R[1],P=l.useRef(!1),_=l.useRef(!1),j=l.useRef(null),T=l.useRef(null),z=function(ve){j.current&&rb(j.current,ve)},L=rn(e.defaultValue,{value:e.value}),k=oe(L,2),H=k[0],K=k[1],B=H==null?"":String(H),U=l.useState(null),G=oe(U,2),q=G[0],te=G[1],Z=uR(v,h),ee=Z.max||g,ue=Z.strategy(B),re=!!ee&&ue>ee;l.useImperativeHandle(t,function(){var de;return{focus:z,blur:function(){var Re;(Re=j.current)===null||Re===void 0||Re.blur()},setSelectionRange:function(Re,_e,Ue){var ke;(ke=j.current)===null||ke===void 0||ke.setSelectionRange(Re,_e,Ue)},select:function(){var Re;(Re=j.current)===null||Re===void 0||Re.select()},input:j.current,nativeElement:((de=T.current)===null||de===void 0?void 0:de.nativeElement)||j.current}}),l.useEffect(function(){_.current&&(_.current=!1),N(function(de){return de&&f?!1:de})},[f]);var X=function(ve,Re,_e){var Ue=Re;if(!P.current&&Z.exceedFormatter&&Z.max&&Z.strategy(Re)>Z.max){if(Ue=Z.exceedFormatter(Re,{max:Z.max}),Re!==Ue){var ke,De;te([((ke=j.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((De=j.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(_e.source==="compositionEnd")return;K(Ue),j.current&&$f(j.current,ve,r,Ue)};l.useEffect(function(){if(q){var de;(de=j.current)===null||de===void 0||de.setSelectionRange.apply(de,be(q))}},[q]);var ae=function(ve){X(ve,ve.target.value,{source:"change"})},ne=function(ve){P.current=!1,X(ve,ve.currentTarget.value,{source:"compositionEnd"}),$==null||$(ve)},J=function(ve){i&&ve.key==="Enter"&&!_.current&&(_.current=!0,i(ve)),s==null||s(ve)},Y=function(ve){ve.key==="Enter"&&(_.current=!1),c==null||c(ve)},se=function(ve){N(!0),o==null||o(ve)},fe=function(ve){_.current&&(_.current=!1),N(!1),a==null||a(ve)},$e=function(ve){K(""),z(),j.current&&$f(j.current,ve,r)},Ce=re&&"".concat(d,"-out-of-range"),ie=function(){var ve=Qt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Q.createElement("input",pe({autoComplete:n},ve,{onChange:ae,onFocus:se,onBlur:fe,onKeyDown:J,onKeyUp:Y,className:V(d,D({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:w==null?void 0:w.input,ref:j,size:m,type:C,onCompositionStart:function(_e){P.current=!0,O==null||O(_e)},onCompositionEnd:ne}))},ge=function(){var ve=Number(ee)>0;if(y||Z.show){var Re=Z.showFormatter?Z.showFormatter({value:B,count:ue,maxLength:ee}):"".concat(ue).concat(ve?" / ".concat(ee):"");return Q.createElement(Q.Fragment,null,Z.show&&Q.createElement("span",{className:V("".concat(d,"-show-count-suffix"),D({},"".concat(d,"-show-count-has-suffix"),!!y),x==null?void 0:x.count),style:W({},w==null?void 0:w.count)},Re),y)}return null};return Q.createElement(ob,pe({},E,{prefixCls:d,className:V(p,Ce),handleReset:$e,value:B,focused:M,triggerFocus:z,suffix:ge(),disabled:f,classes:S,classNames:x,styles:w,ref:T}),ie())});function n9(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var a=r[o];return typeof a=="function"?a.bind(r):a}}):e}function r9(e,t){var n=l.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,a),u=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=a.length;if(a.startsWith(s))d=s.length;else if(a.endsWith(c))d=a.length-n.current.afterTxt.length;else{var f=s[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(p){an(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,o]}var o9=function(){var t=l.useState(!1),n=oe(t,2),r=n[0],o=n[1];return Pt(function(){o(wm())},[]),r},a9=200,i9=600;function l9(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(C,S){C.preventDefault(),d(),u.current(S);function x(){u.current(S),s.current=setTimeout(x,a9)}s.current=setTimeout(x,i9)};l.useEffect(function(){return function(){d(),c.current.forEach(function(b){return jt.cancel(b)})}},[]);var m=o9();if(m)return null;var p="".concat(t,"-handler"),g=V(p,"".concat(p,"-up"),D({},"".concat(p,"-up-disabled"),o)),y=V(p,"".concat(p,"-down"),D({},"".concat(p,"-down-disabled"),a)),h=function(){return c.current.push(jt(d))},v={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return l.createElement("div",{className:"".concat(p,"-wrap")},l.createElement("span",pe({},v,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",pe({},v,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:y}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function xx(e){var t=typeof e=="number"?Dm(e):wi(e).fullStr,n=t.includes(".");return n?wi(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const s9=function(){var e=l.useRef(0),t=function(){jt.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=jt(function(){n()})}};var c9=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],u9=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$x=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},wx=function(t){var n=So(t);return n.isInvalidate()?null:n},d9=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,p=e.upHandler,g=e.downHandler,y=e.keyboard,h=e.changeOnWheel,v=h===void 0?!1:h,b=e.controls,C=b===void 0?!0:b;e.classNames;var S=e.stringMode,x=e.parser,w=e.formatter,O=e.precision,$=e.decimalSeparator,E=e.onChange,I=e.onInput,R=e.onPressEnter,M=e.onStep,N=e.changeOnBlur,P=N===void 0?!0:N,_=e.domRef,j=ft(e,c9),T="".concat(n,"-input"),z=l.useRef(null),L=l.useState(!1),k=oe(L,2),H=k[0],K=k[1],B=l.useRef(!1),U=l.useRef(!1),G=l.useRef(!1),q=l.useState(function(){return So(d??u)}),te=oe(q,2),Z=te[0],ee=te[1];function ue(Le){d===void 0&&ee(Le)}var re=l.useCallback(function(Le,Ge){if(!Ge)return O>=0?O:Math.max(fi(Le),fi(c))},[O,c]),X=l.useCallback(function(Le){var Ge=String(Le);if(x)return x(Ge);var Qe=Ge;return $&&(Qe=Qe.replace($,".")),Qe.replace(/[^\w.-]+/g,"")},[x,$]),ae=l.useRef(""),ne=l.useCallback(function(Le,Ge){if(w)return w(Le,{userTyping:Ge,input:String(ae.current)});var Qe=typeof Le=="number"?Dm(Le):Le;if(!Ge){var Fe=re(Qe,Ge);if(nb(Qe)&&($||Fe>=0)){var nt=$||".";Qe=jd(Qe,nt,Fe)}}return Qe},[w,re,$]),J=l.useState(function(){var Le=u??d;return Z.isInvalidate()&&["string","number"].includes(et(Le))?Number.isNaN(Le)?"":Le:ne(Z.toString(),!1)}),Y=oe(J,2),se=Y[0],fe=Y[1];ae.current=se;function $e(Le,Ge){fe(ne(Le.isInvalidate()?Le.toString(!1):Le.toString(!Ge),Ge))}var Ce=l.useMemo(function(){return wx(i)},[i,O]),ie=l.useMemo(function(){return wx(a)},[a,O]),ge=l.useMemo(function(){return!Ce||!Z||Z.isInvalidate()?!1:Ce.lessEquals(Z)},[Ce,Z]),de=l.useMemo(function(){return!ie||!Z||Z.isInvalidate()?!1:Z.lessEquals(ie)},[ie,Z]),ve=r9(z.current,H),Re=oe(ve,2),_e=Re[0],Ue=Re[1],ke=function(Ge){return Ce&&!Ge.lessEquals(Ce)?Ce:ie&&!ie.lessEquals(Ge)?ie:null},De=function(Ge){return!ke(Ge)},Ae=function(Ge,Qe){var Fe=Ge,nt=De(Fe)||Fe.isEmpty();if(!Fe.isEmpty()&&!Qe&&(Fe=ke(Fe)||Fe,nt=!0),!m&&!f&&nt){var bt=Fe.toString(),le=re(bt,Qe);return le>=0&&(Fe=So(jd(bt,".",le)),De(Fe)||(Fe=So(jd(bt,".",le,!0)))),Fe.equals(Z)||(ue(Fe),E==null||E(Fe.isEmpty()?null:$x(S,Fe)),d===void 0&&$e(Fe,Qe)),Fe}return Z},xe=s9(),ye=function Le(Ge){if(_e(),ae.current=Ge,fe(Ge),!U.current){var Qe=X(Ge),Fe=So(Qe);Fe.isNaN()||Ae(Fe,!0)}I==null||I(Ge),xe(function(){var nt=Ge;x||(nt=Ge.replace(/。/g,".")),nt!==Ge&&Le(nt)})},je=function(){U.current=!0},Pe=function(){U.current=!1,ye(z.current.value)},Be=function(Ge){ye(Ge.target.value)},me=function(Ge){var Qe;if(!(Ge&&ge||!Ge&&de)){B.current=!1;var Fe=So(G.current?xx(c):c);Ge||(Fe=Fe.negate());var nt=(Z||So(0)).add(Fe.toString()),bt=Ae(nt,!1);M==null||M($x(S,bt),{offset:G.current?xx(c):c,type:Ge?"up":"down"}),(Qe=z.current)===null||Qe===void 0||Qe.focus()}},Ie=function(Ge){var Qe=So(X(se)),Fe;Qe.isNaN()?Fe=Ae(Z,Ge):Fe=Ae(Qe,Ge),d!==void 0?$e(Z,!1):Fe.isNaN()||$e(Fe,!1)},Te=function(){B.current=!0},Ne=function(Ge){var Qe=Ge.key,Fe=Ge.shiftKey;B.current=!0,G.current=Fe,Qe==="Enter"&&(U.current||(B.current=!1),Ie(!1),R==null||R(Ge)),y!==!1&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qe)&&(me(Qe==="Up"||Qe==="ArrowUp"),Ge.preventDefault())},tt=function(){B.current=!1,G.current=!1};l.useEffect(function(){if(v&&H){var Le=function(Fe){me(Fe.deltaY<0),Fe.preventDefault()},Ge=z.current;if(Ge)return Ge.addEventListener("wheel",Le,{passive:!1}),function(){return Ge.removeEventListener("wheel",Le)}}});var st=function(){P&&Ie(!1),K(!1),B.current=!1};return El(function(){Z.isInvalidate()||$e(Z,!1)},[O,w]),El(function(){var Le=So(d);ee(Le);var Ge=So(X(se));(!Le.equals(Ge)||!B.current||w)&&$e(Le,B.current)},[d]),El(function(){w&&Ue()},[se]),l.createElement("div",{ref:_,className:V(n,r,D(D(D(D(D({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Z.isNaN()),"".concat(n,"-out-of-range"),!Z.isInvalidate()&&!De(Z))),style:o,onFocus:function(){K(!0)},onBlur:st,onKeyDown:Ne,onKeyUp:tt,onCompositionStart:je,onCompositionEnd:Pe,onBeforeInput:Te},C&&l.createElement(l9,{prefixCls:n,upNode:p,downNode:g,upDisabled:ge,downDisabled:de,onStep:me}),l.createElement("div",{className:"".concat(T,"-wrap")},l.createElement("input",pe({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":Z.isInvalidate()?null:Z.toString(),step:c},j,{ref:er(z,t),className:T,value:se,onChange:Be,disabled:f,readOnly:m}))))}),f9=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,p=ft(e,u9),g=l.useRef(null),y=l.useRef(null),h=l.useRef(null),v=function(C){h.current&&rb(h.current,C)};return l.useImperativeHandle(t,function(){return n9(h.current,{focus:v,nativeElement:g.current.nativeElement||y.current})}),l.createElement(ob,{className:f,triggerFocus:v,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},l.createElement(d9,pe({prefixCls:a,disabled:n,ref:h,domRef:y,className:m==null?void 0:m.input},p)))});const m9=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},ds(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Lt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Ex=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},p9=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:p,colorIcon:g,motionDurationMid:y,handleHoverColor:h,handleOpacity:v,paddingInline:b,paddingBlock:C,handleBg:S,handleActiveBg:x,colorTextDisabled:w,borderRadiusSM:O,borderRadiusLG:$,controlWidth:E,handleBorderColor:I,filledHandleBg:R,lineHeightLG:M,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e)),pu(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),TP(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${A(n)} ${r} ${I}`}}})),DP(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${A(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),AP(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${A(n)} ${r} ${I}`}}})),zP(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:M,borderRadius:$,[`input${t}-input`]:{height:N(s).sub(N(n).mul(2)).equal(),padding:`${A(m)} ${A(p)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:O,[`input${t}-input`]:{height:N(c).sub(N(n).mul(2)).equal(),padding:`${A(f)} ${A(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},Dt(e)),VP(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:O}}},_P(e)),BP(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e)),{width:"100%",padding:`${A(C)} ${A(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit"}),FP(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
338
|
+
${t}-handler-up-inner,
|
|
339
|
+
${t}-handler-down-inner
|
|
340
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${A(n)} ${r} ${I}`,transition:`all ${y} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
|
|
341
|
+
${t}-handler-up-inner,
|
|
342
|
+
${t}-handler-down-inner
|
|
343
|
+
`]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Ai()),{color:g,transition:`all ${y} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Ex(e,"lg")),Ex(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
344
|
+
${t}-handler-up-disabled,
|
|
345
|
+
${t}-handler-down-disabled
|
|
346
|
+
`]:{cursor:"not-allowed"},[`
|
|
347
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
348
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
349
|
+
`]:{color:w}})}]},v9=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${A(n)} 0`}},pu(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${A(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${A(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},g9=Tt("InputNumber",e=>{const t=Et(e,us(e));return[p9(t),v9(t),ou(t)]},m9,{unitless:{handleOpacity:!0},resetFont:!1});var h9=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 dR=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ot),o=l.useRef(null);l.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:p,bordered:g,readOnly:y,status:h,controls:v,variant:b}=e,C=h9(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),x=Vn(S),[w,O,$]=g9(S,x),{compactSize:E,compactItemClassnames:I}=oi(S,r);let R=l.createElement(GH,{className:`${S}-handler-up-inner`}),M=l.createElement(ky,{className:`${S}-handler-down-inner`});const N=typeof v=="boolean"?v:void 0;typeof v=="object"&&(R=typeof v.upIcon>"u"?R:l.createElement("span",{className:`${S}-handler-up-inner`},v.upIcon),M=typeof v.downIcon>"u"?M:l.createElement("span",{className:`${S}-handler-down-inner`},v.downIcon));const{hasFeedback:P,status:_,isFormItemInput:j,feedbackIcon:T}=l.useContext(lr),z=cu(_,h),L=Wn(Z=>{var ee;return(ee=s??E)!==null&&ee!==void 0?ee:Z}),k=l.useContext(Ir),H=c??k,[K,B]=uu("inputNumber",b,g),U=P&&l.createElement(l.Fragment,null,T),G=V({[`${S}-lg`]:L==="large",[`${S}-sm`]:L==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:j},O),q=`${S}-group`,te=l.createElement(f9,Object.assign({ref:o,disabled:H,className:V($,x,a,i,I),upHandler:R,downHandler:M,prefixCls:S,readOnly:y,controls:N,prefix:m,suffix:U||p,addonBefore:d&&l.createElement(Ga,{form:!0,space:!0},d),addonAfter:f&&l.createElement(Ga,{form:!0,space:!0},f),classNames:{input:G,variant:V({[`${S}-${K}`]:B},Gl(S,z,P)),affixWrapper:V({[`${S}-affix-wrapper-sm`]:L==="small",[`${S}-affix-wrapper-lg`]:L==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:v===!1||H||y},O),wrapper:V({[`${q}-rtl`]:r==="rtl"},O),groupWrapper:V({[`${S}-group-wrapper-sm`]:L==="small",[`${S}-group-wrapper-lg`]:L==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${K}`]:B},Gl(`${S}-group-wrapper`,z,P),O)}},C));return w(te)}),Wr=dR,y9=e=>l.createElement(bo,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(dR,Object.assign({},e)));Wr._InternalPanelDoNotUseOrYouWillBeFired=y9;const fR=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Q.createElement(Fi,null)}),t};function mR(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function b9(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var C9=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=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:p,style:g,styles:y,rootClassName:h,onChange:v,classNames:b,variant:C,_skipAddonWarning:S}=e,x=C9(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:w,direction:O,allowClear:$,autoComplete:E,className:I,style:R,classNames:M,styles:N}=jn("input"),P=w("input",n),_=l.useRef(null),j=Vn(P),[T,z,L]=WP(P,h),[k]=KP(P,j),{compactSize:H,compactItemClassnames:K}=oi(P,O),B=Wn($e=>{var Ce;return(Ce=a??H)!==null&&Ce!==void 0?Ce:$e}),U=Q.useContext(Ir),G=i??U,{status:q,hasFeedback:te,feedbackIcon:Z}=l.useContext(lr),ee=cu(q,o),ue=b9(e)||!!te;l.useRef(ue);const re=mR(_,!0),X=$e=>{re(),s==null||s($e)},ae=$e=>{re(),c==null||c($e)},ne=$e=>{re(),v==null||v($e)},J=(te||u)&&Q.createElement(Q.Fragment,null,u,te&&Z),Y=fR(d??$),[se,fe]=uu("input",C,r);return T(k(Q.createElement(t9,Object.assign({ref:er(t,_),prefixCls:P,autoComplete:E},x,{disabled:G,onBlur:X,onFocus:ae,style:Object.assign(Object.assign({},R),g),styles:Object.assign(Object.assign({},N),y),suffix:J,allowClear:Y,className:V(p,h,L,j,K,I),onChange:ne,addonBefore:m&&Q.createElement(Ga,{form:!0,space:!0},m),addonAfter:f&&Q.createElement(Ga,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},b),M),{input:V({[`${P}-sm`]:B==="small",[`${P}-lg`]:B==="large",[`${P}-rtl`]:O==="rtl"},b==null?void 0:b.input,M.input,z),variant:V({[`${P}-${se}`]:fe},Gl(P,ee)),affixWrapper:V({[`${P}-affix-wrapper-sm`]:B==="small",[`${P}-affix-wrapper-lg`]:B==="large",[`${P}-affix-wrapper-rtl`]:O==="rtl"},z),wrapper:V({[`${P}-group-rtl`]:O==="rtl"},z),groupWrapper:V({[`${P}-group-wrapper-sm`]:B==="small",[`${P}-group-wrapper-lg`]:B==="large",[`${P}-group-wrapper-rtl`]:O==="rtl",[`${P}-group-wrapper-${se}`]:fe},Gl(`${P}-group-wrapper`,ee,te),z)})}))))}),S9={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},ab=Q.createContext({});var x9=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 $9=e=>Fn(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function w9(e,t,n){const r=l.useMemo(()=>t||$9(n),[t,n]);return l.useMemo(()=>r.map(a=>{var{span:i}=a,s=x9(a,["span"]);return i==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof i=="number"?i:qI(e,i)})}),[r,e])}var E9=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 O9(e,t){let n=[],r=[],o=!1,a=0;return e.filter(i=>i).forEach(i=>{const{filled:s}=i,c=E9(i,["filled"]);if(s){r.push(c),n.push(r),r=[],a=0;return}const u=t-a;a+=i.span||1,a>=t?(a>t?(o=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],a=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(i=>{const s=i.reduce((c,u)=>c+(u.span||1),0);if(s<t){const c=i[i.length-1];return c.span=t-(s-(c.span||1)),i}return i}),[n,o]}const I9=(e,t)=>{const[n,r]=l.useMemo(()=>O9(t,e),[t,e]);return n},P9=({children:e})=>e,ed=e=>e!=null,lv=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:a,labelStyle:i,contentStyle:s,bordered:c,label:u,content:d,colon:f,type:m,styles:p}=e,g=n,{classNames:y}=l.useContext(ab),h=Object.assign(Object.assign({},i),p==null?void 0:p.label),v=Object.assign(Object.assign({},s),p==null?void 0:p.content);return c?l.createElement(g,{colSpan:r,style:a,className:V(o,{[`${t}-item-${m}`]:m==="label"||m==="content",[y==null?void 0:y.label]:(y==null?void 0:y.label)&&m==="label",[y==null?void 0:y.content]:(y==null?void 0:y.content)&&m==="content"})},ed(u)&&l.createElement("span",{style:h},u),ed(d)&&l.createElement("span",{style:v},d)):l.createElement(g,{colSpan:r,style:a,className:V(`${t}-item`,o)},l.createElement("div",{className:`${t}-item-container`},ed(u)&&l.createElement("span",{style:h,className:V(`${t}-item-label`,y==null?void 0:y.label,{[`${t}-item-no-colon`]:!f})},u),ed(d)&&l.createElement("span",{style:v,className:V(`${t}-item-content`,y==null?void 0:y.content)},d)))};function sv(e,{colon:t,prefixCls:n,bordered:r},{component:o,type:a,showLabel:i,showContent:s,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:p=n,className:g,style:y,labelStyle:h,contentStyle:v,span:b=1,key:C,styles:S},x)=>typeof o=="string"?l.createElement(lv,{key:`${a}-${C||x}`,className:g,style:y,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),h),S==null?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),v),S==null?void 0:S.content)},span:b,colon:t,component:o,itemPrefixCls:p,bordered:r,label:i?f:null,content:s?m:null,type:a}):[l.createElement(lv,{key:`label-${C||x}`,className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),y),h),S==null?void 0:S.label),span:1,colon:t,component:o[0],itemPrefixCls:p,bordered:r,label:f,type:"label"}),l.createElement(lv,{key:`content-${C||x}`,className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),y),v),S==null?void 0:S.content),span:b*2-1,component:o[1],itemPrefixCls:p,bordered:r,content:m,type:"content"})])}const R9=e=>{const t=l.useContext(ab),{prefixCls:n,vertical:r,row:o,index:a,bordered:i}=e;return r?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${a}`,className:`${n}-row`},sv(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),l.createElement("tr",{key:`content-${a}`,className:`${n}-row`},sv(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):l.createElement("tr",{key:a,className:`${n}-row`},sv(o,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},N9=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${A(e.padding)} ${A(e.paddingLG)}`,borderInlineEnd:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${A(e.paddingSM)} ${A(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${A(e.paddingXS)} ${A(e.padding)}`}}}}}},M9=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:a,colonMarginLeft:i,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Dt(e)),N9(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},_o),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${A(i)} ${A(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},j9=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),T9=Tt("Descriptions",e=>{const t=Et(e,{});return M9(t)},j9);var _9=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 ui=e=>{const{prefixCls:t,title:n,extra:r,column:o,colon:a=!0,bordered:i,layout:s,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:p,contentStyle:g,styles:y,items:h,classNames:v}=e,b=_9(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:C,direction:S,className:x,style:w,classNames:O,styles:$}=jn("descriptions"),E=C("descriptions",t),I=du(),R=l.useMemo(()=>{var L;return typeof o=="number"?o:(L=qI(I,Object.assign(Object.assign({},S9),o)))!==null&&L!==void 0?L:3},[I,o]),M=w9(I,h,c),N=Wn(m),P=I9(R,M),[_,j,T]=T9(E),z=l.useMemo(()=>({labelStyle:p,contentStyle:g,styles:{content:Object.assign(Object.assign({},$.content),y==null?void 0:y.content),label:Object.assign(Object.assign({},$.label),y==null?void 0:y.label)},classNames:{label:V(O.label,v==null?void 0:v.label),content:V(O.content,v==null?void 0:v.content)}}),[p,g,y,v,O,$]);return _(l.createElement(ab.Provider,{value:z},l.createElement("div",Object.assign({className:V(E,x,O.root,v==null?void 0:v.root,{[`${E}-${N}`]:N&&N!=="default",[`${E}-bordered`]:!!i,[`${E}-rtl`]:S==="rtl"},u,d,j,T),style:Object.assign(Object.assign(Object.assign(Object.assign({},w),$.root),y==null?void 0:y.root),f)},b),(n||r)&&l.createElement("div",{className:V(`${E}-header`,O.header,v==null?void 0:v.header),style:Object.assign(Object.assign({},$.header),y==null?void 0:y.header)},n&&l.createElement("div",{className:V(`${E}-title`,O.title,v==null?void 0:v.title),style:Object.assign(Object.assign({},$.title),y==null?void 0:y.title)},n),r&&l.createElement("div",{className:V(`${E}-extra`,O.extra,v==null?void 0:v.extra),style:Object.assign(Object.assign({},$.extra),y==null?void 0:y.extra)},r)),l.createElement("div",{className:`${E}-view`},l.createElement("table",null,l.createElement("tbody",null,P.map((L,k)=>l.createElement(R9,{key:k,index:k,colon:a,prefixCls:E,vertical:s==="vertical",bordered:i,row:L}))))))))};ui.Item=P9;function Ox(e){return["small","middle","large"].includes(e)}function Ix(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const z9=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:a,fontSizeLG:i,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:a,borderRadius:u,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},ou(e,{focus:!1})]}},L9=Tt(["Space","Addon"],e=>[z9(e)]);var D9=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 B9=Q.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:a}=e,i=D9(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:c}=Q.useContext(ot),u=s("space-addon",a),[d,f,m]=L9(u),{compactItemClassnames:p,compactSize:g}=oi(u,c),y=V(u,f,p,m,{[`${u}-${g}`]:g},n);return d(Q.createElement("div",Object.assign({ref:t,className:y,style:o},i),r))}),pR=Q.createContext({latestIndex:0}),k9=pR.Provider,A9=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:a}=l.useContext(pR);return n==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:o},n),t<a&&r&&l.createElement("span",{className:`${e}-split`},r))},F9=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"}}}},H9=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}}}},V9=Tt("Space",e=>{const t=Et(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[F9(t),H9(t)]},()=>({}),{resetStyle:!1});var W9=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 K9=l.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:a,className:i,style:s,classNames:c,styles:u}=jn("space"),{size:d=a??"small",align:f,className:m,rootClassName:p,children:g,direction:y="horizontal",prefixCls:h,split:v,style:b,wrap:C=!1,classNames:S,styles:x}=e,w=W9(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,$]=Array.isArray(d)?d:[d,d],E=Ox($),I=Ox(O),R=Ix($),M=Ix(O),N=Fn(g,{keepEmpty:!0}),P=f===void 0&&y==="horizontal"?"center":f,_=r("space",h),[j,T,z]=V9(_),L=V(_,i,T,`${_}-${y}`,{[`${_}-rtl`]:o==="rtl",[`${_}-align-${P}`]:P,[`${_}-gap-row-${$}`]:E,[`${_}-gap-col-${O}`]:I},m,p,z),k=V(`${_}-item`,(n=S==null?void 0:S.item)!==null&&n!==void 0?n:c.item),H=Object.assign(Object.assign({},u.item),x==null?void 0:x.item),K=N.map((G,q)=>{const te=(G==null?void 0:G.key)||`${k}-${q}`;return l.createElement(A9,{className:k,key:te,index:q,split:v,style:H},G)}),B=l.useMemo(()=>({latestIndex:N.reduce((q,te,Z)=>te!=null?Z:q,0)}),[N]);if(N.length===0)return null;const U={};return C&&(U.flexWrap="wrap"),!I&&M&&(U.columnGap=O),!E&&R&&(U.rowGap=$),j(l.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},U),s),b)},w),l.createElement(k9,{value:B},K)))}),zr=K9;zr.Compact=d5;zr.Addon=B9;var U9=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 vR=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(ot),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:p,arrow:g,autoFocus:y,overlay:h,trigger:v,align:b,open:C,onOpenChange:S,placement:x,getPopupContainer:w,href:O,icon:$=l.createElement(Yy,null),title:E,buttonsRender:I=re=>re,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:P,destroyOnHidden:_,destroyPopupOnHide:j,dropdownRender:T,popupRender:z}=e,L=U9(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),k=n("dropdown",o),H=`${k}-button`,B={menu:p,arrow:g,autoFocus:y,align:b,disabled:s,trigger:s?[]:v,onOpenChange:S,getPopupContainer:w||t,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:P,destroyOnHidden:_,popupRender:z||T},{compactSize:U,compactItemClassnames:G}=oi(k,r),q=V(H,G,m);"destroyPopupOnHide"in e&&(B.destroyPopupOnHide=j),"overlay"in e&&(B.overlay=h),"open"in e&&(B.open=C),"placement"in e?B.placement=x:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=l.createElement(It,{type:a,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:O,title:E},f),Z=l.createElement(It,{type:a,danger:i,icon:$}),[ee,ue]=I([te,Z]);return l.createElement(zr.Compact,Object.assign({className:q,size:U,block:!0},L),ee,l.createElement(Tm,Object.assign({},B),ue))};vR.__ANT_BUTTON=!0;const ib=Tm;ib.Button=vR;function G9(e){return e==null?null:typeof e=="object"&&!l.isValidElement(e)?e:{title:e}}function wf(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const q9=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
350
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
351
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},X9=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${A(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Px=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Y9=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Dt(e)),X9(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Px(e,e.controlHeightSM)),"&-large":Object.assign({},Px(e,e.controlHeightLG))})}},Q9=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Dt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
352
|
+
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Ey,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},mi=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),J9=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
353
|
+
${t}-col-xl-24${n}-label`]:mi(e)}}},Z9=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
354
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},eV=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:mi(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},tV=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
355
|
+
${r}-col-24${n}-label,
|
|
356
|
+
${r}-col-xl-24${n}-label`]:mi(e)},[`@media (max-width: ${A(e.screenXSMax)})`]:[eV(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:mi(e)}}}],[`@media (max-width: ${A(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:mi(e)}}},[`@media (max-width: ${A(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:mi(e)}}},[`@media (max-width: ${A(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:mi(e)}}}}},nV=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),gR=(e,t)=>Et(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),lb=Tt("Form",(e,{rootPrefixCls:t})=>{const n=gR(e,t);return[Y9(n),Q9(n),q9(n),J9(n),Z9(n),tV(n),nu(n),Ey]},nV,{order:-1e3}),Rx=[];function cv(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const hR=({help:e,helpStatus:t,errors:n=Rx,warnings:r=Rx,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=l.useContext(jy),c=`${s}-item-explain`,u=Vn(s),[d,f,m]=lb(s,u),p=l.useMemo(()=>Kl(s),[s]),g=wf(n),y=wf(r),h=l.useMemo(()=>e!=null?[cv(e,"help",t)]:[].concat(be(g.map((C,S)=>cv(C,"error","error",S))),be(y.map((C,S)=>cv(C,"warning","warning",S)))),[e,t,g,y]),v=l.useMemo(()=>{const C={};return h.forEach(({key:S})=>{C[S]=(C[S]||0)+1}),h.map((S,x)=>Object.assign(Object.assign({},S),{key:C[S.key]>1?`${S.key}-fallback-${x}`:S.key}))},[h]),b={};return a&&(b.id=`${a}_help`),d(l.createElement(Nr,{motionDeadline:p.motionDeadline,motionName:`${s}-show-help`,visible:!!v.length,onVisibleChanged:i},C=>{const{className:S,style:x}=C;return l.createElement("div",Object.assign({},b,{className:V(c,S,m,u,o,f),style:x}),l.createElement(fy,Object.assign({keys:v},Kl(s),{motionName:`${s}-show-help-item`,component:!1}),w=>{const{key:O,error:$,errorStatus:E,className:I,style:R}=w;return l.createElement("div",{key:O,className:V(I,{[`${c}-${E}`]:E}),style:R},$)}))}))};var rV=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 oV=(e,t)=>{const n=l.useContext(Ir),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:c,style:u}=jn("form"),{prefixCls:d,className:f,rootClassName:m,size:p,disabled:g=n,form:y,colon:h,labelAlign:v,labelWrap:b,labelCol:C,wrapperCol:S,hideRequiredMark:x,layout:w="horizontal",scrollToFirstError:O,requiredMark:$,onFinishFailed:E,name:I,style:R,feedbackIcons:M,variant:N}=e,P=rV(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=Wn(p),j=l.useContext(W2),T=l.useMemo(()=>$!==void 0?$:x?!1:a!==void 0?a:!0,[x,$,a]),z=h??i,L=r("form",d),k=Vn(L),[H,K,B]=lb(L,k),U=V(L,`${L}-${w}`,{[`${L}-hide-required-mark`]:T===!1,[`${L}-rtl`]:o==="rtl",[`${L}-${_}`]:_},B,k,K,c,f,m),[G]=jP(y),{__INTERNAL__:q}=G;q.name=I;const te=l.useMemo(()=>({name:I,labelAlign:v,labelCol:C,labelWrap:b,wrapperCol:S,layout:w,colon:z,requiredMark:T,itemRef:q.itemRef,form:G,feedbackIcons:M}),[I,v,C,S,w,z,T,G,M]),Z=l.useRef(null);l.useImperativeHandle(t,()=>{var re;return Object.assign(Object.assign({},G),{nativeElement:(re=Z.current)===null||re===void 0?void 0:re.nativeElement})});const ee=(re,X)=>{if(re){let ae={block:"nearest"};typeof re=="object"&&(ae=Object.assign(Object.assign({},ae),re)),G.scrollToField(X,ae)}},ue=re=>{if(E==null||E(re),re.errorFields.length){const X=re.errorFields[0].name;if(O!==void 0){ee(O,X);return}s!==void 0&&ee(s,X)}};return H(l.createElement(sI.Provider,{value:N},l.createElement(sy,{disabled:g},l.createElement(ji.Provider,{value:_},l.createElement(iI,{validateMessages:j},l.createElement(fa.Provider,{value:te},l.createElement(lI,{status:!0},l.createElement(is,Object.assign({id:I},P,{name:I,onFinishFailed:ue,form:G,ref:Z,style:Object.assign(Object.assign({},u),R),className:U})))))))))},aV=l.forwardRef(oV);function iV(e){if(typeof e=="function")return e;const t=Fn(e);return t.length<=1?t[0]:t}const yR=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(lr);return{status:e,errors:t,warnings:n}};yR.Context=lr;function lV(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),a=l.useRef(!1);l.useEffect(()=>(a.current=!1,()=>{a.current=!0,jt.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=jt(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,i]}function sV(){const{itemRef:e}=l.useContext(fa),t=l.useRef({});function n(r,o){const a=o&&typeof o=="object"&&ti(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=er(e(r),a)),t.current.ref}return n}const cV=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},uV=rs(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=gR(e,t);return cV(n)});var dV=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 fV=24,mV=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:p,label:g}=e,y=`${t}-item`,h=l.useContext(fa),v=l.useMemo(()=>{let P=Object.assign({},o||h.wrapperCol||{});return g===null&&!r&&!o&&h.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const T=j?[j]:[],z=xr(h.labelCol,T),L=typeof z=="object"?z:{},k=xr(P,T),H=typeof k=="object"?k:{};"span"in L&&!("offset"in H)&&L.span<fV&&(P=ao(P,[].concat(T,["offset"]),L.span))}),P},[o,h.wrapperCol,h.labelCol,g,r]),b=V(`${y}-control`,v.className),C=l.useMemo(()=>{const{labelCol:P,wrapperCol:_}=h;return dV(h,["labelCol","wrapperCol"])},[h]),S=l.useRef(null),[x,w]=l.useState(0);Pt(()=>{u&&S.current?w(S.current.clientHeight):w(0)},[u]);const O=l.createElement("div",{className:`${y}-control-input`},l.createElement("div",{className:`${y}-control-input-content`},a)),$=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),E=m!==null||i.length||s.length?l.createElement(jy.Provider,{value:$},l.createElement(hR,{fieldId:f,errors:i,warnings:s,help:d,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:p})):null,I={};f&&(I.id=`${f}_extra`);const R=u?l.createElement("div",Object.assign({},I,{className:`${y}-extra`,ref:S}),u):null,M=E||R?l.createElement("div",{className:`${y}-additional`,style:m?{minHeight:m+x}:{}},E,R):null,N=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:O,errorList:E,extra:R}):l.createElement(l.Fragment,null,O,M);return l.createElement(fa.Provider,{value:C},l.createElement(tb,Object.assign({},v,{className:b}),N),l.createElement(uV,{prefixCls:t}))};var pV={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},vV=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:pV}))},gV=l.forwardRef(vV),hV=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 yV=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:c,vertical:u})=>{var d;const[f]=yo("Form"),{labelAlign:m,labelCol:p,labelWrap:g,colon:y}=l.useContext(fa);if(!t)return null;const h=r||p||{},v=o||m,b=`${e}-item-label`,C=V(b,v==="left"&&`${b}-left`,h.className,{[`${b}-wrap`]:!!g});let S=t;const x=a===!0||y!==!1&&a!==!1;x&&!u&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const O=G9(c);if(O){const{icon:N=l.createElement(gV,null)}=O,P=hV(O,["icon"]),_=l.createElement(Lo,Object.assign({},P),l.cloneElement(N,{className:`${e}-item-tooltip`,title:"",onClick:j=>{j.preventDefault()},tabIndex:null}));S=l.createElement(l.Fragment,null,S,_)}const $=s==="optional",E=typeof s=="function",I=s===!1;E?S=s(S,{required:!!i}):$&&!i&&(S=l.createElement(l.Fragment,null,S,l.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=vo.Form)===null||d===void 0?void 0:d.optional))));let R;I?R="hidden":($||E)&&(R="optional");const M=V({[`${e}-item-required`]:i,[`${e}-item-required-mark-${R}`]:R,[`${e}-item-no-colon`]:!x});return l.createElement(tb,Object.assign({},h,{className:C}),l.createElement("label",{htmlFor:n,className:M,title:typeof t=="string"?t:""},S))},bV={success:Qc,warning:as,error:Fi,validating:da};function bR({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:c}){const u=`${a}-item`,{feedbackIcons:d}=l.useContext(fa),f=MP(t,n,i,null,!!r,o),{isFormItemInput:m,status:p,hasFeedback:g,feedbackIcon:y,name:h}=l.useContext(lr),v=l.useMemo(()=>{var b;let C;if(r){const x=r!==!0&&r.icons||d,w=f&&((b=x==null?void 0:x({status:f,errors:t,warnings:n}))===null||b===void 0?void 0:b[f]),O=f?bV[f]:null;C=w!==!1&&O?l.createElement("span",{className:V(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},w||l.createElement(O,null)):null}const S={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:C,isFormItemInput:!0,name:c};return s&&(S.status=(f??p)||"",S.isFormItemInput=m,S.hasFeedback=!!(r??g),S.feedbackIcon=r!==void 0?S.feedbackIcon:y,S.name=c??h),S},[f,r,s,m,p]);return l.createElement(lr.Provider,{value:v},e)}var CV=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 SV(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:p,required:g,isRequired:y,onSubItemMetaChange:h,layout:v,name:b}=e,C=CV(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),S=`${t}-item`,{requiredMark:x,layout:w}=l.useContext(fa),O=v||w,$=O==="vertical",E=l.useRef(null),I=wf(i),R=wf(s),M=a!=null,N=!!(M||i.length||s.length),P=!!E.current&&eu(E.current),[_,j]=l.useState(null);Pt(()=>{if(N&&E.current){const H=getComputedStyle(E.current);j(Number.parseInt(H.marginBottom,10))}},[N,P]);const T=H=>{H||j(null)},L=((H=!1)=>{const K=H?I:u.errors,B=H?R:u.warnings;return MP(K,B,u,"",!!d,c)})(),k=V(S,n,r,{[`${S}-with-help`]:M||I.length||R.length,[`${S}-has-feedback`]:L&&d,[`${S}-has-success`]:L==="success",[`${S}-has-warning`]:L==="warning",[`${S}-has-error`]:L==="error",[`${S}-is-validating`]:L==="validating",[`${S}-hidden`]:f,[`${S}-${O}`]:O});return l.createElement("div",{className:k,style:o,ref:E},l.createElement(iR,Object.assign({className:`${S}-row`},Qt(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(yV,Object.assign({htmlFor:p},e,{requiredMark:x,required:g??y,prefixCls:t,vertical:$})),l.createElement(mV,Object.assign({},e,u,{errors:I,warnings:R,prefixCls:t,status:L,help:a,marginBottom:_,onErrorVisibleChanged:T}),l.createElement(aI.Provider,{value:h},l.createElement(bR,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:L,name:b},m)))),!!_&&l.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-_}}))}const xV="__SPLIT__";function $V(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const wV=l.memo(({children:e})=>e,(e,t)=>$V(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Nx(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function EV(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:p,hidden:g,help:y,layout:h}=e,{getPrefixCls:v}=l.useContext(ot),{name:b}=l.useContext(fa),C=iV(c),S=typeof C=="function",x=l.useContext(aI),{validateTrigger:w}=l.useContext(_i),O=p!==void 0?p:w,$=t!=null,E=v("form",a),I=Vn(E),[R,M,N]=lb(E,I);ni();const P=l.useContext(_c),_=l.useRef(null),[j,T]=lV({}),[z,L]=Ti(()=>Nx()),k=te=>{const Z=P==null?void 0:P.getKey(te.name);if(L(te.destroy?Nx():te,!0),n&&y!==!1&&x){let ee=te.name;if(te.destroy)ee=_.current||ee;else if(Z!==void 0){const[ue,re]=Z;ee=[ue].concat(be(re)),_.current=ee}x(te,ee)}},H=(te,Z)=>{T(ee=>{const ue=Object.assign({},ee),X=[].concat(be(te.name.slice(0,-1)),be(Z)).join(xV);return te.destroy?delete ue[X]:ue[X]=te,ue})},[K,B]=l.useMemo(()=>{const te=be(z.errors),Z=be(z.warnings);return Object.values(j).forEach(ee=>{te.push.apply(te,be(ee.errors||[])),Z.push.apply(Z,be(ee.warnings||[]))}),[te,Z]},[j,z.errors,z.warnings]),U=sV();function G(te,Z,ee){return n&&!g?l.createElement(bR,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:K,warnings:B,noStyle:!0,name:t},te):l.createElement(SV,Object.assign({key:"row"},e,{className:V(r,N,I,M),prefixCls:E,fieldId:Z,isRequired:ee,errors:K,warnings:B,meta:z,onSubItemMetaChange:H,layout:h,name:t}),te)}if(!$&&!S&&!o)return R(G(C));let q={};return typeof d=="string"?q.label=d:t&&(q.label=String(t)),f&&(q=Object.assign(Object.assign({},q),f)),R(l.createElement(Ny,Object.assign({},e,{messageVariables:q,trigger:m,validateTrigger:O,onMetaChange:k}),(te,Z,ee)=>{const ue=Zs(t).length&&Z?Z.name:[],re=NP(ue,b),X=u!==void 0?u:!!(s!=null&&s.some(J=>{if(J&&typeof J=="object"&&J.required&&!J.warningOnly)return!0;if(typeof J=="function"){const Y=J(ee);return(Y==null?void 0:Y.required)&&!(Y!=null&&Y.warningOnly)}return!1})),ae=Object.assign({},te);let ne=null;if(Array.isArray(C)&&$)ne=C;else if(!(S&&(!(i||o)||$))){if(!(o&&!S&&!$))if(l.isValidElement(C)){const J=Object.assign(Object.assign({},C.props),ae);if(J.id||(J.id=re),y||K.length>0||B.length>0||e.extra){const fe=[];(y||K.length>0)&&fe.push(`${re}_help`),e.extra&&fe.push(`${re}_extra`),J["aria-describedby"]=fe.join(" ")}K.length>0&&(J["aria-invalid"]="true"),X&&(J["aria-required"]="true"),To(C)&&(J.ref=U(ue,C)),new Set([].concat(be(Zs(m)),be(Zs(O)))).forEach(fe=>{J[fe]=(...$e)=>{var Ce,ie,ge,de,ve;(ge=ae[fe])===null||ge===void 0||(Ce=ge).call.apply(Ce,[ae].concat($e)),(ve=(de=C.props)[fe])===null||ve===void 0||(ie=ve).call.apply(ie,[de].concat($e))}});const se=[J["aria-required"],J["aria-invalid"],J["aria-describedby"]];ne=l.createElement(wV,{control:ae,update:C,childProps:se},Dn(C,J))}else S&&(i||o)&&!$?ne=C(ee):ne=C}return G(ne,re,X)}))}const CR=EV;CR.useStatus=yR;var OV=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 IV=e=>{var{prefixCls:t,children:n}=e,r=OV(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(ot),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(tI,Object.assign({},r),(s,c,u)=>l.createElement(jy.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function PV(){const{form:e}=l.useContext(fa);return e}const vt=aV;vt.Item=CR;vt.List=IV;vt.ErrorList=hR;vt.useForm=jP;vt.useFormInstance=PV;vt.useWatch=oI;vt.Provider=iI;vt.create=()=>{};var RV={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"},NV=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:RV}))},SR=l.forwardRef(NV);function Mx(e,t,n,r){var o=Cc.unstable_batchedUpdates?function(i){Cc.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const MV=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ot),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,c,u]=KP(i),d=V(a,u,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),f=l.useContext(lr),m=l.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(l.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(lr.Provider,{value:m},e.children)))},jV=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:e.colorText},[`${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}}}},TV=Tt(["Input","OTP"],e=>{const t=Et(e,us(e));return jV(t)},ds);var _V=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 zV=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:s}=e,c=_V(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=l.useContext(ot),d=u("otp"),f=typeof s=="string"?s:r,m=l.useRef(null);l.useImperativeHandle(t,()=>m.current);const p=h=>{o(i,h.target.value)},g=()=>{jt(()=>{var h;const v=(h=m.current)===null||h===void 0?void 0:h.input;document.activeElement===v&&v&&v.select()})},y=h=>{const{key:v,ctrlKey:b,metaKey:C}=h;v==="ArrowLeft"?a(i-1):v==="ArrowRight"?a(i+1):v==="z"&&(b||C)?h.preventDefault():v==="Backspace"&&!r&&a(i-1),g()};return l.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&l.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),l.createElement(gu,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},c,{ref:m,value:r,onInput:p,onFocus:g,onKeyDown:y,onMouseDown:g,onMouseUp:g,className:V(n,{[`${d}-mask-input`]:s})})))});var LV=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 td(e){return(e||"").split("")}const DV=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?l.createElement("span",{className:`${n}-separator`},o):null},BV=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:p,mask:g,type:y,onInput:h,inputMode:v}=e,b=LV(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:S}=l.useContext(ot),x=C("otp",n),w=Jn(b,{aria:!0,data:!0,attr:!0}),[O,$,E]=TV(x),I=Wn(U=>o??U),R=l.useContext(lr),M=cu(R.status,m),N=l.useMemo(()=>Object.assign(Object.assign({},R),{status:M,hasFeedback:!1,feedbackIcon:null}),[R,M]),P=l.useRef(null),_=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var U;(U=_.current[0])===null||U===void 0||U.focus()},blur:()=>{var U;for(let G=0;G<r;G+=1)(U=_.current[G])===null||U===void 0||U.blur()},nativeElement:P.current}));const j=U=>c?c(U):U,[T,z]=l.useState(()=>td(j(a||"")));l.useEffect(()=>{i!==void 0&&z(td(i))},[i]);const L=Gt(U=>{z(U),h&&h(U),s&&U.length===r&&U.every(G=>G)&&U.some((G,q)=>T[q]!==G)&&s(U.join(""))}),k=Gt((U,G)=>{let q=be(T);for(let Z=0;Z<U;Z+=1)q[Z]||(q[Z]="");G.length<=1?q[U]=G:q=q.slice(0,U).concat(td(G)),q=q.slice(0,r);for(let Z=q.length-1;Z>=0&&!q[Z];Z-=1)q.pop();const te=j(q.map(Z=>Z||" ").join(""));return q=td(te).map((Z,ee)=>Z===" "&&!q[ee]?q[ee]:Z),q}),H=(U,G)=>{var q;const te=k(U,G),Z=Math.min(U+G.length,r-1);Z!==U&&te[U]!==void 0&&((q=_.current[Z])===null||q===void 0||q.focus()),L(te)},K=U=>{var G;(G=_.current[U])===null||G===void 0||G.focus()},B={variant:d,disabled:f,status:M,mask:g,type:y,inputMode:v};return O(l.createElement("div",Object.assign({},w,{ref:P,className:V(x,{[`${x}-sm`]:I==="small",[`${x}-lg`]:I==="large",[`${x}-rtl`]:S==="rtl"},E,$),role:"group"}),l.createElement(lr.Provider,{value:N},Array.from({length:r}).map((U,G)=>{const q=`otp-${G}`,te=T[G]||"";return l.createElement(l.Fragment,{key:q},l.createElement(zV,Object.assign({ref:Z=>{_.current[G]=Z},index:G,size:I,htmlSize:1,className:`${x}-input`,onChange:H,value:te,onActiveChange:K,autoFocus:G===0&&p},B)),G<r-1&&l.createElement(DV,{separator:u,index:G,prefixCls:x}))}))))});var kV={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"},AV=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:kV}))},FV=l.forwardRef(AV),HV=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 VV=e=>e?l.createElement(SR,null):l.createElement(FV,null),WV={click:"onClick",hover:"onMouseOver"},KV=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=VV,suffix:i}=e,s=l.useContext(Ir),c=n??s,u=typeof o=="object"&&o.visible!==void 0,[d,f]=l.useState(()=>u?o.visible:!1),m=l.useRef(null);l.useEffect(()=>{u&&f(o.visible)},[u,o]);const p=mR(m),g=()=>{var R;if(c)return;d&&p();const M=!d;f(M),typeof o=="object"&&((R=o.onVisibleChange)===null||R===void 0||R.call(o,M))},y=R=>{const M=WV[r]||"",N=a(d),P={[M]:g,className:`${R}-icon`,key:"passwordIcon",onMouseDown:_=>{_.preventDefault()},onMouseUp:_=>{_.preventDefault()}};return l.cloneElement(l.isValidElement(N)?N:l.createElement("span",null,N),P)},{className:h,prefixCls:v,inputPrefixCls:b,size:C}=e,S=HV(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=l.useContext(ot),w=x("input",b),O=x("input-password",v),$=o&&y(O),E=V(O,h,{[`${O}-${C}`]:!!C}),I=Object.assign(Object.assign({},Qt(S,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:w,suffix:l.createElement(l.Fragment,null,$,i)});return C&&(I.size=C),l.createElement(gu,Object.assign({ref:er(t,m)},I))});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};const GV=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:p,onCompositionEnd:g,variant:y,onPressEnter:h}=e,v=UV(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:b,direction:C}=l.useContext(ot),S=l.useRef(!1),x=b("input-search",n),w=b("input",r),{compactSize:O}=oi(x,C),$=Wn(B=>{var U;return(U=a??O)!==null&&U!==void 0?U:B}),E=l.useRef(null),I=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m==null||m(B)},R=B=>{var U;document.activeElement===((U=E.current)===null||U===void 0?void 0:U.input)&&B.preventDefault()},M=B=>{var U,G;f&&f((G=(U=E.current)===null||U===void 0?void 0:U.input)===null||G===void 0?void 0:G.value,B,{source:"input"})},N=B=>{S.current||u||(h==null||h(B),M(B))},P=typeof s=="boolean"?l.createElement(Pm,null):null,_=`${x}-button`;let j;const T=s||{},z=T.type&&T.type.__ANT_BUTTON===!0;z||T.type==="button"?j=Dn(T,Object.assign({onMouseDown:R,onClick:B=>{var U,G;(G=(U=T==null?void 0:T.props)===null||U===void 0?void 0:U.onClick)===null||G===void 0||G.call(U,B),M(B)},key:"enterButton"},z?{className:_,size:$}:{})):j=l.createElement(It,{className:_,color:s?"primary":"default",size:$,disabled:d,key:"enterButton",onMouseDown:R,onClick:M,loading:u,icon:P,variant:y==="borderless"||y==="filled"||y==="underlined"?"text":s?"solid":void 0},s),c&&(j=[j,Dn(c,{key:"addonAfter"})]);const L=V(x,{[`${x}-rtl`]:C==="rtl",[`${x}-${$}`]:!!$,[`${x}-with-button`]:!!s},o),k=B=>{S.current=!0,p==null||p(B)},H=B=>{S.current=!1,g==null||g(B)},K=Object.assign(Object.assign({},v),{className:L,prefixCls:w,type:"search",size:$,variant:y,onPressEnter:N,onCompositionStart:k,onCompositionEnd:H,addonAfter:j,suffix:i,onChange:I,disabled:d,_skipAddonWarning:!0});return l.createElement(gu,Object.assign({ref:er(E,t)},K))});var qV=`
|
|
357
|
+
min-height:0 !important;
|
|
358
|
+
max-height:none !important;
|
|
359
|
+
height:0 !important;
|
|
360
|
+
visibility:hidden !important;
|
|
361
|
+
overflow:hidden !important;
|
|
362
|
+
position:absolute !important;
|
|
363
|
+
z-index:-1000 !important;
|
|
364
|
+
top:0 !important;
|
|
365
|
+
right:0 !important;
|
|
366
|
+
pointer-events: none !important;
|
|
367
|
+
`,XV=["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"],uv={},Hr;function YV(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&&uv[n])return uv[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=XV.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(uv[n]=c),c}function QV(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;Hr||(Hr=document.createElement("textarea"),Hr.setAttribute("tab-index","-1"),Hr.setAttribute("aria-hidden","true"),Hr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Hr)),e.getAttribute("wrap")?Hr.setAttribute("wrap",e.getAttribute("wrap")):Hr.removeAttribute("wrap");var o=YV(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,c=o.sizingStyle;Hr.setAttribute("style","".concat(c,";").concat(qV)),Hr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Hr.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){Hr.value=" ";var p=Hr.scrollHeight-a;n!==null&&(u=p*n,s==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=p*r,s==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var g={height:m,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var JV=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],dv=0,fv=1,mv=2,ZV=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=ft(n,JV),p=rn(o,{value:a,postState:function(B){return B??""}}),g=oe(p,2),y=g[0],h=g[1],v=function(B){h(B.target.value),f==null||f(B)},b=l.useRef();l.useImperativeHandle(t,function(){return{textArea:b.current}});var C=l.useMemo(function(){return i&&et(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=oe(C,2),x=S[0],w=S[1],O=!!i,$=l.useState(mv),E=oe($,2),I=E[0],R=E[1],M=l.useState(),N=oe(M,2),P=N[0],_=N[1],j=function(){R(dv)};Pt(function(){O&&j()},[a,x,w,O]),Pt(function(){if(I===dv)R(fv);else if(I===fv){var K=QV(b.current,!1,x,w);R(mv),_(K)}},[I]);var T=l.useRef(),z=function(){jt.cancel(T.current)},L=function(B){I===mv&&(s==null||s(B),i&&(z(),T.current=jt(function(){j()})))};l.useEffect(function(){return z},[]);var k=O?P:null,H=W(W({},u),k);return(I===dv||I===fv)&&(H.overflowY="hidden",H.overflowX="hidden"),l.createElement(Or,{onResize:L,disabled:!(i||s)},l.createElement("textarea",pe({},m,{ref:b,style:H,className:V(r,c,D({},"".concat(r,"-disabled"),d)),disabled:d,value:y,onChange:v})))}),eW=["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"],tW=Q.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,p=e.prefixCls,g=p===void 0?"rc-textarea":p,y=e.showCount,h=e.count,v=e.className,b=e.style,C=e.disabled,S=e.hidden,x=e.classNames,w=e.styles,O=e.onResize,$=e.onClear,E=e.onPressEnter,I=e.readOnly,R=e.autoSize,M=e.onKeyDown,N=ft(e,eW),P=rn(r,{value:o,defaultValue:r}),_=oe(P,2),j=_[0],T=_[1],z=j==null?"":String(j),L=Q.useState(!1),k=oe(L,2),H=k[0],K=k[1],B=Q.useRef(!1),U=Q.useState(null),G=oe(U,2),q=G[0],te=G[1],Z=l.useRef(null),ee=l.useRef(null),ue=function(){var Pe;return(Pe=ee.current)===null||Pe===void 0?void 0:Pe.textArea},re=function(){ue().focus()};l.useImperativeHandle(t,function(){var je;return{resizableTextArea:ee.current,focus:re,blur:function(){ue().blur()},nativeElement:((je=Z.current)===null||je===void 0?void 0:je.nativeElement)||ue()}}),l.useEffect(function(){K(function(je){return!C&&je})},[C]);var X=Q.useState(null),ae=oe(X,2),ne=ae[0],J=ae[1];Q.useEffect(function(){if(ne){var je;(je=ue()).setSelectionRange.apply(je,be(ne))}},[ne]);var Y=uR(h,y),se=(n=Y.max)!==null&&n!==void 0?n:u,fe=Number(se)>0,$e=Y.strategy(z),Ce=!!se&&$e>se,ie=function(Pe,Be){var me=Be;!B.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Be)>Y.max&&(me=Y.exceedFormatter(Be,{max:Y.max}),Be!==me&&J([ue().selectionStart||0,ue().selectionEnd||0])),T(me),$f(Pe.currentTarget,Pe,s,me)},ge=function(Pe){B.current=!0,d==null||d(Pe)},de=function(Pe){B.current=!1,ie(Pe,Pe.currentTarget.value),f==null||f(Pe)},ve=function(Pe){ie(Pe,Pe.target.value)},Re=function(Pe){Pe.key==="Enter"&&E&&E(Pe),M==null||M(Pe)},_e=function(Pe){K(!0),a==null||a(Pe)},Ue=function(Pe){K(!1),i==null||i(Pe)},ke=function(Pe){T(""),re(),$f(ue(),Pe,s)},De=m,Ae;Y.show&&(Y.showFormatter?Ae=Y.showFormatter({value:z,count:$e,maxLength:se}):Ae="".concat($e).concat(fe?" / ".concat(se):""),De=Q.createElement(Q.Fragment,null,De,Q.createElement("span",{className:V("".concat(g,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},Ae)));var xe=function(Pe){var Be;O==null||O(Pe),(Be=ue())!==null&&Be!==void 0&&Be.style.height&&te(!0)},ye=!R&&!y&&!c;return Q.createElement(ob,{ref:Z,value:z,allowClear:c,handleReset:ke,suffix:De,prefixCls:g,classNames:W(W({},x),{},{affixWrapper:V(x==null?void 0:x.affixWrapper,D(D({},"".concat(g,"-show-count"),y),"".concat(g,"-textarea-allow-clear"),c))}),disabled:C,focused:H,className:V(v,Ce&&"".concat(g,"-out-of-range")),style:W(W({},b),q&&!ye?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ae=="string"?Ae:void 0}},hidden:S,readOnly:I,onClear:$},Q.createElement(ZV,pe({},N,{autoSize:R,maxLength:u,onKeyDown:Re,onChange:ve,onFocus:_e,onBlur:Ue,onCompositionStart:ge,onCompositionEnd:de,className:V(x==null?void 0:x.textarea),style:W(W({},w==null?void 0:w.textarea),{},{resize:b==null?void 0:b.resize}),disabled:C,prefixCls:g,onResize:xe,ref:ee,readOnly:I})))});const nW=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"}},[`
|
|
368
|
+
&-allow-clear > ${t},
|
|
369
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
370
|
+
`]:{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}}}}}},rW=Tt(["Input","TextArea"],e=>{const t=Et(e,us(e));return nW(t)},ds,{resetFont:!1});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};const xR=l.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:p,variant:g,showCount:y,onMouseDown:h,onResize:v}=e,b=oW(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:S,allowClear:x,autoComplete:w,className:O,style:$,classNames:E,styles:I}=jn("textArea"),R=l.useContext(Ir),M=i??R,{status:N,hasFeedback:P,feedbackIcon:_}=l.useContext(lr),j=cu(N,s),T=l.useRef(null);l.useImperativeHandle(t,()=>{var Y;return{resizableTextArea:(Y=T.current)===null||Y===void 0?void 0:Y.resizableTextArea,focus:se=>{var fe,$e;rb(($e=(fe=T.current)===null||fe===void 0?void 0:fe.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,se)},blur:()=>{var se;return(se=T.current)===null||se===void 0?void 0:se.blur()}}});const z=C("input",r),L=Vn(z),[k,H,K]=WP(z,d),[B]=rW(z,L),{compactSize:U,compactItemClassnames:G}=oi(z,S),q=Wn(Y=>{var se;return(se=a??U)!==null&&se!==void 0?se:Y}),[te,Z]=uu("textArea",g,o),ee=fR(c??x),[ue,re]=l.useState(!1),[X,ae]=l.useState(!1),ne=Y=>{re(!0),h==null||h(Y);const se=()=>{re(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},J=Y=>{var se,fe;if(v==null||v(Y),ue&&typeof getComputedStyle=="function"){const $e=(fe=(se=T.current)===null||se===void 0?void 0:se.nativeElement)===null||fe===void 0?void 0:fe.querySelector("textarea");$e&&getComputedStyle($e).resize==="both"&&ae(!0)}};return k(B(l.createElement(tW,Object.assign({autoComplete:w},b,{style:Object.assign(Object.assign({},$),m),styles:Object.assign(Object.assign({},I),p),disabled:M,allowClear:ee,className:V(K,L,f,d,G,O,X&&`${z}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),E),{textarea:V({[`${z}-sm`]:q==="small",[`${z}-lg`]:q==="large"},H,u==null?void 0:u.textarea,E.textarea,ue&&`${z}-mouse-active`),variant:V({[`${z}-${te}`]:Z},Gl(z,j)),affixWrapper:V(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:S==="rtl",[`${z}-affix-wrapper-sm`]:q==="small",[`${z}-affix-wrapper-lg`]:q==="large",[`${z}-textarea-show-count`]:y||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:z,suffix:P&&l.createElement("span",{className:`${z}-textarea-suffix`},_),showCount:y,ref:T,onResize:J,onMouseDown:ne}))))}),nn=gu;nn.Group=MV;nn.Search=GV;nn.TextArea=xR;nn.Password=KV;nn.OTP=BV;function aW(e,t,n){return typeof n=="boolean"?n:e.length?!0:Fn(t).some(o=>o.type===CP)}var $R=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 Bm({suffixCls:e,tagName:t,displayName:n}){return r=>l.forwardRef((a,i)=>l.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},a)))}const sb=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=$R(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(ot),c=s("layout",n),[u,d,f]=bP(c),m=r?`${c}-${r}`:c;return u(l.createElement(a,Object.assign({className:V(n||m,o,d,f),ref:t},i)))}),iW=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(ot),[r,o]=l.useState([]),{prefixCls:a,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,m=$R(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Qt(m,["suffixCls"]),{getPrefixCls:g,className:y,style:h}=jn("layout"),v=g("layout",a),b=aW(r,c,u),[C,S,x]=bP(v),w=V(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:n==="rtl"},y,i,s,S,x),O=l.useMemo(()=>({siderHook:{addSider:$=>{o(E=>[].concat(be(E),[$]))},removeSider:$=>{o(E=>E.filter(I=>I!==$))}}}),[]);return C(l.createElement(gP.Provider,{value:O},l.createElement(d,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},h),f)},p),c)))}),lW=Bm({tagName:"div",displayName:"Layout"})(iW),sW=Bm({suffixCls:"header",tagName:"header",displayName:"Header"})(sb),cW=Bm({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(sb),uW=Bm({suffixCls:"content",tagName:"main",displayName:"Content"})(sb),Uo=lW;Uo.Header=sW;Uo.Footer=cW;Uo.Content=uW;Uo.Sider=CP;Uo._InternalSiderContext=jm;var dW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},fW=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:dW}))},jx=l.forwardRef(fW),mW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},pW=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:mW}))},Tx=l.forwardRef(pW),vW={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},gW=[10,20,50,100],hW=function(t){var n=t.pageSizeOptions,r=n===void 0?gW:n,o=t.locale,a=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,p=t.sizeChangerRender,g=Q.useState(""),y=oe(g,2),h=y[0],v=y[1],b=function(){return!h||Number.isNaN(h)?void 0:Number(h)},C=typeof f=="function"?f:function(M){return"".concat(M," ").concat(o.items_per_page)},S=function(N){v(N.target.value)},x=function(N){s||h===""||(v(""),!(N.relatedTarget&&(N.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||N.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(b())))},w=function(N){h!==""&&(N.keyCode===Xe.ENTER||N.type==="click")&&(v(""),c==null||c(b()))},O=function(){return r.some(function(N){return N.toString()===i.toString()})?r:r.concat([i]).sort(function(N,P){var _=Number.isNaN(Number(N))?0:Number(N),j=Number.isNaN(Number(P))?0:Number(P);return _-j})},$="".concat(u,"-options");if(!m&&!c)return null;var E=null,I=null,R=null;return m&&p&&(E=p({disabled:d,size:i,onSizeChange:function(N){a==null||a(Number(N))},"aria-label":o.page_size,className:"".concat($,"-size-changer"),options:O().map(function(M){return{label:C(M),value:M}})})),c&&(s&&(R=typeof s=="boolean"?Q.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:d,className:"".concat($,"-quick-jumper-button")},o.jump_to_confirm):Q.createElement("span",{onClick:w,onKeyUp:w},s)),I=Q.createElement("div",{className:"".concat($,"-quick-jumper")},o.jump_to,Q.createElement("input",{disabled:d,type:"text",value:h,onChange:S,onKeyUp:w,onBlur:x,"aria-label":o.page}),o.page,R)),Q.createElement("li",{className:$},E,I)},Ns=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,a=t.className,i=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=V(d,"".concat(d,"-").concat(r),D(D({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),a),m=function(){s(r)},p=function(h){c(h,s,r)},g=u(r,"page",Q.createElement("a",{rel:"nofollow"},r));return g?Q.createElement("li",{title:i?String(r):null,className:f,onClick:m,onKeyDown:p,tabIndex:0},g):null},yW=function(t,n,r){return r};function _x(){}function zx(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ii(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var bW=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,i=t.className,s=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,p=t.defaultPageSize,g=p===void 0?10:p,y=t.onChange,h=y===void 0?_x:y,v=t.hideOnSinglePage,b=t.align,C=t.showPrevNextJumpers,S=C===void 0?!0:C,x=t.showQuickJumper,w=t.showLessItems,O=t.showTitle,$=O===void 0?!0:O,E=t.onShowSizeChange,I=E===void 0?_x:E,R=t.locale,M=R===void 0?vW:R,N=t.style,P=t.totalBoundaryShowSizeChanger,_=P===void 0?50:P,j=t.disabled,T=t.simple,z=t.showTotal,L=t.showSizeChanger,k=L===void 0?f>_:L,H=t.sizeChangerRender,K=t.pageSizeOptions,B=t.itemRender,U=B===void 0?yW:B,G=t.jumpPrevIcon,q=t.jumpNextIcon,te=t.prevIcon,Z=t.nextIcon,ee=Q.useRef(null),ue=rn(10,{value:m,defaultValue:g}),re=oe(ue,2),X=re[0],ae=re[1],ne=rn(1,{value:s,defaultValue:u,postState:function(ut){return Math.max(1,Math.min(ut,ii(void 0,X,f)))}}),J=oe(ne,2),Y=J[0],se=J[1],fe=Q.useState(Y),$e=oe(fe,2),Ce=$e[0],ie=$e[1];l.useEffect(function(){ie(Y)},[Y]);var ge=Math.max(1,Y-(w?3:5)),de=Math.min(ii(void 0,X,f),Y+(w?3:5));function ve(Je,ut){var xt=Je||Q.createElement("button",{type:"button","aria-label":ut,className:"".concat(r,"-item-link")});return typeof Je=="function"&&(xt=Q.createElement(Je,W({},t))),xt}function Re(Je){var ut=Je.target.value,xt=ii(void 0,X,f),un;return ut===""?un=ut:Number.isNaN(Number(ut))?un=Ce:ut>=xt?un=xt:un=Number(ut),un}function _e(Je){return zx(Je)&&Je!==Y&&zx(f)&&f>0}var Ue=f>X?x:!1;function ke(Je){(Je.keyCode===Xe.UP||Je.keyCode===Xe.DOWN)&&Je.preventDefault()}function De(Je){var ut=Re(Je);switch(ut!==Ce&&ie(ut),Je.keyCode){case Xe.ENTER:ye(ut);break;case Xe.UP:ye(ut-1);break;case Xe.DOWN:ye(ut+1);break}}function Ae(Je){ye(Re(Je))}function xe(Je){var ut=ii(Je,X,f),xt=Y>ut&&ut!==0?ut:Y;ae(Je),ie(xt),I==null||I(Y,Je),se(xt),h==null||h(xt,Je)}function ye(Je){if(_e(Je)&&!j){var ut=ii(void 0,X,f),xt=Je;return Je>ut?xt=ut:Je<1&&(xt=1),xt!==Ce&&ie(xt),se(xt),h==null||h(xt,X),xt}return Y}var je=Y>1,Pe=Y<ii(void 0,X,f);function Be(){je&&ye(Y-1)}function me(){Pe&&ye(Y+1)}function Ie(){ye(ge)}function Te(){ye(de)}function Ne(Je,ut){if(Je.key==="Enter"||Je.charCode===Xe.ENTER||Je.keyCode===Xe.ENTER){for(var xt=arguments.length,un=new Array(xt>2?xt-2:0),wn=2;wn<xt;wn++)un[wn-2]=arguments[wn];ut.apply(void 0,un)}}function tt(Je){Ne(Je,Be)}function st(Je){Ne(Je,me)}function Le(Je){Ne(Je,Ie)}function Ge(Je){Ne(Je,Te)}function Qe(Je){var ut=U(Je,"prev",ve(te,"prev page"));return Q.isValidElement(ut)?Q.cloneElement(ut,{disabled:!je}):ut}function Fe(Je){var ut=U(Je,"next",ve(Z,"next page"));return Q.isValidElement(ut)?Q.cloneElement(ut,{disabled:!Pe}):ut}function nt(Je){(Je.type==="click"||Je.keyCode===Xe.ENTER)&&ye(Ce)}var bt=null,le=Jn(t,{aria:!0,data:!0}),ce=z&&Q.createElement("li",{className:"".concat(r,"-total-text")},z(f,[f===0?0:(Y-1)*X+1,Y*X>f?f:Y*X])),Se=null,he=ii(void 0,X,f);if(v&&f<=X)return null;var Ee=[],Oe={rootPrefixCls:r,onClick:ye,onKeyPress:Ne,showTitle:$,itemRender:U,page:-1},we=Y-1>0?Y-1:0,Me=Y+1<he?Y+1:he,ze=x&&x.goButton,qe=et(T)==="object"?T.readOnly:!T,yt=ze,Ye=null;T&&(ze&&(typeof ze=="boolean"?yt=Q.createElement("button",{type:"button",onClick:nt,onKeyUp:nt},M.jump_to_confirm):yt=Q.createElement("span",{onClick:nt,onKeyUp:nt},ze),yt=Q.createElement("li",{title:$?"".concat(M.jump_to).concat(Y,"/").concat(he):null,className:"".concat(r,"-simple-pager")},yt)),Ye=Q.createElement("li",{title:$?"".concat(Y,"/").concat(he):null,className:"".concat(r,"-simple-pager")},qe?Ce:Q.createElement("input",{type:"text","aria-label":M.jump_to,value:Ce,disabled:j,onKeyDown:ke,onKeyUp:De,onChange:De,onBlur:Ae,size:3}),Q.createElement("span",{className:"".concat(r,"-slash")},"/"),he));var Ke=w?1:2;if(he<=3+Ke*2){he||Ee.push(Q.createElement(Ns,pe({},Oe,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ct=1;ct<=he;ct+=1)Ee.push(Q.createElement(Ns,pe({},Oe,{key:ct,page:ct,active:Y===ct})))}else{var Ot=w?M.prev_3:M.prev_5,Nt=w?M.next_3:M.next_5,_t=U(ge,"jump-prev",ve(G,"prev page")),Wt=U(de,"jump-next",ve(q,"next page"));S&&(bt=_t?Q.createElement("li",{title:$?Ot:null,key:"prev",onClick:Ie,tabIndex:0,onKeyDown:Le,className:V("".concat(r,"-jump-prev"),D({},"".concat(r,"-jump-prev-custom-icon"),!!G))},_t):null,Se=Wt?Q.createElement("li",{title:$?Nt:null,key:"next",onClick:Te,tabIndex:0,onKeyDown:Ge,className:V("".concat(r,"-jump-next"),D({},"".concat(r,"-jump-next-custom-icon"),!!q))},Wt):null);var wt=Math.max(1,Y-Ke),kt=Math.min(Y+Ke,he);Y-1<=Ke&&(kt=1+Ke*2),he-Y<=Ke&&(wt=he-Ke*2);for(var He=wt;He<=kt;He+=1)Ee.push(Q.createElement(Ns,pe({},Oe,{key:He,page:He,active:Y===He})));if(Y-1>=Ke*2&&Y!==3&&(Ee[0]=Q.cloneElement(Ee[0],{className:V("".concat(r,"-item-after-jump-prev"),Ee[0].props.className)}),Ee.unshift(bt)),he-Y>=Ke*2&&Y!==he-2){var Ze=Ee[Ee.length-1];Ee[Ee.length-1]=Q.cloneElement(Ze,{className:V("".concat(r,"-item-before-jump-next"),Ze.props.className)}),Ee.push(Se)}wt!==1&&Ee.unshift(Q.createElement(Ns,pe({},Oe,{key:1,page:1}))),kt!==he&&Ee.push(Q.createElement(Ns,pe({},Oe,{key:he,page:he})))}var gt=Qe(we);if(gt){var mt=!je||!he;gt=Q.createElement("li",{title:$?M.prev_page:null,onClick:Be,tabIndex:mt?null:0,onKeyDown:tt,className:V("".concat(r,"-prev"),D({},"".concat(r,"-disabled"),mt)),"aria-disabled":mt},gt)}var it=Fe(Me);if(it){var rt,Ct;T?(rt=!Pe,Ct=je?0:null):(rt=!Pe||!he,Ct=rt?null:0),it=Q.createElement("li",{title:$?M.next_page:null,onClick:me,tabIndex:Ct,onKeyDown:st,className:V("".concat(r,"-next"),D({},"".concat(r,"-disabled"),rt)),"aria-disabled":rt},it)}var Mt=V(r,i,D(D(D(D(D({},"".concat(r,"-start"),b==="start"),"".concat(r,"-center"),b==="center"),"".concat(r,"-end"),b==="end"),"".concat(r,"-simple"),T),"".concat(r,"-disabled"),j));return Q.createElement("ul",pe({className:Mt,style:N,ref:ee},le),ce,gt,T?Ye:Ee,it,Q.createElement(hW,{locale:M,rootPrefixCls:r,disabled:j,selectPrefixCls:a,changeSize:xe,pageSize:X,pageSizeOptions:K,quickGo:Ue?ye:null,goButton:yt,showSizeChanger:k,sizeChangerRender:H}))};const CW=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},SW=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:A(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:A(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:A(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
371
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
372
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
373
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:A(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:A(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:A(e.itemSizeSM),input:Object.assign(Object.assign({},Jy(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},xW=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:A(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:A(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${A(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${A(e.inputOutlineOffset)} 0 ${A(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:A(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:A(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},$W=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
374
|
+
${t}-prev,
|
|
375
|
+
${t}-jump-prev,
|
|
376
|
+
${t}-jump-next
|
|
377
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
378
|
+
${t}-prev,
|
|
379
|
+
${t}-next,
|
|
380
|
+
${t}-jump-prev,
|
|
381
|
+
${t}-jump-next
|
|
382
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:A(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${A(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:A(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},pu(e)),Qy(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},_m(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},wW=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:A(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${A(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${A(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},EW=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:A(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),wW(e)),$W(e)),xW(e)),SW(e)),CW(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},OW=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Jo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Jo(e)}}}},wR=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},ds(e)),ER=e=>Et(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},us(e)),IW=Tt("Pagination",e=>{const t=ER(e);return[EW(t),OW(t)]},wR),PW=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},RW=rs(["Pagination","bordered"],e=>{const t=ER(e);return PW(t)},wR);function Lx(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var NW=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 OR=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:i,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,p=NW(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:g}=du(u),[,y]=tr(),{getPrefixCls:h,direction:v,showSizeChanger:b,className:C,style:S}=jn("pagination"),x=h("pagination",n),[w,O,$]=IW(x),E=Wn(s),I=E==="small"||!!(g&&!E&&u),[R]=yo("Pagination",K2),M=Object.assign(Object.assign({},R),c),[N,P]=Lx(d),[_,j]=Lx(b),T=N??_,z=P??j,L=f||Mo,k=l.useMemo(()=>m?m.map(q=>Number(q)):void 0,[m]),H=q=>{var te;const{disabled:Z,size:ee,onSizeChange:ue,"aria-label":re,className:X,options:ae}=q,{className:ne,onChange:J}=z||{},Y=(te=ae.find(se=>String(se.value)===String(ee)))===null||te===void 0?void 0:te.value;return l.createElement(L,Object.assign({disabled:Z,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:se=>se.parentNode,"aria-label":re,options:ae},z,{value:Y,onChange:(se,fe)=>{ue==null||ue(se),J==null||J(se,fe)},size:I?"small":"middle",className:V(X,ne)}))},K=l.useMemo(()=>{const q=l.createElement("span",{className:`${x}-item-ellipsis`},"•••"),te=l.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},v==="rtl"?l.createElement(Ul,null):l.createElement(Lc,null)),Z=l.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},v==="rtl"?l.createElement(Lc,null):l.createElement(Ul,null)),ee=l.createElement("a",{className:`${x}-item-link`},l.createElement("div",{className:`${x}-item-container`},v==="rtl"?l.createElement(Tx,{className:`${x}-item-link-icon`}):l.createElement(jx,{className:`${x}-item-link-icon`}),q)),ue=l.createElement("a",{className:`${x}-item-link`},l.createElement("div",{className:`${x}-item-container`},v==="rtl"?l.createElement(jx,{className:`${x}-item-link-icon`}):l.createElement(Tx,{className:`${x}-item-link-icon`}),q));return{prevIcon:te,nextIcon:Z,jumpPrevIcon:ee,jumpNextIcon:ue}},[v,x]),B=h("select",r),U=V({[`${x}-${t}`]:!!t,[`${x}-mini`]:I,[`${x}-rtl`]:v==="rtl",[`${x}-bordered`]:y.wireframe},C,o,a,O,$),G=Object.assign(Object.assign({},S),i);return w(l.createElement(l.Fragment,null,y.wireframe&&l.createElement(RW,{prefixCls:x}),l.createElement(bW,Object.assign({},K,p,{style:G,prefixCls:x,selectPrefixCls:B,className:U,locale:M,pageSizeOptions:k,showSizeChanger:T,sizeChangerRender:H}))))},Ef=100,IR=Ef/5,PR=Ef/2-IR/2,pv=PR*2*Math.PI,Dx=50,Bx=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:V(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:PR,cx:Dx,cy:Dx,strokeWidth:IR,style:n})},MW=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[a,i]=l.useState(!1);Pt(()=>{e!==0&&i(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!a)return null;const c={strokeDashoffset:`${pv/4}`,strokeDasharray:`${pv*s/100} ${pv*(100-s)/100}`};return l.createElement("span",{className:V(r,`${n}-progress`,s<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${Ef} ${Ef}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},l.createElement(Bx,{dotClassName:n,hasCircleCls:!0}),l.createElement(Bx,{dotClassName:n,style:c})))};function jW(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:V(o,n>0&&a)},l.createElement("span",{className:V(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(MW,{prefixCls:t,percent:n}))}function TW(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,a=`${n}-dot`;return r&&l.isValidElement(r)?Dn(r,{className:V((t=r.props)===null||t===void 0?void 0:t.className,a),percent:o}):l.createElement(jW,{prefixCls:n,percent:o})}const _W=new Bt("antSpinMove",{to:{opacity:1}}),zW=new Bt("antRotate",{to:{transform:"rotate(405deg)"}}),LW=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Dt(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:_W,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:zW,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"}})}},DW=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},BW=Tt("Spin",e=>{const t=Et(e,{spinDotDefault:e.colorTextDescription});return LW(t)},DW),kW=200,kx=[[30,.05],[70,.03],[96,.01]];function AW(e,t){const[n,r]=l.useState(0),o=l.useRef(null),a=t==="auto";return l.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c<kx.length;c+=1){const[u,d]=kx[c];if(i<=u)return i+s*d}return i})},kW)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[a,e]),a?n:t}var FW=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 RR;function HW(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Bc=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:a,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:p,percent:g}=e,y=FW(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:h,direction:v,className:b,style:C,indicator:S}=jn("spin"),x=h("spin",n),[w,O,$]=BW(x),[E,I]=l.useState(()=>r&&!HW(r,o)),R=AW(E,g);l.useEffect(()=>{if(r){const z=$H(o,()=>{I(!0)});return z(),()=>{var L;(L=z==null?void 0:z.cancel)===null||L===void 0||L.call(z)}}I(!1)},[o,r]);const M=l.useMemo(()=>typeof f<"u"&&!m,[f,m]),N=V(x,b,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:E,[`${x}-show-text`]:!!c,[`${x}-rtl`]:v==="rtl"},a,!m&&i,O,$),P=V(`${x}-container`,{[`${x}-blur`]:E}),_=(t=p??S)!==null&&t!==void 0?t:RR,j=Object.assign(Object.assign({},C),d),T=l.createElement("div",Object.assign({},y,{style:j,className:N,"aria-live":"polite","aria-busy":E}),l.createElement(TW,{prefixCls:x,indicator:_,percent:R}),c&&(M||m)?l.createElement("div",{className:`${x}-text`},c):null);return w(M?l.createElement("div",Object.assign({},y,{className:V(`${x}-nested-loading`,u,O,$)}),E&&l.createElement("div",{key:"loading"},T),l.createElement("div",{className:P,key:"container"},f)):m?l.createElement("div",{className:V(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:E},i,O,$)},T):T)};Bc.setDefaultIndicator=e=>{RR=e};const cb=Q.createContext({});cb.Consumer;var NR=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 VW=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=NR(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(ot),c=s("list",t),u=V(`${c}-item-meta`,n),d=Q.createElement("div",{className:`${c}-item-meta-content`},o&&Q.createElement("h4",{className:`${c}-item-meta-title`},o),a&&Q.createElement("div",{className:`${c}-item-meta-description`},a));return Q.createElement("div",Object.assign({},i,{className:u}),r&&Q.createElement("div",{className:`${c}-item-meta-avatar`},r),(o||a)&&d)},WW=Q.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:a,styles:i,className:s,classNames:c,colStyle:u}=e,d=NR(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:m}=l.useContext(cb),{getPrefixCls:p,list:g}=l.useContext(ot),y=O=>{var $,E;return V((E=($=g==null?void 0:g.item)===null||$===void 0?void 0:$.classNames)===null||E===void 0?void 0:E[O],c==null?void 0:c[O])},h=O=>{var $,E;return Object.assign(Object.assign({},(E=($=g==null?void 0:g.item)===null||$===void 0?void 0:$.styles)===null||E===void 0?void 0:E[O]),i==null?void 0:i[O])},v=()=>{let O=!1;return l.Children.forEach(r,$=>{typeof $=="string"&&(O=!0)}),O&&l.Children.count(r)>1},b=()=>m==="vertical"?!!a:!v(),C=p("list",n),S=o&&o.length>0&&Q.createElement("ul",{className:V(`${C}-item-action`,y("actions")),key:"actions",style:h("actions")},o.map((O,$)=>Q.createElement("li",{key:`${C}-item-action-${$}`},O,$!==o.length-1&&Q.createElement("em",{className:`${C}-item-action-split`})))),x=f?"div":"li",w=Q.createElement(x,Object.assign({},d,f?{}:{ref:t},{className:V(`${C}-item`,{[`${C}-item-no-flex`]:!b()},s)}),m==="vertical"&&a?[Q.createElement("div",{className:`${C}-item-main`,key:"content"},r,S),Q.createElement("div",{className:V(`${C}-item-extra`,y("extra")),key:"extra",style:h("extra")},a)]:[r,S,Dn(a,{key:"extra"})]);return f?Q.createElement(tb,{ref:t,flex:1,style:u},w):w}),MR=WW;MR.Meta=VW;const KW=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:s,borderRadiusLG:c}=e,u=A(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${u} ${u} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${u} ${u}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${A(o)} ${A(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},UW=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${A(i)}`}}}}}},GW=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:m,margin:p,colorText:g,colorTextDescription:y,motionDurationSlow:h,lineWidth:v,headerBg:b,footerBg:C,emptyTextPadding:S,metaMarginBottom:x,avatarMarginRight:w,titleMarginBottom:O,descriptionFontSize:$}=e;return{[t]:Object.assign(Object.assign({},Dt(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{margin:`0 0 ${A(e.marginXXS)} 0`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${h}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:y,fontSize:$,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${A(m)}`,color:y,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${A(s)} 0`,color:y,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${A(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${A(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},qW=e=>({contentWidth:220,itemPadding:`${A(e.paddingContentVertical)} 0`,itemPaddingSM:`${A(e.paddingContentVerticalSM)} ${A(e.paddingContentHorizontal)}`,itemPaddingLG:`${A(e.paddingContentVerticalLG)} ${A(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),XW=Tt("List",e=>{const t=Et(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[GW(t),KW(t),UW(t)]},qW);var YW=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 QW(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:a=!0,className:i,rootClassName:s,style:c,children:u,itemLayout:d,loadMore:f,grid:m,dataSource:p=[],size:g,header:y,footer:h,loading:v=!1,rowKey:b,renderItem:C,locale:S}=e,x=YW(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),w=n&&typeof n=="object"?n:{},[O,$]=l.useState(w.defaultCurrent||1),[E,I]=l.useState(w.defaultPageSize||10),{getPrefixCls:R,direction:M,className:N,style:P}=jn("list"),{renderEmpty:_}=l.useContext(ot),j={current:1,total:0,position:"bottom"},T=ge=>(de,ve)=>{var Re;$(de),I(ve),n&&((Re=n==null?void 0:n[ge])===null||Re===void 0||Re.call(n,de,ve))},z=T("onChange"),L=T("onShowSizeChange"),k=(ge,de)=>{if(!C)return null;let ve;return typeof b=="function"?ve=b(ge):b?ve=ge[b]:ve=ge.key,ve||(ve=`list-item-${de}`),l.createElement(l.Fragment,{key:ve},C(ge,de))},H=!!(f||n||h),K=R("list",r),[B,U,G]=XW(K);let q=v;typeof q=="boolean"&&(q={spinning:q});const te=!!(q!=null&&q.spinning),Z=Wn(g);let ee="";switch(Z){case"large":ee="lg";break;case"small":ee="sm";break}const ue=V(K,{[`${K}-vertical`]:d==="vertical",[`${K}-${ee}`]:ee,[`${K}-split`]:a,[`${K}-bordered`]:o,[`${K}-loading`]:te,[`${K}-grid`]:!!m,[`${K}-something-after-last-item`]:H,[`${K}-rtl`]:M==="rtl"},N,i,s,U,G),re=jc(j,{total:p.length,current:O,pageSize:E},n||{}),X=Math.ceil(re.total/re.pageSize);re.current=Math.min(re.current,X);const ae=n&&l.createElement("div",{className:V(`${K}-pagination`)},l.createElement(OR,Object.assign({align:"end"},re,{onChange:z,onShowSizeChange:L})));let ne=be(p);n&&p.length>(re.current-1)*re.pageSize&&(ne=be(p).splice((re.current-1)*re.pageSize,re.pageSize));const J=Object.keys(m||{}).some(ge=>["xs","sm","md","lg","xl","xxl"].includes(ge)),Y=du(J),se=l.useMemo(()=>{for(let ge=0;ge<qa.length;ge+=1){const de=qa[ge];if(Y[de])return de}},[Y]),fe=l.useMemo(()=>{if(!m)return;const ge=se&&m[se]?m[se]:m.column;if(ge)return{width:`${100/ge}%`,maxWidth:`${100/ge}%`}},[JSON.stringify(m),se]);let $e=te&&l.createElement("div",{style:{minHeight:53}});if(ne.length>0){const ge=ne.map(k);$e=m?l.createElement(iR,{gutter:m.gutter},l.Children.map(ge,de=>l.createElement("div",{key:de==null?void 0:de.key,style:fe},de))):l.createElement("ul",{className:`${K}-items`},ge)}else!u&&!te&&($e=l.createElement("div",{className:`${K}-empty-text`},(S==null?void 0:S.emptyText)||(_==null?void 0:_("List"))||l.createElement(Dy,{componentName:"List"})));const Ce=re.position,ie=l.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return B(l.createElement(cb.Provider,{value:ie},l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P),c),className:ue},x),(Ce==="top"||Ce==="both")&&ae,y&&l.createElement("div",{className:`${K}-header`},y),l.createElement(Bc,Object.assign({},q),$e,u),h&&l.createElement("div",{className:`${K}-footer`},h),f||(Ce==="bottom"||Ce==="both")&&ae)))}const JW=l.forwardRef(QW),Td=JW;Td.Item=MR;const ZW=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let oo=null,Ci=e=>e(),kc=[],Ac={};function Ax(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ac,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const eK=Q.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=l.useContext(ot),a=Ac.prefixCls||o("message"),i=l.useContext(KD),[s,c]=TO(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return Q.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),s[d].apply(s,f))}),{instance:u,sync:r}}),c}),tK=Q.forwardRef((e,t)=>{const[n,r]=Q.useState(Ax),o=()=>{r(Ax)};Q.useEffect(o,[]);const a=bO(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=Q.createElement(eK,{ref:t,sync:o,messageConfig:n});return Q.createElement(bo,{prefixCls:i,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}),km=()=>{if(!oo){const e=document.createDocumentFragment(),t={fragment:e};oo=t,Ci(()=>{yy()(Q.createElement(tK,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,km())})}}),e)});return}oo.instance&&(kc.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ci(()=>{const r=oo.instance.open(Object.assign(Object.assign({},Ac),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ci(()=>{oo==null||oo.instance.destroy(e.key)});break;default:Ci(()=>{var r;const o=(r=oo.instance)[t].apply(r,be(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),kc=[])};function nK(e){Ac=Object.assign(Object.assign({},Ac),e),Ci(()=>{var t;(t=oo==null?void 0:oo.sync)===null||t===void 0||t.call(oo)})}function rK(e){const t=gy(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return kc.push(o),()=>{r?Ci(()=>{r()}):o.skipped=!0}});return km(),t}function oK(e,t){const n=gy(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return kc.push(a),()=>{o?Ci(()=>{o()}):a.skipped=!0}});return km(),n}const aK=e=>{kc.push({type:"destroy",key:e}),km()},iK=["success","info","warning","error","loading"],lK={open:rK,destroy:aK,config:nK,useMessage:k8,_InternalPanelDoNotUseOrYouWillBeFired:M8},zt=lK;iK.forEach(e=>{zt[e]=(...t)=>oK(e,t)});var sK=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=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:c}=e,u=sK(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(ot),f=d(),m=t||d("modal"),p=Vn(f),[g,y,h]=vI(m,p),v=`${m}-confirm`;let b={};return a?b={closable:o??!1,title:"",footer:"",children:l.createElement(hI,Object.assign({},e,{prefixCls:m,confirmPrefixCls:v,rootPrefixCls:f,content:s}))}:b={closable:o??!0,title:i,footer:c!==null&&l.createElement(dI,Object.assign({},e)),children:s},g(l.createElement(XO,Object.assign({prefixCls:m,className:V(y,`${m}-pure-panel`,a&&v,a&&`${v}-${a}`,n,h,p)},u,{closeIcon:uI(m,r),closable:o},b)))},uK=OI(cK);function jR(e){return lu(SI(e))}const wr=gI;wr.useModal=WD;wr.info=function(t){return lu(xI(t))};wr.success=function(t){return lu($I(t))};wr.error=function(t){return lu(wI(t))};wr.warning=jR;wr.warn=jR;wr.confirm=function(t){return lu(EI(t))};wr.destroyAll=function(){for(;bi.length;){const t=bi.pop();t&&t()}};wr.config=kD;wr._InternalPanelDoNotUseOrYouWillBeFired=uK;const dK=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},fK=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},TR=Tt("Popconfirm",e=>dK(e),fK,{resetStyle:!1});var mK=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 _R=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:c="primary",icon:u=l.createElement(as,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:p,onPopupClick:g}=e,{getPrefixCls:y}=l.useContext(ot),[h]=yo("Popconfirm",vo.Popconfirm),v=ql(o),b=ql(a);return l.createElement("div",{className:`${t}-inner-content`,onClick:g},l.createElement("div",{className:`${t}-message`},u&&l.createElement("span",{className:`${t}-message-icon`},u),l.createElement("div",{className:`${t}-message-text`},v&&l.createElement("div",{className:`${t}-title`},v),b&&l.createElement("div",{className:`${t}-description`},b))),l.createElement("div",{className:`${t}-buttons`},d&&l.createElement(It,Object.assign({onClick:p,size:"small"},r),i||(h==null?void 0:h.cancelText)),l.createElement(Iy,{buttonProps:Object.assign(Object.assign({size:"small"},by(c)),n),actionFn:m,close:f,prefixCls:y("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(h==null?void 0:h.okText))))},pK=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=mK(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=l.useContext(ot),s=i("popconfirm",t),[c]=TR(s);return c(l.createElement(nP,{placement:n,className:V(s,r),style:o,content:l.createElement(_R,Object.assign({prefixCls:s},a))}))};var vK=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 gK=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:c=l.createElement(as,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:p,styles:g,classNames:y}=e,h=vK(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:v,className:b,style:C,classNames:S,styles:x}=jn("popconfirm"),[w,O]=rn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(T,z)=>{O(T,!0),m==null||m(T),f==null||f(T,z)},E=T=>{$(!1,T)},I=T=>{var z;return(z=e.onConfirm)===null||z===void 0?void 0:z.call(void 0,T)},R=T=>{var z;$(!1,T),(z=e.onCancel)===null||z===void 0||z.call(void 0,T)},M=(T,z)=>{const{disabled:L=!1}=e;L||$(T,z)},N=v("popconfirm",o),P=V(N,b,d,S.root,y==null?void 0:y.root),_=V(S.body,y==null?void 0:y.body),[j]=TR(N);return j(l.createElement(rP,Object.assign({},Qt(h,["title"]),{trigger:i,placement:a,onOpenChange:M,open:w,ref:t,classNames:{root:P,body:_},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),C),p),g==null?void 0:g.root),body:Object.assign(Object.assign({},x.body),g==null?void 0:g.body)},content:l.createElement(_R,Object.assign({okType:s,icon:c},e,{prefixCls:N,close:E,onConfirm:I,onCancel:R})),"data-popover-inject":!0}),u))}),tc=gK;tc._InternalPanelDoNotUseOrYouWillBeFired=pK;var hK={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},yK=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(a){if(a){o=!0;var i=a.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},Fx=0,bK=Qn();function CK(){var e;return bK?(e=Fx,Fx+=1):e="TEST_OR_SSR",e}const SK=function(e){var t=l.useState(),n=oe(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_progress_".concat(CK()))},[]),e||r};var Hx=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function Vx(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 xK=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,a=e.radius,i=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&et(r)==="object",p=m?"#FFF":void 0,g=d/2,y=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:g,cy:g,stroke:p,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:i,ref:t});if(!m)return y;var h="".concat(o,"-conic"),v=f?"".concat(180+f/2,"deg"):"0deg",b=Vx(r,(360-f)/360),C=Vx(r,1),S="conic-gradient(from ".concat(v,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(C.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:h},y),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},l.createElement(Hx,{bg:x},l.createElement(Hx,{bg:S}))))}),Bs=100,vv=function(t,n,r,o,a,i,s,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-i)/360),p=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],g=(100-o)/100*n;u==="round"&&o!==100&&(g+=d/2,g>=n&&(g=n-.01));var y=Bs/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:g+f,transform:"rotate(".concat(a+m+p,"deg)"),transformOrigin:"".concat(y,"px ").concat(y,"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}},$K=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Wx(e){var t=e??[];return Array.isArray(t)?t:[t]}var wK=function(t){var n=W(W({},hK),t),r=n.id,o=n.prefixCls,a=n.steps,i=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,p=n.style,g=n.className,y=n.strokeColor,h=n.percent,v=ft(n,$K),b=Bs/2,C=SK(r),S="".concat(C,"-gradient"),x=b-i/2,w=Math.PI*2*x,O=u>0?90+u/2:-90,$=w*((360-u)/360),E=et(a)==="object"?a:{count:a,gap:2},I=E.count,R=E.gap,M=Wx(h),N=Wx(y),P=N.find(function(H){return H&&et(H)==="object"}),_=P&&et(P)==="object",j=_?"butt":m,T=vv(w,$,0,100,O,u,d,f,j,i),z=yK(),L=function(){var K=0;return M.map(function(B,U){var G=N[U]||N[N.length-1],q=vv(w,$,K,B,O,u,d,G,j,i);return K+=B,l.createElement(xK,{key:U,color:G,ptg:B,radius:x,prefixCls:o,gradientId:S,style:q,strokeLinecap:j,strokeWidth:i,gapDegree:u,ref:function(Z){z[U]=Z},size:Bs})}).reverse()},k=function(){var K=Math.round(I*(M[0]/100)),B=100/I,U=0;return new Array(I).fill(null).map(function(G,q){var te=q<=K-1?N[0]:f,Z=te&&et(te)==="object"?"url(#".concat(S,")"):void 0,ee=vv(w,$,U,B,O,u,d,te,"butt",i,R);return U+=($-ee.strokeDashoffset+R)*100/$,l.createElement("circle",{key:q,className:"".concat(o,"-circle-path"),r:x,cx:b,cy:b,stroke:Z,strokeWidth:i,opacity:1,style:ee,ref:function(re){z[q]=re}})})};return l.createElement("svg",pe({className:V("".concat(o,"-circle"),g),viewBox:"0 0 ".concat(Bs," ").concat(Bs),style:p,id:r,role:"presentation"},v),!I&&l.createElement("circle",{className:"".concat(o,"-circle-trail"),r:x,cx:b,cy:b,stroke:f,strokeLinecap:j,strokeWidth:s||i,style:T}),I?k():L())};function Fa(e){return!e||e<0?0:e>100?100:e}function Of({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const EK=({percent:e,success:t,successPercent:n})=>{const r=Fa(Of({success:t,successPercent:n}));return[r,Fa(Fa(e)-r)]},OK=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Il.green,t||null]},Am=(e,t,n)=>{var r,o,a,i;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,c=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return[s,c]},IK=3,PK=e=>IK/e*100,RK=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:a,width:i=120,type:s,children:c,success:u,size:d=i,steps:f}=e,[m,p]=Am(d,"circle");let{strokeWidth:g}=e;g===void 0&&(g=Math.max(PK(m),6));const y={width:m,height:p,fontSize:m*.15+6},h=l.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),v=EK(e),b=o||s==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=OK({success:u,strokeColor:e.strokeColor}),x=V(`${t}-inner`,{[`${t}-circle-gradient`]:C}),w=l.createElement(wK,{steps:f,percent:f?v[1]:v,strokeWidth:g,trailWidth:g,strokeColor:f?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:b}),O=m<=20,$=l.createElement("div",{className:x,style:y},w,!O&&c);return O?l.createElement(Lo,{title:c},$):$},If="--progress-line-stroke-color",zR="--progress-percent",Kx=e=>{const t=e?"100%":"-100%";return new Bt(`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}})},NK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Dt(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(${If})`]},height:"100%",width:`calc(1 / var(${zR}) * 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 ${A(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:Kx(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Kx(!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}}})}},MK=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"}}}},jK=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}}}}}},TK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},_K=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),zK=Tt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Et(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[NK(n),MK(n),jK(n),TK(n)]},_K);var LK=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 DK=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.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(({key:n,value:r})=>`${r} ${n}%`).join(", ")},BK=(e,t)=>{const{from:n=Il.blue,to:r=Il.blue,direction:o=t==="rtl"?"to left":"to right"}=e,a=LK(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=DK(a),c=`linear-gradient(${o}, ${s})`;return{background:c,[If]:c}}const i=`linear-gradient(${o}, ${n}, ${r})`;return{background:i,[If]:i}},kK=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:a,strokeColor:i,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:p}=d,g=i&&typeof i!="string"?BK(i,n):{[If]:i,background:i},y=s==="square"||s==="butt"?0:void 0,h=o??[-1,a||(o==="small"?6:8)],[v,b]=Am(h,"line",{strokeWidth:a}),C={backgroundColor:u||void 0,borderRadius:y},S=Object.assign(Object.assign({width:`${Fa(r)}%`,height:b,borderRadius:y},g),{[zR]:Fa(r)/100}),x=Of(e),w={width:`${Fa(x)}%`,height:b,borderRadius:y,backgroundColor:f==null?void 0:f.strokeColor},O={width:v<0?"100%":v},$=l.createElement("div",{className:`${t}-inner`,style:C},l.createElement("div",{className:V(`${t}-bg`,`${t}-bg-${p}`),style:S},p==="inner"&&c),x!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:w})),E=p==="outer"&&m==="start",I=p==="outer"&&m==="end";return p==="outer"&&m==="center"?l.createElement("div",{className:`${t}-layout-bottom`},$,c):l.createElement("div",{className:`${t}-outer`,style:O},E&&c,$,I&&c)},AK=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:c,children:u}=e,d=r(n*(o/100)),m=t??[t==="small"?2:14,a],[p,g]=Am(m,"step",{steps:n,strokeWidth:a}),y=p/n,h=Array.from({length:n});for(let v=0;v<n;v++){const b=Array.isArray(i)?i[v]:i;h[v]=l.createElement("div",{key:v,className:V(`${c}-steps-item`,{[`${c}-steps-item-active`]:v<=d-1}),style:{backgroundColor:v<=d-1?b:s,width:y,height:g}})}return l.createElement("div",{className:`${c}-steps-outer`},h,u)};var FK=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 HK=["normal","exception","active","success"],VK=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:a,strokeColor:i,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:m,style:p,percentPosition:g={}}=e,y=FK(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:h="end",type:v="outer"}=g,b=Array.isArray(i)?i[0]:i,C=typeof i=="string"||Array.isArray(i)?i:void 0,S=l.useMemo(()=>{if(b){const L=typeof b=="string"?b:Object.values(b)[0];return new Lt(L).isLight()}return!1},[i]),x=l.useMemo(()=>{var L,k;const H=Of(e);return Number.parseInt(H!==void 0?(L=H??0)===null||L===void 0?void 0:L.toString():(k=s??0)===null||k===void 0?void 0:k.toString(),10)},[s,e.success,e.successPercent]),w=l.useMemo(()=>!HK.includes(f)&&x>=100?"success":f||"normal",[f,x]),{getPrefixCls:O,direction:$,progress:E}=l.useContext(ot),I=O("progress",n),[R,M,N]=zK(I),P=d==="line",_=P&&!a,j=l.useMemo(()=>{if(!u)return null;const L=Of(e);let k;const H=m||(B=>`${B}%`),K=P&&S&&v==="inner";return v==="inner"||m||w!=="exception"&&w!=="success"?k=H(Fa(s),Fa(L)):w==="exception"?k=P?l.createElement(Fi,null):l.createElement(ri,null):w==="success"&&(k=P?l.createElement(Qc,null):l.createElement(By,null)),l.createElement("span",{className:V(`${I}-text`,{[`${I}-text-bright`]:K,[`${I}-text-${h}`]:_,[`${I}-text-${v}`]:_}),title:typeof k=="string"?k:void 0},k)},[u,s,x,w,d,I,m]);let T;d==="line"?T=a?l.createElement(AK,Object.assign({},e,{strokeColor:C,prefixCls:I,steps:typeof a=="object"?a.count:a}),j):l.createElement(kK,Object.assign({},e,{strokeColor:b,prefixCls:I,direction:$,percentPosition:{align:h,type:v}}),j):(d==="circle"||d==="dashboard")&&(T=l.createElement(RK,Object.assign({},e,{strokeColor:b,prefixCls:I,progressStatus:w}),j));const z=V(I,`${I}-status-${w}`,{[`${I}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${I}-inline-circle`]:d==="circle"&&Am(c,"circle")[0]<=20,[`${I}-line`]:_,[`${I}-line-align-${h}`]:_,[`${I}-line-position-${v}`]:_,[`${I}-steps`]:a,[`${I}-show-info`]:u,[`${I}-${c}`]:typeof c=="string",[`${I}-rtl`]:$==="rtl"},E==null?void 0:E.className,r,o,M,N);return R(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},E==null?void 0:E.style),p),className:z,role:"progressbar","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100},Qt(y,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),T))});var WK={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"},KK=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:WK}))},Fm=l.forwardRef(KK),UK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},GK=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:UK}))},Ux=l.forwardRef(GK),qK=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],LR=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,p=e.onChange,g=e.onKeyDown,y=ft(e,qK),h=rn(!1,{value:i,defaultValue:s}),v=oe(h,2),b=v[0],C=v[1];function S($,E){var I=b;return c||(I=$,C(I),p==null||p(I,E)),I}function x($){$.which===Xe.LEFT?S(!1,$):$.which===Xe.RIGHT&&S(!0,$),g==null||g($)}function w($){var E=S(!b,$);m==null||m(E,$)}var O=V(o,a,(n={},D(n,"".concat(o,"-checked"),b),D(n,"".concat(o,"-disabled"),c),n));return l.createElement("button",pe({},y,{type:"button",role:"switch","aria-checked":b,disabled:c,className:O,ref:t,onKeyDown:x,onClick:w}),u,l.createElement("span",{className:"".concat(o,"-inner")},l.createElement("span",{className:"".concat(o,"-inner-checked")},d),l.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});LR.displayName="Switch";const XK=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=A(c(s).add(c(r).mul(2)).equal()),f=A(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:A(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${A(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},YK=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},QK=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${A(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},JK=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,c=`${t}-inner`,u=A(s(i).add(s(r).mul(2)).equal()),d=A(s(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},ZK=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:A(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},eU=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,c=a-s*2,u=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Lt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},tU=Tt("Switch",e=>{const t=Et(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ZK(t),JK(t),QK(t),YK(t),XK(t)]},eU);var nU=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 rU=l.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:p}=e,g=nU(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[y,h]=rn(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:v,direction:b,switch:C}=l.useContext(ot),S=l.useContext(Ir),x=(o??S)||a,w=v("switch",n),O=l.createElement("div",{className:`${w}-handle`},a&&l.createElement(da,{className:`${w}-loading-icon`})),[$,E,I]=tU(w),R=Wn(r),M=V(C==null?void 0:C.className,{[`${w}-small`]:R==="small",[`${w}-loading`]:a,[`${w}-rtl`]:b==="rtl"},i,s,E,I),N=Object.assign(Object.assign({},C==null?void 0:C.style),c),P=(..._)=>{h(_[0]),p==null||p.apply(void 0,_)};return $(l.createElement(tu,{component:"Switch",disabled:x},l.createElement(LR,Object.assign({},g,{checked:y,onChange:P,prefixCls:w,className:M,style:N,disabled:x,ref:t,loadingIcon:O}))))}),pi=rU;pi.__ANT_SWITCH=!0;var $a={},hu="rc-table-internal-hook";function ub(e){var t=l.createContext(void 0),n=function(o){var a=o.value,i=o.children,s=l.useRef(a);s.current=a;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=oe(c,1),d=u[0];return Pt(function(){mo.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function Zn(e,t){var n=Gt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(p){m[p]=f[p]}),m}),r=l.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,i=o.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=oe(c,2),d=u[1];return Pt(function(){if(!r)return;function f(m){var p=n(m);Yo(s.current,p,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function oU(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(o,a){var i=To(o),s=function(u,d){var f=i?{ref:d}:{},m=l.useRef(0),p=l.useRef(u),g=t();return g!==null?l.createElement(o,pe({},u,f)):((!a||a(p.current,u))&&(m.current+=1),p.current=u,l.createElement(e.Provider,{value:m.current},l.createElement(o,pe({},u,f))))};return i?l.forwardRef(s):s}function r(o,a){var i=To(o),s=function(u,d){var f=i?{ref:d}:{};return t(),l.createElement(o,pe({},u,f))};return i?l.memo(l.forwardRef(s),a):l.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var db=oU(),DR=db.makeImmutable,fs=db.responseImmutable,aU=db.useImmutableMark,hr=ub(),BR=l.createContext({renderWithProps:!1}),iU="RC_TABLE_KEY";function lU(e){return e==null?[]:Array.isArray(e)?e:[e]}function Hm(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,i=o.dataIndex,s=a||lU(i).join("-")||iU;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function zh(e){return e!=null}function sU(e){return typeof e=="number"&&!Number.isNaN(e)}function cU(e){return e&&et(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function uU(e,t,n,r,o,a){var i=l.useContext(BR),s=aU(),c=ki(function(){if(zh(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=xr(e,u),f=d,m=void 0;if(o){var p=o(d,e,n);cU(p)?(f=p.children,m=p.props,i.renderWithProps=!0):f=p}return[f,m]},[s,e,r,t,o,n],function(u,d){if(a){var f=oe(u,2),m=f[1],p=oe(d,2),g=p[1];return a(g,m)}return i.renderWithProps?!0:!Yo(u,d,!0)});return c}function dU(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function fU(e,t){return Zn(hr,function(n){var r=dU(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var mU=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():l.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function pU(e){var t,n,r,o,a,i,s,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,p=e.prefixCls,g=e.className,y=e.align,h=e.record,v=e.render,b=e.dataIndex,C=e.renderIndex,S=e.shouldCellUpdate,x=e.index,w=e.rowType,O=e.colSpan,$=e.rowSpan,E=e.fixLeft,I=e.fixRight,R=e.firstFixLeft,M=e.lastFixLeft,N=e.firstFixRight,P=e.lastFixRight,_=e.appendNode,j=e.additionalProps,T=j===void 0?{}:j,z=e.isSticky,L="".concat(p,"-cell"),k=Zn(hr,["supportSticky","allColumnsFixedLeft","rowHoverable"]),H=k.supportSticky,K=k.allColumnsFixedLeft,B=k.rowHoverable,U=uU(h,b,C,d,v,S),G=oe(U,2),q=G[0],te=G[1],Z={},ee=typeof E=="number"&&H,ue=typeof I=="number"&&H;ee&&(Z.position="sticky",Z.left=E),ue&&(Z.position="sticky",Z.right=I);var re=(t=(n=(r=te==null?void 0:te.colSpan)!==null&&r!==void 0?r:T.colSpan)!==null&&n!==void 0?n:O)!==null&&t!==void 0?t:1,X=(o=(a=(i=te==null?void 0:te.rowSpan)!==null&&i!==void 0?i:T.rowSpan)!==null&&a!==void 0?a:$)!==null&&o!==void 0?o:1,ae=fU(x,X),ne=oe(ae,2),J=ne[0],Y=ne[1],se=Gt(function(ve){var Re;h&&Y(x,x+X-1),T==null||(Re=T.onMouseEnter)===null||Re===void 0||Re.call(T,ve)}),fe=Gt(function(ve){var Re;h&&Y(-1,-1),T==null||(Re=T.onMouseLeave)===null||Re===void 0||Re.call(T,ve)});if(re===0||X===0)return null;var $e=(s=T.title)!==null&&s!==void 0?s:mU({rowType:w,ellipsis:f,children:q}),Ce=V(L,g,(c={},D(D(D(D(D(D(D(D(D(D(c,"".concat(L,"-fix-left"),ee&&H),"".concat(L,"-fix-left-first"),R&&H),"".concat(L,"-fix-left-last"),M&&H),"".concat(L,"-fix-left-all"),M&&K&&H),"".concat(L,"-fix-right"),ue&&H),"".concat(L,"-fix-right-first"),N&&H),"".concat(L,"-fix-right-last"),P&&H),"".concat(L,"-ellipsis"),f),"".concat(L,"-with-append"),_),"".concat(L,"-fix-sticky"),(ee||ue)&&z&&H),D(c,"".concat(L,"-row-hover"),!te&&J)),T.className,te==null?void 0:te.className),ie={};y&&(ie.textAlign=y);var ge=W(W(W(W({},te==null?void 0:te.style),Z),ie),T.style),de=q;return et(de)==="object"&&!Array.isArray(de)&&!l.isValidElement(de)&&(de=null),f&&(M||N)&&(de=l.createElement("span",{className:"".concat(L,"-content")},de)),l.createElement(u,pe({},te,T,{className:Ce,style:ge,title:$e,scope:m,onMouseEnter:B?se:void 0,onMouseLeave:B?fe:void 0,colSpan:re!==1?re:null,rowSpan:X!==1?X:null}),_,de)}const ms=l.memo(pU);function fb(e,t,n,r,o){var a=n[e]||{},i=n[t]||{},s,c;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,p=n[t+1],g=n[e-1],y=p&&!p.fixed||g&&!g.fixed||n.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(s!==void 0){var h=g&&g.fixed==="left";m=!h&&y}else if(c!==void 0){var v=p&&p.fixed==="right";f=!v&&y}}else if(s!==void 0){var b=p&&p.fixed==="left";u=!b&&y}else if(c!==void 0){var C=g&&g.fixed==="right";d=!C&&y}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var kR=l.createContext({});function vU(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,i=e.rowSpan,s=e.align,c=Zn(hr,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(kR),m=f.scrollColumnIndex,p=f.stickyOffsets,g=f.flattenColumns,y=n+a-1,h=y+1===m?a+1:a,v=fb(n,n+h-1,g,p,d);return l.createElement(ms,pe({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:h,rowSpan:i,render:function(){return r}},v))}var gU=["children"];function hU(e){var t=e.children,n=ft(e,gU);return l.createElement("tr",n,t)}function Vm(e){var t=e.children;return t}Vm.Row=hU;Vm.Cell=vU;function yU(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Zn(hr,"prefixCls"),a=r.length-1,i=r[a],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?a:null}},[i,r,a,n]);return l.createElement(kR.Provider,{value:s},l.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const nd=fs(yU);var AR=Vm;function bU(e){return null}function CU(e){return null}function FR(e,t,n,r,o,a,i){var s=a(t,i);e.push({record:t,indent:n,index:i,rowKey:s});var c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)FR(e,t[r][u],n+1,r,o,a,u)}function HR(e,t,n,r){var o=l.useMemo(function(){if(n!=null&&n.size){for(var a=[],i=0;i<(e==null?void 0:e.length);i+=1){var s=e[i];FR(a,s,0,t,n,r,i)}return a}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u,rowKey:r(c,u)}})},[e,t,n,r]);return o}function VR(e,t,n,r){var o=Zn(hr,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,i=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,p=o.rowClassName,g=i==="nest",y=i==="row"&&(!d||d(e)),h=y||g,v=s&&s.has(t),b=c&&e&&e[c],C=Gt(u),S=f==null?void 0:f(e,n),x=S==null?void 0:S.onClick,w=function(I){m&&h&&u(e,I);for(var R=arguments.length,M=new Array(R>1?R-1:0),N=1;N<R;N++)M[N-1]=arguments[N];x==null||x.apply(void 0,[I].concat(M))},O;typeof p=="string"?O=p:typeof p=="function"&&(O=p(e,n,r));var $=Hm(a);return W(W({},o),{},{columnsKey:$,nestExpandable:g,expanded:v,hasNestChildren:b,record:e,onTriggerExpand:C,rowSupportExpand:y,expandable:h,rowProps:W(W({},S),{},{className:V(O,S==null?void 0:S.className),onClick:w})})}function WR(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,a=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=e.stickyOffset,d=u===void 0?0:u,f=Zn(hr,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,p=f.fixHeader,g=f.fixColumn,y=f.componentWidth,h=f.horizonScroll,v=n;return(c?h&&y:g)&&(v=l.createElement("div",{style:{width:y-d-(p&&!c?m:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),l.createElement(r,{className:a,style:{display:i?null:"none"}},l.createElement(ms,{component:o,prefixCls:t,colSpan:s},v))}function SU(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(t,"-row-expand-icon");if(!a)return l.createElement("span",{className:V(i,"".concat(t,"-row-spaced"))});var s=function(u){r(n,u),u.stopPropagation()};return l.createElement("span",{className:V(i,D(D({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function xU(e,t,n){var r=[];function o(a){(a||[]).forEach(function(i,s){r.push(t(i,s)),o(i[n])})}return o(e),r}function KR(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function UR(e,t,n,r,o){var a,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,p=e.nestExpandable,g=e.indentSize,y=e.expandIcon,h=e.expanded,v=e.hasNestChildren,b=e.onTriggerExpand,C=e.expandable,S=e.expandedKeys,x=d[n],w=f[n],O;n===(m||0)&&p&&(O=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(g*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),y({prefixCls:u,expanded:h,expandable:v,record:c,onExpand:b})));var $=((a=t.onCell)===null||a===void 0?void 0:a.call(t,c,o))||{};if(s){var E=$.rowSpan,I=E===void 0?1:E;if(C&&I&&n<s){for(var R=I,M=o;M<o+I;M+=1){var N=i[M];S.has(N)&&(R+=1)}$.rowSpan=R}}return{key:x,fixedInfo:w,appendCellNode:O,additionalCellProps:$}}function $U(e){var t=e.className,n=e.style,r=e.record,o=e.index,a=e.renderIndex,i=e.rowKey,s=e.rowKeys,c=e.indent,u=c===void 0?0:c,d=e.rowComponent,f=e.cellComponent,m=e.scopeCellComponent,p=e.expandedRowInfo,g=VR(r,i,o,u),y=g.prefixCls,h=g.flattenColumns,v=g.expandedRowClassName,b=g.expandedRowRender,C=g.rowProps,S=g.expanded,x=g.rowSupportExpand,w=l.useRef(!1);w.current||(w.current=S);var O=KR(v,r,o,u),$=l.createElement(d,pe({},C,{"data-row-key":i,className:V(t,"".concat(y,"-row"),"".concat(y,"-row-level-").concat(u),C==null?void 0:C.className,D({},O,u>=1)),style:W(W({},n),C==null?void 0:C.style)}),h.map(function(R,M){var N=R.render,P=R.dataIndex,_=R.className,j=UR(g,R,M,u,o,s,p==null?void 0:p.offset),T=j.key,z=j.fixedInfo,L=j.appendCellNode,k=j.additionalCellProps;return l.createElement(ms,pe({className:_,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?m:f,prefixCls:y,key:T,record:r,index:o,renderIndex:a,dataIndex:P,render:N,shouldCellUpdate:R.shouldCellUpdate},z,{appendNode:L,additionalProps:k}))})),E;if(x&&(w.current||S)){var I=b(r,o,u+1,S);E=l.createElement(WR,{expanded:S,className:V("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(u+1),O),prefixCls:y,component:d,cellComponent:f,colSpan:p?p.colSpan:h.length,stickyOffset:p==null?void 0:p.sticky,isEmpty:!1},I)}return l.createElement(l.Fragment,null,$,E)}const wU=fs($U);function EU(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,a=l.useRef();return Pt(function(){a.current&&n(t,a.current.offsetWidth)},[]),l.createElement(Or,{data:t},l.createElement("th",{ref:a,className:"".concat(r,"-measure-cell")},l.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}function OU(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,a=l.useRef(null),i=Zn(hr,["measureRowRender"]),s=i.measureRowRender,c=l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:a,tabIndex:-1},l.createElement(Or.Collection,{onBatchResize:function(d){eu(a.current)&&d.forEach(function(f){var m=f.data,p=f.size;r(m,p.offsetWidth)})}},n.map(function(u){var d=o.find(function(p){return p.key===u}),f=d==null?void 0:d.title,m=l.isValidElement(f)?l.cloneElement(f,{ref:null}):f;return l.createElement(EU,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return s?s(c):c}function IU(e){var t=e.data,n=e.measureColumnWidth,r=Zn(hr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),o=r.prefixCls,a=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,p=m===void 0?0:m,g=r.colWidths,y=HR(t,d,u,c),h=l.useMemo(function(){return y.map(function(E){return E.rowKey})},[y]),v=l.useRef({renderWithProps:!1}),b=l.useMemo(function(){for(var E=s.length-p,I=0,R=0;R<p;R+=1)I+=g[R]||0;return{offset:p,colSpan:E,sticky:I}},[s.length,p,g]),C=a(["body","wrapper"],"tbody"),S=a(["body","row"],"tr"),x=a(["body","cell"],"td"),w=a(["body","cell"],"th"),O;t.length?O=y.map(function(E,I){var R=E.record,M=E.indent,N=E.index,P=E.rowKey;return l.createElement(wU,{key:P,rowKey:P,rowKeys:h,record:R,index:I,renderIndex:N,rowComponent:S,cellComponent:x,scopeCellComponent:w,indent:M,expandedRowInfo:b})}):O=l.createElement(WR,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:S,cellComponent:x,colSpan:s.length,isEmpty:!0},f);var $=Hm(s);return l.createElement(BR.Provider,{value:v.current},l.createElement(C,{className:"".concat(o,"-tbody")},n&&l.createElement(OU,{prefixCls:o,columnsKey:$,onColumnResize:i,columns:s}),O))}const PU=fs(IU);var RU=["expandable"],nc="RC_TABLE_INTERNAL_COL_DEFINE";function NU(e){var t=e.expandable,n=ft(e,RU),r;return"expandable"in e?r=W(W({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var MU=["columnType"];function GR(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=Zn(hr,["tableLayout"]),a=o.tableLayout,i=[],s=r||n.length,c=!1,u=s-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,p=void 0;if(f&&(m=f[nc],a==="auto"&&(p=f.minWidth)),d||p||m||c){var g=m||{};g.columnType;var y=ft(g,MU);i.unshift(l.createElement("col",pe({key:u,style:{width:d,minWidth:p}},y))),c=!0}}return i.length>0?l.createElement("colgroup",null,i):null}var jU=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function TU(e,t){return l.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var _U=l.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,i=e.colWidths,s=e.colGroup,c=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,m=e.stickyTopOffset,p=e.stickyBottomOffset,g=e.stickyClassName,y=e.scrollX,h=e.tableLayout,v=h===void 0?"fixed":h,b=e.onScroll,C=e.children,S=ft(e,jU),x=Zn(hr,["prefixCls","scrollbarSize","isSticky","getComponent"]),w=x.prefixCls,O=x.scrollbarSize,$=x.isSticky,E=x.getComponent,I=E(["header","table"],"table"),R=$&&!f?0:O,M=l.useRef(null),N=l.useCallback(function(H){wc(t,H),wc(M,H)},[]);l.useEffect(function(){function H(B){var U=B,G=U.currentTarget,q=U.deltaX;q&&(b({currentTarget:G,scrollLeft:G.scrollLeft+q}),B.preventDefault())}var K=M.current;return K==null||K.addEventListener("wheel",H,{passive:!1}),function(){K==null||K.removeEventListener("wheel",H)}},[]);var P=a[a.length-1],_={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},j=l.useMemo(function(){return R?[].concat(be(o),[_]):o},[R,o]),T=l.useMemo(function(){return R?[].concat(be(a),[_]):a},[R,a]),z=l.useMemo(function(){var H=u.right,K=u.left;return W(W({},u),{},{left:d==="rtl"?[].concat(be(K.map(function(B){return B+R})),[0]):K,right:d==="rtl"?H:[].concat(be(H.map(function(B){return B+R})),[0]),isSticky:$})},[R,u,$]),L=TU(i,c),k=l.useMemo(function(){var H=!L||!L.length||L.every(function(K){return!K});return r||H},[r,L]);return l.createElement("div",{style:W({overflow:"hidden"},$?{top:m,bottom:p}:{}),ref:N,className:V(n,D({},g,!!g))},l.createElement(I,{style:{tableLayout:v,minWidth:"100%",width:y}},k?s:l.createElement(GR,{colWidths:[].concat(be(L),[R]),columCount:c+1,columns:T}),C(W(W({},S),{},{stickyOffsets:z,columns:j,flattenColumns:T}))))});const Gx=l.memo(_U);var zU=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,a=t.rowComponent,i=t.cellComponent,s=t.onHeaderRow,c=t.index,u=Zn(hr,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;s&&(m=s(n.map(function(g){return g.column}),c));var p=Hm(n.map(function(g){return g.column}));return l.createElement(a,m,n.map(function(g,y){var h=g.column,v=fb(g.colStart,g.colEnd,o,r,f),b;return h&&h.onHeaderCell&&(b=g.column.onHeaderCell(h)),l.createElement(ms,pe({},g,{scope:h.title?g.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:i,prefixCls:d,key:p[y]},v,{additionalProps:b,rowType:"header"}))}))};function LU(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},p=1,g=f.children;return g&&g.length>0&&(p=n(g,u,c+1).reduce(function(y,h){return y+h},0),m.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=p,m.colEnd=m.colStart+p-1,t[c].push(m),u+=p,p});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},a=0;a<r;a+=1)o(a);return t}var DU=function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,a=t.onHeaderRow,i=Zn(hr,["prefixCls","getComponent"]),s=i.prefixCls,c=i.getComponent,u=l.useMemo(function(){return LU(r)},[r]),d=c(["header","wrapper"],"thead"),f=c(["header","row"],"tr"),m=c(["header","cell"],"th");return l.createElement(d,{className:"".concat(s,"-thead")},u.map(function(p,g){var y=l.createElement(zU,{key:g,flattenColumns:o,cells:p,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:a,index:g});return y}))};const qx=fs(DU);function Xx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function BU(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var p=Xx(t,m.width);p?r+=p:o+=1});var a=Math.max(t,n),i=Math.max(a-r,o),s=o,c=i/o,u=0,d=e.map(function(m){var p=W({},m),g=Xx(t,p.width);if(g)p.width=g;else{var y=Math.floor(c);p.width=s===1?i:y,i-=y,s-=1}return u+=p.width,p});if(u<a){var f=a/u;i=a,d.forEach(function(m,p){var g=Math.floor(m.width*f);m.width=p===d.length-1?i:g,i-=g})}return[d,Math.max(u,a)]}return[e,t]},[e,t,n])}var kU=["children"],AU=["fixed"];function mb(e){return Fn(e).filter(function(t){return l.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,a=ft(r,kU),i=W({key:n},a);return o&&(i.children=mb(o)),i})}function qR(e){return e.filter(function(t){return t&&et(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?W(W({},t),{},{children:qR(n)}):t})}function Lh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&et(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,i=a===!0?"left":a,s="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(be(n),be(Lh(c,s).map(function(u){var d;return W(W({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:i})}))):[].concat(be(n),[W(W({key:s},r),{},{fixed:i})])},[])}function FU(e){return e.map(function(t){var n=t.fixed,r=ft(t,AU),o=n;return n==="left"?o="right":n==="right"&&(o="left"),W({fixed:o},r)})}function HU(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,p=e.expandedRowOffset,g=p===void 0?0:p,y=e.direction,h=e.expandRowByClick,v=e.columnWidth,b=e.fixed,C=e.scrollWidth,S=e.clientWidth,x=l.useMemo(function(){var P=r||mb(o)||[];return qR(P.slice())},[r,o]),w=l.useMemo(function(){if(a){var P=x.slice();if(!P.includes($a)){var _=m||0,j=_===0&&b==="right"?x.length:_;j>=0&&P.splice(j,0,$a)}var T=P.indexOf($a);P=P.filter(function(H,K){return H!==$a||K===T});var z=x[T],L;b?L=b:L=z?z.fixed:null;var k=D(D(D(D(D(D({},nc,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",L),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(K,B,U){var G=c(B,U),q=i.has(G),te=f?f(B):!0,Z=d({prefixCls:n,expanded:q,expandable:te,record:B,onExpand:u});return h?l.createElement("span",{onClick:function(ue){return ue.stopPropagation()}},Z):Z});return P.map(function(H,K){var B=H===$a?k:H;return K<g?W(W({},B),{},{fixed:B.fixed||"left"}):B})}return x.filter(function(H){return H!==$a})},[a,x,c,i,d,y,g]),O=l.useMemo(function(){var P=w;return t&&(P=t(P)),P.length||(P=[{render:function(){return null}}]),P},[t,w,y]),$=l.useMemo(function(){return y==="rtl"?FU(Lh(O)):Lh(O)},[O,y,C]),E=l.useMemo(function(){for(var P=-1,_=$.length-1;_>=0;_-=1){var j=$[_].fixed;if(j==="left"||j===!0){P=_;break}}if(P>=0)for(var T=0;T<=P;T+=1){var z=$[T].fixed;if(z!=="left"&&z!==!0)return!0}var L=$.findIndex(function(K){var B=K.fixed;return B==="right"});if(L>=0)for(var k=L;k<$.length;k+=1){var H=$[k].fixed;if(H!=="right")return!0}return!1},[$]),I=BU($,C,S),R=oe(I,2),M=R[0],N=R[1];return[O,M,N,E]}function VU(e,t,n){var r=NU(e),o=r.expandIcon,a=r.expandedRowKeys,i=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||SU,p=f||"children",g=l.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===hu&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(x){return x&&et(x)==="object"&&x[p]})?"nest":!1},[!!c,t]),y=l.useState(function(){return i||(s?xU(t,n,p):[])}),h=oe(y,2),v=h[0],b=h[1],C=l.useMemo(function(){return new Set(a||v||[])},[a,v]),S=l.useCallback(function(x){var w=n(x,t.indexOf(x)),O,$=C.has(w);$?(C.delete(w),O=be(C)):O=[].concat(be(C),[w]),b(O),u&&u(!$,x),d&&d(O)},[n,C,t,u,d]);return[r,g,C,m,p,S]}function WU(e,t,n){var r=e.map(function(o,a){return fb(a,a,e,t,n)});return ki(function(){return r},[r],function(o,a){return!Yo(o,a)})}function KU(e){var t=l.useRef(e),n=l.useState({}),r=oe(n,2),o=r[1],a=l.useRef(null),i=l.useRef([]);function s(c){i.current.push(c);var u=Promise.resolve();a.current=u,u.then(function(){if(a.current===u){var d=i.current,f=t.current;i.current=[],d.forEach(function(m){t.current=m(t.current)}),a.current=null,f!==t.current&&o({})}})}return l.useEffect(function(){return function(){a.current=null}},[]),[t.current,s]}function UU(e){var t=l.useRef(null),n=l.useRef();function r(){window.clearTimeout(n.current)}function o(i){t.current=i,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return l.useEffect(function(){return r},[]),[o,a]}function GU(){var e=l.useState(-1),t=oe(e,2),n=t[0],r=t[1],o=l.useState(-1),a=oe(o,2),i=a[0],s=a[1],c=l.useCallback(function(u,d){r(u),s(d)},[]);return[n,i,c]}var Yx=Qn()?window:null;function qU(e,t){var n=et(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,a=n.offsetSummary,i=a===void 0?0:a,s=n.offsetScroll,c=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return Yx}:u,f=d()||Yx,m=!!e;return l.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:i,offsetScroll:c,container:f}},[m,c,o,i,t,f])}function XU(e,t,n){var r=l.useMemo(function(){var o=t.length,a=function(u,d,f){for(var m=[],p=0,g=u;g!==d;g+=f)m.push(p),t[g].fixed&&(p+=e[g]||0);return m},i=a(0,o,1),s=a(o-1,-1,-1).reverse();return n==="rtl"?{left:s,right:i}:{left:i,right:s}},[e,t,n]);return r}function Qx(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)}function Jx(e){var t=Xc(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var YU=function(t,n){var r,o,a=t.scrollBodyRef,i=t.onScroll,s=t.offsetScroll,c=t.container,u=t.direction,d=Zn(hr,"prefixCls"),f=((r=a.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=a.current)===null||o===void 0?void 0:o.clientWidth)||0,p=f&&m*(m/f),g=l.useRef(),y=KU({scrollLeft:0,isHiddenScrollBar:!0}),h=oe(y,2),v=h[0],b=h[1],C=l.useRef({delta:0,x:0}),S=l.useState(!1),x=oe(S,2),w=x[0],O=x[1],$=l.useRef(null);l.useEffect(function(){return function(){jt.cancel($.current)}},[]);var E=function(){O(!1)},I=function(_){_.persist(),C.current.delta=_.pageX-v.scrollLeft,C.current.x=0,O(!0),_.preventDefault()},R=function(_){var j,T=_||((j=window)===null||j===void 0?void 0:j.event),z=T.buttons;if(!w||z===0){w&&O(!1);return}var L=C.current.x+_.pageX-C.current.x-C.current.delta,k=u==="rtl";L=Math.max(k?p-m:0,Math.min(k?0:m-p,L));var H=!k||Math.abs(L)+Math.abs(p)<m;H&&(i({scrollLeft:L/m*(f+2)}),C.current.x=_.pageX)},M=function(){jt.cancel($.current),$.current=jt(function(){if(a.current){var _=Jx(a.current).top,j=_+a.current.offsetHeight,T=c===window?document.documentElement.scrollTop+window.innerHeight:Jx(c).top+c.clientHeight;b(function(z){return W(W({},z),{},{isHiddenScrollBar:j-ZS()<=T||_>=T-s})})}})},N=function(_){b(function(j){return W(W({},j),{},{scrollLeft:f?_/f*m:0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:N,checkScrollBarVisible:M}}),l.useEffect(function(){var P=Mx(document.body,"mouseup",E,!1),_=Mx(document.body,"mousemove",R,!1);return M(),function(){P.remove(),_.remove()}},[p,w]),l.useEffect(function(){if(a.current){for(var P=[],_=Xc(a.current);_;)P.push(_),_=_.parentElement;return P.forEach(function(j){return j.addEventListener("scroll",M,!1)}),window.addEventListener("resize",M,!1),window.addEventListener("scroll",M,!1),c.addEventListener("scroll",M,!1),function(){P.forEach(function(j){return j.removeEventListener("scroll",M)}),window.removeEventListener("resize",M),window.removeEventListener("scroll",M),c.removeEventListener("scroll",M)}}},[c]),l.useEffect(function(){v.isHiddenScrollBar||b(function(P){var _=a.current;return _?W(W({},P),{},{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):P})},[v.isHiddenScrollBar]),f<=m||!p||v.isHiddenScrollBar?null:l.createElement("div",{style:{height:ZS(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},l.createElement("div",{onMouseDown:I,ref:g,className:V("".concat(d,"-sticky-scroll-bar"),D({},"".concat(d,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const QU=l.forwardRef(YU);var XR="rc-table",JU=[],ZU={};function eG(){return"No Data"}function tG(e,t){var n=W({rowKey:"key",prefixCls:XR,emptyText:eG},e),r=n.prefixCls,o=n.className,a=n.rowClassName,i=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,p=n.footer,g=n.summary,y=n.caption,h=n.id,v=n.showHeader,b=n.components,C=n.emptyText,S=n.onRow,x=n.onHeaderRow,w=n.measureRowRender,O=n.onScroll,$=n.internalHooks,E=n.transformColumns,I=n.internalRefs,R=n.tailor,M=n.getContainerWidth,N=n.sticky,P=n.rowHoverable,_=P===void 0?!0:P,j=s||JU,T=!!j.length,z=$===hu,L=l.useCallback(function(St,Rt){return xr(b,St)||Rt},[b]),k=l.useMemo(function(){return typeof c=="function"?c:function(St){var Rt=St&&St[c];return Rt}},[c]),H=L(["body"]),K=GU(),B=oe(K,3),U=B[0],G=B[1],q=B[2],te=VU(n,j,k),Z=oe(te,6),ee=Z[0],ue=Z[1],re=Z[2],X=Z[3],ae=Z[4],ne=Z[5],J=u==null?void 0:u.x,Y=l.useState(0),se=oe(Y,2),fe=se[0],$e=se[1],Ce=HU(W(W(W({},n),ee),{},{expandable:!!ee.expandedRowRender,columnTitle:ee.columnTitle,expandedKeys:re,getRowKey:k,onTriggerExpand:ne,expandIcon:X,expandIconColumnIndex:ee.expandIconColumnIndex,direction:f,scrollWidth:z&&R&&typeof J=="number"?J:null,clientWidth:fe}),z?E:null),ie=oe(Ce,4),ge=ie[0],de=ie[1],ve=ie[2],Re=ie[3],_e=ve??J,Ue=l.useMemo(function(){return{columns:ge,flattenColumns:de}},[ge,de]),ke=l.useRef(),De=l.useRef(),Ae=l.useRef(),xe=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:ke.current,scrollTo:function(Rt){var On;if(Ae.current instanceof HTMLElement){var br=Rt.index,Cn=Rt.top,In=Rt.key;if(sU(Cn)){var Cr;(Cr=Ae.current)===null||Cr===void 0||Cr.scrollTo({top:Cn})}else{var Mr,jr=In??k(j[br]);(Mr=Ae.current.querySelector('[data-row-key="'.concat(jr,'"]')))===null||Mr===void 0||Mr.scrollIntoView()}}else(On=Ae.current)!==null&&On!==void 0&&On.scrollTo&&Ae.current.scrollTo(Rt)}}});var ye=l.useRef(),je=l.useState(!1),Pe=oe(je,2),Be=Pe[0],me=Pe[1],Ie=l.useState(!1),Te=oe(Ie,2),Ne=Te[0],tt=Te[1],st=l.useState(new Map),Le=oe(st,2),Ge=Le[0],Qe=Le[1],Fe=Hm(de),nt=Fe.map(function(St){return Ge.get(St)}),bt=l.useMemo(function(){return nt},[nt.join("_")]),le=XU(bt,de,f),ce=u&&zh(u.y),Se=u&&zh(_e)||!!ee.fixed,he=Se&&de.some(function(St){var Rt=St.fixed;return Rt}),Ee=l.useRef(),Oe=qU(N,r),we=Oe.isSticky,Me=Oe.offsetHeader,ze=Oe.offsetSummary,qe=Oe.offsetScroll,yt=Oe.stickyClassName,Ye=Oe.container,Ke=l.useMemo(function(){return g==null?void 0:g(j)},[g,j]),ct=(ce||we)&&l.isValidElement(Ke)&&Ke.type===Vm&&Ke.props.fixed,Ot,Nt,_t;ce&&(Nt={overflowY:T?"scroll":"auto",maxHeight:u.y}),Se&&(Ot={overflowX:"auto"},ce||(Nt={overflowY:"hidden"}),_t={width:_e===!0?"auto":_e,minWidth:"100%"});var Wt=l.useCallback(function(St,Rt){Qe(function(On){if(On.get(St)!==Rt){var br=new Map(On);return br.set(St,Rt),br}return On})},[]),wt=UU(),kt=oe(wt,2),He=kt[0],Ze=kt[1];function gt(St,Rt){Rt&&(typeof Rt=="function"?Rt(St):Rt.scrollLeft!==St&&(Rt.scrollLeft=St,Rt.scrollLeft!==St&&setTimeout(function(){Rt.scrollLeft=St},0)))}var mt=Gt(function(St){var Rt=St.currentTarget,On=St.scrollLeft,br=f==="rtl",Cn=typeof On=="number"?On:Rt.scrollLeft,In=Rt||ZU;if(!Ze()||Ze()===In){var Cr;He(In),gt(Cn,De.current),gt(Cn,Ae.current),gt(Cn,ye.current),gt(Cn,(Cr=Ee.current)===null||Cr===void 0?void 0:Cr.setScrollLeft)}var Mr=Rt||De.current;if(Mr){var jr=z&&R&&typeof _e=="number"?_e:Mr.scrollWidth,ko=Mr.clientWidth;if(jr===ko){me(!1),tt(!1);return}br?(me(-Cn<jr-ko),tt(-Cn>0)):(me(Cn>0),tt(Cn<jr-ko))}}),it=Gt(function(St){mt(St),O==null||O(St)}),rt=function(){if(Se&&Ae.current){var Rt;mt({currentTarget:Xc(Ae.current),scrollLeft:(Rt=Ae.current)===null||Rt===void 0?void 0:Rt.scrollLeft})}else me(!1),tt(!1)},Ct=function(Rt){var On,br=Rt.width;(On=Ee.current)===null||On===void 0||On.checkScrollBarVisible();var Cn=ke.current?ke.current.offsetWidth:br;z&&M&&ke.current&&(Cn=M(ke.current,Cn)||Cn),Cn!==fe&&(rt(),$e(Cn))},Mt=l.useRef(!1);l.useEffect(function(){Mt.current&&rt()},[Se,s,ge.length]),l.useEffect(function(){Mt.current=!0},[]);var Je=l.useState(0),ut=oe(Je,2),xt=ut[0],un=ut[1],wn=l.useState(!0),nr=oe(wn,2),rr=nr[0],Bn=nr[1];Pt(function(){(!R||!z)&&(Ae.current instanceof Element?un(sh(Ae.current).width):un(sh(xe.current).width)),Bn(bh("position","sticky"))},[]),l.useEffect(function(){z&&I&&(I.body.current=Ae.current)});var sr=l.useCallback(function(St){return l.createElement(l.Fragment,null,l.createElement(qx,St),ct==="top"&&l.createElement(nd,St,Ke))},[ct,Ke]),cr=l.useCallback(function(St){return l.createElement(nd,St,Ke)},[Ke]),yr=L(["table"],"table"),ur=l.useMemo(function(){return d||(he?_e==="max-content"?"auto":"fixed":ce||we||de.some(function(St){var Rt=St.ellipsis;return Rt})?"fixed":"auto")},[ce,he,de,d,we]),Kt,lt={colWidths:bt,columCount:de.length,stickyOffsets:le,onHeaderRow:x,fixHeader:ce,scroll:u},at=l.useMemo(function(){return T?null:typeof C=="function"?C():C},[T,C]),Ht=l.createElement(PU,{data:j,measureColumnWidth:ce||Se||we}),At=l.createElement(GR,{colWidths:de.map(function(St){var Rt=St.width;return Rt}),columns:de}),Yt=y!=null?l.createElement("caption",{className:"".concat(r,"-caption")},y):void 0,on=Jn(n,{data:!0}),Kn=Jn(n,{aria:!0});if(ce||we){var En;typeof H=="function"?(En=H(j,{scrollbarSize:xt,ref:Ae,onScroll:mt}),lt.colWidths=de.map(function(St,Rt){var On=St.width,br=Rt===de.length-1?On-xt:On;return typeof br=="number"&&!Number.isNaN(br)?br:0})):En=l.createElement("div",{style:W(W({},Ot),Nt),onScroll:it,ref:Ae,className:V("".concat(r,"-body"))},l.createElement(yr,pe({style:W(W({},_t),{},{tableLayout:ur})},Kn),Yt,At,Ht,!ct&&Ke&&l.createElement(nd,{stickyOffsets:le,flattenColumns:de},Ke)));var Un=W(W(W({noData:!j.length},lt),Ue),{},{direction:f,stickyClassName:yt,scrollX:_e,tableLayout:ur,onScroll:mt});Kt=l.createElement(l.Fragment,null,v!==!1&&l.createElement(Gx,pe({},Un,{stickyTopOffset:Me,className:"".concat(r,"-header"),ref:De,colGroup:At}),sr),En,ct&&ct!=="top"&&l.createElement(Gx,pe({},Un,{stickyBottomOffset:ze,className:"".concat(r,"-summary"),ref:ye,colGroup:At}),cr),we&&Ae.current&&Ae.current instanceof Element&&l.createElement(QU,{ref:Ee,offsetScroll:qe,scrollBodyRef:Ae,onScroll:mt,container:Ye,direction:f}))}else Kt=l.createElement("div",{style:W(W({},Ot),Nt),className:V("".concat(r,"-content")),onScroll:mt,ref:Ae},l.createElement(yr,pe({style:W(W({},_t),{},{tableLayout:ur})},Kn),Yt,At,v!==!1&&l.createElement(qx,pe({},lt,Ue)),Ht,Ke&&l.createElement(nd,{stickyOffsets:le,flattenColumns:de},Ke)));var Tn=l.createElement("div",pe({className:V(r,o,D(D(D(D(D(D(D(D(D(D({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),Be),"".concat(r,"-ping-right"),Ne),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),ce),"".concat(r,"-fixed-column"),he),"".concat(r,"-fixed-column-gapped"),he&&Re),"".concat(r,"-scroll-horizontal"),Se),"".concat(r,"-has-fix-left"),de[0]&&de[0].fixed),"".concat(r,"-has-fix-right"),de[de.length-1]&&de[de.length-1].fixed==="right")),style:i,id:h,ref:ke},on),m&&l.createElement(Qx,{className:"".concat(r,"-title")},m(j)),l.createElement("div",{ref:xe,className:"".concat(r,"-container")},Kt),p&&l.createElement(Qx,{className:"".concat(r,"-footer")},p(j)));Se&&(Tn=l.createElement(Or,{onResize:Ct},Tn));var Gn=WU(de,le,f),Zr=l.useMemo(function(){return{scrollX:_e,prefixCls:r,getComponent:L,scrollbarSize:xt,direction:f,fixedInfoList:Gn,isSticky:we,supportSticky:rr,componentWidth:fe,fixHeader:ce,fixColumn:he,horizonScroll:Se,tableLayout:ur,rowClassName:a,expandedRowClassName:ee.expandedRowClassName,expandIcon:X,expandableType:ue,expandRowByClick:ee.expandRowByClick,expandedRowRender:ee.expandedRowRender,expandedRowOffset:ee.expandedRowOffset,onTriggerExpand:ne,expandIconColumnIndex:ee.expandIconColumnIndex,indentSize:ee.indentSize,allColumnsFixedLeft:de.every(function(St){return St.fixed==="left"}),emptyNode:at,columns:ge,flattenColumns:de,onColumnResize:Wt,colWidths:bt,hoverStartRow:U,hoverEndRow:G,onHover:q,rowExpandable:ee.rowExpandable,onRow:S,getRowKey:k,expandedKeys:re,childrenColumnName:ae,rowHoverable:_,measureRowRender:w}},[_e,r,L,xt,f,Gn,we,rr,fe,ce,he,Se,ur,a,ee.expandedRowClassName,X,ue,ee.expandRowByClick,ee.expandedRowRender,ee.expandedRowOffset,ne,ee.expandIconColumnIndex,ee.indentSize,at,ge,de,Wt,bt,U,G,q,ee.rowExpandable,S,k,re,ae,_,w]);return l.createElement(hr.Provider,{value:Zr},Tn)}var nG=l.forwardRef(tG);function YR(e){return DR(nG,e)}var ps=YR();ps.EXPAND_COLUMN=$a;ps.INTERNAL_HOOKS=hu;ps.Column=bU;ps.ColumnGroup=CU;ps.Summary=AR;var pb=ub(null),QR=ub(null);function rG(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function oG(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,a=e.index,i=e.component,s=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,p=n.render,g=n.dataIndex,y=n.className,h=n.width,v=Zn(QR,["columnsOffset"]),b=v.columnsOffset,C=UR(t,n,r,o,a),S=C.key,x=C.fixedInfo,w=C.appendCellNode,O=C.additionalCellProps,$=O.style,E=O.colSpan,I=E===void 0?1:E,R=O.rowSpan,M=R===void 0?1:R,N=r-1,P=rG(N,I,b),_=I>1?h-P:0,j=W(W(W({},$),u),{},{flex:"0 0 ".concat(P,"px"),width:"".concat(P,"px"),marginRight:_,pointerEvents:"auto"}),T=l.useMemo(function(){return f?M<=1:I===0||M===0||M>1},[M,I,f]);T?j.visibility="hidden":f&&(j.height=m==null?void 0:m(M));var z=T?function(){return null}:p,L={};return(M===0||I===0)&&(L.rowSpan=1,L.colSpan=1),l.createElement(ms,pe({className:V(y,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:S,record:c,index:a,renderIndex:s,dataIndex:g,render:z,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:w,additionalProps:W(W({},O),{},{style:j},L)}))}var aG=["data","index","className","rowKey","style","extra","getHeight"],iG=l.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=ft(e,aG),d=n.record,f=n.indent,m=n.index,p=Zn(hr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=p.scrollX,y=p.flattenColumns,h=p.prefixCls,v=p.fixColumn,b=p.componentWidth,C=Zn(pb,["getComponent"]),S=C.getComponent,x=VR(d,a,r,f),w=S(["body","row"],"div"),O=S(["body","cell"],"div"),$=x.rowSupportExpand,E=x.expanded,I=x.rowProps,R=x.expandedRowRender,M=x.expandedRowClassName,N;if($&&E){var P=R(d,r,f+1,E),_=KR(M,d,r,f),j={};v&&(j={style:D({},"--virtual-width","".concat(b,"px"))});var T="".concat(h,"-expanded-row-cell");N=l.createElement(w,{className:V("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(f+1),_)},l.createElement(ms,{component:O,prefixCls:h,className:V(T,D({},"".concat(T,"-fixed"),v)),additionalProps:j},P))}var z=W(W({},i),{},{width:g});s&&(z.position="absolute",z.pointerEvents="none");var L=l.createElement(w,pe({},I,u,{"data-row-key":a,ref:$?null:t,className:V(o,"".concat(h,"-row"),I==null?void 0:I.className,D({},"".concat(h,"-row-extra"),s)),style:W(W({},z),I==null?void 0:I.style)}),y.map(function(k,H){return l.createElement(oG,{key:H,component:O,rowInfo:x,column:k,colIndex:H,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:c})}));return $?l.createElement("div",{ref:t},L,N):L}),Zx=fs(iG),lG=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Zn(hr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=o.flattenColumns,i=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,p=Zn(pb),g=p.sticky,y=p.scrollY,h=p.listItemHeight,v=p.getComponent,b=p.onScroll,C=l.useRef(),S=HR(n,d,c,s),x=l.useMemo(function(){var N=0;return a.map(function(P){var _=P.width,j=P.minWidth,T=P.key,z=Math.max(_||0,j||0);return N+=z,[T,z,N]})},[a]),w=l.useMemo(function(){return x.map(function(N){return N[2]})},[x]);l.useEffect(function(){x.forEach(function(N){var P=oe(N,2),_=P[0],j=P[1];i(_,j)})},[x]),l.useImperativeHandle(t,function(){var N,P={scrollTo:function(j){var T;(T=C.current)===null||T===void 0||T.scrollTo(j)},nativeElement:(N=C.current)===null||N===void 0?void 0:N.nativeElement};return Object.defineProperty(P,"scrollLeft",{get:function(){var j;return((j=C.current)===null||j===void 0?void 0:j.getScrollInfo().x)||0},set:function(j){var T;(T=C.current)===null||T===void 0||T.scrollTo({left:j})}}),Object.defineProperty(P,"scrollTop",{get:function(){var j;return((j=C.current)===null||j===void 0?void 0:j.getScrollInfo().y)||0},set:function(j){var T;(T=C.current)===null||T===void 0||T.scrollTo({top:j})}}),P});var O=function(P,_){var j,T=(j=S[_])===null||j===void 0?void 0:j.record,z=P.onCell;if(z){var L,k=z(T,_);return(L=k==null?void 0:k.rowSpan)!==null&&L!==void 0?L:1}return 1},$=function(P){var _=P.start,j=P.end,T=P.getSize,z=P.offsetY;if(j<0)return null;for(var L=a.filter(function(re){return O(re,_)===0}),k=_,H=function(X){if(L=L.filter(function(ae){return O(ae,X)===0}),!L.length)return k=X,1},K=_;K>=0&&!H(K);K-=1);for(var B=a.filter(function(re){return O(re,j)!==1}),U=j,G=function(X){if(B=B.filter(function(ae){return O(ae,X)!==1}),!B.length)return U=Math.max(X-1,j),1},q=j;q<S.length&&!G(q);q+=1);for(var te=[],Z=function(X){var ae=S[X];if(!ae)return 1;a.some(function(ne){return O(ne,X)>1})&&te.push(X)},ee=k;ee<=U;ee+=1)Z(ee);var ue=te.map(function(re){var X=S[re],ae=s(X.record,re),ne=function(se){var fe=re+se-1,$e=s(S[fe].record,fe),Ce=T(ae,$e);return Ce.bottom-Ce.top},J=T(ae);return l.createElement(Zx,{key:re,data:X,rowKey:ae,index:re,style:{top:-z+J.top},extra:!0,getHeight:ne})});return ue},E=l.useMemo(function(){return{columnsOffset:w}},[w]),I="".concat(u,"-tbody"),R=v(["body","wrapper"]),M={};return g&&(M.position="sticky",M.bottom=0,et(g)==="object"&&g.offsetScroll&&(M.bottom=g.offsetScroll)),l.createElement(QR.Provider,{value:E},l.createElement(Im,{fullHeight:!1,ref:C,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:M},className:I,height:y,itemHeight:h||24,data:S,itemKey:function(P){return s(P.record)},component:R,scrollWidth:f,direction:m,onVirtualScroll:function(P){var _,j=P.x;r({currentTarget:(_=C.current)===null||_===void 0?void 0:_.nativeElement,scrollLeft:j})},onScroll:b,extraRender:$},function(N,P,_){var j=s(N.record,P);return l.createElement(Zx,{data:N,rowKey:j,index:P,style:_.style})}))}),sG=fs(lG),cG=function(t,n){var r=n.ref,o=n.onScroll;return l.createElement(sG,{ref:r,data:t,onScroll:o})};function uG(e,t){var n=e.data,r=e.columns,o=e.scroll,a=e.sticky,i=e.prefixCls,s=i===void 0?XR:i,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},p=m.x,g=m.y;typeof p!="number"&&(p=1),typeof g!="number"&&(g=500);var y=Gt(function(b,C){return xr(d,b)||C}),h=Gt(f),v=l.useMemo(function(){return{sticky:a,scrollY:g,listItemHeight:u,getComponent:y,onScroll:h}},[a,g,u,y,h]);return l.createElement(pb.Provider,{value:v},l.createElement(ps,pe({},e,{className:V(c,"".concat(s,"-virtual")),scroll:W(W({},o),{},{x:p}),components:W(W({},d),{},{body:n!=null&&n.length?cG:void 0}),columns:r,internalHooks:hu,tailor:!0,ref:t})))}var dG=l.forwardRef(uG);function JR(e){return DR(dG,e)}JR();const fG=e=>null,mG=e=>null;var vb=l.createContext(null),pG=l.createContext({}),vG=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c<r;c+=1)s.push(l.createElement("span",{key:c,className:V(i,D(D({},"".concat(i,"-start"),o[c]),"".concat(i,"-end"),a[c]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const gG=l.memo(vG);var hG=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],e$="open",t$="close",yG="---",Fc=function(t){var n,r,o,a=t.eventKey,i=t.className,s=t.style,c=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,p=t.isEnd,g=t.expanded,y=t.selected,h=t.checked,v=t.halfChecked,b=t.loading,C=t.domRef,S=t.active,x=t.data,w=t.onMouseMove,O=t.selectable,$=ft(t,hG),E=Q.useContext(vb),I=Q.useContext(pG),R=Q.useRef(null),M=Q.useState(!1),N=oe(M,2),P=N[0],_=N[1],j=!!(E.disabled||t.disabled||(n=I.nodeDisabled)!==null&&n!==void 0&&n.call(I,x)),T=Q.useMemo(function(){return!E.checkable||t.checkable===!1?!1:E.checkable},[E.checkable,t.checkable]),z=function(ye){j||E.onNodeSelect(ye,_n(t))},L=function(ye){j||!T||t.disableCheckbox||E.onNodeCheck(ye,_n(t),!h)},k=Q.useMemo(function(){return typeof O=="boolean"?O:E.selectable},[O,E.selectable]),H=function(ye){E.onNodeClick(ye,_n(t)),k?z(ye):L(ye)},K=function(ye){E.onNodeDoubleClick(ye,_n(t))},B=function(ye){E.onNodeMouseEnter(ye,_n(t))},U=function(ye){E.onNodeMouseLeave(ye,_n(t))},G=function(ye){E.onNodeContextMenu(ye,_n(t))},q=Q.useMemo(function(){return!!(E.draggable&&(!E.draggable.nodeDraggable||E.draggable.nodeDraggable(x)))},[E.draggable,x]),te=function(ye){ye.stopPropagation(),_(!0),E.onNodeDragStart(ye,t);try{ye.dataTransfer.setData("text/plain","")}catch{}},Z=function(ye){ye.preventDefault(),ye.stopPropagation(),E.onNodeDragEnter(ye,t)},ee=function(ye){ye.preventDefault(),ye.stopPropagation(),E.onNodeDragOver(ye,t)},ue=function(ye){ye.stopPropagation(),E.onNodeDragLeave(ye,t)},re=function(ye){ye.stopPropagation(),_(!1),E.onNodeDragEnd(ye,t)},X=function(ye){ye.preventDefault(),ye.stopPropagation(),_(!1),E.onNodeDrop(ye,t)},ae=function(ye){b||E.onNodeExpand(ye,_n(t))},ne=Q.useMemo(function(){var xe=_r(E.keyEntities,a)||{},ye=xe.children;return!!(ye||[]).length},[E.keyEntities,a]),J=Q.useMemo(function(){return f===!1?!1:f||!E.loadData&&!ne||E.loadData&&t.loaded&&!ne},[f,E.loadData,ne,t.loaded]);Q.useEffect(function(){b||typeof E.loadData=="function"&&g&&!J&&!t.loaded&&E.onNodeLoad(_n(t))},[b,E.loadData,E.onNodeLoad,g,J,t]);var Y=Q.useMemo(function(){var xe;return(xe=E.draggable)!==null&&xe!==void 0&&xe.icon?Q.createElement("span",{className:"".concat(E.prefixCls,"-draggable-icon")},E.draggable.icon):null},[E.draggable]),se=function(ye){var je=t.switcherIcon||E.switcherIcon;return typeof je=="function"?je(W(W({},t),{},{isLeaf:ye})):je},fe=function(){if(J){var ye=se(!0);return ye!==!1?Q.createElement("span",{className:V("".concat(E.prefixCls,"-switcher"),"".concat(E.prefixCls,"-switcher-noop"))},ye):null}var je=se(!1);return je!==!1?Q.createElement("span",{onClick:ae,className:V("".concat(E.prefixCls,"-switcher"),"".concat(E.prefixCls,"-switcher_").concat(g?e$:t$))},je):null},$e=Q.useMemo(function(){if(!T)return null;var xe=typeof T!="boolean"?T:null;return Q.createElement("span",{className:V("".concat(E.prefixCls,"-checkbox"),D(D(D({},"".concat(E.prefixCls,"-checkbox-checked"),h),"".concat(E.prefixCls,"-checkbox-indeterminate"),!h&&v),"".concat(E.prefixCls,"-checkbox-disabled"),j||t.disableCheckbox)),onClick:L,role:"checkbox","aria-checked":v?"mixed":h,"aria-disabled":j||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},xe)},[T,h,v,j,t.disableCheckbox,t.title]),Ce=Q.useMemo(function(){return J?null:g?e$:t$},[J,g]),ie=Q.useMemo(function(){return Q.createElement("span",{className:V("".concat(E.prefixCls,"-iconEle"),"".concat(E.prefixCls,"-icon__").concat(Ce||"docu"),D({},"".concat(E.prefixCls,"-icon_loading"),b))})},[E.prefixCls,Ce,b]),ge=Q.useMemo(function(){var xe=!!E.draggable,ye=!t.disabled&&xe&&E.dragOverNodeKey===a;return ye?E.dropIndicatorRender({dropPosition:E.dropPosition,dropLevelOffset:E.dropLevelOffset,indent:E.indent,prefixCls:E.prefixCls,direction:E.direction}):null},[E.dropPosition,E.dropLevelOffset,E.indent,E.prefixCls,E.direction,E.draggable,E.dragOverNodeKey,E.dropIndicatorRender]),de=Q.useMemo(function(){var xe=t.title,ye=xe===void 0?yG:xe,je="".concat(E.prefixCls,"-node-content-wrapper"),Pe;if(E.showIcon){var Be=t.icon||E.icon;Pe=Be?Q.createElement("span",{className:V("".concat(E.prefixCls,"-iconEle"),"".concat(E.prefixCls,"-icon__customize"))},typeof Be=="function"?Be(t):Be):ie}else E.loadData&&b&&(Pe=ie);var me;return typeof ye=="function"?me=ye(x):E.titleRender?me=E.titleRender(x):me=ye,Q.createElement("span",{ref:R,title:typeof ye=="string"?ye:"",className:V(je,"".concat(je,"-").concat(Ce||"normal"),D({},"".concat(E.prefixCls,"-node-selected"),!j&&(y||P))),onMouseEnter:B,onMouseLeave:U,onContextMenu:G,onClick:H,onDoubleClick:K},Pe,Q.createElement("span",{className:"".concat(E.prefixCls,"-title")},me),ge)},[E.prefixCls,E.showIcon,t,E.icon,ie,E.titleRender,x,Ce,B,U,G,H,K]),ve=Jn($,{aria:!0,data:!0}),Re=_r(E.keyEntities,a)||{},_e=Re.level,Ue=p[p.length-1],ke=!j&&q,De=E.draggingNodeKey===a,Ae=O!==void 0?{"aria-selected":!!O}:void 0;return Q.createElement("div",pe({ref:C,role:"treeitem","aria-expanded":f?void 0:g,className:V(i,"".concat(E.prefixCls,"-treenode"),(o={},D(D(D(D(D(D(D(D(D(D(o,"".concat(E.prefixCls,"-treenode-disabled"),j),"".concat(E.prefixCls,"-treenode-switcher-").concat(g?"open":"close"),!f),"".concat(E.prefixCls,"-treenode-checkbox-checked"),h),"".concat(E.prefixCls,"-treenode-checkbox-indeterminate"),v),"".concat(E.prefixCls,"-treenode-selected"),y),"".concat(E.prefixCls,"-treenode-loading"),b),"".concat(E.prefixCls,"-treenode-active"),S),"".concat(E.prefixCls,"-treenode-leaf-last"),Ue),"".concat(E.prefixCls,"-treenode-draggable"),q),"dragging",De),D(D(D(D(D(D(D(o,"drop-target",E.dropTargetKey===a),"drop-container",E.dropContainerKey===a),"drag-over",!j&&c),"drag-over-gap-top",!j&&u),"drag-over-gap-bottom",!j&&d),"filter-node",(r=E.filterTreeNode)===null||r===void 0?void 0:r.call(E,_n(t))),"".concat(E.prefixCls,"-treenode-leaf"),J))),style:s,draggable:ke,onDragStart:ke?te:void 0,onDragEnter:q?Z:void 0,onDragOver:q?ee:void 0,onDragLeave:q?ue:void 0,onDrop:q?X:void 0,onDragEnd:q?re:void 0,onMouseMove:w},Ae,ve),Q.createElement(gG,{prefixCls:E.prefixCls,level:_e,isStart:m,isEnd:p}),Y,fe(),$e,de)};Fc.isTreeNode=1;function Fo(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ea(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function gb(e){return e.split("-")}function bG(e,t){var n=[],r=_r(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var s=i.key,c=i.children;n.push(s),o(c)})}return o(r.children),n}function CG(e){if(e.parent){var t=gb(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function SG(e){var t=gb(e.pos);return Number(t[t.length-1])===0}function n$(e,t,n,r,o,a,i,s,c,u){var d,f=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),g=p.top,y=p.height,h=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),v=(h-12)/r,b=c.filter(function(j){var T;return(T=s[j])===null||T===void 0||(T=T.children)===null||T===void 0?void 0:T.length}),C=_r(s,n.eventKey);if(m<g+y/2){var S=i.findIndex(function(j){return j.key===C.key}),x=S<=0?0:S-1,w=i[x].key;C=_r(s,w)}var O=C.key,$=C,E=C.key,I=0,R=0;if(!b.includes(O))for(var M=0;M<v&&CG(C);M+=1)C=C.parent,R+=1;var N=t.data,P=C.node,_=!0;return SG(C)&&C.level===0&&m<g+y/2&&a({dragNode:N,dropNode:P,dropPosition:-1})&&C.key===n.eventKey?I=-1:($.children||[]).length&&b.includes(E)?a({dragNode:N,dropNode:P,dropPosition:0})?I=0:_=!1:R===0?v>-1.5?a({dragNode:N,dropNode:P,dropPosition:1})?I=1:_=!1:a({dragNode:N,dropNode:P,dropPosition:0})?I=0:a({dragNode:N,dropNode:P,dropPosition:1})?I=1:_=!1:a({dragNode:N,dropNode:P,dropPosition:1})?I=1:_=!1,{dropPosition:I,dropLevelOffset:R,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:E,dropContainerKey:I===0?null:((d=C.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:_}}function r$(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function gv(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(et(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return an(!1,"`checkedKeys` is not an array or an object"),null;return t}function Dh(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=_r(t,o);if(a){n.add(o);var i=a.parent,s=a.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),be(n)}const Ca={},Bh="SELECT_ALL",kh="SELECT_INVERT",Ah="SELECT_NONE",o$=[],ZR=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&ZR(e,r[e],n)}),n),xG=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,getTitleCheckboxProps:i,onChange:s,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:p,type:g,selections:y,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:C=!0}=t||{},{prefixCls:S,data:x,pageData:w,getRecordByKey:O,getRowKey:$,expandType:E,childrenColumnName:I,locale:R,getPopupContainer:M}=e,N=ni(),[P,_]=b8(X=>X),[j,T]=rn(r||o||o$,{value:r}),z=l.useRef(new Map),L=l.useCallback(X=>{if(n){const ae=new Map;X.forEach(ne=>{let J=O(ne);!J&&z.current.has(ne)&&(J=z.current.get(ne)),ae.set(ne,J)}),z.current=ae}},[O,n]);l.useEffect(()=>{L(j)},[j]);const k=l.useMemo(()=>ZR(I,w),[I,w]),{keyEntities:H}=l.useMemo(()=>{if(C)return{keyEntities:null};let X=x;if(n){const ae=new Set(k.map((J,Y)=>$(J,Y))),ne=Array.from(z.current).reduce((J,[Y,se])=>ae.has(Y)?J:J.concat(se),[]);X=[].concat(be(X),be(ne))}return eb(X,{externalGetKey:$,childrenPropName:I})},[x,$,C,I,n,k]),K=l.useMemo(()=>{const X=new Map;return k.forEach((ae,ne)=>{const J=$(ae,ne),Y=(a?a(ae):null)||{};X.set(J,Y)}),X},[k,$,a]),B=l.useCallback(X=>{const ae=$(X);let ne;return K.has(ae)?ne=K.get($(X)):ne=a?a(X):void 0,!!(ne!=null&&ne.disabled)},[K,$]),[U,G]=l.useMemo(()=>{if(C)return[j||[],[]];const{checkedKeys:X,halfCheckedKeys:ae}=Nl(j,!0,H,B);return[X||[],ae]},[j,C,H,B]),q=l.useMemo(()=>{const X=g==="radio"?U.slice(0,1):U;return new Set(X)},[U,g]),te=l.useMemo(()=>g==="radio"?new Set:new Set(G),[G,g]);l.useEffect(()=>{t||T(o$)},[!!t]);const Z=l.useCallback((X,ae)=>{let ne,J;L(X),n?(ne=X,J=X.map(Y=>z.current.get(Y))):(ne=[],J=[],X.forEach(Y=>{const se=O(Y);se!==void 0&&(ne.push(Y),J.push(se))})),T(ne),s==null||s(ne,J,{type:ae})},[T,O,s,n]),ee=l.useCallback((X,ae,ne,J)=>{if(c){const Y=ne.map(se=>O(se));c(O(X),ae,Y,J)}Z(ne,"single")},[c,O,Z]),ue=l.useMemo(()=>!y||b?null:(y===!0?[Bh,kh,Ah]:y).map(ae=>ae===Bh?{key:"all",text:R.selectionAll,onSelect(){Z(x.map((ne,J)=>$(ne,J)).filter(ne=>{const J=K.get(ne);return!(J!=null&&J.disabled)||q.has(ne)}),"all")}}:ae===kh?{key:"invert",text:R.selectInvert,onSelect(){const ne=new Set(q);w.forEach((Y,se)=>{const fe=$(Y,se),$e=K.get(fe);$e!=null&&$e.disabled||(ne.has(fe)?ne.delete(fe):ne.add(fe))});const J=Array.from(ne);d&&(N.deprecated(!1,"onSelectInvert","onChange"),d(J)),Z(J,"invert")}}:ae===Ah?{key:"none",text:R.selectNone,onSelect(){f==null||f(),Z(Array.from(q).filter(ne=>{const J=K.get(ne);return J==null?void 0:J.disabled}),"none")}}:ae).map(ae=>Object.assign(Object.assign({},ae),{onSelect:(...ne)=>{var J,Y;(Y=ae.onSelect)===null||Y===void 0||(J=Y).call.apply(J,[ae].concat(ne)),_(null)}})),[y,q,w,$,d,Z]);return[l.useCallback(X=>{var ae;if(!t)return X.filter(xe=>xe!==Ca);let ne=be(X);const J=new Set(q),Y=k.map($).filter(xe=>!K.get(xe).disabled),se=Y.every(xe=>J.has(xe)),fe=Y.some(xe=>J.has(xe)),$e=()=>{const xe=[];se?Y.forEach(je=>{J.delete(je),xe.push(je)}):Y.forEach(je=>{J.has(je)||(J.add(je),xe.push(je))});const ye=Array.from(J);u==null||u(!se,ye.map(je=>O(je)),xe.map(je=>O(je))),Z(ye,"all"),_(null)};let Ce,ie;if(g!=="radio"){let xe;if(ue){const Ne={getPopupContainer:M,items:ue.map((tt,st)=>{const{key:Le,text:Ge,onSelect:Qe}=tt;return{key:Le??st,onClick:()=>{Qe==null||Qe(Y)},label:Ge}})};xe=l.createElement("div",{className:`${S}-selection-extra`},l.createElement(ib,{menu:Ne,getPopupContainer:M},l.createElement("span",null,l.createElement(ky,null))))}const ye=k.map((Ne,tt)=>{const st=$(Ne,tt),Le=K.get(st)||{};return Object.assign({checked:J.has(st)},Le)}).filter(({disabled:Ne})=>Ne),je=!!ye.length&&ye.length===k.length,Pe=je&&ye.every(({checked:Ne})=>Ne),Be=je&&ye.some(({checked:Ne})=>Ne),me=(i==null?void 0:i())||{},{onChange:Ie,disabled:Te}=me;ie=l.createElement(Yl,Object.assign({"aria-label":xe?"Custom selection":"Select all"},me,{checked:je?Pe:!!k.length&&se,indeterminate:je?!Pe&&Be:!se&&fe,onChange:Ne=>{$e(),Ie==null||Ie(Ne)},disabled:Te??(k.length===0||je),skipGroup:!0})),Ce=!b&&l.createElement("div",{className:`${S}-selection`},ie,xe)}let ge;g==="radio"?ge=(xe,ye,je)=>{const Pe=$(ye,je),Be=J.has(Pe),me=K.get(Pe);return{node:l.createElement(mu,Object.assign({},me,{checked:Be,onClick:Ie=>{var Te;Ie.stopPropagation(),(Te=me==null?void 0:me.onClick)===null||Te===void 0||Te.call(me,Ie)},onChange:Ie=>{var Te;J.has(Pe)||ee(Pe,!0,[Pe],Ie.nativeEvent),(Te=me==null?void 0:me.onChange)===null||Te===void 0||Te.call(me,Ie)}})),checked:Be}}:ge=(xe,ye,je)=>{var Pe;const Be=$(ye,je),me=J.has(Be),Ie=te.has(Be),Te=K.get(Be);let Ne;return E==="nest"?Ne=Ie:Ne=(Pe=Te==null?void 0:Te.indeterminate)!==null&&Pe!==void 0?Pe:Ie,{node:l.createElement(Yl,Object.assign({},Te,{indeterminate:Ne,checked:me,skipGroup:!0,onClick:tt=>{var st;tt.stopPropagation(),(st=Te==null?void 0:Te.onClick)===null||st===void 0||st.call(Te,tt)},onChange:tt=>{var st;const{nativeEvent:Le}=tt,{shiftKey:Ge}=Le,Qe=Y.indexOf(Be),Fe=U.some(nt=>Y.includes(nt));if(Ge&&C&&Fe){const nt=P(Qe,Y,J),bt=Array.from(J);m==null||m(!me,bt.map(le=>O(le)),nt.map(le=>O(le))),Z(bt,"multiple")}else{const nt=U;if(C){const bt=me?Fo(nt,Be):ea(nt,Be);ee(Be,!me,bt,Le)}else{const bt=Nl([].concat(be(nt),[Be]),!0,H,B),{checkedKeys:le,halfCheckedKeys:ce}=bt;let Se=le;if(me){const he=new Set(le);he.delete(Be),Se=Nl(Array.from(he),{halfCheckedKeys:ce},H,B).checkedKeys}ee(Be,!me,Se,Le)}}_(me?null:Qe),(st=Te==null?void 0:Te.onChange)===null||st===void 0||st.call(Te,tt)}})),checked:me}};const de=(xe,ye,je)=>{const{node:Pe,checked:Be}=ge(xe,ye,je);return v?v(Be,ye,je,Pe):Pe};if(!ne.includes(Ca))if(ne.findIndex(xe=>{var ye;return((ye=xe[nc])===null||ye===void 0?void 0:ye.columnType)==="EXPAND_COLUMN"})===0){const[xe,...ye]=ne;ne=[xe,Ca].concat(be(ye))}else ne=[Ca].concat(be(ne));const ve=ne.indexOf(Ca);ne=ne.filter((xe,ye)=>xe!==Ca||ye===ve);const Re=ne[ve-1],_e=ne[ve+1];let Ue=h;Ue===void 0&&((_e==null?void 0:_e.fixed)!==void 0?Ue=_e.fixed:(Re==null?void 0:Re.fixed)!==void 0&&(Ue=Re.fixed)),Ue&&Re&&((ae=Re[nc])===null||ae===void 0?void 0:ae.columnType)==="EXPAND_COLUMN"&&Re.fixed===void 0&&(Re.fixed=Ue);const ke=V(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:y&&g==="checkbox"}),De=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ie):t.columnTitle:Ce,Ae={fixed:Ue,width:p,className:`${S}-selection-column`,title:De(),render:de,onCell:t.onCell,align:t.align,[nc]:{className:ke}};return ne.map(xe=>xe===Ca?Ae:xe)},[$,k,t,U,q,te,p,ue,E,K,m,ee,B]),q]};function $G(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:a,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:V(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&a,[`${s}-collapsed`]:i&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function wG(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const i=getComputedStyle(o),s=Number.parseInt(i.borderLeftWidth,10),c=Number.parseInt(i.borderRightWidth,10);a=r-s-c}return a}}const Xa=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function vs(e,t){return t?`${t}-${e}`:`${e}`}const Wm=(e,t)=>typeof e=="function"?e(t):e,EG=(e,t)=>{const n=Wm(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var OG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},IG=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:OG}))},PG=l.forwardRef(IG),RG=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o;break}return Q.createElement("div",{style:a})};function eN(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function NG(e,t){var n=l.useState(!1),r=oe(n,2),o=r[0],a=r[1];Pt(function(){if(o)return e(),function(){t()}},[o]),Pt(function(){return a(!0),function(){a(!1)}},[])}var MG=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],jG=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,a=e.motionNodes,i=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=ft(e,MG),m=l.useState(!0),p=oe(m,2),g=p[0],y=p[1],h=l.useContext(vb),v=h.prefixCls,b=a&&i!=="hide";Pt(function(){a&&b!==g&&y(b)},[a]);var C=function(){a&&s()},S=l.useRef(!1),x=function(){a&&!S.current&&(S.current=!0,c())};NG(C,x);var w=function($){b===$&&x()};return a?l.createElement(Nr,pe({ref:t,visible:g},o,{motionAppear:i==="show",onVisibleChanged:w}),function(O,$){var E=O.className,I=O.style;return l.createElement("div",{ref:$,className:V("".concat(v,"-treenode-motion"),E),style:I},a.map(function(R){var M=Object.assign({},(eN(R.data),R.data)),N=R.title,P=R.key,_=R.isStart,j=R.isEnd;delete M.children;var T=ec(P,d);return l.createElement(Fc,pe({},M,T,{title:N,active:u,data:R.data,key:P,isStart:_,isEnd:j}))}))}):l.createElement(Fc,pe({domRef:t,className:n,style:r},f,{active:u}))});function TG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var s=new Map;a.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function a$(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],a=t.findIndex(function(s){return s.key===n});if(o){var i=t.findIndex(function(s){return s.key===o.key});return t.slice(a+1,i)}return t.slice(a+1)}var _G=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],i$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},zG=function(){},zi="RC_TREE_MOTION_".concat(Math.random()),Fh={key:zi},tN={key:zi,level:0,index:0,pos:"0",node:Fh,nodes:[Fh]},l$={parent:null,children:[],pos:tN.pos,data:Fh,title:null,key:zi,isStart:[],isEnd:[]};function s$(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function c$(e){var t=e.key,n=e.pos;return vu(t,n)}function LG(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var DG=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,p=e.dragOverNodeKey,g=e.dropPosition,y=e.motion,h=e.height,v=e.itemHeight,b=e.virtual,C=e.scrollWidth,S=e.focusable,x=e.activeItem,w=e.focused,O=e.tabIndex,$=e.onKeyDown,E=e.onFocus,I=e.onBlur,R=e.onActiveChange,M=e.onListChangeStart,N=e.onListChangeEnd,P=ft(e,_G),_=l.useRef(null),j=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(ge){_.current.scrollTo(ge)},getIndentWidth:function(){return j.current.offsetWidth}}});var T=l.useState(o),z=oe(T,2),L=z[0],k=z[1],H=l.useState(r),K=oe(H,2),B=K[0],U=K[1],G=l.useState(r),q=oe(G,2),te=q[0],Z=q[1],ee=l.useState([]),ue=oe(ee,2),re=ue[0],X=ue[1],ae=l.useState(null),ne=oe(ae,2),J=ne[0],Y=ne[1],se=l.useRef(r);se.current=r;function fe(){var ie=se.current;U(ie),Z(ie),X([]),Y(null),N()}Pt(function(){k(o);var ie=TG(L,o);if(ie.key!==null)if(ie.add){var ge=B.findIndex(function(ke){var De=ke.key;return De===ie.key}),de=s$(a$(B,r,ie.key),b,h,v),ve=B.slice();ve.splice(ge+1,0,l$),Z(ve),X(de),Y("show")}else{var Re=r.findIndex(function(ke){var De=ke.key;return De===ie.key}),_e=s$(a$(r,B,ie.key),b,h,v),Ue=r.slice();Ue.splice(Re+1,0,l$),Z(Ue),X(_e),Y("hide")}else B!==r&&(U(r),Z(r))},[o,r]),l.useEffect(function(){m||fe()},[m]);var $e=y?te:r,Ce={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:g,keyEntities:d};return l.createElement(l.Fragment,null,w&&x&&l.createElement("span",{style:i$,"aria-live":"assertive"},LG(x)),l.createElement("div",null,l.createElement("input",{style:i$,disabled:S===!1||f,tabIndex:S!==!1?O:null,onKeyDown:$,onFocus:E,onBlur:I,value:"",onChange:zG,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),l.createElement(Im,pe({},P,{data:$e,itemKey:c$,height:h,fullHeight:!1,virtual:b,itemHeight:v,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:_,role:"tree",onVisibleChange:function(ge){ge.every(function(de){return c$(de)!==zi})&&fe()}}),function(ie){var ge=ie.pos,de=Object.assign({},(eN(ie.data),ie.data)),ve=ie.title,Re=ie.key,_e=ie.isStart,Ue=ie.isEnd,ke=vu(Re,ge);delete de.key,delete de.children;var De=ec(ke,Ce);return l.createElement(jG,pe({},de,De,{title:ve,active:!!x&&Re===x.key,pos:ge,data:ie.data,isStart:_e,isEnd:Ue,motion:y,motionNodes:Re===zi?re:null,motionType:J,onMotionStart:M,onMotionEnd:fe,treeNodeRequiredProps:Ce,onMouseMove:function(){R(null)}}))}))}),BG=10,hb=function(e){Jr(n,e);var t=ho(n);function n(){var r;sn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),D(Ve(r),"destroyed",!1),D(Ve(r),"delayedDragEnterLogic",void 0),D(Ve(r),"loadingRetryTimes",{}),D(Ve(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Xl()}),D(Ve(r),"dragStartMousePosition",null),D(Ve(r),"dragNodeProps",null),D(Ve(r),"currentMouseOverDroppableNodeKey",null),D(Ve(r),"listRef",l.createRef()),D(Ve(r),"onNodeDragStart",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,p=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var g=Fo(d,p);r.setState({draggingNodeKey:p,dragChildrenKeys:bG(p,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(g),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:_n(c)})}),D(Ve(r),"onNodeDragEnter",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,p=u.flattenNodes,g=u.indent,y=r.props,h=y.onDragEnter,v=y.onExpand,b=y.allowDrop,C=y.direction,S=c.pos,x=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==x&&(r.currentMouseOverDroppableNodeKey=x),!r.dragNodeProps){r.resetDragState();return}var w=n$(s,r.dragNodeProps,c,g,r.dragStartMousePosition,b,p,f,d,C),O=w.dropPosition,$=w.dropLevelOffset,E=w.dropTargetKey,I=w.dropContainerKey,R=w.dropTargetPos,M=w.dropAllowed,N=w.dragOverNodeKey;if(m.includes(E)||!M){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(P){clearTimeout(r.delayedDragEnterLogic[P])}),r.dragNodeProps.eventKey!==c.eventKey&&(s.persist(),r.delayedDragEnterLogic[S]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var P=be(d),_=_r(f,c.eventKey);_&&(_.children||[]).length&&(P=ea(d,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(P),v==null||v(P,{node:_n(c),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===E&&$===0){r.resetDragState();return}r.setState({dragOverNodeKey:N,dropPosition:O,dropLevelOffset:$,dropTargetKey:E,dropContainerKey:I,dropTargetPos:R,dropAllowed:M}),h==null||h({event:s,node:_n(c),expandedKeys:d})}),D(Ve(r),"onNodeDragOver",function(s,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,p=u.expandedKeys,g=u.indent,y=r.props,h=y.onDragOver,v=y.allowDrop,b=y.direction;if(r.dragNodeProps){var C=n$(s,r.dragNodeProps,c,g,r.dragStartMousePosition,v,f,m,p,b),S=C.dropPosition,x=C.dropLevelOffset,w=C.dropTargetKey,O=C.dropContainerKey,$=C.dropTargetPos,E=C.dropAllowed,I=C.dragOverNodeKey;d.includes(w)||!E||(r.dragNodeProps.eventKey===w&&x===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():S===r.state.dropPosition&&x===r.state.dropLevelOffset&&w===r.state.dropTargetKey&&O===r.state.dropContainerKey&&$===r.state.dropTargetPos&&E===r.state.dropAllowed&&I===r.state.dragOverNodeKey||r.setState({dropPosition:S,dropLevelOffset:x,dropTargetKey:w,dropContainerKey:O,dropTargetPos:$,dropAllowed:E,dragOverNodeKey:I}),h==null||h({event:s,node:_n(c)}))}}),D(Ve(r),"onNodeDragLeave",function(s,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:s,node:_n(c)})}),D(Ve(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),D(Ve(r),"onNodeDragEnd",function(s,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:s,node:_n(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),D(Ve(r),"onNodeDrop",function(s,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,p=f.dropPosition,g=f.dropTargetKey,y=f.dropTargetPos,h=f.dropAllowed;if(h){var v=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),g!==null){var b=W(W({},ec(g,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:_r(r.state.keyEntities,g).node}),C=m.includes(g);an(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=gb(y),x={event:s,node:_n(b),dragNode:r.dragNodeProps?_n(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:p!==0,dropPosition:p+Number(S[S.length-1])};d||v==null||v(x),r.dragNodeProps=null}}}),D(Ve(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),D(Ve(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,p=c.key,g=c.isLeaf;if(!(g||s.shiftKey||s.metaKey||s.ctrlKey)){var y=f.filter(function(v){return v.key===p})[0],h=_n(W(W({},ec(p,r.getTreeNodeRequiredProps())),{},{data:y.data}));r.setExpandedKeys(m?Fo(d,p):ea(d,p)),r.onNodeExpand(s,h)}}),D(Ve(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),D(Ve(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),D(Ve(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,p=r.props,g=p.onSelect,y=p.multiple,h=c.selected,v=c[m.key],b=!h;b?y?u=ea(u,v):u=[v]:u=Fo(u,v);var C=u.map(function(S){var x=_r(f,S);return x?x.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:b,node:c,selectedNodes:C,nativeEvent:s.nativeEvent})}),D(Ve(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,p=d.halfCheckedKeys,g=r.props,y=g.checkStrictly,h=g.onCheck,v=c.key,b,C={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(y){var S=u?ea(m,v):Fo(m,v),x=Fo(p,v);b={checked:S,halfChecked:x},C.checkedNodes=S.map(function(R){return _r(f,R)}).filter(Boolean).map(function(R){return R.node}),r.setUncontrolledState({checkedKeys:S})}else{var w=Nl([].concat(be(m),[v]),!0,f),O=w.checkedKeys,$=w.halfCheckedKeys;if(!u){var E=new Set(O);E.delete(v);var I=Nl(Array.from(E),{halfCheckedKeys:$},f);O=I.checkedKeys,$=I.halfCheckedKeys}b=O,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=$,O.forEach(function(R){var M=_r(f,R);if(M){var N=M.node,P=M.pos;C.checkedNodes.push(N),C.checkedNodesPositions.push({node:N,pos:P})}}),r.setUncontrolledState({checkedKeys:O},!1,{halfCheckedKeys:$})}h==null||h(b,C)}),D(Ve(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=_r(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(p,g){r.setState(function(y){var h=y.loadedKeys,v=h===void 0?[]:h,b=y.loadingKeys,C=b===void 0?[]:b,S=r.props,x=S.loadData,w=S.onLoad;if(!x||v.includes(u)||C.includes(u))return null;var O=x(s);return O.then(function(){var $=r.state.loadedKeys,E=ea($,u);w==null||w(E,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:E}),r.setState(function(I){return{loadingKeys:Fo(I.loadingKeys,u)}}),p()}).catch(function($){if(r.setState(function(I){return{loadingKeys:Fo(I.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=BG){var E=r.state.loadedKeys;an(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ea(E,u)}),p()}g($)}),{loadingKeys:ea(C,u)}})});return m.catch(function(){}),m}}),D(Ve(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),D(Ve(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),D(Ve(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),D(Ve(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),D(Ve(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),D(Ve(r),"getTreeNodeRequiredProps",function(){var s=r.state,c=s.expandedKeys,u=s.selectedKeys,d=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,p=s.halfCheckedKeys,g=s.dragOverNodeKey,y=s.dropPosition,h=s.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:p||[],dragOverNodeKey:g,dropPosition:y,keyEntities:h}}),D(Ve(r),"setExpandedKeys",function(s){var c=r.state,u=c.treeData,d=c.fieldNames,f=av(u,s,d);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)}),D(Ve(r),"onNodeExpand",function(s,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,p=r.props,g=p.onExpand,y=p.loadData,h=c.expanded,v=c[m.key];if(!f){var b=u.includes(v),C=!h;if(an(h&&b||!h&&!b,"Expand state not sync with index check"),u=C?ea(u,v):Fo(u,v),r.setExpandedKeys(u),g==null||g(u,{node:c,expanded:C,nativeEvent:s.nativeEvent}),C&&y){var S=r.onNodeLoad(c);S&&S.then(function(){var x=av(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:x})}).catch(function(){var x=r.state.expandedKeys,w=Fo(x,v);r.setExpandedKeys(w)})}}}),D(Ve(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),D(Ve(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),D(Ve(r),"onActiveChange",function(s){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),d==null||d(s))}),D(Ve(r),"getActiveItem",function(){var s=r.state,c=s.activeKey,u=s.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),D(Ve(r),"offsetActiveKey",function(s){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(g){var y=g.key;return y===d});f===-1&&s<0&&(f=u.length),f=(f+s+u.length)%u.length;var m=u[f];if(m){var p=m.key;r.onActiveChange(p)}else r.onActiveChange(null)}),D(Ve(r),"onKeyDown",function(s){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,p=r.props,g=p.onKeyDown,y=p.checkable,h=p.selectable;switch(s.which){case Xe.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Xe.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var v=r.getActiveItem();if(v&&v.data){var b=r.getTreeNodeRequiredProps(),C=v.data.isLeaf===!1||!!(v.data[m.children]||[]).length,S=_n(W(W({},ec(u,b)),{},{data:v.data,active:!0}));switch(s.which){case Xe.LEFT:{C&&d.includes(u)?r.onNodeExpand({},S):v.parent&&r.onActiveChange(v.parent.key),s.preventDefault();break}case Xe.RIGHT:{C&&!d.includes(u)?r.onNodeExpand({},S):v.children&&v.children.length&&r.onActiveChange(v.children[0].key),s.preventDefault();break}case Xe.ENTER:case Xe.SPACE:{y&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!f.includes(u)):!y&&h&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}g==null||g(s)}),D(Ve(r),"setUncontrolledState",function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}d=!0,m[p]=s[p]}),d&&(!c||f)&&r.setState(W(W({},m),u))}}),D(Ve(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return cn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,s=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,p=o.dropPosition,g=o.dragOverNodeKey,y=o.indent,h=this.props,v=h.prefixCls,b=h.className,C=h.style,S=h.showLine,x=h.focusable,w=h.tabIndex,O=w===void 0?0:w,$=h.selectable,E=h.showIcon,I=h.icon,R=h.switcherIcon,M=h.draggable,N=h.checkable,P=h.checkStrictly,_=h.disabled,j=h.motion,T=h.loadData,z=h.filterTreeNode,L=h.height,k=h.itemHeight,H=h.scrollWidth,K=h.virtual,B=h.titleRender,U=h.dropIndicatorRender,G=h.onContextMenu,q=h.onScroll,te=h.direction,Z=h.rootClassName,ee=h.rootStyle,ue=Jn(this.props,{aria:!0,data:!0}),re;M&&(et(M)==="object"?re=M:typeof M=="function"?re={nodeDraggable:M}:re={});var X={prefixCls:v,selectable:$,showIcon:E,icon:I,switcherIcon:R,draggable:re,draggingNodeKey:c,checkable:N,checkStrictly:P,disabled:_,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:p,dragOverNodeKey:g,indent:y,direction:te,dropIndicatorRender:U,loadData:T,filterTreeNode:z,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return l.createElement(vb.Provider,{value:X},l.createElement("div",{className:V(v,b,Z,D(D(D({},"".concat(v,"-show-line"),S),"".concat(v,"-focused"),a),"".concat(v,"-active-focused"),u!==null)),style:ee},l.createElement(DG,pe({ref:this.listRef,prefixCls:v,style:C,data:i,disabled:_,selectable:$,checkable:!!N,motion:j,dragging:c!==null,height:L,itemHeight:k,virtual:K,focusable:x,focused:a,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:q,scrollWidth:H},this.getTreeNodeRequiredProps(),ue))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s={prevProps:o};function c(O){return!i&&o.hasOwnProperty(O)||i&&i[O]!==o[O]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=Xl(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(an(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=ZP(o.children)),u){s.treeData=u;var f=eb(u,{fieldNames:d});s.keyEntities=W(D({},zi,tN),f.keyEntities)}var m=s.keyEntities||a.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?Dh(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var p=W({},m);delete p[zi];var g=[];Object.keys(p).forEach(function(O){var $=p[O];$.children&&$.children.length&&g.push($.key)}),s.expandedKeys=g}else!i&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Dh(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var y=av(u||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=y}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=r$(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(s.selectedKeys=r$(o.defaultSelectedKeys,o))),o.checkable){var h;if(c("checkedKeys")?h=gv(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?h=gv(o.defaultCheckedKeys)||{}:u&&(h=gv(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),h){var v=h,b=v.checkedKeys,C=b===void 0?[]:b,S=v.halfCheckedKeys,x=S===void 0?[]:S;if(!o.checkStrictly){var w=Nl(C,!0,m);C=w.checkedKeys,x=w.halfCheckedKeys}s.checkedKeys=C,s.halfCheckedKeys=x}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(l.Component);D(hb,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:RG,allowDrop:function(){return!0},expandAction:!1});D(hb,"TreeNode",Fc);var kG={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 42h216v494z"}}]},name:"file",theme:"outlined"},AG=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:kG}))},nN=l.forwardRef(AG),FG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},HG=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:FG}))},VG=l.forwardRef(HG),WG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},KG=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:WG}))},UG=l.forwardRef(KG),GG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},qG=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:GG}))},XG=l.forwardRef(qG);const YG=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),QG=new Bt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),JG=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),ZG=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${A(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),eq=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,indentSize:i,nodeSelectedBg:s,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},Dt(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Jo(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:QG,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:A(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},JG(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ZG(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${A(t.calc(a).div(2).equal())} !important`}})}},tq=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=Et(t,{treeCls:r,treeNodeCls:o,treeNodePadding:a});return[eq(e,i),n&&YG(i)].filter(Boolean)},nq=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},rq=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},nq(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},oq=Tt("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:tR(`${t}-checkbox`,e)},tq(t,e),nu(e)],rq),u$=4;function aq(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",c={[i]:-n*o+u$,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+u$;break}return Q.createElement("div",{style:c,className:`${r}-drop-indicator`})}var iq={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:"filled"},lq=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:iq}))},sq=l.forwardRef(lq),cq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},uq=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:cq}))},dq=l.forwardRef(uq),fq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},mq=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:fq}))},pq=l.forwardRef(mq);const vq=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:i,switcherLoadingIcon:s}=e,{isLeaf:c,expanded:u,loading:d}=a;if(d)return l.isValidElement(s)?s:l.createElement(da,{className:`${r}-switcher-loading-icon`});let f;if(i&&typeof i=="object"&&(f=i.showLeafIcon),c){if(!i)return null;if(typeof f!="boolean"&&f){const g=typeof f=="function"?f(a):f,y=`${r}-switcher-line-custom-icon`;return l.isValidElement(g)?Dn(g,{className:V((t=g.props)===null||t===void 0?void 0:t.className,y)}):g}return f?l.createElement(nN,{className:`${r}-switcher-line-icon`}):l.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,p=typeof o=="function"?o(a):o;return l.isValidElement(p)?Dn(p,{className:V((n=p.props)===null||n===void 0?void 0:n.className,m)}):p!==void 0?p:i?u?l.createElement(dq,{className:`${r}-switcher-line-icon`}):l.createElement(pq,{className:`${r}-switcher-line-icon`}):l.createElement(sq,{className:m})},rN=Q.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=Q.useContext(ot),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:p=!1,children:g,checkable:y=!1,selectable:h=!0,draggable:v,disabled:b,motion:C,style:S}=e,x=r("tree",s),w=r(),O=Q.useContext(Ir),$=b??O,E=C??Object.assign(Object.assign({},Kl(w)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:y,selectable:h,showIcon:u,motion:E,blockNode:p,disabled:$,showLine:!!d,dropIndicatorRender:aq}),[R,M,N]=oq(x),[,P]=tr(),_=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),j=Q.useMemo(()=>{if(!v)return!1;let z={};switch(typeof v){case"function":z.nodeDraggable=v;break;case"object":z=Object.assign({},v);break}return z.icon!==!1&&(z.icon=z.icon||Q.createElement(XG,null)),z},[v]),T=z=>Q.createElement(vq,{prefixCls:x,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:z,showLine:d});return R(Q.createElement(hb,Object.assign({itemHeight:_,ref:t,virtual:a},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),S),prefixCls:x,className:V({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:p,[`${x}-unselectable`]:!h,[`${x}-rtl`]:o==="rtl",[`${x}-disabled`]:$},i==null?void 0:i.className,c,M,N),direction:o,checkable:y&&Q.createElement("span",{className:`${x}-checkbox-inner`}),selectable:h,switcherIcon:T,draggable:j}),g))}),d$=0,hv=1,f$=2;function yb(e,t,n){const{key:r,children:o}=n;function a(i){const s=i[r],c=i[o];t(s,i)!==!1&&yb(c||[],t,n)}e.forEach(a)}function gq({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const a=[];let i=d$;if(n&&n===r)return[n];if(!n||!r)return[];function s(c){return c===n||c===r}return yb(e,c=>{if(i===f$)return!1;if(s(c)){if(a.push(c),i===d$)i=hv;else if(i===hv)return i=f$,!1}else i===hv&&a.push(c);return t.includes(c)},Xl(o)),a}function yv(e,t,n){const r=be(t),o=[];return yb(e,(a,i)=>{const s=r.indexOf(a);return s!==-1&&(o.push(i),r.splice(s,1)),!!r.length},Xl(n)),o}var m$=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 hq(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(nN,null):n?l.createElement(VG,null):l.createElement(UG,null)}function p$({treeData:e,children:t}){return e||ZP(t)}const yq=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=m$(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(null),s=l.useRef(null),c=()=>{const{keyEntities:$}=eb(p$(a),{fieldNames:a.fieldNames});let E;return n?E=Object.keys($):r?E=Dh(a.expandedKeys||o||[],$):E=a.expandedKeys||o||[],E},[u,d]=l.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),l.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const p=($,E)=>{var I;return"expandedKeys"in a||m($),(I=a.onExpand)===null||I===void 0?void 0:I.call(a,$,E)},g=($,E)=>{var I;const{multiple:R,fieldNames:M}=a,{node:N,nativeEvent:P}=E,{key:_=""}=N,j=p$(a),T=Object.assign(Object.assign({},E),{selected:!0}),z=(P==null?void 0:P.ctrlKey)||(P==null?void 0:P.metaKey),L=P==null?void 0:P.shiftKey;let k;R&&z?(k=$,i.current=_,s.current=k,T.selectedNodes=yv(j,k,M)):R&&L?(k=Array.from(new Set([].concat(be(s.current||[]),be(gq({treeData:j,expandedKeys:f,startKey:_,endKey:i.current,fieldNames:M}))))),T.selectedNodes=yv(j,k,M)):(k=[_],i.current=_,s.current=k,T.selectedNodes=yv(j,k,M)),(I=a.onSelect)===null||I===void 0||I.call(a,k,T),"selectedKeys"in a||d(k)},{getPrefixCls:y,direction:h}=l.useContext(ot),{prefixCls:v,className:b,showIcon:C=!0,expandAction:S="click"}=a,x=m$(a,["prefixCls","className","showIcon","expandAction"]),w=y("tree",v),O=V(`${w}-directory`,{[`${w}-directory-rtl`]:h==="rtl"},b);return l.createElement(rN,Object.assign({icon:hq,ref:t,blockNode:!0},x,{showIcon:C,expandAction:S,prefixCls:w,className:O,expandedKeys:f,selectedKeys:u,onSelect:g,onExpand:p}))},bq=l.forwardRef(yq),bb=rN;bb.DirectoryTree=bq;bb.TreeNode=Fc;const v$=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:a}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(gu,{prefix:l.createElement(Pm,null),placeholder:o.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Cq=e=>{const{keyCode:t}=e;t===Xe.ENTER&&e.stopPropagation()},Sq=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Cq,ref:t},e.children));function Ml(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(be(t),be(Ml(r))))}),t}function xq(e){return e.some(({children:t})=>t)}function oN(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function aN({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a}){return e.map((i,s)=>{const c=String(i.value);if(i.children)return{key:c||s,label:i.text,popupClassName:`${t}-dropdown-submenu`,children:aN({filters:i.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a})};const u=r?Yl:mu,d={key:i.value!==void 0?c:s,label:l.createElement(l.Fragment,null,l.createElement(u,{checked:n.includes(c)}),l.createElement("span",null,i.text))};return o.trim()?typeof a=="function"?a(o,i)?d:null:oN(o,i.text)?d:null:d})}function bv(e){return e||[]}const $q=e=>{var t,n,r,o;const{tablePrefixCls:a,prefixCls:i,column:s,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:p=!1,filterState:g,triggerFilter:y,locale:h,children:v,getPopupContainer:b,rootClassName:C}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:x,filterDropdownProps:w={},filterDropdownOpen:O,filterDropdownVisible:$,onFilterDropdownVisibleChange:E,onFilterDropdownOpenChange:I}=s,[R,M]=l.useState(!1),N=!!(g&&(!((t=g.filteredKeys)===null||t===void 0)&&t.length||g.forceFiltered)),P=ie=>{var ge;M(ie),(ge=w.onOpenChange)===null||ge===void 0||ge.call(w,ie),I==null||I(ie),E==null||E(ie)},_=(o=(r=(n=w.open)!==null&&n!==void 0?n:O)!==null&&r!==void 0?r:$)!==null&&o!==void 0?o:R,j=g==null?void 0:g.filteredKeys,[T,z]=$8(bv(j)),L=({selectedKeys:ie})=>{z(ie)},k=(ie,{node:ge,checked:de})=>{L(f?{selectedKeys:ie}:{selectedKeys:de&&ge.key?[ge.key]:[]})};l.useEffect(()=>{R&&L({selectedKeys:bv(j)})},[j]);const[H,K]=l.useState([]),B=ie=>{K(ie)},[U,G]=l.useState(""),q=ie=>{const{value:ge}=ie.target;G(ge)};l.useEffect(()=>{R||G("")},[R]);const te=ie=>{const ge=ie!=null&&ie.length?ie:null;if(ge===null&&(!g||!g.filteredKeys)||Yo(ge,g==null?void 0:g.filteredKeys,!0))return null;y({column:s,key:u,filteredKeys:ge})},Z=()=>{P(!1),te(T())},ee=({confirm:ie,closeDropdown:ge}={confirm:!1,closeDropdown:!1})=>{ie&&te([]),ge&&P(!1),G(""),z(S?(x||[]).map(de=>String(de)):[])},ue=({closeDropdown:ie}={closeDropdown:!0})=>{ie&&P(!1),te(T())},re=(ie,ge)=>{ge.source==="trigger"&&(ie&&j!==void 0&&z(bv(j)),P(ie),!ie&&!s.filterDropdown&&d&&Z())},X=V({[`${c}-menu-without-submenu`]:!xq(s.filters||[])}),ae=ie=>{if(ie.target.checked){const ge=Ml(s==null?void 0:s.filters).map(de=>String(de));z(ge)}else z([])},ne=({filters:ie})=>(ie||[]).map((ge,de)=>{const ve=String(ge.value),Re={title:ge.text,key:ge.value!==void 0?ve:String(de)};return ge.children&&(Re.children=ne({filters:ge.children})),Re}),J=ie=>{var ge;return Object.assign(Object.assign({},ie),{text:ie.title,value:ie.key,children:((ge=ie.children)===null||ge===void 0?void 0:ge.map(de=>J(de)))||[]})};let Y;const{direction:se,renderEmpty:fe}=l.useContext(ot);if(typeof s.filterDropdown=="function")Y=s.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:ie=>L({selectedKeys:ie}),selectedKeys:T(),confirm:ue,clearFilters:ee,filters:s.filters,visible:_,close:()=>{P(!1)}});else if(s.filterDropdown)Y=s.filterDropdown;else{const ie=T()||[],ge=()=>{var ve,Re;const _e=(ve=fe==null?void 0:fe("Table.filter"))!==null&&ve!==void 0?ve:l.createElement(Sn,{image:Sn.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return _e;if(m==="tree")return l.createElement(l.Fragment,null,l.createElement(v$,{filterSearch:p,value:U,onChange:q,tablePrefixCls:a,locale:h}),l.createElement("div",{className:`${a}-filter-dropdown-tree`},f?l.createElement(Yl,{checked:ie.length===Ml(s.filters).length,indeterminate:ie.length>0&&ie.length<Ml(s.filters).length,className:`${a}-filter-dropdown-checkall`,onChange:ae},(Re=h==null?void 0:h.filterCheckall)!==null&&Re!==void 0?Re:h==null?void 0:h.filterCheckAll):null,l.createElement(bb,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:k,checkedKeys:ie,selectedKeys:ie,showIcon:!1,treeData:ne({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:U.trim()?De=>typeof p=="function"?p(U,J(De)):oN(U,De.title):void 0})));const Ue=aN({filters:s.filters||[],filterSearch:p,prefixCls:i,filteredKeys:T(),filterMultiple:f,searchValue:U}),ke=Ue.every(De=>De===null);return l.createElement(l.Fragment,null,l.createElement(v$,{filterSearch:p,value:U,onChange:q,tablePrefixCls:a,locale:h}),ke?_e:l.createElement(Vi,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:X,onSelect:L,onDeselect:L,selectedKeys:ie,getPopupContainer:b,openKeys:H,onOpenChange:B,items:Ue}))},de=()=>S?Yo((x||[]).map(ve=>String(ve)),ie,!0):ie.length===0;Y=l.createElement(l.Fragment,null,ge(),l.createElement("div",{className:`${i}-dropdown-btns`},l.createElement(It,{type:"link",size:"small",disabled:de(),onClick:()=>ee()},h.filterReset),l.createElement(It,{type:"primary",size:"small",onClick:Z},h.filterConfirm)))}s.filterDropdown&&(Y=l.createElement($P,{selectable:void 0},Y)),Y=l.createElement(Sq,{className:`${i}-dropdown`},Y);const Ce=jc({trigger:["click"],placement:se==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ie;return typeof s.filterIcon=="function"?ie=s.filterIcon(N):s.filterIcon?ie=s.filterIcon:ie=l.createElement(PG,null),l.createElement("span",{role:"button",tabIndex:-1,className:V(`${i}-trigger`,{active:N}),onClick:ge=>{ge.stopPropagation()}},ie)})(),getPopupContainer:b},Object.assign(Object.assign({},w),{rootClassName:V(C,w.rootClassName),open:_,onOpenChange:re,popupRender:()=>typeof(w==null?void 0:w.dropdownRender)=="function"?w.dropdownRender(Y):Y}));return l.createElement("div",{className:`${i}-column`},l.createElement("span",{className:`${a}-column-title`},v),l.createElement(ib,Object.assign({},Ce)))},Hh=(e,t,n)=>{let r=[];return(e||[]).forEach((o,a)=>{var i;const s=vs(a,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(i=u==null?void 0:u.map(String))!==null&&i!==void 0?i:u),r.push({column:o,key:Xa(o,s),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:Xa(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(be(r),be(Hh(o.children,t,s))))}),r};function iN(e,t,n,r,o,a,i,s,c){return n.map((u,d)=>{const f=vs(d,s),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:g,filterSearch:y}=u;let h=u;if(h.filters||h.filterDropdown){const v=Xa(h,f),b=r.find(({key:C})=>v===C);h=Object.assign(Object.assign({},h),{title:C=>l.createElement($q,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:v,filterState:b,filterOnClose:m,filterMultiple:p,filterMode:g,filterSearch:y,triggerFilter:a,locale:o,getPopupContainer:i,rootClassName:c},Wm(u.title,C))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:iN(e,t,h.children,r,o,a,i,f,c)})),h})}const g$=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const a=n,{filters:i,filterDropdown:s}=o;if(s)t[a]=r||null;else if(Array.isArray(r)){const c=Ml(i);t[a]=c.filter(u=>r.includes(String(u)))}else t[a]=null}),t},Vh=(e,t,n)=>t.reduce((o,a)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=a;return i&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Ml(s),m=f.findIndex(g=>String(g)===String(d)),p=m!==-1?f[m]:d;return u[n]&&(u[n]=Vh(u[n],t,n)),i(p,u)})):o},e),lN=e=>e.flatMap(t=>"children"in t?[t].concat(be(lN(t.children||[]))):[t]),wq=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:s}=e;ni();const c=l.useMemo(()=>lN(r||[]),[r]),[u,d]=l.useState(()=>Hh(c,!0)),f=l.useMemo(()=>{const y=Hh(c,!1);if(y.length===0)return y;let h=!0;if(y.forEach(({filteredKeys:v})=>{v!==void 0&&(h=!1)}),h){const v=(c||[]).map((b,C)=>Xa(b,vs(C)));return u.filter(({key:b})=>v.includes(b)).map(b=>{const C=c[v.indexOf(b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),C),forceFiltered:C.filtered})})}return y},[c,u]),m=l.useMemo(()=>g$(f),[f]),p=y=>{const h=f.filter(({key:v})=>v!==y.key);h.push(y),d(h),o(g$(h),h)};return[y=>iN(t,n,y,f,i,p,a,void 0,s),f,m]},Eq=(e,t,n)=>{const r=l.useRef({});function o(a){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,m)=>{const p=n(f,m);c.set(p,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(a)}return[o]};var Oq=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 sN=10;function Iq(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function Pq(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=Oq(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:sN})),c=jc(i,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,p)=>{s({current:m??1,pageSize:p||c.pageSize})},f=(m,p)=>{var g;n&&((g=n.onChange)===null||g===void 0||g.call(n,m,p)),d(m,p),t(m,p||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var Rq={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"},Nq=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:Rq}))},Mq=l.forwardRef(Nq),jq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Tq=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:jq}))},_q=l.forwardRef(Tq);const _d="ascend",Cv="descend",Pf=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,h$=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,zq=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Wh=(e,t,n)=>{let r=[];const o=(a,i)=>{r.push({column:a,key:Xa(a,i),multiplePriority:Pf(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,i)=>{const s=vs(i,n);a.children?("sortOrder"in a&&o(a,s),r=[].concat(be(r),be(Wh(a.children,t,s)))):a.sorter&&("sortOrder"in a?o(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Xa(a,s),multiplePriority:Pf(a),sortOrder:a.defaultSortOrder}))}),r},cN=(e,t,n,r,o,a,i,s)=>(t||[]).map((u,d)=>{const f=vs(d,s);let m=u;if(m.sorter){const p=m.sortDirections||o,g=m.showSorterTooltip===void 0?i:m.showSorterTooltip,y=Xa(m,f),h=n.find(({key:E})=>E===y),v=h?h.sortOrder:null,b=zq(p,v);let C;if(u.sortIcon)C=u.sortIcon({sortOrder:v});else{const E=p.includes(_d)&&l.createElement(_q,{className:V(`${e}-column-sorter-up`,{active:v===_d})}),I=p.includes(Cv)&&l.createElement(Mq,{className:V(`${e}-column-sorter-down`,{active:v===Cv})});C=l.createElement("span",{className:V(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(E&&I)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},E,I))}const{cancelSort:S,triggerAsc:x,triggerDesc:w}=a||{};let O=S;b===Cv?O=w:b===_d&&(O=x);const $=typeof g=="object"?Object.assign({title:O},g):{title:O};m=Object.assign(Object.assign({},m),{className:V(m.className,{[`${e}-column-sort`]:v}),title:E=>{const I=`${e}-column-sorters`,R=l.createElement("span",{className:`${e}-column-title`},Wm(u.title,E)),M=l.createElement("div",{className:I},R,C);return g?typeof g!="boolean"&&(g==null?void 0:g.target)==="sorter-icon"?l.createElement("div",{className:V(I,`${I}-tooltip-target-sorter`)},R,l.createElement(Lo,Object.assign({},$),C)):l.createElement(Lo,Object.assign({},$),M):M},onHeaderCell:E=>{var I;const R=((I=u.onHeaderCell)===null||I===void 0?void 0:I.call(u,E))||{},M=R.onClick,N=R.onKeyDown;R.onClick=j=>{r({column:u,key:y,sortOrder:b,multiplePriority:Pf(u)}),M==null||M(j)},R.onKeyDown=j=>{j.keyCode===Xe.ENTER&&(r({column:u,key:y,sortOrder:b,multiplePriority:Pf(u)}),N==null||N(j))};const P=EG(u.title,{}),_=P==null?void 0:P.toString();return v&&(R["aria-sort"]=v==="ascend"?"ascending":"descending"),R["aria-label"]=_||"",R.className=V(R.className,`${e}-column-has-sorters`),R.tabIndex=0,u.ellipsis&&(R.title=(P??"").toString()),R}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:cN(e,m.children,n,r,o,a,i,f)})),m}),y$=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},b$=e=>{const t=e.filter(({sortOrder:n})=>n).map(y$);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},y$(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Kh=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(({column:{sorter:i},sortOrder:s})=>h$(i)&&s);return a.length?o.sort((i,s)=>{for(let c=0;c<a.length;c+=1){const u=a[c],{column:{sorter:d},sortOrder:f}=u,m=h$(d);if(m&&f){const p=m(i,s,f);if(p!==0)return f===_d?p:-p}}return 0}).map(i=>{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:Kh(s,t,n)}):i}):o},Lq=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:i}=e,[s,c]=l.useState(()=>Wh(n,!0)),u=(y,h)=>{const v=[];return y.forEach((b,C)=>{const S=vs(C,h);if(v.push(Xa(b,S)),Array.isArray(b.children)){const x=u(b.children,S);v.push.apply(v,be(x))}}),v},d=l.useMemo(()=>{let y=!0;const h=Wh(n,!1);if(!h.length){const S=u(n);return s.filter(({key:x})=>S.includes(x))}const v=[];function b(S){y?v.push(S):v.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let C=null;return h.forEach(S=>{C===null?(b(S),S.sortOrder&&(S.multiplePriority===!1?y=!1:C=!0)):(C&&S.multiplePriority!==!1||(y=!1),b(S))}),v},[n,s]),f=l.useMemo(()=>{var y,h;const v=d.map(({column:b,sortOrder:C})=>({column:b,order:C}));return{sortColumns:v,sortColumn:(y=v[0])===null||y===void 0?void 0:y.column,sortOrder:(h=v[0])===null||h===void 0?void 0:h.order}},[d]),m=y=>{let h;y.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?h=[y]:h=[].concat(be(d.filter(({key:v})=>v!==y.key)),[y]),c(h),i(b$(h),h)};return[y=>cN(t,y,d,m,r,o,a),d,f,()=>b$(d)]},uN=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=Wm(r.title,t),"children"in o&&(o.children=uN(o.children,t)),o}),Dq=e=>[l.useCallback(n=>uN(n,e),[e])],Bq=YR((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),kq=JR((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Aq=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${A(n)} ${r} ${o}`,d=(f,m,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${A(c(m).mul(-1).equal())}
|
|
383
|
+
${A(c(c(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
|
|
384
|
+
> ${t}-content,
|
|
385
|
+
> ${t}-header,
|
|
386
|
+
> ${t}-body,
|
|
387
|
+
> ${t}-summary
|
|
388
|
+
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${A(c(i).mul(-1).equal())} ${A(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
389
|
+
> tr${t}-expanded-row,
|
|
390
|
+
> tr${t}-placeholder
|
|
391
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${A(n)} 0 ${A(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},Fq=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},_o),{wordBreak:"keep-all",[`
|
|
392
|
+
&${t}-cell-fix-left-last,
|
|
393
|
+
&${t}-cell-fix-right-first
|
|
394
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Hq=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Vq=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:p,paddingXXS:g,expandIconMarginTop:y,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:C}=e,S=`${A(o)} ${i} ${s}`,x=C(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},uy(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:A(h),background:c,border:S,borderRadius:d,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:y,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${A(C(f).mul(-1).equal())} ${A(C(m).mul(-1).equal())}`,padding:`${A(f)} ${A(m)}`}}}},Wq=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:p,tablePaddingHorizontal:g,borderRadius:y,motionDurationSlow:h,colorIcon:v,colorPrimary:b,tableHeaderFilterActiveBg:C,colorTextDisabled:S,tableFilterDropdownBg:x,tableFilterDropdownHeight:w,controlItemBgHover:O,controlItemBgActive:$,boxShadowSecondary:E,filterDropdownMenuBg:I,calc:R}=e,M=`${n}-dropdown`,N=`${t}-filter-dropdown`,P=`${n}-tree`,_=`${A(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:R(i).mul(-1).equal(),marginInline:`${A(i)} ${A(R(g).div(2).mul(-1).equal())}`,padding:`0 ${A(i)}`,color:m,fontSize:p,borderRadius:y,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:C},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},Dt(e)),{minWidth:o,backgroundColor:x,borderRadius:y,boxShadow:E,overflow:"hidden",[`${M}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${A(s)} 0`,color:S,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${A(s)} 0`,paddingInline:s,[P]:{padding:0},[`${P}-treenode ${P}-node-content-wrapper:hover`]:{backgroundColor:O},[`${P}-treenode-checkbox-checked ${P}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${N}-search`]:{padding:s,borderBottom:_,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${N}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${N}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${A(R(s).sub(u).equal())} ${A(s)}`,overflow:"hidden",borderTop:_}})}},{[`${n}-dropdown ${N}, ${N}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Kq=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
|
|
395
|
+
${t}-cell-fix-left,
|
|
396
|
+
${t}-cell-fix-right
|
|
397
|
+
`]:{position:"sticky !important",zIndex:a,background:i},[`
|
|
398
|
+
${t}-cell-fix-left-first::after,
|
|
399
|
+
${t}-cell-fix-left-last::after
|
|
400
|
+
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
401
|
+
${t}-cell-fix-right-first::after,
|
|
402
|
+
${t}-cell-fix-right-last::after
|
|
403
|
+
`]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
|
|
404
|
+
${t}-cell-fix-left-first::after,
|
|
405
|
+
${t}-cell-fix-left-last::after
|
|
406
|
+
`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
|
|
407
|
+
${t}-cell-fix-right-first::after,
|
|
408
|
+
${t}-cell-fix-right-last::after
|
|
409
|
+
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
410
|
+
${t}-cell-fix-left-first::after,
|
|
411
|
+
${t}-cell-fix-left-last::after,
|
|
412
|
+
${t}-cell-fix-right-first::after,
|
|
413
|
+
${t}-cell-fix-right-last::after
|
|
414
|
+
`]:{boxShadow:"none"}}}}},Uq=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${A(r)} 0`}}},Gq=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${A(n)} ${A(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${A(n)} ${A(n)}`}}}}},qq=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Xq=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:p,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(u).add(g(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(a).div(4)).add(g(i).mul(2)).equal()}},[`
|
|
415
|
+
table tr th${t}-selection-column,
|
|
416
|
+
table tr td${t}-selection-column,
|
|
417
|
+
${t}-selection-column
|
|
418
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:g(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:A(g(p).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},Yq=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,i,s,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[`
|
|
419
|
+
${t}-title,
|
|
420
|
+
${t}-footer,
|
|
421
|
+
${t}-cell,
|
|
422
|
+
${t}-thead > tr > th,
|
|
423
|
+
${t}-tbody > tr > th,
|
|
424
|
+
${t}-tbody > tr > td,
|
|
425
|
+
tfoot > tr > th,
|
|
426
|
+
tfoot > tr > td
|
|
427
|
+
`]:{padding:`${A(i)} ${A(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:A(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${A(r(i).mul(-1).equal())} ${A(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:A(r(i).mul(-1).equal()),marginInline:`${A(r(n).sub(s).equal())} ${A(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:A(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Qq=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
428
|
+
&${t}-cell-fix-left:hover,
|
|
429
|
+
&${t}-cell-fix-right:hover
|
|
430
|
+
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Jq=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${A(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${A(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},C$=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${A(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${A(o(n).mul(-1).equal())} 0 ${r}`}}}},Zq=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,s=`${A(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
431
|
+
& > ${t}-row,
|
|
432
|
+
& > div:not(${t}-row) > ${t}-row
|
|
433
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${A(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},eX=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:p,tableHeaderBg:g,tableHeaderCellSplitColor:y,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,C=`${A(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Qo()),{[t]:Object.assign(Object.assign({},Dt(e)),{fontSize:u,background:d,borderRadius:`${A(f)} ${A(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${A(f)} ${A(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
434
|
+
${t}-cell,
|
|
435
|
+
${t}-thead > tr > th,
|
|
436
|
+
${t}-tbody > tr > th,
|
|
437
|
+
${t}-tbody > tr > td,
|
|
438
|
+
tfoot > tr > th,
|
|
439
|
+
tfoot > tr > td
|
|
440
|
+
`]:{position:"relative",padding:`${A(r)} ${A(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${A(r)} ${A(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:y,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:C,[`
|
|
441
|
+
> ${t}-wrapper:only-child,
|
|
442
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
443
|
+
`]:{[t]:{marginBlock:A(b(r).mul(-1).equal()),marginInline:`${A(b(a).sub(o).equal())}
|
|
444
|
+
${A(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${A(r)} ${A(o)}`,color:h,background:v}})}},tX=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:p,colorTextPlaceholder:g,fontSize:y,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:C,colorIconHover:S,opacityLoading:x,controlInteractiveSize:w}=e,O=new Lt(o).onBackground(n).toHexString(),$=new Lt(a).onBackground(n).toHexString(),E=new Lt(t).onBackground(n).toHexString(),I=new Lt(C),R=new Lt(S),M=w/2-b,N=M*2+b*3;return{headerBg:E,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:$,bodySortBg:E,rowHoverBg:E,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:E,footerColor:r,cellFontSize:y,cellFontSizeMD:y,cellFontSizeSM:y,headerSplitColor:f,fixedHeaderSortActiveBg:O,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(y*v-b*3)/2-Math.ceil((h*1.4-b*3)/2),headerIconColor:I.clone().setA(I.a*x).toRgbString(),headerIconHoverColor:R.clone().setA(R.a*x).toRgbString(),expandIconHalfInner:M,expandIconSize:N,expandIconScale:w/N}},S$=2,nX=Tt("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:p,cellPaddingBlock:g,cellPaddingInline:y,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:C,borderColor:S,footerBg:x,footerColor:w,headerBorderRadius:O,cellFontSize:$,cellFontSizeMD:E,cellFontSizeSM:I,headerSplitColor:R,fixedHeaderSortActiveBg:M,headerFilterHoverBg:N,filterDropdownBg:P,expandIconBg:_,selectionColumnWidth:j,stickyScrollBarBg:T,calc:z}=e,L=Et(e,{tableFontSize:$,tableBg:r,tableRadius:O,tablePaddingVertical:g,tablePaddingHorizontal:y,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:C,tableBorderColor:S,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:w,tableFooterBg:x,tableHeaderCellSplitColor:R,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:N,tableFilterDropdownBg:P,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:S$,zIndexTableSticky:z(S$).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:I,tableSelectionColumnWidth:j,tableExpandIconBg:_,tableExpandColumnWidth:z(o).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:T,tableScrollThumbBgHover:t,tableScrollBg:n});return[eX(L),Uq(L),C$(L),Qq(L),Wq(L),Aq(L),Gq(L),Vq(L),C$(L),Hq(L),Xq(L),Kq(L),Jq(L),Fq(L),Yq(L),qq(L),Zq(L)]},tX,{unitless:{expandIconScale:!0}}),x$=[],rX=(e,t)=>{var n,r;const{prefixCls:o,className:a,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:p,rowKey:g="key",rowClassName:y,columns:h,children:v,childrenColumnName:b,onChange:C,getPopupContainer:S,loading:x,expandIcon:w,expandable:O,expandedRowRender:$,expandIconColumnIndex:E,indentSize:I,scroll:R,sortDirections:M,locale:N,showSorterTooltip:P={target:"full-header"},virtual:_}=e;ni();const j=l.useMemo(()=>h||mb(v),[h,v]),T=l.useMemo(()=>j.some(Ye=>Ye.responsive),[j]),z=du(T),L=l.useMemo(()=>{const Ye=new Set(Object.keys(z).filter(Ke=>z[Ke]));return j.filter(Ke=>!Ke.responsive||Ke.responsive.some(ct=>Ye.has(ct)))},[j,z]),k=Qt(e,["className","style","columns"]),{locale:H=vo,direction:K,table:B,renderEmpty:U,getPrefixCls:G,getPopupContainer:q}=l.useContext(ot),te=Wn(c),Z=Object.assign(Object.assign({},H.Table),N),ee=f||x$,ue=G("table",o),re=G("dropdown",d),[,X]=tr(),ae=Vn(ue),[ne,J,Y]=nX(ue,ae),se=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:E},O),{expandIcon:(n=O==null?void 0:O.expandIcon)!==null&&n!==void 0?n:(r=B==null?void 0:B.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:fe="children"}=se,$e=l.useMemo(()=>ee.some(Ye=>Ye==null?void 0:Ye[fe])?"nest":$||O!=null&&O.expandedRowRender?"row":null,[ee]),Ce={body:l.useRef(null)},ie=wG(ue),ge=l.useRef(null),de=l.useRef(null);x8(t,()=>Object.assign(Object.assign({},de.current),{nativeElement:ge.current}));const ve=l.useMemo(()=>typeof g=="function"?g:Ye=>Ye==null?void 0:Ye[g],[g]),[Re]=Eq(ee,fe,ve),_e={},Ue=(Ye,Ke,ct=!1)=>{var Ot,Nt,_t,Wt;const wt=Object.assign(Object.assign({},_e),Ye);ct&&((Ot=_e.resetPagination)===null||Ot===void 0||Ot.call(_e),!((Nt=wt.pagination)===null||Nt===void 0)&&Nt.current&&(wt.pagination.current=1),m&&((_t=m.onChange)===null||_t===void 0||_t.call(m,1,(Wt=wt.pagination)===null||Wt===void 0?void 0:Wt.pageSize))),R&&R.scrollToFirstRowOnChange!==!1&&Ce.body.current&&i8(0,{getContainer:()=>Ce.body.current}),C==null||C(wt.pagination,wt.filters,wt.sorter,{currentDataSource:Vh(Kh(ee,wt.sorterStates,fe),wt.filterStates,fe),action:Ke})},ke=(Ye,Ke)=>{Ue({sorter:Ye,sorterStates:Ke},"sort",!1)},[De,Ae,xe,ye]=Lq({prefixCls:ue,mergedColumns:L,onSorterChange:ke,sortDirections:M||["ascend","descend"],tableLocale:Z,showSorterTooltip:P}),je=l.useMemo(()=>Kh(ee,Ae,fe),[ee,Ae]);_e.sorter=ye(),_e.sorterStates=Ae;const Pe=(Ye,Ke)=>{Ue({filters:Ye,filterStates:Ke},"filter",!0)},[Be,me,Ie]=wq({prefixCls:ue,locale:Z,dropdownPrefixCls:re,mergedColumns:L,onFilterChange:Pe,getPopupContainer:S||q,rootClassName:V(i,ae)}),Te=Vh(je,me,fe);_e.filters=Ie,_e.filterStates=me;const Ne=l.useMemo(()=>{const Ye={};return Object.keys(Ie).forEach(Ke=>{Ie[Ke]!==null&&(Ye[Ke]=Ie[Ke])}),Object.assign(Object.assign({},xe),{filters:Ye})},[xe,Ie]),[tt]=Dq(Ne),st=(Ye,Ke)=>{Ue({pagination:Object.assign(Object.assign({},_e.pagination),{current:Ye,pageSize:Ke})},"paginate")},[Le,Ge]=Pq(Te.length,st,m);_e.pagination=m===!1?{}:Iq(Le,m),_e.resetPagination=Ge;const Qe=l.useMemo(()=>{if(m===!1||!Le.pageSize)return Te;const{current:Ye=1,total:Ke,pageSize:ct=sN}=Le;return Te.length<Ke?Te.length>ct?Te.slice((Ye-1)*ct,Ye*ct):Te:Te.slice((Ye-1)*ct,Ye*ct)},[!!m,Te,Le==null?void 0:Le.current,Le==null?void 0:Le.pageSize,Le==null?void 0:Le.total]),[Fe,nt]=xG({prefixCls:ue,data:Te,pageData:Qe,getRowKey:ve,getRecordByKey:Re,expandType:$e,childrenColumnName:fe,locale:Z,getPopupContainer:S||q},p),bt=(Ye,Ke,ct)=>{let Ot;return typeof y=="function"?Ot=V(y(Ye,Ke,ct)):Ot=V(y),V({[`${ue}-row-selected`]:nt.has(ve(Ye,Ke))},Ot)};se.__PARENT_RENDER_ICON__=se.expandIcon,se.expandIcon=se.expandIcon||w||$G(Z),$e==="nest"&&se.expandIconColumnIndex===void 0?se.expandIconColumnIndex=p?1:0:se.expandIconColumnIndex>0&&p&&(se.expandIconColumnIndex-=1),typeof se.indentSize!="number"&&(se.indentSize=typeof I=="number"?I:15);const le=l.useCallback(Ye=>tt(Fe(Be(De(Ye)))),[De,Be,Fe]),ce=()=>{if(m===!1||!(Le!=null&&Le.total))return{};const Ye=()=>Le.size||(te==="small"||te==="middle"?"small":void 0),Ke=mt=>{const it=mt==="left"?"start":mt==="right"?"end":mt;return l.createElement(OR,Object.assign({},Le,{align:Le.align||it,className:V(`${ue}-pagination`,Le.className),size:Ye()}))},ct=K==="rtl"?"left":"right",Ot=Le.position;if(Ot===null||!Array.isArray(Ot))return{bottom:Ke(ct)};const Nt=Ot.find(mt=>typeof mt=="string"&&mt.toLowerCase().includes("top")),_t=Ot.find(mt=>typeof mt=="string"&&mt.toLowerCase().includes("bottom")),Wt=Ot.every(mt=>`${mt}`=="none"),wt=Nt?Nt.toLowerCase().replace("top",""):"",kt=_t?_t.toLowerCase().replace("bottom",""):"",He=!Nt&&!_t&&!Wt,Ze=()=>wt?Ke(wt):void 0,gt=()=>{if(kt)return Ke(kt);if(He)return Ke(ct)};return{top:Ze(),bottom:gt()}},Se=l.useMemo(()=>typeof x=="boolean"?{spinning:x}:typeof x=="object"&&x!==null?Object.assign({spinning:!0},x):void 0,[x]),he=V(Y,ae,`${ue}-wrapper`,B==null?void 0:B.className,{[`${ue}-wrapper-rtl`]:K==="rtl"},a,i,J),Ee=Object.assign(Object.assign({},B==null?void 0:B.style),s),Oe=l.useMemo(()=>Se!=null&&Se.spinning&&ee===x$?null:typeof(N==null?void 0:N.emptyText)<"u"?N.emptyText:(U==null?void 0:U("Table"))||l.createElement(Dy,{componentName:"Table"}),[Se==null?void 0:Se.spinning,ee,N==null?void 0:N.emptyText,U]),we=_?kq:Bq,Me={},ze=l.useMemo(()=>{const{fontSize:Ye,lineHeight:Ke,lineWidth:ct,padding:Ot,paddingXS:Nt,paddingSM:_t}=X,Wt=Math.floor(Ye*Ke);switch(te){case"middle":return _t*2+Wt+ct;case"small":return Nt*2+Wt+ct;default:return Ot*2+Wt+ct}},[X,te]);_&&(Me.listItemHeight=ze);const{top:qe,bottom:yt}=ce();return ne(l.createElement("div",{ref:ge,className:he,style:Ee},l.createElement(Bc,Object.assign({spinning:!1},Se),qe,l.createElement(we,Object.assign({},Me,k,{ref:de,columns:L,direction:K,expandable:se,prefixCls:ue,className:V({[`${ue}-middle`]:te==="middle",[`${ue}-small`]:te==="small",[`${ue}-bordered`]:u,[`${ue}-empty`]:ee.length===0},Y,ae,J),data:Qe,rowKey:ve,rowClassName:bt,emptyText:Oe,internalHooks:hu,internalRefs:Ce,transformColumns:le,getContainerWidth:ie,measureRowRender:Ye=>l.createElement(bo,{getPopupContainer:Ke=>Ke},Ye)})),yt)))},oX=l.forwardRef(rX),aX=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(oX,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Bo=l.forwardRef(aX);Bo.SELECTION_COLUMN=Ca;Bo.EXPAND_COLUMN=$a;Bo.SELECTION_ALL=Bh;Bo.SELECTION_INVERT=kh;Bo.SELECTION_NONE=Ah;Bo.Column=fG;Bo.ColumnGroup=mG;Bo.Summary=AR;const iX=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Dt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${A(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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Cb=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Et(e,{tagFontSize:o,tagLineHeight:A(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Sb=e=>({defaultBg:new Lt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),dN=Tt("Tag",e=>{const t=Cb(e);return iX(t)},Sb);var lX=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 sX=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:s,onChange:c,onClick:u}=e,d=lX(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=l.useContext(ot),p=C=>{c==null||c(!a),u==null||u(C)},g=f("tag",n),[y,h,v]=dN(g),b=V(g,`${g}-checkable`,{[`${g}-checkable-checked`]:a},m==null?void 0:m.className,o,h,v);return y(l.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:b,onClick:p}),s,l.createElement("span",null,i)))}),cX=e=>aO(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),uX=rs(["Tag","preset"],e=>{const t=Cb(e);return cX(t)},Sb);function dX(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const rd=(e,t,n)=>{const r=dX(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"}}}},fX=rs(["Tag","status"],e=>{const t=Cb(e);return[rd(t,"success","Success"),rd(t,"processing","Info"),rd(t,"error","Error"),rd(t,"warning","Warning")]},Sb);var mX=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 pX=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=mX(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:g,tag:y}=l.useContext(ot),[h,v]=l.useState(!0),b=Qt(m,["closeIcon","closable"]);l.useEffect(()=>{f!==void 0&&v(f)},[f]);const C=JI(c),S=x7(c),x=C||S,w=Object.assign(Object.assign({backgroundColor:c&&!x?c:void 0},y==null?void 0:y.style),a),O=p("tag",n),[$,E,I]=dN(O),R=V(O,y==null?void 0:y.className,{[`${O}-${c}`]:x,[`${O}-has-color`]:c&&!x,[`${O}-hidden`]:!h,[`${O}-rtl`]:g==="rtl",[`${O}-borderless`]:!d},r,o,E,I),M=z=>{z.stopPropagation(),u==null||u(z),!z.defaultPrevented&&v(!1)},[,N]=PO(pf(e),pf(y),{closable:!1,closeIconRender:z=>{const L=l.createElement("span",{className:`${O}-close-icon`,onClick:M},z);return py(z,L,k=>({onClick:H=>{var K;(K=k==null?void 0:k.onClick)===null||K===void 0||K.call(k,H),M(H)},className:V(k==null?void 0:k.className,`${O}-close-icon`)}))}}),P=typeof m.onClick=="function"||i&&i.type==="a",_=s||null,j=_?l.createElement(l.Fragment,null,_,i&&l.createElement("span",null,i)):i,T=l.createElement("span",Object.assign({},b,{ref:t,className:R,style:w}),j,N,C&&l.createElement(uX,{key:"preset",prefixCls:O}),S&&l.createElement(fX,{key:"status",prefixCls:O}));return $(P?l.createElement(tu,{component:"Tag"},T):T)}),$n=pX;$n.CheckableTag=sX;const vX=e=>{const t=e!=null&&e.algorithm?cf(e.algorithm):iy,n=Object.assign(Object.assign({},Vl),e==null?void 0:e.token);return R2(n,{override:e==null?void 0:e.token},t,cy)};function gX(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 hX=(e,t)=>{const n=t??sm(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),gX(t??e)),J2(r)),{controlHeight:o}),Q2(Object.assign(Object.assign({},n),{controlHeight:o})))},ro=(e,t)=>new Lt(e).setA(t).toRgbString(),nl=(e,t)=>new Lt(e).lighten(t).toHexString(),yX=e=>{const t=Mi(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]}},bX=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:ro(r,.85),colorTextSecondary:ro(r,.65),colorTextTertiary:ro(r,.45),colorTextQuaternary:ro(r,.25),colorFill:ro(r,.18),colorFillSecondary:ro(r,.12),colorFillTertiary:ro(r,.08),colorFillQuaternary:ro(r,.04),colorBgSolid:ro(r,.95),colorBgSolidHover:ro(r,1),colorBgSolidActive:ro(r,.9),colorBgElevated:nl(n,12),colorBgContainer:nl(n,8),colorBgLayout:nl(n,0),colorBgSpotlight:nl(n,26),colorBgBlur:ro(r,.04),colorBorder:nl(n,26),colorBorderSecondary:nl(n,19)}},CX=(e,t)=>{const n=Object.keys(ay).map(a=>{const i=Mi(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((s,c,u)=>(s[`${a}-${u+1}`]=i[u],s[`${a}${u+1}`]=i[u],s),{})}).reduce((a,i)=>(a=Object.assign(Object.assign({},a),i),a),{}),r=t??sm(e),o=Y2(e,{generateColorPalettes:yX,generateNeutralColorPalettes:bX});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})};function SX(){const[e,t,n]=tr();return{theme:e,token:t,hashId:n}}const Rf={defaultSeed:Rc.token,useToken:SX,defaultAlgorithm:sm,darkAlgorithm:CX,compactAlgorithm:hX,getDesignToken:vX,defaultConfig:Rc,_internalContext:ly};var xX={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"},$X=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:xX}))},Uh=l.forwardRef($X),wX={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"},EX=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:wX}))},Gh=l.forwardRef(EX),OX={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"},IX=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:OX}))},PX=l.forwardRef(IX);const RX=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},NX=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
445
|
+
h${r}&,
|
|
446
|
+
div&-h${r},
|
|
447
|
+
div&-h${r} > textarea,
|
|
448
|
+
h${r}
|
|
449
|
+
`]=RX(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},MX=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},uy(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},jX=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:df[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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}}),TX=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${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"}}}},_X=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),zX=()=>({"\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"}}),LX=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"}},NX(e)),{[`
|
|
450
|
+
& + h1${t},
|
|
451
|
+
& + h2${t},
|
|
452
|
+
& + h3${t},
|
|
453
|
+
& + h4${t},
|
|
454
|
+
& + h5${t}
|
|
455
|
+
`]:{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}}}),jX(e)),MX(e)),{[`
|
|
456
|
+
${t}-expand,
|
|
457
|
+
${t}-collapse,
|
|
458
|
+
${t}-edit,
|
|
459
|
+
${t}-copy
|
|
460
|
+
`]:Object.assign(Object.assign({},uy(e)),{marginInlineStart:e.marginXXS})}),TX(e)),_X(e)),zX()),{"&-rtl":{direction:"rtl"}})}},DX=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),fN=Tt("Typography",LX,DX),BX=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:a,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:p=l.createElement(PX,null)}=e,g=l.useRef(null),y=l.useRef(!1),h=l.useRef(null),[v,b]=l.useState(c);l.useEffect(()=>{b(c)},[c]),l.useEffect(()=>{var P;if(!((P=g.current)===null||P===void 0)&&P.resizableTextArea){const{textArea:_}=g.current.resizableTextArea;_.focus();const{length:j}=_.value;_.setSelectionRange(j,j)}},[]);const C=({target:P})=>{b(P.value.replace(/[\n\r]/g,""))},S=()=>{y.current=!0},x=()=>{y.current=!1},w=({keyCode:P})=>{y.current||(h.current=P)},O=()=>{u(v.trim())},$=({keyCode:P,ctrlKey:_,altKey:j,metaKey:T,shiftKey:z})=>{h.current!==P||y.current||_||j||T||z||(P===Xe.ENTER?(O(),f==null||f()):P===Xe.ESC&&d())},E=()=>{O()},[I,R,M]=fN(t),N=V(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${m}`]:!!m},r,R,M);return I(l.createElement("div",{className:N,style:o},l.createElement(xR,{ref:g,maxLength:i,value:v,onChange:C,onKeyDown:w,onKeyUp:$,onCompositionStart:S,onCompositionEnd:x,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p!==null?Dn(p,{className:`${t}-edit-content-confirm`}):null))};var kX=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()}},AX=kX,$$={"text/plain":"Text","text/html":"Url",default:"Text"},FX="Copy to clipboard: #{key}, Enter";function HX(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function VX(e,t){var n,r,o,a,i,s,c=!1;t||(t={}),n=t.debug||!1;try{o=AX(),a=document.createRange(),i=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(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=$$[t.format]||$$.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),i.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=HX("message"in t?t.message:FX),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var WX=VX;const KX=Hc(WX);var UX=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?a(d.value):o(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const GX=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[o,a]=l.useState(!1),i=l.useRef(null),s=()=>{i.current&&clearTimeout(i.current)},c={};e.format&&(c.format=e.format),l.useEffect(()=>s,[]);const u=Gt(d=>UX(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),a(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;KX(m||ZW(t,!0).join("")||"",c),a(!1),r(!0),s(),i.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw a(!1),m}}));return{copied:n,copyLoading:o,onClick:u}};function Sv(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const qX=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},XX=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var YX=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 mN=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:a,setContentRef:i,children:s,direction:c,style:u}=e,d=YX(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:p,style:g}=jn("typography"),y=c??m,h=i?er(t,i):t,v=f("typography",n),[b,C,S]=fN(v),x=V(v,p,{[`${v}-rtl`]:y==="rtl"},o,a,C,S),w=Object.assign(Object.assign({},g),u);return b(l.createElement(r,Object.assign({className:x,style:w,ref:h},d),s))});var QX={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"},JX=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:QX}))},ZX=l.forwardRef(JX);function w$(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function xv(e,t,n){return e===!0||e===void 0?t:e||n&&t}function eY(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 xb=e=>["string","number"].includes(typeof e),tY=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:a,tabIndex:i,onCopy:s,loading:c})=>{const u=w$(o),d=w$(a),{copied:f,copy:m}=n??{},p=t?f:m,g=xv(u[t?1:0],p),y=typeof g=="string"?g:p;return l.createElement(Lo,{title:g},l.createElement("button",{type:"button",className:V(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":y,tabIndex:i},t?xv(d[1],l.createElement(By,null),!0):xv(d[0],c?l.createElement(da,null):l.createElement(ZX,null),!0)))},od=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),nY=e=>e.reduce((t,n)=>t+(xb(n)?String(n).length:1),0);function E$(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const a=e[o],s=xb(a)?String(a).length:1,c=n+s;if(c>t){const u=t-n;return r.push(String(a).slice(0,u)),r}r.push(a),n=c}return e}const $v=0,wv=1,Ev=2,Ov=3,O$=4,ad={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function rY(e){const{enableMeasure:t,width:n,text:r,children:o,rows:a,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>Fn(r),[r]),d=l.useMemo(()=>nY(u),[r]),f=l.useMemo(()=>o(u,!1),[r]),[m,p]=l.useState(null),g=l.useRef(null),y=l.useRef(null),h=l.useRef(null),v=l.useRef(null),b=l.useRef(null),[C,S]=l.useState(!1),[x,w]=l.useState($v),[O,$]=l.useState(0),[E,I]=l.useState(null);Pt(()=>{w(t&&n&&d?wv:$v)},[n,r,a,t,u]),Pt(()=>{var P,_,j,T;if(x===wv){w(Ev);const z=y.current&&getComputedStyle(y.current).whiteSpace;I(z)}else if(x===Ev){const z=!!(!((P=h.current)===null||P===void 0)&&P.isExceed());w(z?Ov:O$),p(z?[0,d]:null),S(z);const L=((_=h.current)===null||_===void 0?void 0:_.getHeight())||0,k=a===1?0:((j=v.current)===null||j===void 0?void 0:j.getHeight())||0,H=((T=b.current)===null||T===void 0?void 0:T.getHeight())||0,K=Math.max(L,k+H);$(K+1),c(z)}},[x]);const R=m?Math.ceil((m[0]+m[1])/2):0;Pt(()=>{var P;const[_,j]=m||[0,0];if(_!==j){const z=(((P=g.current)===null||P===void 0?void 0:P.getHeight())||0)>O;let L=R;j-_===1&&(L=z?_:j),p(z?[_,L]:[L,j])}},[m,R]);const M=l.useMemo(()=>{if(!t)return o(u,!1);if(x!==Ov||!m||m[0]!==m[1]){const P=o(u,!1);return[O$,$v].includes(x)?P:l.createElement("span",{style:Object.assign(Object.assign({},ad),{WebkitLineClamp:a})},P)}return o(i?u:E$(u,m[0]),C)},[i,x,m,u].concat(be(s))),N={width:n,margin:0,padding:0,whiteSpace:E==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,M,x===Ev&&l.createElement(l.Fragment,null,l.createElement(od,{style:Object.assign(Object.assign(Object.assign({},N),ad),{WebkitLineClamp:a}),ref:h},f),l.createElement(od,{style:Object.assign(Object.assign(Object.assign({},N),ad),{WebkitLineClamp:a-1}),ref:v},f),l.createElement(od,{style:Object.assign(Object.assign(Object.assign({},N),ad),{WebkitLineClamp:1}),ref:b},o([],!0))),x===Ov&&m&&m[0]!==m[1]&&l.createElement(od,{style:Object.assign(Object.assign({},N),{top:400}),ref:g},o(E$(u,R),!0)),x===wv&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}const oY=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:l.createElement(Lo,Object.assign({open:t?void 0:!1},r),n);var aY=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 iY({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:a,italic:i},s){let c=s;function u(d,f){f&&(c=l.createElement(d,{},c))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",a),u("i",i),c}const lY="...",I$=["delete","mark","code","underline","strong","keyboard","italic"],Km=l.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:a,type:i,disabled:s,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:p}=e,g=aY(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:h}=l.useContext(ot),[v]=yo("Text"),b=l.useRef(null),C=l.useRef(null),S=y("typography",r),x=Qt(g,I$),[w,O]=Sv(d),[$,E]=rn(!1,{value:O.editing}),{triggerType:I=["icon"]}=O,R=me=>{var Ie;me&&((Ie=O.onStart)===null||Ie===void 0||Ie.call(O)),E(me)},M=qX($);Pt(()=>{var me;!$&&M&&((me=C.current)===null||me===void 0||me.focus())},[$]);const N=me=>{me==null||me.preventDefault(),R(!0)},P=me=>{var Ie;(Ie=O.onChange)===null||Ie===void 0||Ie.call(O,me),R(!1)},_=()=>{var me;(me=O.onCancel)===null||me===void 0||me.call(O),R(!1)},[j,T]=Sv(f),{copied:z,copyLoading:L,onClick:k}=GX({copyConfig:T,children:c}),[H,K]=l.useState(!1),[B,U]=l.useState(!1),[G,q]=l.useState(!1),[te,Z]=l.useState(!1),[ee,ue]=l.useState(!0),[re,X]=Sv(u,{expandable:!1,symbol:me=>me?v==null?void 0:v.collapse:v==null?void 0:v.expand}),[ae,ne]=rn(X.defaultExpanded||!1,{value:X.expanded}),J=re&&(!ae||X.expandable==="collapsible"),{rows:Y=1}=X,se=l.useMemo(()=>J&&(X.suffix!==void 0||X.onEllipsis||X.expandable||w||j),[J,X,w,j]);Pt(()=>{re&&!se&&(K(bh("webkitLineClamp")),U(bh("textOverflow")))},[se,re]);const[fe,$e]=l.useState(J),Ce=l.useMemo(()=>se?!1:Y===1?B:H,[se,B,H]);Pt(()=>{$e(Ce&&J)},[Ce,J]);const ie=J&&(fe?te:G),ge=J&&Y===1&&fe,de=J&&Y>1&&fe,ve=(me,Ie)=>{var Te;ne(Ie.expanded),(Te=X.onExpand)===null||Te===void 0||Te.call(X,me,Ie)},[Re,_e]=l.useState(0),Ue=({offsetWidth:me})=>{_e(me)},ke=me=>{var Ie;q(me),G!==me&&((Ie=X.onEllipsis)===null||Ie===void 0||Ie.call(X,me))};l.useEffect(()=>{const me=b.current;if(re&&fe&&me){const Ie=eY(me);te!==Ie&&Z(Ie)}},[re,fe,c,de,ee,Re]),l.useEffect(()=>{const me=b.current;if(typeof IntersectionObserver>"u"||!me||!fe||!J)return;const Ie=new IntersectionObserver(()=>{ue(!!me.offsetParent)});return Ie.observe(me),()=>{Ie.disconnect()}},[fe,J]);const De=XX(X.tooltip,O.text,c),Ae=l.useMemo(()=>{if(!(!re||fe))return[O.text,c,p,De.title].find(xb)},[re,fe,p,De.title,ie]);if($)return l.createElement(BX,{value:(n=O.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:P,onCancel:_,onEnd:O.onEnd,prefixCls:S,className:o,style:a,direction:h,component:m,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const xe=()=>{const{expandable:me,symbol:Ie}=X;return me?l.createElement("button",{type:"button",key:"expand",className:`${S}-${ae?"collapse":"expand"}`,onClick:Te=>ve(Te,{expanded:!ae}),"aria-label":ae?v.collapse:v==null?void 0:v.expand},typeof Ie=="function"?Ie(ae):Ie):null},ye=()=>{if(!w)return;const{icon:me,tooltip:Ie,tabIndex:Te}=O,Ne=Fn(Ie)[0]||(v==null?void 0:v.edit),tt=typeof Ne=="string"?Ne:"";return I.includes("icon")?l.createElement(Lo,{key:"edit",title:Ie===!1?"":Ne},l.createElement("button",{type:"button",ref:C,className:`${S}-edit`,onClick:N,"aria-label":tt,tabIndex:Te},me||l.createElement(Gh,{role:"button"}))):null},je=()=>j?l.createElement(tY,Object.assign({key:"copy"},T,{prefixCls:S,copied:z,locale:v,onCopy:k,loading:L,iconOnly:c==null})):null,Pe=me=>[me&&xe(),ye(),je()],Be=me=>[me&&!ae&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},lY),X.suffix,Pe(me)];return l.createElement(Or,{onResize:Ue,disabled:!J},me=>l.createElement(oY,{tooltipProps:De,enableEllipsis:J,isEllipsis:ie},l.createElement(mN,Object.assign({className:V({[`${S}-${i}`]:i,[`${S}-disabled`]:s,[`${S}-ellipsis`]:re,[`${S}-ellipsis-single-line`]:ge,[`${S}-ellipsis-multiple-line`]:de},o),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:de?Y:void 0}),component:m,ref:er(me,b,t),direction:h,onClick:I.includes("text")?N:void 0,"aria-label":Ae==null?void 0:Ae.toString(),title:p},x),l.createElement(rY,{enableMeasure:J&&!fe,text:c,rows:Y,width:Re,onEllipsis:ke,expanded:ae,miscDeps:[z,ae,L,w,j,v].concat(be(I$.map(Ie=>e[Ie])))},(Ie,Te)=>iY(e,l.createElement(l.Fragment,null,Ie.length>0&&Te&&!ae&&Ae?l.createElement("span",{key:"show-content","aria-hidden":!0},Ie):Ie,Be(Te)))))))});var sY=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 cY=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:a}=e,i=sY(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return l.createElement(Km,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),o)});var uY=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 dY=l.forwardRef((e,t)=>{const{children:n}=e,r=uY(e,["children"]);return l.createElement(Km,Object.assign({ref:t},r,{component:"div"}),n)});var fY=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 mY=(e,t)=>{const{ellipsis:n,children:r}=e,o=fY(e,["ellipsis","children"]),a=l.useMemo(()=>n&&typeof n=="object"?Qt(n,["expandable","rows"]):n,[n]);return l.createElement(Km,Object.assign({ref:t},o,{ellipsis:a,component:"span"}),r)},pY=l.forwardRef(mY);var vY=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 gY=[1,2,3,4,5],hY=l.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=vY(e,["level","children"]),a=gY.includes(n)?`h${n}`:"h1";return l.createElement(Km,Object.assign({ref:t},o,{component:a}),r)}),vn=mN;vn.Text=pY;vn.Link=cY;vn.Title=hY;vn.Paragraph=dY;const Iv=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(s)?a===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 yY(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 P$(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function R$(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var a=e.data[o];if(Array.isArray(a)){a.forEach(function(i){n.append("".concat(o,"[]"),i)});return}n.append(o,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(yY(e,t),P$(t)):e.onSuccess(P$(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 bY=function(){var e=$r(Xt().mark(function t(n,r){var o,a,i,s,c,u,d,f;return Xt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:u=function(){return u=$r(Xt().mark(function y(h){return Xt().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(C){h.file(function(S){r(S)?(h.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=h.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),C(S)):C(null)})}));case 1:case"end":return b.stop()}},y)})),u.apply(this,arguments)},c=function(y){return u.apply(this,arguments)},s=function(){return s=$r(Xt().mark(function y(h){var v,b,C,S,x;return Xt().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:v=h.createReader(),b=[];case 2:return O.next=5,new Promise(function($){v.readEntries($,function(){return $([])})});case 5:if(C=O.sent,S=C.length,S){O.next=9;break}return O.abrupt("break",12);case 9:for(x=0;x<S;x++)b.push(C[x]);O.next=2;break;case 12:return O.abrupt("return",b);case 13:case"end":return O.stop()}},y)})),s.apply(this,arguments)},i=function(y){return s.apply(this,arguments)},o=[],a=[],n.forEach(function(g){return a.push(g.webkitGetAsEntry())}),d=function(){var g=$r(Xt().mark(function y(h,v){var b,C;return Xt().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(h){x.next=2;break}return x.abrupt("return");case 2:if(h.path=v||"",!h.isFile){x.next=10;break}return x.next=6,c(h);case 6:b=x.sent,b&&o.push(b),x.next=15;break;case 10:if(!h.isDirectory){x.next=15;break}return x.next=13,i(h);case 13:C=x.sent,a.push.apply(a,be(C));case 15:case"end":return x.stop()}},y)}));return function(h,v){return g.apply(this,arguments)}}(),f=0;case 9:if(!(f<a.length)){p.next=15;break}return p.next=12,d(a[f]);case 12:f++,p.next=9;break;case 15:return p.abrupt("return",o);case 16:case"end":return p.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),CY=+new Date,SY=0;function Pv(){return"rc-upload-".concat(CY,"-").concat(++SY)}var xY=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],$Y=function(e){Jr(n,e);var t=ho(n);function n(){var r;sn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),D(Ve(r),"state",{uid:Pv()}),D(Ve(r),"reqs",{}),D(Ve(r),"fileInput",void 0),D(Ve(r),"_isMounted",void 0),D(Ve(r),"onChange",function(s){var c=r.props,u=c.accept,d=c.directory,f=s.target.files,m=be(f).filter(function(p){return!d||Iv(p,u)});r.uploadFiles(m),r.reset()}),D(Ve(r),"onClick",function(s){var c=r.fileInput;if(c){var u=s.target,d=r.props.onClick;if(u&&u.tagName==="BUTTON"){var f=c.parentNode;f.focus(),u.blur()}c.click(),d&&d(s)}}),D(Ve(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),D(Ve(r),"onDataTransferFiles",function(){var s=$r(Xt().mark(function c(u,d){var f,m,p,g,y,h,v;return Xt().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(f=r.props,m=f.multiple,p=f.accept,g=f.directory,y=be(u.items||[]),h=be(u.files||[]),(h.length>0||y.some(function(S){return S.kind==="file"}))&&(d==null||d()),!g){C.next=11;break}return C.next=7,bY(Array.prototype.slice.call(y),function(S){return Iv(S,r.props.accept)});case 7:h=C.sent,r.uploadFiles(h),C.next=14;break;case 11:v=be(h).filter(function(S){return Iv(S,p)}),m===!1&&(v=h.slice(0,1)),r.uploadFiles(v);case 14:case"end":return C.stop()}},c)}));return function(c,u){return s.apply(this,arguments)}}()),D(Ve(r),"onFilePaste",function(){var s=$r(Xt().mark(function c(u){var d,f;return Xt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(d=r.props.pastable,d){p.next=3;break}return p.abrupt("return");case 3:if(u.type!=="paste"){p.next=6;break}return f=u.clipboardData,p.abrupt("return",r.onDataTransferFiles(f,function(){u.preventDefault()}));case 6:case"end":return p.stop()}},c)}));return function(c){return s.apply(this,arguments)}}()),D(Ve(r),"onFileDragOver",function(s){s.preventDefault()}),D(Ve(r),"onFileDrop",function(){var s=$r(Xt().mark(function c(u){var d;return Xt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u.preventDefault(),u.type!=="drop"){m.next=4;break}return d=u.dataTransfer,m.abrupt("return",r.onDataTransferFiles(d));case 4:case"end":return m.stop()}},c)}));return function(c){return s.apply(this,arguments)}}()),D(Ve(r),"uploadFiles",function(s){var c=be(s),u=c.map(function(d){return d.uid=Pv(),r.processFile(d,c)});Promise.all(u).then(function(d){var f=r.props.onBatchStart;f==null||f(d.map(function(m){var p=m.origin,g=m.parsedFile;return{file:p,parsedFile:g}})),d.filter(function(m){return m.parsedFile!==null}).forEach(function(m){r.post(m)})})}),D(Ve(r),"processFile",function(){var s=$r(Xt().mark(function c(u,d){var f,m,p,g,y,h,v,b,C;return Xt().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(f=r.props.beforeUpload,m=u,!f){x.next=14;break}return x.prev=3,x.next=6,f(u,d);case 6:m=x.sent,x.next=12;break;case 9:x.prev=9,x.t0=x.catch(3),m=!1;case 12:if(m!==!1){x.next=14;break}return x.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(p=r.props.action,typeof p!="function"){x.next=21;break}return x.next=18,p(u);case 18:g=x.sent,x.next=22;break;case 21:g=p;case 22:if(y=r.props.data,typeof y!="function"){x.next=29;break}return x.next=26,y(u);case 26:h=x.sent,x.next=30;break;case 29:h=y;case 30:return v=(et(m)==="object"||typeof m=="string")&&m?m:u,v instanceof File?b=v:b=new File([v],u.name,{type:u.type}),C=b,C.uid=u.uid,x.abrupt("return",{origin:u,data:h,parsedFile:C,action:g});case 35:case"end":return x.stop()}},c,null,[[3,9]])}));return function(c,u){return s.apply(this,arguments)}}()),D(Ve(r),"saveFileInput",function(s){r.fileInput=s}),r}return cn(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var a=this.props.pastable;a&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!a&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var a=this,i=o.data,s=o.origin,c=o.action,u=o.parsedFile;if(this._isMounted){var d=this.props,f=d.onStart,m=d.customRequest,p=d.name,g=d.headers,y=d.withCredentials,h=d.method,v=s.uid,b=m||R$,C={action:c,filename:p,data:i,file:u,headers:g,withCredentials:y,method:h||"post",onProgress:function(x){var w=a.props.onProgress;w==null||w(x,u)},onSuccess:function(x,w){var O=a.props.onSuccess;O==null||O(x,u,w),delete a.reqs[v]},onError:function(x,w){var O=a.props.onError;O==null||O(x,w,u),delete a.reqs[v]}};f(s),this.reqs[v]=b(C,{defaultRequest:R$})}}},{key:"reset",value:function(){this.setState({uid:Pv()})}},{key:"abort",value:function(o){var a=this.reqs;if(o){var i=o.uid?o.uid:o;a[i]&&a[i].abort&&a[i].abort(),delete a[i]}else Object.keys(a).forEach(function(s){a[s]&&a[s].abort&&a[s].abort(),delete a[s]})}},{key:"render",value:function(){var o=this.props,a=o.component,i=o.prefixCls,s=o.className,c=o.classNames,u=c===void 0?{}:c,d=o.disabled,f=o.id,m=o.name,p=o.style,g=o.styles,y=g===void 0?{}:g,h=o.multiple,v=o.accept,b=o.capture,C=o.children,S=o.directory,x=o.folder,w=o.openFileDialogOnClick,O=o.onMouseEnter,$=o.onMouseLeave,E=o.hasControlInside,I=ft(o,xY),R=V(D(D(D({},i,!0),"".concat(i,"-disabled"),d),s,s)),M=S||x?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},N=d?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:O,onMouseLeave:$,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:E?void 0:"0"};return Q.createElement(a,pe({},N,{className:R,role:E?void 0:"button",style:p}),Q.createElement("input",pe({},Jn(I,{aria:!0,data:!0}),{id:f,name:m,disabled:d,type:"file",ref:this.saveFileInput,onClick:function(_){return _.stopPropagation()},key:this.state.uid,style:W({display:"none"},y.input),className:u.input,accept:v},M,{multiple:h,onChange:this.onChange},b!=null?{capture:b}:{})),C)}}]),n}(l.Component);function Rv(){}var qh=function(e){Jr(n,e);var t=ho(n);function n(){var r;sn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),D(Ve(r),"uploader",void 0),D(Ve(r),"saveUploader",function(s){r.uploader=s}),r}return cn(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return Q.createElement($Y,pe({},this.props,{ref:this.saveUploader}))}}]),n}(l.Component);D(qh,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Rv,onError:Rv,onSuccess:Rv,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const wY=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${A(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:`${A(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
461
|
+
&:not(${t}-disabled):hover,
|
|
462
|
+
&-hover:not(${t}-disabled)
|
|
463
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${A(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
464
|
+
p${t}-text,
|
|
465
|
+
p${t}-hint
|
|
466
|
+
`]:{color:e.colorTextDisabled}}}}}},EY=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:a}=e,i=`${t}-list-item`,s=`${i}-actions`,c=`${i}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Qo()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:a(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},[`${i}-name`]:Object.assign(Object.assign({},_o),{padding:`0 ${A(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
467
|
+
${c}:focus-visible,
|
|
468
|
+
&.picture ${c}
|
|
469
|
+
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},OY=e=>{const{componentCls:t}=e,n=new Bt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Bt("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`]:FO(e)},n,r]},IY=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:a}=e,i=`${t}-list`,s=`${i}-item`;return{[`${t}-wrapper`]:{[`
|
|
470
|
+
${i}${i}-picture,
|
|
471
|
+
${i}${i}-picture-card,
|
|
472
|
+
${i}${i}-picture-circle
|
|
473
|
+
`]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${A(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},_o),{width:r,height:r,lineHeight:A(a(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% - ${A(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Wl[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Wl.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},PY=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:a}=e,i=`${t}-list`,s=`${i}-item`,c=e.uploadPicCardSize;return{[`
|
|
474
|
+
${t}-wrapper${t}-picture-card-wrapper,
|
|
475
|
+
${t}-wrapper${t}-picture-circle-wrapper
|
|
476
|
+
`]:Object.assign(Object.assign({},Qo()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${A(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}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${A(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${A(a(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}`,[`
|
|
477
|
+
${n}-eye,
|
|
478
|
+
${n}-download,
|
|
479
|
+
${n}-delete
|
|
480
|
+
`]:{zIndex:10,width:r,margin:`0 ${A(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% - ${A(a(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% - ${A(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},RY=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},NY=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Dt(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"}})}},MY=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),jY=Tt("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:o,calc:a}=e,i=Et(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:o});return[NY(i),wY(i),IY(i),PY(i),EY(i),OY(i),RY(i),nu(i)]},MY);var TY={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"},_Y=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:TY}))},zY=l.forwardRef(_Y),LY={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"},DY=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:LY}))},BY=l.forwardRef(DY),kY={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"},AY=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:kY}))},FY=l.forwardRef(AY);function id(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 ld(e,t){const n=be(t),r=n.findIndex(({uid:o})=>o===e.uid);return r===-1?n.push(e):n[r]=e,n}function Nv(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function HY(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 VY=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},pN=e=>e.indexOf("image/")===0,WY=e=>{if(e.type&&!e.thumbUrl)return pN(e.type);const t=e.thumbUrl||e.url||"",n=VY(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)},ha=200;function KY(e){return new Promise(t=>{if(!e.type||!pN(e.type)){t("");return}const n=document.createElement("canvas");n.width=ha,n.height=ha,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${ha}px; height: ${ha}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:i}=o;let s=ha,c=ha,u=0,d=0;a>i?(c=i*(ha/a),d=-(c-s)/2):(s=a*(ha/i),u=-(s-c)/2),r.drawImage(o,u,d,s,c);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 a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(o.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var UY={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"},GY=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:UY}))},vN=l.forwardRef(GY);const qY=l.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:s,iconRender:c,actionIconRender:u,itemRender:d,isImgUrl:f,showPreviewIcon:m,showRemoveIcon:p,showDownloadIcon:g,previewIcon:y,removeIcon:h,downloadIcon:v,extra:b,onPreview:C,onDownload:S,onClose:x},w)=>{var O,$;const{status:E}=a,[I,R]=l.useState(E);l.useEffect(()=>{E!=="removed"&&R(E)},[E]);const[M,N]=l.useState(!1);l.useEffect(()=>{const X=setTimeout(()=>{N(!0)},300);return()=>{clearTimeout(X)}},[]);const P=c(a);let _=l.createElement("div",{className:`${e}-icon`},P);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(I==="uploading"||!a.thumbUrl&&!a.url){const X=V(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:I!=="uploading"});_=l.createElement("div",{className:X},P)}else{const X=f!=null&&f(a)?l.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):P,ae=V(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(a)});_=l.createElement("a",{className:ae,onClick:ne=>C(a,ne),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},X)}const j=V(`${e}-list-item`,`${e}-list-item-${I}`),T=typeof a.linkProps=="string"?JSON.parse(a.linkProps):a.linkProps,z=(typeof p=="function"?p(a):p)?u((typeof h=="function"?h(a):h)||l.createElement(Uh,null),()=>x(a),e,r.removeFile,!0):null,L=(typeof g=="function"?g(a):g)&&I==="done"?u((typeof v=="function"?v(a):v)||l.createElement(vN,null),()=>S(a),e,r.downloadFile):null,k=o!=="picture-card"&&o!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:V(`${e}-list-item-actions`,{picture:o==="picture"})},L,z),H=typeof b=="function"?b(a):b,K=H&&l.createElement("span",{className:`${e}-list-item-extra`},H),B=V(`${e}-list-item-name`),U=a.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:B,title:a.name},T,{href:a.url,onClick:X=>C(a,X)}),a.name,K):l.createElement("span",{key:"view",className:B,onClick:X=>C(a,X),title:a.name},a.name,K),G=(typeof m=="function"?m(a):m)&&(a.url||a.thumbUrl)?l.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:X=>C(a,X),title:r.previewFile},typeof y=="function"?y(a):y||l.createElement(SR,null)):null,q=(o==="picture-card"||o==="picture-circle")&&I!=="uploading"&&l.createElement("span",{className:`${e}-list-item-actions`},G,I==="done"&&L,z),{getPrefixCls:te}=l.useContext(ot),Z=te(),ee=l.createElement("div",{className:j},_,U,k,q,M&&l.createElement(Nr,{motionName:`${Z}-fade`,visible:I==="uploading",motionDeadline:2e3},({className:X})=>{const ae="percent"in a?l.createElement(VK,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},s)):null;return l.createElement("div",{className:V(`${e}-list-item-progress`,X)},ae)})),ue=a.response&&typeof a.response=="string"?a.response:((O=a.error)===null||O===void 0?void 0:O.statusText)||(($=a.error)===null||$===void 0?void 0:$.message)||r.uploadError,re=I==="error"?l.createElement(Lo,{title:ue,getPopupContainer:X=>X.parentNode},ee):ee;return l.createElement("div",{className:V(`${e}-list-item-container`,t),style:n,ref:w},d?d(re,a,i,{download:S.bind(null,a),preview:C.bind(null,a),remove:x.bind(null,a)}):re)}),XY=(e,t)=>{const{listType:n="text",previewFile:r=KY,onPreview:o,onDownload:a,onRemove:i,locale:s,iconRender:c,isImageUrl:u=WY,prefixCls:d,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:p=!0,showDownloadIcon:g=!1,removeIcon:y,previewIcon:h,downloadIcon:v,extra:b,progress:C={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:x=!0,itemRender:w,disabled:O}=e,[,$]=vy(),[E,I]=l.useState(!1),R=["picture-card","picture-circle"].includes(n);l.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(B=>{!(B.originFileObj instanceof File||B.originFileObj instanceof Blob)||B.thumbUrl!==void 0||(B.thumbUrl="",r==null||r(B.originFileObj).then(U=>{B.thumbUrl=U||"",$()}))})},[n,f,r]),l.useEffect(()=>{I(!0)},[]);const M=(B,U)=>{if(o)return U==null||U.preventDefault(),o(B)},N=B=>{typeof a=="function"?a(B):B.url&&window.open(B.url)},P=B=>{i==null||i(B)},_=B=>{if(c)return c(B,n);const U=B.status==="uploading";if(n.startsWith("picture")){const G=n==="picture"?l.createElement(da,null):s.uploading,q=u!=null&&u(B)?l.createElement(FY,null):l.createElement(zY,null);return U?G:q}return U?l.createElement(da,null):l.createElement(BY,null)},j=(B,U,G,q,te)=>{const Z={type:"text",size:"small",title:q,onClick:ee=>{var ue,re;U(),l.isValidElement(B)&&((re=(ue=B.props).onClick)===null||re===void 0||re.call(ue,ee))},className:`${G}-list-item-action`,disabled:te?O:!1};return l.isValidElement(B)?l.createElement(It,Object.assign({},Z,{icon:Dn(B,Object.assign(Object.assign({},B.props),{onClick:()=>{}}))})):l.createElement(It,Object.assign({},Z),l.createElement("span",null,B))};l.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:N}));const{getPrefixCls:T}=l.useContext(ot),z=T("upload",d),L=T(),k=V(`${z}-list`,`${z}-list-${n}`),H=l.useMemo(()=>Qt(Kl(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),K=Object.assign(Object.assign({},R?{}:H),{motionDeadline:2e3,motionName:`${z}-${R?"animate-inline":"animate"}`,keys:be(f.map(B=>({key:B.uid,file:B}))),motionAppear:E});return l.createElement("div",{className:k},l.createElement(fy,Object.assign({},K,{component:!1}),({key:B,file:U,className:G,style:q})=>l.createElement(qY,{key:B,locale:s,prefixCls:z,className:G,style:q,file:U,items:f,progress:C,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:p,showDownloadIcon:g,removeIcon:y,previewIcon:h,downloadIcon:v,extra:b,iconRender:_,actionIconRender:j,itemRender:w,onPreview:M,onDownload:N,onClose:P})),S&&l.createElement(Nr,Object.assign({},K,{visible:x,forceRender:!0}),({className:B,style:U})=>Dn(S,G=>({className:V(G.className,B),style:Object.assign(Object.assign(Object.assign({},U),{pointerEvents:B?"none":void 0}),G.style)}))))},YY=l.forwardRef(XY);var QY=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?a(d.value):o(d.value).then(s,c)}u((r=r.apply(e,[])).next())})};const ks=`__LIST_IGNORE_${Date.now()}__`,JY=(e,t)=>{const n=jn("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:s="text",onPreview:c,onDownload:u,onChange:d,onDrop:f,previewFile:m,disabled:p,locale:g,iconRender:y,isImageUrl:h,progress:v,prefixCls:b,className:C,type:S="select",children:x,style:w,itemRender:O,maxCount:$,data:E={},multiple:I=!1,hasControlInside:R=!0,action:M="",accept:N="",supportServerRender:P=!0,rootClassName:_}=e,j=l.useContext(Ir),T=p??j,z=e.customRequest||n.customRequest,[L,k]=rn(o||[],{value:r,postState:me=>me??[]}),[H,K]=l.useState("drop"),B=l.useRef(null),U=l.useRef(null);l.useMemo(()=>{const me=Date.now();(r||[]).forEach((Ie,Te)=>{!Ie.uid&&!Object.isFrozen(Ie)&&(Ie.uid=`__AUTO__${me}_${Te}__`)})},[r]);const G=(me,Ie,Te)=>{let Ne=be(Ie),tt=!1;$===1?Ne=Ne.slice(-1):$&&(tt=Ne.length>$,Ne=Ne.slice(0,$)),mo.flushSync(()=>{k(Ne)});const st={file:me,fileList:Ne};Te&&(st.event=Te),(!tt||me.status==="removed"||Ne.some(Le=>Le.uid===me.uid))&&mo.flushSync(()=>{d==null||d(st)})},q=(me,Ie)=>QY(void 0,void 0,void 0,function*(){const{beforeUpload:Te,transformFile:Ne}=e;let tt=me;if(Te){const st=yield Te(me,Ie);if(st===!1)return!1;if(delete me[ks],st===ks)return Object.defineProperty(me,ks,{value:!0,configurable:!0}),!1;typeof st=="object"&&st&&(tt=st)}return Ne&&(tt=yield Ne(tt)),tt}),te=me=>{const Ie=me.filter(tt=>!tt.file[ks]);if(!Ie.length)return;const Te=Ie.map(tt=>id(tt.file));let Ne=be(L);Te.forEach(tt=>{Ne=ld(tt,Ne)}),Te.forEach((tt,st)=>{let Le=tt;if(Ie[st].parsedFile)tt.status="uploading";else{const{originFileObj:Ge}=tt;let Qe;try{Qe=new File([Ge],Ge.name,{type:Ge.type})}catch{Qe=new Blob([Ge],{type:Ge.type}),Qe.name=Ge.name,Qe.lastModifiedDate=new Date,Qe.lastModified=new Date().getTime()}Qe.uid=tt.uid,Le=Qe}G(Le,Ne)})},Z=(me,Ie,Te)=>{try{typeof me=="string"&&(me=JSON.parse(me))}catch{}if(!Nv(Ie,L))return;const Ne=id(Ie);Ne.status="done",Ne.percent=100,Ne.response=me,Ne.xhr=Te;const tt=ld(Ne,L);G(Ne,tt)},ee=(me,Ie)=>{if(!Nv(Ie,L))return;const Te=id(Ie);Te.status="uploading",Te.percent=me.percent;const Ne=ld(Te,L);G(Te,Ne,me)},ue=(me,Ie,Te)=>{if(!Nv(Te,L))return;const Ne=id(Te);Ne.error=me,Ne.response=Ie,Ne.status="error";const tt=ld(Ne,L);G(Ne,tt)},re=me=>{let Ie;Promise.resolve(typeof a=="function"?a(me):a).then(Te=>{var Ne;if(Te===!1)return;const tt=HY(me,L);tt&&(Ie=Object.assign(Object.assign({},me),{status:"removed"}),L==null||L.forEach(st=>{const Le=Ie.uid!==void 0?"uid":"name";st[Le]===Ie[Le]&&!Object.isFrozen(st)&&(st.status="removed")}),(Ne=B.current)===null||Ne===void 0||Ne.abort(Ie),G(Ie,tt))})},X=me=>{K(me.type),me.type==="drop"&&(f==null||f(me))};l.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:Z,onProgress:ee,onError:ue,fileList:L,upload:B.current,nativeElement:U.current}));const{getPrefixCls:ae,direction:ne,upload:J}=l.useContext(ot),Y=ae("upload",b),se=Object.assign(Object.assign({onBatchStart:te,onError:ue,onProgress:ee,onSuccess:Z},e),{customRequest:z,data:E,multiple:I,action:M,accept:N,supportServerRender:P,prefixCls:Y,disabled:T,beforeUpload:q,onChange:void 0,hasControlInside:R});delete se.className,delete se.style,(!x||T)&&delete se.id;const fe=`${Y}-wrapper`,[$e,Ce,ie]=jY(Y,fe),[ge]=yo("Upload",vo.Upload),{showRemoveIcon:de,showPreviewIcon:ve,showDownloadIcon:Re,removeIcon:_e,previewIcon:Ue,downloadIcon:ke,extra:De}=typeof i=="boolean"?{}:i,Ae=typeof de>"u"?!T:de,xe=(me,Ie)=>i?l.createElement(YY,{prefixCls:Y,listType:s,items:L,previewFile:m,onPreview:c,onDownload:u,onRemove:re,showRemoveIcon:Ae,showPreviewIcon:ve,showDownloadIcon:Re,removeIcon:_e,previewIcon:Ue,downloadIcon:ke,iconRender:y,extra:De,locale:Object.assign(Object.assign({},ge),g),isImageUrl:h,progress:v,appendAction:me,appendActionVisible:Ie,itemRender:O,disabled:T}):me,ye=V(fe,C,_,Ce,ie,J==null?void 0:J.className,{[`${Y}-rtl`]:ne==="rtl",[`${Y}-picture-card-wrapper`]:s==="picture-card",[`${Y}-picture-circle-wrapper`]:s==="picture-circle"}),je=Object.assign(Object.assign({},J==null?void 0:J.style),w);if(S==="drag"){const me=V(Ce,Y,`${Y}-drag`,{[`${Y}-drag-uploading`]:L.some(Ie=>Ie.status==="uploading"),[`${Y}-drag-hover`]:H==="dragover",[`${Y}-disabled`]:T,[`${Y}-rtl`]:ne==="rtl"});return $e(l.createElement("span",{className:ye,ref:U},l.createElement("div",{className:me,style:je,onDrop:X,onDragOver:X,onDragLeave:X},l.createElement(qh,Object.assign({},se,{ref:B,className:`${Y}-btn`}),l.createElement("div",{className:`${Y}-drag-container`},x))),xe()))}const Pe=V(Y,`${Y}-select`,{[`${Y}-disabled`]:T,[`${Y}-hidden`]:!x}),Be=l.createElement("div",{className:Pe,style:je},l.createElement(qh,Object.assign({},se,{ref:B})));return $e(s==="picture-card"||s==="picture-circle"?l.createElement("span",{className:ye,ref:U},xe(Be,!!x)):l.createElement("span",{className:ye,ref:U},Be,xe()))},gN=l.forwardRef(JY);var ZY=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 eQ=l.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:o=!1,children:a}=e,i=ZY(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},n),{height:r});return l.createElement(gN,Object.assign({ref:t,hasControlInside:o},i,{style:s,type:"drag"}),a)}),$b=gN;$b.Dragger=eQ;$b.LIST_IGNORE=ks;var Um={},hN={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(hN);var Gm=hN.exports,qm={};Object.defineProperty(qm,"__esModule",{value:!0});qm.default=void 0;var tQ={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};qm.default=tQ;var Xm={},yu={},Ym={},yN={exports:{}},bN={exports:{}},CN={exports:{}},SN={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(SN);var xN=SN.exports,$N={exports:{}};(function(e){var t=xN.default;function n(r,o){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})($N);var nQ=$N.exports;(function(e){var t=xN.default,n=nQ;function r(o){var a=n(o,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(CN);var rQ=CN.exports;(function(e){var t=rQ;function n(r,o,a){return(o=t(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(bN);var oQ=bN.exports;(function(e){var t=oQ;function n(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),i.push.apply(i,s)}return i}function r(o){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?n(Object(i),!0).forEach(function(s){t(o,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))})}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(yN);var aQ=yN.exports,Qm={};Object.defineProperty(Qm,"__esModule",{value:!0});Qm.commonLocale=void 0;Qm.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var iQ=Gm.default;Object.defineProperty(Ym,"__esModule",{value:!0});Ym.default=void 0;var N$=iQ(aQ),lQ=Qm,sQ=(0,N$.default)((0,N$.default)({},lQ.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});Ym.default=sQ;var bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.default=void 0;const cQ={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};bu.default=cQ;var wN=Gm.default;Object.defineProperty(yu,"__esModule",{value:!0});yu.default=void 0;var uQ=wN(Ym),dQ=wN(bu);const EN={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},uQ.default),timePickerLocale:Object.assign({},dQ.default)};EN.lang.ok="确定";yu.default=EN;var fQ=Gm.default;Object.defineProperty(Xm,"__esModule",{value:!0});Xm.default=void 0;var mQ=fQ(yu);Xm.default=mQ.default;var Jm=Gm.default;Object.defineProperty(Um,"__esModule",{value:!0});Um.default=void 0;var pQ=Jm(qm),vQ=Jm(Xm),gQ=Jm(yu),hQ=Jm(bu);const Vr="${label}不是一个有效的${type}",yQ={locale:"zh-cn",Pagination:pQ.default,DatePicker:gQ.default,TimePicker:hQ.default,Calendar:vQ.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Vr,method:Vr,array:Vr,object:Vr,number:Vr,date:Vr,boolean:Vr,integer:Vr,float:Vr,regexp:Vr,email:Vr,url:Vr,hex:Vr},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};Um.default=yQ;var bQ=Um;const CQ=Hc(bQ);var SQ={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"},xQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:SQ}))},ON=l.forwardRef(xQ),$Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},wQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:$Q}))},M$=l.forwardRef(wQ),EQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-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-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"},OQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:EQ}))},IN=l.forwardRef(OQ),IQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},PQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:IQ}))},PN=l.forwardRef(PQ),RQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},NQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:RQ}))},MQ=l.forwardRef(NQ),jQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-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-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},TQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:jQ}))},j$=l.forwardRef(TQ),_Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},zQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:_Q}))},LQ=l.forwardRef(zQ),DQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},BQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:DQ}))},kQ=l.forwardRef(BQ),AQ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},FQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:AQ}))},HQ=l.forwardRef(FQ),VQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"},WQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:VQ}))},KQ=l.forwardRef(WQ),UQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},GQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:UQ}))},wb=l.forwardRef(GQ),qQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},XQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:qQ}))},RN=l.forwardRef(XQ),YQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},QQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:YQ}))},NN=l.forwardRef(QQ),JQ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},ZQ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:JQ}))},eJ=l.forwardRef(ZQ),tJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},nJ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:tJ}))},rJ=l.forwardRef(nJ),oJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},aJ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:oJ}))},iJ=l.forwardRef(aJ),lJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-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-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},sJ=function(t,n){return l.createElement(ht,pe({},t,{ref:n,icon:lJ}))},Mv=l.forwardRef(sJ);async function Jt(e){const t=await e.text();let n={};if(t)try{n=JSON.parse(t)}catch{n={message:t}}if(!e.ok){const r=(n==null?void 0:n.message)||(n==null?void 0:n.error)||`请求失败 (${e.status})`,o=new Error(r);throw o.status=e.status,o.data=n,o}return n}const Ut={projects:{list:()=>fetch("/admin/api/projects").then(Jt),get:e=>fetch(`/admin/api/projects/${encodeURIComponent(e)}`).then(Jt),save:e=>fetch("/admin/api/projects",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(Jt),remove:e=>fetch(`/admin/api/projects/${encodeURIComponent(e)}`,{method:"DELETE"}).then(Jt),reorder:e=>fetch("/admin/api/projects/reorder",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({order:e})}).then(Jt)},environments:{save:(e,t)=>fetch(`/admin/api/projects/${encodeURIComponent(e)}/environments`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).then(Jt),remove:(e,t)=>fetch(`/admin/api/projects/${encodeURIComponent(e)}/environments/${encodeURIComponent(t)}`,{method:"DELETE"}).then(Jt),get:(e,t)=>fetch(`/admin/api/projects/${encodeURIComponent(e)}/environments/${encodeURIComponent(t)}`).then(Jt)},hosts:{save:(e,t,n)=>fetch(`/admin/api/projects/${encodeURIComponent(e)}/environments/${encodeURIComponent(t)}/hosts`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}).then(Jt),remove:(e,t,n)=>fetch(`/admin/api/projects/${encodeURIComponent(e)}/environments/${encodeURIComponent(t)}/hosts/${encodeURIComponent(n)}`,{method:"DELETE"}).then(Jt),reorder:(e,t,n)=>fetch(`/admin/api/projects/${encodeURIComponent(e)}/environments/${encodeURIComponent(t)}/hosts/reorder`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({order:n})}).then(Jt)},list:()=>fetch("/admin/api/connections").then(Jt),save:e=>fetch("/admin/api/connections",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(Jt),remove:e=>fetch(`/admin/api/connections/${encodeURIComponent(e)}`,{method:"DELETE"}).then(Jt),test:e=>fetch("/admin/api/test-connection",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(Jt),audit:(e={})=>{const t=new URLSearchParams(e).toString();return fetch(`/admin/api/audit?${t}`).then(Jt)},backups:()=>fetch("/admin/api/backups").then(Jt),snapshot:()=>fetch("/admin/api/backups/snapshot",{method:"POST"}).then(Jt),restore:e=>fetch(`/admin/api/backups/restore/${encodeURIComponent(e)}`,{method:"POST"}).then(Jt),systemInfo:()=>fetch("/admin/api/system/info").then(Jt),defaults:()=>fetch("/admin/api/defaults").then(Jt),securityGet:()=>fetch("/admin/api/security").then(Jt),securitySave:e=>fetch("/admin/api/security",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(Jt),settingsGet:()=>fetch("/admin/api/settings").then(Jt),settingsSave:e=>fetch("/admin/api/settings",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(Jt),autostartGet:()=>fetch("/admin/api/autostart").then(Jt),autostartSet:e=>fetch("/admin/api/autostart",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:e})}).then(Jt),configExportRaw:()=>fetch("/admin/api/config/export").then(Jt),configImport:e=>fetch("/admin/api/config/import",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(Jt)};function T$(e){return F.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[F.jsx(pi,{checked:e.checked,onChange:e.onChange}),F.jsx(vn.Text,{type:"secondary",style:{marginLeft:8},children:e.children})]})}function cJ({moveRow:e,dragKeyRef:t,...n}){return F.jsx("tr",{...n,draggable:!0,style:{...n.style,cursor:"grab"},onDragStart:r=>{t.current=n["data-row-key"]??null,r.dataTransfer.effectAllowed="move"},onDragOver:r=>{r.preventDefault(),r.dataTransfer.dropEffect="move"},onDrop:r=>{r.preventDefault();const o=t.current;t.current=null;const a=n["data-row-key"];o&&a&&(e==null||e(o,a))}})}function uJ(){const{token:e}=Rf.useToken(),[t,n]=l.useState([]),[r,o]=l.useState(null),[a,i]=l.useState(null),[s,c]=l.useState(null),[u,d]=l.useState([]),[f,m]=l.useState(!1),[p,g]=l.useState(!1),[y,h]=l.useState(!1),[v,b]=l.useState(null),[C]=vt.useForm(),[S,x]=l.useState(!1),[w,O]=l.useState(null),[$]=vt.useForm(),[E,I]=l.useState(!1),[R,M]=l.useState(null),[N]=vt.useForm(),[P,_]=l.useState(null),[j,T]=l.useState(!1),[z,L]=l.useState(null),k=l.useRef(null),[H,K]=l.useState([]),[B,U]=l.useState(null),[G,q]=l.useState(!1),[te,Z]=l.useState(!1),[ee,ue]=l.useState(!1),[re,X]=l.useState(null),[ae,ne]=l.useState(!1),[J,Y]=l.useState(!1),se=le=>{const ce=(le==null?void 0:le.hosts)||{},Se=(Me,ze)=>ze&&typeof ze.name=="string"&&ze.name.trim()?ze:{...ze,name:Me},he=le==null?void 0:le.hostOrder;if(!Array.isArray(he)||he.length===0)return Object.entries(ce).map(([Me,ze])=>Se(Me,ze));const Ee=ce,Oe=[],we=new Set;for(const Me of he)Ee[Me]&&!we.has(Me)&&(Oe.push(Se(Me,Ee[Me])),we.add(Me));for(const[Me,ze]of Object.entries(Ee))we.has(Me)||Oe.push(Se(Me,ze));return Oe},fe=async()=>{m(!0);try{const le=await Ut.projects.list(),ce=Array.isArray(le)?le:[];if(n(ce),ce.length){const Se=ce.find(Me=>Me.name===ce[0].name)||ce[0],he=ce.find(Me=>Me.name===r)||Se;o(he.name);const Ee=await Ut.projects.get(he.name);i(Ee);const Oe=Object.keys(Ee.environments||{}),we=Ee.defaultEnvironment&&Ee.environments[Ee.defaultEnvironment]?Ee.defaultEnvironment:Oe[0]||null;c(we),d(we?se(Ee.environments[we]):[])}else o(null),i(null),c(null),d([])}catch(le){zt.error((le==null?void 0:le.message)||"加载失败")}finally{m(!1)}};l.useEffect(()=>{fe(),Ut.defaults().then(le=>K(Array.isArray(le==null?void 0:le.defaultEnvironments)?le.defaultEnvironments:[])).catch(()=>{})},[]);const $e=async le=>{o(le),g(!0);try{const ce=await Ut.projects.get(le);i(ce);const Se=Object.keys(ce.environments||{}),he=ce.defaultEnvironment&&ce.environments[ce.defaultEnvironment]?ce.defaultEnvironment:Se[0]||null;c(he),d(he?se(ce.environments[he]):[])}catch(ce){zt.error((ce==null?void 0:ce.message)||"加载项目详情失败")}finally{g(!1)}},Ce=le=>{var ce;c(le),(ce=a==null?void 0:a.environments)!=null&&ce[le]?d(se(a.environments[le])):d([])},ie=async(le,ce)=>{const Se=le||r;if(Se){g(!0);try{const he=await Ut.projects.get(Se);i(he);const Ee=Object.keys(he.environments||{});let Oe=null;ce&&he.environments[ce]?Oe=ce:s&&he.environments[s]?Oe=s:Oe=he.defaultEnvironment&&he.environments[he.defaultEnvironment]?he.defaultEnvironment:Ee[0]||null,c(Oe),d(Oe?se(he.environments[Oe]):[])}finally{g(!1)}}},ge=(le,ce)=>{const Se=(ce||"").trim();return Se&&t.some(Ee=>Ee&&Ee.name===Se&&Ee.name!==v)?Promise.reject(new Error(`项目名称 "${Se}" 已存在`)):Promise.resolve()},de=()=>{b(null),C.resetFields(),h(!0)},ve=le=>{b(le.name),C.setFieldsValue({name:le.name,displayName:le.displayName||"",defaultEnvironment:le.defaultEnvironment||""}),h(!0)},Re=async()=>{var le,ce;q(!0);try{const Se=await C.validateFields(),he={name:String(Se.name).trim(),displayName:((le=Se.displayName)==null?void 0:le.trim())||void 0,defaultEnvironment:((ce=Se.defaultEnvironment)==null?void 0:ce.trim())||void 0,originalName:v||void 0};he.defaultEnvironment===""&&delete he.defaultEnvironment,he.displayName===""&&delete he.displayName,await Ut.projects.save(he),zt.success(v?"已重命名项目":"已创建项目"),h(!1),C.resetFields();const Ee=he.name,Oe=v;b(null),m(!0);try{const we=await Ut.projects.list(),Me=Array.isArray(we)?we:[];n(Me);const ze=Ee;o(ze);const qe=await Ut.projects.get(ze);i(qe);const yt=Object.keys(qe.environments||{}),Ye=qe.defaultEnvironment&&qe.environments[qe.defaultEnvironment]?qe.defaultEnvironment:yt[0]||null;c(Ye),d(Ye?se(qe.environments[Ye]):[])}finally{m(!1)}}catch(Se){if(Se!=null&&Se.errorFields)return;zt.error((Se==null?void 0:Se.message)||"保存项目失败")}finally{q(!1)}},_e=async le=>{X(`project:${le}`);try{await Ut.projects.remove(le),zt.success("已删除项目"),r===le&&(o(null),i(null),c(null),d([])),await fe()}catch(ce){zt.error((ce==null?void 0:ce.message)||"删除失败")}finally{X(null)}},Ue=async(le,ce)=>{if(le===ce)return;const Se=[...t],[he]=Se.splice(le,1);Se.splice(ce,0,he),n(Se);try{await Ut.projects.reorder(Se.map(Ee=>Ee.name))}catch{zt.error("排序保存失败"),fe()}},ke=()=>{if(!r){zt.warning("请先选择项目");return}O(null),$.resetFields(),x(!0)},De=le=>{O(le),$.setFieldsValue({name:le}),x(!0)},Ae=async()=>{Z(!0);try{const le=await $.validateFields(),ce={name:String(le.name).trim(),originalName:w||void 0};if(!r)return;await Ut.environments.save(r,ce),zt.success(w?"已重命名环境":"已创建环境"),x(!1),$.resetFields();const Se=ce.name;O(null),await ie(r,Se);try{const he=await Ut.projects.list();n(Array.isArray(he)?he:[])}catch{}}catch(le){if(le!=null&&le.errorFields)return;zt.error((le==null?void 0:le.message)||"保存环境失败")}finally{Z(!1)}},xe=async le=>{if(r){X(`env:${le}`);try{await Ut.environments.remove(r,le),zt.success("已删除环境"),await ie(r,null);try{const ce=await Ut.projects.list();n(Array.isArray(ce)?ce:[])}catch{}}catch(ce){zt.error((ce==null?void 0:ce.message)||"删除环境失败")}finally{X(null)}}},ye=(le,ce)=>{const Se=(ce||"").trim();return Se&&u.some(Ee=>Ee&&Ee.name===Se&&Ee.name!==R)?Promise.reject(new Error(`主机名称 "${Se}" 已存在`)):Promise.resolve()},je=le=>{const ce=le.split(".");return ce.length===4&&ce.every(Se=>/^\d{1,3}$/.test(Se)&&Number(Se)<=255)},Pe=le=>{if(le.indexOf("::")!==le.lastIndexOf("::")||!/^[0-9a-fA-F:]+$/.test(le)||/:{3,}/.test(le))return!1;const Se=le.split("::").join(":").split(":").filter(Boolean);return Se.length<=8&&Se.every(he=>/^[0-9a-fA-F]{1,4}$/.test(he))},Be=(le,ce)=>{const Se=(ce||"").trim();return Se?Se.includes(":")?Pe(Se)?Promise.resolve():Promise.reject(new Error("IPv6 地址格式不正确")):/^[\d.]+$/.test(Se)?je(Se)?Promise.resolve():Promise.reject(new Error("IP 地址格式不正确")):/[\s/\\]/.test(Se)?Promise.reject(new Error("主机名/别名不能包含空格或路径分隔符")):Promise.resolve():Promise.resolve()},me=(le,ce)=>{if(ce==null||ce==="")return Promise.resolve();const Se=Number(ce);return!Number.isInteger(Se)||Se<1||Se>65535?Promise.reject(new Error("端口须为 1-65535 的整数")):Promise.resolve()},Ie=()=>{if(!r||!s){zt.warning(r?"请先创建环境":"请先选择项目");return}M(null),I(!0),setTimeout(()=>{N.resetFields(),N.setFieldsValue({port:22,pty:!0,transportMode:"exec"})},0)},Te=le=>{M(le.name),I(!0),setTimeout(()=>{const ce=he=>Array.isArray(he)?he.join(`
|
|
481
|
+
`):he||"",Se=he=>Array.isArray(he)?he.join(", "):he||"";N.setFieldsValue({...le,tryKeyboard:!!le.tryKeyboard,pty:le.pty!==void 0?!!le.pty:!0,commandWhitelist:ce(le.commandWhitelist),commandBlacklist:ce(le.commandBlacklist),allowedLocalPaths:Se(le.allowedLocalPaths),allowedRemotePaths:Se(le.allowedRemotePaths),algorithms:le.algorithms?JSON.stringify(le.algorithms,null,2):void 0})},0)},Ne=async()=>{ue(!0);try{await N.validateFields();const le=N.getFieldsValue(!0),ce=ze=>{if(ze==null||ze==="")return;if(Array.isArray(ze))return ze;const qe=String(ze).split(`
|
|
482
|
+
`).map(yt=>yt.trim()).filter(Boolean);if(qe.length)return qe.map(yt=>yt.startsWith("^")?yt:"^"+yt)},Se=ze=>{if(ze==null||ze==="")return;if(Array.isArray(ze))return ze;const qe=String(ze).split(",").map(yt=>yt.trim()).filter(Boolean);return qe.length?qe:void 0},he={...le};he.password==="***"&&delete he.password,he.passphrase==="***"&&delete he.passphrase;for(const ze of Object.keys(he))(he[ze]===""||he[ze]==null)&&delete he[ze];const Ee=ce(le.commandWhitelist),Oe=ce(le.commandBlacklist);Ee!==void 0?he.commandWhitelist=Ee:delete he.commandWhitelist,Oe!==void 0?he.commandBlacklist=Oe:delete he.commandBlacklist;const we=Se(le.allowedLocalPaths),Me=Se(le.allowedRemotePaths);if(we!==void 0?he.allowedLocalPaths=we:delete he.allowedLocalPaths,Me!==void 0?he.allowedRemotePaths=Me:delete he.allowedRemotePaths,le.algorithms)try{he.algorithms=typeof le.algorithms=="string"?JSON.parse(le.algorithms):le.algorithms}catch{zt.error("算法配置 JSON 格式不正确");return}try{if(!r||!s){zt.warning("请先选择项目与环境");return}await Ut.hosts.save(r,s,{...he,originalName:R||void 0}),zt.success("已保存"),I(!1),N.resetFields(),M(null),await ie(r,s);try{const ze=await Ut.projects.list();n(Array.isArray(ze)?ze:[])}catch{}}catch(ze){zt.error((ze==null?void 0:ze.message)||"保存失败")}}finally{ue(!1)}},tt=async le=>{if(!(!r||!s)){X(`host:${le.name}`);try{await Ut.hosts.remove(r,s,le.name),zt.success("已删除"),await ie(r,s);try{const ce=await Ut.projects.list();n(Array.isArray(ce)?ce:[])}catch{}}catch(ce){zt.error((ce==null?void 0:ce.message)||"删除失败")}finally{X(null)}}},st=async(le,ce)=>{if(!r||!s||le===ce)return;const Se=[...u],he=Se.findIndex(we=>we.name===le),Ee=Se.findIndex(we=>we.name===ce);if(he<0||Ee<0||he===Ee)return;const[Oe]=Se.splice(he,1);Se.splice(Ee,0,Oe),d(Se);try{await Ut.hosts.reorder(r,s,Se.map(we=>we.name))}catch{zt.error("排序保存失败"),ie(r,s)}},Le=async le=>{U(le.name);try{const ce=await Ut.test(le);ce.ok?zt.success(`连接成功,延迟 ${ce.latencyMs} 毫秒`):zt.error(`连接失败 [${ce.code}]:${ce.message}`)}catch(ce){zt.error((ce==null?void 0:ce.message)||"测试连接失败")}finally{U(null)}},Ge=async()=>{Y(!0);try{const le=await Ut.configExportRaw(),ce=JSON.stringify(le,null,2),Se=new Blob([ce],{type:"application/json"}),he=URL.createObjectURL(Se),Ee=document.createElement("a");Ee.href=he,Ee.download="ssh-mcp-config.json",Ee.click(),URL.revokeObjectURL(he),zt.success("已导出配置")}catch(le){zt.error("导出失败:"+String((le==null?void 0:le.message)||le))}finally{Y(!1)}},Qe=async le=>{ne(!0);try{const ce=await le.text(),Se=JSON.parse(ce),he=await Ut.configImport(Se);if((he==null?void 0:he.ok)===!1)throw new Error(he.message||"导入失败");_(he),T(!0),zt.success(`已导入 ${he.addedHosts??he.count??0} 个主机`),await fe()}catch(ce){zt.error("导入失败:"+String((ce==null?void 0:ce.message)||ce))}finally{ne(!1)}},Fe={dev:"开发环境",test:"测试环境",prod:"生产环境",uat:"UAT环境",other:"其他环境"},nt=a?Object.keys(a.environments||{}):[],bt=nt.map(le=>({value:le,label:(a==null?void 0:a.defaultEnvironment)===le?`${Fe[le]||le}(默认)`:Fe[le]||le}));return F.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,height:"100%"},children:[F.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:12,flexShrink:0},children:[F.jsxs("div",{children:[F.jsxs(vn.Title,{level:4,style:{margin:0,fontWeight:700},children:[F.jsx(ON,{style:{color:"#1677ff",marginRight:8}}),"连接管理"]}),F.jsx(vn.Text,{type:"secondary",children:"按 项目 → 环境 → 主机 三级管理,支持两阶段加载与导入结果查看"})]}),F.jsxs(zr,{wrap:!0,children:[F.jsx(It,{icon:F.jsx(Fm,{}),loading:f,onClick:fe,children:"刷新"}),F.jsx($b,{accept:".json",showUploadList:!1,beforeUpload:le=>(Qe(le),!1),children:F.jsx(It,{icon:F.jsx(iJ,{}),loading:ae,children:"导入 JSON"})}),F.jsx(It,{icon:F.jsx(vN,{}),loading:J,onClick:Ge,children:"导出 JSON"}),F.jsx(It,{type:"primary",icon:F.jsx(Vo,{}),onClick:Ie,children:"新增主机"})]})]}),F.jsxs("div",{style:{display:"flex",gap:16,alignItems:"flex-start",flex:1,minHeight:0},children:[F.jsx(Oo,{style:{width:280,flexShrink:0,borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)",height:"100%",display:"flex",flexDirection:"column"},bodyStyle:{padding:12,flex:1,overflow:"auto"},title:F.jsxs("span",{children:[F.jsx(KQ,{style:{marginRight:8}}),"项目"]}),extra:F.jsx(It,{type:"primary",size:"small",icon:F.jsx(Vo,{}),onClick:de,children:"新建"}),children:f?F.jsx("div",{style:{textAlign:"center",padding:24},children:F.jsx(Bc,{})}):t.length===0?F.jsx(Sn,{description:"暂无项目",image:Sn.PRESENTED_IMAGE_SIMPLE,children:F.jsx(It,{type:"primary",icon:F.jsx(Vo,{}),onClick:de,children:"创建项目"})}):F.jsx(Td,{dataSource:t,renderItem:(le,ce)=>{const Se=le.name===r;return F.jsx(Td.Item,{onClick:()=>$e(le.name),draggable:!0,onDragStart:()=>L(ce),onDragOver:he=>he.preventDefault(),onDrop:()=>{z!==null&&Ue(z,ce),L(null)},style:{cursor:"grab",background:Se?e.colorPrimaryBg:void 0,borderRadius:8,padding:"8px 10px",marginBottom:6,border:Se?`1px solid ${e.colorPrimaryBorder}`:"1px solid transparent"},actions:[F.jsx(It,{type:"text",size:"small",icon:F.jsx(Gh,{}),onClick:he=>{he.stopPropagation(),ve(le)}},"edit"),F.jsx(tc,{title:"确认删除该项目吗?级联删除全部环境与主机",okText:"确认",cancelText:"取消",onConfirm:()=>_e(le.name),children:F.jsx(It,{type:"text",size:"small",danger:!0,icon:F.jsx(Uh,{}),loading:re===`project:${le.name}`,onClick:he=>he.stopPropagation()})},"del")],children:F.jsx(Td.Item.Meta,{title:F.jsxs("span",{style:{fontWeight:Se?700:400},children:[le.displayName?`${le.displayName} (${le.name})`:le.name,le.defaultEnvironment?F.jsxs($n,{color:"gold",icon:F.jsx(Ux,{}),style:{marginLeft:6,borderRadius:10},children:["默认:",Fe[le.defaultEnvironment]||le.defaultEnvironment]}):null]}),description:F.jsxs("span",{style:{fontSize:12},children:[le.environmentCount," 环境 · ",le.hostCount," 主机",le.hostCount===0?F.jsx($n,{color:"orange",style:{marginLeft:8,borderRadius:10,fontSize:11},children:"未配置主机"}):null]})})})}})}),F.jsx("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:16,height:"100%",overflow:"auto"},children:r?p?F.jsx(Oo,{style:{borderRadius:16},children:F.jsx("div",{style:{textAlign:"center",padding:40},children:F.jsx(Bc,{tip:"加载项目详情..."})})}):nt.length===0?F.jsx(Oo,{style:{borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)"},title:F.jsxs("span",{children:[F.jsx(M$,{style:{marginRight:8}}),"环境"]}),extra:F.jsx(It,{type:"primary",size:"small",icon:F.jsx(Vo,{}),onClick:ke,children:"新建环境"}),children:F.jsx(Sn,{description:"该项目暂无环境",image:Sn.PRESENTED_IMAGE_SIMPLE,children:F.jsx(It,{type:"primary",icon:F.jsx(Vo,{}),onClick:ke,children:"创建环境"})})}):F.jsxs(Oo,{style:{borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)"},bodyStyle:{paddingTop:16},title:F.jsxs("span",{children:[F.jsx(M$,{style:{marginRight:8}}),"环境"]}),extra:F.jsxs($n,{color:"blue",icon:F.jsx(wb,{}),children:["共 ",u.length," 个主机"]}),children:[F.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:12,marginBottom:16},children:[F.jsxs(zr,{children:[F.jsx("span",{style:{fontWeight:600},children:"当前环境:"}),F.jsx(Mo,{value:s,onChange:Ce,options:bt,placeholder:"选择环境",style:{minWidth:200}}),(a==null?void 0:a.defaultEnvironment)&&F.jsxs($n,{color:"gold",icon:F.jsx(Ux,{}),style:{borderRadius:10},children:["默认:",Fe[a.defaultEnvironment]||a.defaultEnvironment]})]}),F.jsxs(zr,{children:[F.jsx(It,{type:"primary",size:"small",icon:F.jsx(Vo,{}),onClick:ke,children:"新建环境"}),s&&F.jsxs(F.Fragment,{children:[F.jsx(It,{size:"small",icon:F.jsx(Gh,{}),onClick:()=>De(s),children:"重命名"}),F.jsx(tc,{title:`确认删除环境 ${Fe[s]||s} 吗?`,okText:"确认",cancelText:"取消",onConfirm:()=>xe(s),children:F.jsx(It,{size:"small",danger:!0,icon:F.jsx(Uh,{}),loading:re===`env:${s}`,children:"删除"})})]})]})]}),u.length===0?F.jsx(Sn,{description:"该环境暂无主机",image:Sn.PRESENTED_IMAGE_SIMPLE,style:{padding:"24px 0"},children:F.jsx(It,{type:"primary",icon:F.jsx(Vo,{}),onClick:Ie,children:"新增主机"})}):F.jsx(Bo,{rowKey:"name",dataSource:u,pagination:!1,components:{body:{row:le=>F.jsx(cJ,{...le,moveRow:st,dragKeyRef:k})}},locale:{emptyText:F.jsx(Sn,{description:"暂无主机",image:Sn.PRESENTED_IMAGE_SIMPLE})},columns:[{title:"主机名",dataIndex:"name",render:le=>F.jsx($n,{color:"geekblue",style:{borderRadius:20,padding:"0 10px"},children:le})},{title:"地址",dataIndex:"host",render:le=>F.jsx("span",{style:{fontFamily:"ui-monospace, SFMono-Regular, monospace",fontSize:13},children:le})},{title:"端口",dataIndex:"port",width:90,align:"center"},{title:"用户",dataIndex:"username"},{title:"操作",width:240,render:(le,ce)=>F.jsxs(zr,{children:[F.jsx(It,{size:"small",onClick:()=>Te(ce),children:"编辑"}),F.jsx(It,{size:"small",type:"primary",ghost:!0,loading:B===ce.name,onClick:()=>Le(ce),children:"测试连接"}),F.jsx(tc,{title:"确认删除该主机吗?",okText:"确认",cancelText:"取消",onConfirm:()=>tt(ce),children:F.jsx(It,{size:"small",danger:!0,loading:re===`host:${ce.name}`,children:"删除"})})]})}]})]}):F.jsx(Oo,{style:{borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)"},children:F.jsx(Sn,{description:"暂无项目,请先创建项目",image:Sn.PRESENTED_IMAGE_SIMPLE,children:F.jsx(It,{type:"primary",icon:F.jsx(Vo,{}),onClick:de,children:"创建项目"})})})})]}),F.jsx(wr,{open:y,onOk:Re,confirmLoading:G,onCancel:()=>{h(!1),C.resetFields(),b(null)},title:v?"重命名项目":"新建项目",okText:"保存",cancelText:"取消",destroyOnClose:!0,children:F.jsxs(vt,{form:C,layout:"vertical",style:{marginTop:8},children:[F.jsx(vt.Item,{name:"name",label:"项目名称",rules:[{required:!0,message:"请输入项目名称"},{validator:ge}],children:F.jsx(nn,{placeholder:"例如:my-project"})}),F.jsx(vt.Item,{name:"displayName",label:"显示名称",children:F.jsx(nn,{placeholder:"可选,例如:我的项目"})}),F.jsx(vt.Item,{name:"defaultEnvironment",label:"默认环境",extra:"留空则默认为测试环境",children:F.jsx(Mo,{placeholder:"请选择默认环境",allowClear:!0,options:v&&a&&a.environments?Object.keys(a.environments).map(ce=>({value:ce,label:Fe[ce]||ce})):H.map(le=>({value:le,label:Fe[le]||le}))})})]})}),F.jsx(wr,{open:S,onOk:Ae,confirmLoading:te,onCancel:()=>{x(!1),$.resetFields(),O(null)},title:w?"重命名环境":"新建环境",okText:"保存",cancelText:"取消",destroyOnClose:!0,children:F.jsx(vt,{form:$,layout:"vertical",style:{marginTop:8},children:F.jsx(vt.Item,{name:"name",label:"环境名称",rules:[{required:!0,message:"请输入环境名称"}],children:F.jsx(nn,{placeholder:"例如:prod"})})})}),F.jsx(wr,{open:E,onOk:Ne,confirmLoading:ee,onCancel:()=>{I(!1),N.resetFields(),M(null)},title:R?"编辑主机":"主机配置",okText:"保存",cancelText:"取消",destroyOnClose:!0,width:720,style:{top:24},children:F.jsxs(vt,{form:N,layout:"vertical",style:{marginTop:8},children:[F.jsx(vt.Item,{name:"name",label:"主机名称",rules:[{required:!0,message:"请输入主机名称"},{validator:ye}],children:F.jsx(nn,{placeholder:"例如:web-01"})}),F.jsx(vt.Item,{name:"host",label:"主机地址",rules:[{required:!0,message:"请输入主机地址"},{validator:Be}],children:F.jsx(nn,{placeholder:"例如:192.168.1.100 或 myserver"})}),F.jsx(vt.Item,{name:"port",label:"端口",initialValue:22,rules:[{validator:me}],children:F.jsx(Wr,{min:1,max:65535,style:{width:"100%"}})}),F.jsx(vt.Item,{name:"username",label:"用户名",rules:[{required:!0,message:"请输入用户名"}],children:F.jsx(nn,{placeholder:"例如:root"})}),F.jsx(vt.Item,{name:"password",label:"密码",children:F.jsx(nn.Password,{placeholder:"请输入密码或使用密钥"})}),F.jsx(vz,{accordion:!0,ghost:!0,style:{marginTop:8},defaultActiveKey:[],items:[{key:"auth",label:"认证高级(私钥/Agent/2FA)",forceRender:!0,children:F.jsxs(F.Fragment,{children:[F.jsx(vt.Item,{name:"privateKey",label:"私钥路径",extra:"支持 ~/ 展开,例如 ~/.ssh/id_rsa",tooltip:"留空则用密码/Agent",children:F.jsx(nn,{placeholder:"~/.ssh/id_rsa"})}),F.jsx(vt.Item,{name:"passphrase",label:"私钥口令",children:F.jsx(nn.Password,{placeholder:"若私钥带口令则填写"})}),F.jsx(vt.Item,{name:"agent",label:"SSH Agent Socket",extra:"Windows 填 pageant,Linux/macOS 默认为 $SSH_AUTH_SOCK",children:F.jsx(nn,{placeholder:"pageant 或 /tmp/ssh-xxx/agent.123"})}),F.jsx(vt.Item,{name:"tryKeyboard",label:"2FA 键盘交互",valuePropName:"checked",children:F.jsx(T$,{children:"启用 tryKeyboard,OTP 由环境变量 SSH_MCP_2FA_CODE 提供"})})]})},{key:"proxy",label:"代理与传输(堡垒机/模板)",forceRender:!0,children:F.jsxs(F.Fragment,{children:[F.jsx(vt.Item,{name:"proxy",label:"代理 URL",extra:"支持 socks5:// http:// https://,例 socks5://user:pass@127.0.0.1:1080",rules:[{validator:(le,ce)=>{if(!ce)return Promise.resolve();try{return new URL(ce),Promise.resolve()}catch{return Promise.reject("代理 URL 格式不正确")}}}],children:F.jsx(nn,{placeholder:"socks5://127.0.0.1:1080"})}),F.jsx(vt.Item,{name:"socksProxy",label:"旧版 SOCKS 代理(兼容)",children:F.jsx(nn,{placeholder:"socks://127.0.0.1:10808"})}),F.jsx(vt.Item,{name:"transportMode",label:"传输模式",initialValue:"exec",children:F.jsx(Mo,{options:[{value:"exec",label:"exec(直连,支持 upload/download)"},{value:"shell",label:"shell(堡垒机,持久会话)"}]})}),F.jsx(vt.Item,{name:"shellReadyTimeoutMs",label:"Shell 就绪超时 (ms)",children:F.jsx(Wr,{min:1e3,max:12e4,style:{width:"100%"},placeholder:"10000"})}),F.jsx(vt.Item,{name:"shellCommandTimeoutMs",label:"Shell 单命令超时 (ms)",children:F.jsx(Wr,{min:1e3,max:6e5,style:{width:"100%"},placeholder:"30000"})}),F.jsx(vt.Item,{name:"commandTemplate",label:"命令模板",extra:"需包含 <command> 或 <quotedCommand>,例:su root -c <quotedCommand> / docker exec -i c sh -c <quotedCommand>",rules:[{validator:(le,ce)=>!ce||ce.includes("<command>")||ce.includes("<quotedCommand>")?Promise.resolve():Promise.reject("必须包含 <command> 或 <quotedCommand>")}],children:F.jsx(nn,{placeholder:"su root -c <quotedCommand>"})}),F.jsx(vt.Item,{name:"pty",label:"分配伪终端",valuePropName:"checked",children:F.jsx(T$,{children:"默认开启,关闭可提升部分场景性能"})})]})},{key:"timeouts",label:"超时与限制",forceRender:!0,children:F.jsxs(F.Fragment,{children:[F.jsx(vt.Item,{name:"commandTimeoutMs",label:"命令超时 exec (ms)",children:F.jsx(Wr,{min:1e3,style:{width:"100%"},placeholder:"30000"})}),F.jsx(vt.Item,{name:"connectionTimeoutMs",label:"建连超时 (ms)",children:F.jsx(Wr,{min:1e3,style:{width:"100%"},placeholder:"30000"})}),F.jsx(vt.Item,{name:"sftpTimeoutMs",label:"SFTP 超时 (ms)",children:F.jsx(Wr,{min:1e3,style:{width:"100%"},placeholder:"300000"})}),F.jsx(vt.Item,{name:"maxOutputBytes",label:"单命令输出上限 (bytes)",extra:"默认 10485760 (10MiB),0 表示不限制",children:F.jsx(Wr,{min:0,style:{width:"100%"},placeholder:"10485760"})}),F.jsx(vt.Item,{name:"keepaliveIntervalMs",label:"Keepalive 间隔 (ms)",children:F.jsx(Wr,{min:1e3,style:{width:"100%"},placeholder:"10000"})}),F.jsx(vt.Item,{name:"keepaliveCountMax",label:"Keepalive 最大未响应数",children:F.jsx(Wr,{min:1,style:{width:"100%"},placeholder:"3"})})]})},{key:"perSec",label:"按连接安全覆盖(留空则跟随全局)",forceRender:!0,children:F.jsxs(F.Fragment,{children:[F.jsx(vt.Item,{name:"commandWhitelist",label:"命令白名单(每行一条正则)",extra:"无需手写 ^,系统自动锚定行首",children:F.jsx(nn.TextArea,{rows:3,placeholder:`ls.*
|
|
483
|
+
cat\\s+.*`})}),F.jsx(vt.Item,{name:"commandBlacklist",label:"命令黑名单(每行一条正则)",extra:"无需手写 ^,系统自动锚定行首",children:F.jsx(nn.TextArea,{rows:3,placeholder:`rm\\s+.*
|
|
484
|
+
shutdown.*`})}),F.jsx(vt.Item,{name:"allowedLocalPaths",label:"允许本地路径(逗号分隔)",children:F.jsx(nn,{placeholder:"/tmp, /home/user"})}),F.jsx(vt.Item,{name:"allowedRemotePaths",label:"允许远端路径(逗号分隔,绝对 POSIX)",extra:"仅接受绝对路径,例如 /home, /tmp",children:F.jsx(nn,{placeholder:"/home, /tmp"})}),F.jsx(vt.Item,{name:"algorithms",label:"SSH 算法(JSON,可选)",extra:'例:{"kex": ["..."]},留空使用默认',children:F.jsx(nn.TextArea,{rows:3,placeholder:'{"kex":["curve25519-sha256"]}'})})]})}]})]})}),F.jsx(wr,{open:j,onCancel:()=>T(!1),footer:[F.jsx(It,{type:"primary",onClick:()=>T(!1),children:"确定"},"ok")],title:"导入结果",destroyOnClose:!0,width:640,children:P?F.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[F.jsxs(zr,{wrap:!0,children:[F.jsxs($n,{color:"green",children:["新增项目 ",P.addedProjects??0]}),F.jsxs($n,{color:"blue",children:["更新项目 ",P.updatedProjects??0]}),F.jsxs($n,{color:"purple",children:["新增环境 ",P.addedEnvironments??0]}),F.jsxs($n,{color:"geekblue",children:["新增主机 ",P.addedHosts??P.count??0]})]}),Array.isArray(P.warnings)&&P.warnings.length>0?F.jsx(Mc,{type:"warning",showIcon:!0,message:"警告",description:F.jsx("ul",{style:{margin:0,paddingLeft:20},children:P.warnings.map((le,ce)=>F.jsx("li",{children:le},ce))})}):F.jsx(Mc,{type:"success",showIcon:!0,message:"导入完成,无警告"})]}):F.jsx(Sn,{description:"无导入数据"})})]})}function dJ(){const[e,t]=l.useState([]),[n,r]=l.useState(0),[o,a]=l.useState(1),[i,s]=l.useState(10),[c,u]=l.useState(""),[d,f]=l.useState(!1),[m,p]=l.useState(null),[g,y]=l.useState(0);return l.useEffect(()=>{let h=!0;return f(!0),Ut.audit({page:o,pageSize:i,q:c}).then(v=>{if(h){const b=v.total||0,C=Math.max(1,Math.ceil(b/i));if(o>C){a(C);return}t(v.rows||[]),r(b)}}).catch(v=>{h&&(t([]),r(0),zt.error((v==null?void 0:v.message)||"获取审计日志失败"))}).finally(()=>{h&&f(!1)}),()=>{h=!1}},[o,i,c,g]),F.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[F.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[F.jsxs(vn.Title,{level:4,style:{margin:0,fontWeight:700},children:[F.jsx(IN,{style:{color:"#1677ff",marginRight:8}}),"审计日志"]}),F.jsx(zr,{children:F.jsx(It,{icon:F.jsx(Fm,{}),loading:d,onClick:()=>y(h=>h+1),children:"刷新"})})]}),F.jsxs(Oo,{style:{borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)"},bodyStyle:{padding:16},children:[F.jsx(nn.Search,{placeholder:"搜索连接 / 工具 / 命令",loading:d,enterButton:F.jsxs(F.Fragment,{children:[F.jsx(Pm,{})," 搜索"]}),onSearch:h=>{u(h),a(1),y(v=>v+1)},onChange:h=>{h.target.value||(u(""),a(1),y(v=>v+1))},style:{maxWidth:420,marginBottom:16},allowClear:!0}),F.jsx(Bo,{loading:d,rowKey:"id",dataSource:e,onRow:h=>({onClick:()=>p(h),style:{cursor:"pointer"}}),pagination:{current:o,pageSize:i,total:n,showSizeChanger:!0,pageSizeOptions:["10","20","50","100"],onChange:(h,v)=>{v&&v!==i?(a(1),s(v)):a(h)},showTotal:h=>`共 ${h} 条`},columns:[{title:"时间",dataIndex:"ts",width:170,render:h=>h?new Date(h).toLocaleString():"-"},{title:"连接",dataIndex:"connection",width:130,render:h=>F.jsx($n,{color:"geekblue",style:{borderRadius:20},children:h||"-"})},{title:"工具",dataIndex:"tool",width:140,render:h=>F.jsx($n,{children:h})},{title:"命令 / 路径",dataIndex:"sql",ellipsis:!0,render:h=>h?F.jsx("code",{style:{fontSize:12},children:h}):F.jsx(vn.Text,{type:"secondary",children:"-"})},{title:"状态",dataIndex:"status",width:90,render:h=>h==="ok"?F.jsx($n,{color:"success",children:"成功"}):h==="fail"?F.jsx($n,{color:"error",children:"失败"}):F.jsx($n,{children:h})},{title:"操作",width:80,render:(h,v)=>F.jsx(It,{type:"link",size:"small",icon:F.jsx(j$,{}),onClick:b=>{b.stopPropagation(),p(v)},children:"详情"})}]})]}),F.jsx(wr,{open:!!m,title:F.jsxs("span",{children:[F.jsx(j$,{style:{color:"#1677ff",marginRight:8}}),"审计详情"]}),onCancel:()=>p(null),footer:F.jsx(It,{type:"primary",onClick:()=>p(null),children:"关闭"}),width:640,children:m&&F.jsxs(ui,{column:1,size:"small",bordered:!0,children:[F.jsx(ui.Item,{label:"时间",children:m.ts?new Date(m.ts).toLocaleString():"-"}),F.jsx(ui.Item,{label:"连接",children:F.jsx($n,{color:"geekblue",style:{borderRadius:20},children:m.connection||"-"})}),F.jsx(ui.Item,{label:"工具",children:F.jsx($n,{children:m.tool})}),F.jsx(ui.Item,{label:"状态",children:m.status==="ok"?F.jsx($n,{color:"success",children:"成功"}):F.jsx($n,{color:"error",children:"失败"})}),F.jsx(ui.Item,{label:"命令 / 路径",children:m.sql?F.jsx("pre",{style:{margin:0,maxWidth:"100%",whiteSpace:"pre-wrap",wordBreak:"break-all",fontFamily:"ui-monospace, monospace",fontSize:12},children:m.sql}):F.jsx(vn.Text,{type:"secondary",children:"(无记录)"})})]})})]})}function fJ(){const[e,t]=l.useState([]),[n,r]=l.useState(!1),[o,a]=l.useState(!1),[i,s]=l.useState(null),c=async()=>{r(!0);try{t(await Ut.backups())}finally{r(!1)}};l.useEffect(()=>{c()},[]);const u=async()=>{a(!0);try{await Ut.snapshot(),zt.success("已创建快照"),await c()}catch(f){zt.error((f==null?void 0:f.message)||"快照失败")}finally{a(!1)}},d=async f=>{s(f.id);try{await Ut.restore(f.id),zt.success("已恢复"),await c()}catch(m){zt.error((m==null?void 0:m.message)||"恢复失败")}finally{s(null)}};return F.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[F.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[F.jsxs(vn.Title,{level:4,style:{margin:0,fontWeight:700},children:[F.jsx(kQ,{style:{color:"#1677ff",marginRight:8}}),"备份恢复"]}),F.jsxs(zr,{children:[F.jsx(It,{icon:F.jsx(Fm,{}),loading:n,onClick:c,children:"刷新"}),F.jsx(It,{type:"primary",icon:F.jsx(Vo,{}),loading:o,onClick:u,children:"立即快照"})]})]}),F.jsx(Oo,{style:{borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)"},bodyStyle:{padding:0},children:F.jsx(Bo,{loading:n,rowKey:"id",dataSource:e,locale:{emptyText:F.jsx(Sn,{description:"暂无备份",image:Sn.PRESENTED_IMAGE_SIMPLE})},pagination:{defaultPageSize:8,showSizeChanger:!0,pageSizeOptions:["8","10","20","50"],showTotal:f=>`共 ${f} 条`},columns:[{title:"名称",dataIndex:"name",render:f=>F.jsxs("span",{style:{fontFamily:"ui-monospace, monospace",fontSize:13},children:[F.jsx(PN,{style:{marginRight:6,color:"#1677ff"}}),f]})},{title:"时间",dataIndex:"ts",render:f=>f?new Date(f).toLocaleString():"-"},{title:"操作",width:140,render:(f,m)=>F.jsx(tc,{title:"确认恢复此备份?会先自动快照当前配置",okText:"确认恢复",cancelText:"取消",onConfirm:()=>d(m),children:F.jsx(It,{type:"primary",ghost:!0,loading:i===m.id,children:"恢复"})})}]})})]})}function mJ(){const[e]=vt.useForm(),[t,n]=l.useState(!1),[r,o]=l.useState(!1),a=vt.useWatch("backupsAutoEnabled",e),[i,s]=l.useState(!1),[c,u]=l.useState(!1),[d,f]=l.useState(""),[m,p]=l.useState(!1),g=async()=>{var v,b,C,S,x,w,O;n(!0);try{const $=await Ut.settingsGet();e.setFieldsValue({preConnect:$.preConnect,auditEnabled:(v=$.audit)==null?void 0:v.enabled,auditRetentionDays:(b=$.audit)==null?void 0:b.retentionDays,auditLogResults:(C=$.audit)==null?void 0:C.logResults,backupsRetentionDays:(S=$.backups)==null?void 0:S.retentionDays,backupsMaxCount:(x=$.backups)==null?void 0:x.maxCount,backupsAutoEnabled:(w=$.backups)==null?void 0:w.autoEnabled,backupsIntervalHours:((O=$.backups)==null?void 0:O.intervalHours)??24})}catch($){zt.error("加载设置失败:"+String(($==null?void 0:$.message)||$))}finally{n(!1)}try{const $=await Ut.autostartGet();s(!!($!=null&&$.enabled)),u(!!($!=null&&$.supported)),f(String(($==null?void 0:$.command)||""))}catch{}},y=async v=>{p(!0);try{const b=await Ut.autostartSet(v);if((b==null?void 0:b.ok)===!1)throw new Error(b.message||"设置失败");s(!!(b!=null&&b.enabled)),zt.success(v?"已开启开机自启动":"已关闭开机自启动")}catch(b){s(!v),zt.error((b==null?void 0:b.message)||"设置开机自启动失败")}finally{p(!1)}};l.useEffect(()=>{g()},[]);const h=async()=>{try{await e.validateFields()}catch{return}const v=e.getFieldsValue(),b={};v.preConnect!==void 0&&(b.preConnect=!!v.preConnect),b.audit={enabled:v.auditEnabled,retentionDays:v.auditRetentionDays,logResults:v.auditLogResults},b.backups={retentionDays:v.backupsRetentionDays,maxCount:v.backupsMaxCount,autoEnabled:!!v.backupsAutoEnabled,intervalHours:v.backupsIntervalHours!=null&&!Number.isNaN(Number(v.backupsIntervalHours))?Number(v.backupsIntervalHours):void 0},b.audit.retentionDays==null&&delete b.audit.retentionDays,b.audit.enabled==null&&delete b.audit.enabled,b.audit.logResults==null&&delete b.audit.logResults,b.backups.retentionDays==null&&delete b.backups.retentionDays,b.backups.maxCount==null&&delete b.backups.maxCount,b.backups.intervalHours==null&&delete b.backups.intervalHours,o(!0);try{const C=await Ut.settingsSave(b);if((C==null?void 0:C.ok)===!1)throw new Error(C.message||"保存失败");zt.success("设置已保存")}catch(C){zt.error((C==null?void 0:C.message)||"保存失败")}finally{o(!1)}};return F.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[F.jsxs(vn.Title,{level:4,style:{margin:0,fontWeight:700},children:[F.jsx(NN,{style:{color:"#1677ff",marginRight:8}}),"设置"]}),F.jsx(vn.Text,{type:"secondary",children:"集中配置预连接、审计与备份(管理端口在“系统”页)"}),F.jsx(Oo,{style:{borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)"},loading:t,children:F.jsxs(vt,{form:e,layout:"vertical",children:[F.jsxs(vn.Text,{strong:!0,style:{fontSize:13,color:"#1677ff"},children:[F.jsx(rJ,{style:{marginRight:6}}),"服务"]}),F.jsx(iv,{style:{margin:"12px 0"}}),F.jsx(vt.Item,{name:"preConnect",label:"启动时预连接",valuePropName:"checked",extra:"开启后服务启动时自动连接所有已配置节点",children:F.jsx(pi,{})}),F.jsx(vt.Item,{label:"开机自启动",extra:c?"开启后登录 Windows 自动启动常驻服务(写入注册表 HKCU Run 键,即时生效);MCP 客户端与管理台随开随用":"仅支持 Windows(写入注册表 HKCU Run 键),当前平台不可用",children:F.jsxs(zr,{direction:"vertical",size:4,style:{width:"100%"},children:[F.jsxs(zr,{size:12,children:[F.jsx(pi,{checked:i,loading:m,disabled:!c,onChange:y}),F.jsxs(vn.Text,{type:"secondary",style:{fontSize:12},children:[d?"启动命令:":"",d&&F.jsx(vn.Text,{code:!0,copyable:{text:d},style:{fontSize:12,wordBreak:"break-all"},children:d})]})]}),c&&i&&d.includes("_npx")&&F.jsx(Mc,{type:"warning",showIcon:!0,style:{marginTop:4},message:"当前常驻服务运行自 npx 缓存目录,npm 清理缓存或版本变更后自启命令可能失效。建议改用 npm install -g 全局安装(路径持久稳定)。"})]})}),F.jsx(vn.Text,{strong:!0,style:{fontSize:13,color:"#1677ff",marginTop:8,display:"block"},children:"审计"}),F.jsx(iv,{style:{margin:"12px 0"}}),F.jsx(vt.Item,{name:"auditEnabled",label:"启用审计",valuePropName:"checked",children:F.jsx(pi,{})}),F.jsx(vt.Item,{name:"auditLogResults",label:"记录成功执行",valuePropName:"checked",extra:"开启后成功执行的命令/传输也记入审计日志(含命令与路径,可在审计日志页查看详情);关闭后仅记录失败操作",children:F.jsx(pi,{})}),F.jsx(vt.Item,{name:"auditRetentionDays",label:"审计保留天数",children:F.jsx(Wr,{min:1,max:365,addonAfter:"天",style:{width:"100%",borderRadius:10}})}),F.jsx(vn.Text,{strong:!0,style:{fontSize:13,color:"#1677ff",marginTop:8,display:"block"},children:"备份"}),F.jsx(iv,{style:{margin:"12px 0"}}),F.jsx(vt.Item,{name:"backupsRetentionDays",label:"备份保留天数",children:F.jsx(Wr,{min:1,max:365,addonAfter:"天",style:{width:"100%",borderRadius:10}})}),F.jsx(vt.Item,{name:"backupsMaxCount",label:"最大备份数",children:F.jsx(Wr,{min:1,style:{width:"100%",borderRadius:10}})}),F.jsx(vt.Item,{name:"backupsAutoEnabled",label:"定时自动备份",valuePropName:"checked",extra:"开启后按间隔自动快照,无需手动操作",children:F.jsx(pi,{})}),F.jsx(vt.Item,{name:"backupsIntervalHours",label:"自动备份间隔",rules:a?[{required:!0,message:"请选择间隔"}]:[],children:F.jsx(Mo,{disabled:!a,placeholder:"请选择间隔",style:{width:"100%"},options:[{value:1,label:"每小时"},{value:6,label:"每 6 小时"},{value:12,label:"每 12 小时"},{value:24,label:"每天"},{value:168,label:"每周"},{value:336,label:"每 2 周"},{value:720,label:"每 30 天"}]})}),F.jsxs(zr,{children:[F.jsx(It,{type:"primary",icon:F.jsx(RN,{}),loading:r,onClick:h,style:{borderRadius:10,marginTop:8},children:"保存设置"}),F.jsx(It,{loading:t,onClick:g,style:{borderRadius:10,marginTop:8},children:"刷新"})]})]})})]})}const _$=e=>e.startsWith("^")?e.slice(1):e;function pJ(){const{token:e}=Rf.useToken(),[t]=vt.useForm(),[n,r]=l.useState(!1),[o,a]=l.useState(!1),[i,s]=l.useState(""),u=(vt.useWatch("blacklist",t)??i).split(`
|
|
485
|
+
`).map(p=>p.trim()).filter(Boolean),d=(p,g)=>{if(!g)return Promise.resolve();try{const y=g.split(`
|
|
486
|
+
`).filter(Boolean);for(const h of y){const v=h.trim(),b=v.startsWith("^")?v:"^"+v;new RegExp(b)}return Promise.resolve()}catch{return Promise.reject("正则表达式格式不正确")}};l.useEffect(()=>{f()},[]);const f=()=>{r(!0),Ut.defaults().then(p=>{const g=Array.isArray(p==null?void 0:p.defaultCommandBlacklist)?p.defaultCommandBlacklist:[];s(g.map(y=>_$(String(y))).join(`
|
|
487
|
+
`))}).catch(()=>{}),Ut.securityGet().then(p=>{if(!p||p.ok===!1)return;const g=h=>Array.isArray(h)?h.map(v=>_$(String(v))).join(`
|
|
488
|
+
`):"",y=h=>Array.isArray(h)?h.join(", "):"";t.setFieldsValue({whitelist:g(p.commandWhitelist||[]),blacklist:g(p.commandBlacklist||[]),allowedLocalPaths:y(p.allowedLocalPaths||[]),allowedRemotePaths:y(p.allowedRemotePaths||[])})}).catch(()=>{}).finally(()=>r(!1))},m=async()=>{try{await t.validateFields()}catch{return}const p=t.getFieldsValue(),g={commandWhitelist:(p.whitelist||"").split(`
|
|
489
|
+
`).map(y=>y.trim()).filter(Boolean),commandBlacklist:(p.blacklist||"").split(`
|
|
490
|
+
`).map(y=>y.trim()).filter(Boolean),allowedLocalPaths:p.allowedLocalPaths||"",allowedRemotePaths:p.allowedRemotePaths||""};a(!0);try{const y=await Ut.securitySave(g);if((y==null?void 0:y.ok)===!1)throw new Error(y.message||"保存失败");zt.success("安全策略已保存")}catch(y){zt.error((y==null?void 0:y.message)||"保存失败")}finally{a(!1)}};return F.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[F.jsxs(vn.Title,{level:4,style:{margin:0,fontWeight:700},children:[F.jsx(wb,{style:{color:"#1677ff",marginRight:8}}),"安全策略"]}),F.jsx(Mc,{type:"info",showIcon:!0,message:"策略说明",description:"远程路径以 POSIX 校验为准(Windows 输入 C:\\ 亦按 / 校验);白名单与路径在『连接管理-高级-按连接安全覆盖』留空时跟随全局,配置了则以连接级为准;黑名单为全局与连接级叠加,全局高危拦截不可被连接级清空。",style:{borderRadius:12}}),F.jsx(Oo,{style:{borderRadius:16,boxShadow:"0 2px 12px rgba(0,0,0,0.04)"},loading:n,children:F.jsxs(vt,{form:t,layout:"vertical",children:[F.jsx(vt.Item,{name:"whitelist",label:"命令白名单(正则表达式,每行一条)",extra:"留空表示不限制,建议按需配置;无需输入行首 ^,系统会自动锚定到命令开头",rules:[{validator:d}],children:F.jsx(nn.TextArea,{rows:4,placeholder:`例如:
|
|
491
|
+
ls.*
|
|
492
|
+
git status
|
|
493
|
+
cat\\s+.*`,style:{borderRadius:10}})}),F.jsx(vt.Item,{name:"blacklist",label:F.jsxs("span",{children:["命令黑名单(正则表达式) ",F.jsxs(vn.Text,{type:"danger",style:{fontSize:12,fontWeight:600},children:[F.jsx(Mv,{style:{marginRight:4}}),"高危拦截"]})]}),extra:"默认已屏蔽高危操作,可按需增删;无需输入行首 ^,系统会自动为每条规则补 ^ 锚定",rules:[{validator:d}],children:F.jsx(nn.TextArea,{rows:7,placeholder:i||`rm\\s+.*
|
|
494
|
+
shutdown.*`,style:{borderRadius:10,fontFamily:"ui-monospace, monospace",fontSize:13,borderColor:e.colorError,background:e.colorErrorBg}})}),F.jsxs("div",{style:{marginTop:-8,marginBottom:16,display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[F.jsxs(vn.Text,{type:"danger",style:{fontSize:12,fontWeight:600},children:[F.jsx(Mv,{})," 当前高危拦截预览:"]}),u.length===0?F.jsx(vn.Text,{type:"secondary",style:{fontSize:12},children:"(空)"}):u.map((p,g)=>F.jsx($n,{color:"error",style:{fontFamily:"ui-monospace, monospace",fontSize:12,padding:"2px 8px",borderRadius:6,fontWeight:600},icon:F.jsx(Mv,{}),children:p},g))]}),F.jsxs(zr,{style:{marginBottom:16},children:[F.jsx(It,{icon:F.jsx(Fm,{}),disabled:!i,onClick:()=>t.setFieldsValue({blacklist:i}),children:"恢复默认黑名单"}),F.jsx(vn.Text,{type:"secondary",style:{fontSize:12},children:"默认 7 条:rm / shutdown / reboot / halt / poweroff / mkfs / dd(自动补 ^)"})]}),F.jsx(vt.Item,{name:"allowedLocalPaths",label:"允许的本地路径(逗号分隔)",children:F.jsx(nn,{placeholder:"/tmp, /home/user",style:{borderRadius:10}})}),F.jsx(vt.Item,{name:"allowedRemotePaths",label:"允许的远程路径(逗号分隔)",children:F.jsx(nn,{placeholder:"/home, /tmp",style:{borderRadius:10}})}),F.jsx(It,{type:"primary",icon:F.jsx(RN,{}),loading:o,onClick:m,style:{borderRadius:10,marginTop:8},children:"保存安全策略"}),F.jsx(It,{loading:n,onClick:f,style:{borderRadius:10,marginTop:8,marginLeft:8},children:"刷新"})]})})]})}function vJ(){const t=ts().pathname.replace(/^\//,""),n=t===""?"connections":t;return F.jsx(Vi,{mode:"inline",selectedKeys:[n],style:{border:"none",background:"transparent"},items:[{key:"connections",icon:F.jsx(ON,{}),label:F.jsx(ws,{to:"/connections",children:"连接管理"})},{key:"security",icon:F.jsx(wb,{}),label:F.jsx(ws,{to:"/security",children:"安全策略"})},{key:"audit",icon:F.jsx(IN,{}),label:F.jsx(ws,{to:"/audit",children:"审计日志"})},{key:"backups",icon:F.jsx(PN,{}),label:F.jsx(ws,{to:"/backups",children:"备份恢复"})},{key:"settings",icon:F.jsx(NN,{}),label:F.jsx(ws,{to:"/settings",children:"设置"})}]})}function gJ(){const[e,t]=l.useState(()=>{const a=localStorage.getItem("admin-theme");return a==="light"||a==="dark"||a==="system"?a:"system"}),[n,r]=l.useState(()=>typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches:!1);return l.useEffect(()=>{const a=window.matchMedia("(prefers-color-scheme: dark)"),i=s=>r(s.matches);return a.addEventListener("change",i),()=>a.removeEventListener("change",i)},[]),l.useEffect(()=>{localStorage.setItem("admin-theme",e)},[e]),{mode:e,setMode:t,effective:e==="system"?n?"dark":"light":e}}function hJ(){const{mode:e,setMode:t,effective:n}=gJ(),r=n==="dark";l.useLayoutEffect(()=>{document.documentElement.dataset.theme=n},[n]);const[o,a]=l.useState(""),[i,s]=l.useState("");return l.useEffect(()=>{fetch("/admin/api/system/info").then(c=>c.json()).then(c=>{c!=null&&c.version&&a(String(c.version)),c!=null&&c.configPath&&s(String(c.configPath))}).catch(()=>{})},[]),F.jsx(bo,{locale:CQ,theme:{algorithm:r?Rf.darkAlgorithm:Rf.defaultAlgorithm,token:{colorPrimary:"#1677ff",borderRadius:12,colorBgLayout:r?"#141414":"#f0f2f5"},components:{Menu:{itemBorderRadius:10,itemMarginBlock:4},Card:{paddingLG:20},Table:{headerBg:r?"#1f1f1f":"#f7f9fc"}}},children:F.jsx(ej,{children:F.jsxs(Uo,{style:{minHeight:"100vh",background:r?"#141414":"#f0f2f5",overflow:"hidden"},children:[F.jsxs(Uo.Header,{style:{height:64,padding:"0 24px",background:"linear-gradient(135deg, #1677ff 0%, #4096ff 50%, #69b1ff 100%)",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,zIndex:10,boxShadow:"0 2px 8px rgba(22,119,255,0.25)"},children:[F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[F.jsx(vn.Text,{style:{color:"#fff",fontSize:18,fontWeight:700,letterSpacing:.5},children:"SSH 管理控制台"}),i&&F.jsxs($n,{style:{margin:0,borderRadius:20,background:"rgba(255,255,255,0.18)",border:"1px solid rgba(255,255,255,0.35)",color:"#fff",fontSize:12,lineHeight:"20px",padding:"0 10px"},title:i,children:["配置文件: ",i]})]}),F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[o&&F.jsxs($n,{style:{margin:0,borderRadius:20,background:"rgba(255,255,255,0.18)",border:"1px solid rgba(255,255,255,0.35)",color:"#fff",fontSize:12,lineHeight:"20px",padding:"0 10px"},children:["v",o]}),F.jsx(Mo,{value:e,onChange:c=>t(c),size:"small",style:{minWidth:130},options:[{value:"light",label:F.jsxs("span",{children:[F.jsx(eJ,{style:{marginRight:6}}),"明亮"]})},{value:"dark",label:F.jsxs("span",{children:[F.jsx(HQ,{style:{marginRight:6}}),"暗黑"]})},{value:"system",label:F.jsxs("span",{children:[F.jsx(MQ,{style:{marginRight:6}}),"跟随系统"]})}]}),F.jsx(It,{type:"text",href:"https://github.com/SIE-Operations-and-Maintenance-Team/ssh-mcp-server",target:"_blank",rel:"noreferrer",title:"GitHub 仓库",icon:F.jsx(LQ,{style:{color:"#fff",fontSize:18}})})]})]}),F.jsxs(Uo,{style:{background:"transparent",padding:16,gap:16,height:"calc(100vh - 64px)",overflow:"hidden"},children:[F.jsx(Uo.Sider,{width:220,style:{background:r?"#1f1f1f":"#fff",borderRadius:16,boxShadow:"0 4px 24px rgba(0,0,0,0.06)",overflow:"hidden",padding:"16px 12px",height:"fit-content",position:"sticky",top:80},breakpoint:"lg",collapsedWidth:0,children:F.jsx(vJ,{})}),F.jsx(Uo.Content,{style:{background:r?"#1f1f1f":"#fff",borderRadius:16,boxShadow:"0 4px 24px rgba(0,0,0,0.06)",padding:24,minHeight:560,overflow:"auto",display:"flex",flexDirection:"column"},children:F.jsxs(GM,{children:[F.jsx(ci,{path:"/",element:F.jsx(KM,{to:"/connections",replace:!0})}),F.jsx(ci,{path:"/connections",element:F.jsx(uJ,{})}),F.jsx(ci,{path:"/security",element:F.jsx(pJ,{})}),F.jsx(ci,{path:"/audit",element:F.jsx(dJ,{})}),F.jsx(ci,{path:"/backups",element:F.jsx(fJ,{})}),F.jsx(ci,{path:"/settings",element:F.jsx(mJ,{})})]})})]})]})})})}jv.createRoot(document.getElementById("root")).render(F.jsx(Q.StrictMode,{children:F.jsx(hJ,{})}));
|