buddy-workbench 0.1.8 → 0.1.10
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/package.json +2 -1
- package/server/config.js +3 -0
- package/server/repositories/jira-filters.js +16 -0
- package/server/repositories/settings.js +30 -0
- package/server/repositories/static-pages.js +29 -0
- package/server/repositories/todos.js +16 -0
- package/server/routes/clipboard.js +11 -2
- package/server/routes/jira-filters.js +160 -0
- package/server/routes/launchers.js +2 -2
- package/server/routes/pr-review.js +32 -28
- package/server/routes/settings.js +23 -1
- package/server/routes/static-pages.js +20 -0
- package/server/routes/todos.js +177 -0
- package/server/services/browser.js +28 -0
- package/server/services/clipboard-history.js +71 -5
- package/server/services/process-manager.js +68 -4
- package/server.js +6 -0
- package/ui/dist/assets/index-BbLFuEqP.js +519 -0
- package/ui/dist/assets/index-BxgOdOl7.css +1 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-BHs_wPig.css +0 -1
- package/ui/dist/assets/index-CkXRrM63.js +0 -500
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
function vR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function Eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xh={exports:{}},Iu={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 _$;function ZP(){if(_$)return Iu;_$=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:i}}return Iu.Fragment=t,Iu.jsx=n,Iu.jsxs=n,Iu}var z$;function JP(){return z$||(z$=1,xh.exports=ZP()),xh.exports}var z=JP(),$h={exports:{}},gn={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 A$;function e6(){if(A$)return gn;A$=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),p=Symbol.iterator;function y(k){return k===null||typeof k!="object"?null:(k=p&&k[p]||k["@@iterator"],typeof k=="function"?k:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function x(k,U,K){this.props=k,this.context=U,this.refs=b,this.updater=K||C}x.prototype.isReactComponent={},x.prototype.setState=function(k,U){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,U,"setState")},x.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function $(){}$.prototype=x.prototype;function w(k,U,K){this.props=k,this.context=U,this.refs=b,this.updater=K||C}var E=w.prototype=new $;E.constructor=w,S(E,x.prototype),E.isPureReactComponent=!0;var O=Array.isArray;function N(){}var I={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function T(k,U,K){var q=K.ref;return{$$typeof:e,type:k,key:U,ref:q!==void 0?q:null,props:K}}function j(k,U){return T(k.type,U,k.props)}function _(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var U={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(K){return U[K]})}var H=/\/+/g;function A(k,U){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):U.toString(36)}function F(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(N,N):(k.status="pending",k.then(function(U){k.status==="pending"&&(k.status="fulfilled",k.value=U)},function(U){k.status==="pending"&&(k.status="rejected",k.reason=U)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function D(k,U,K,q,Z){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var ee=!1;if(k===null)ee=!0;else switch(X){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(k.$$typeof){case e:case t:ee=!0;break;case v:return ee=k._init,D(ee(k._payload),U,K,q,Z)}}if(ee)return Z=Z(k),ee=q===""?"."+A(k,0):q,O(Z)?(K="",ee!=null&&(K=ee.replace(H,"$&/")+"/"),D(Z,U,K,"",function(le){return le})):Z!=null&&(_(Z)&&(Z=j(Z,K+(Z.key==null||k&&k.key===Z.key?"":(""+Z.key).replace(H,"$&/")+"/")+ee)),U.push(Z)),1;ee=0;var te=q===""?".":q+":";if(O(k))for(var oe=0;oe<k.length;oe++)q=k[oe],X=te+A(q,oe),ee+=D(q,U,K,X,Z);else if(oe=y(k),typeof oe=="function")for(k=oe.call(k),oe=0;!(q=k.next()).done;)q=q.value,X=te+A(q,oe++),ee+=D(q,U,K,X,Z);else if(X==="object"){if(typeof k.then=="function")return D(F(k),U,K,q,Z);throw U=String(k),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ee}function L(k,U,K){if(k==null)return k;var q=[],Z=0;return D(k,q,"","",function(X){return U.call(K,X,Z++)}),q}function W(k){if(k._status===-1){var U=k._result;U=U(),U.then(function(K){(k._status===0||k._status===-1)&&(k._status=1,k._result=K)},function(K){(k._status===0||k._status===-1)&&(k._status=2,k._result=K)}),k._status===-1&&(k._status=0,k._result=U)}if(k._status===1)return k._result.default;throw k._result}var G=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},V={map:L,forEach:function(k,U,K){L(k,function(){U.apply(this,arguments)},K)},count:function(k){var U=0;return L(k,function(){U++}),U},toArray:function(k){return L(k,function(U){return U})||[]},only:function(k){if(!_(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return gn.Activity=g,gn.Children=V,gn.Component=x,gn.Fragment=n,gn.Profiler=a,gn.PureComponent=w,gn.StrictMode=r,gn.Suspense=d,gn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,gn.__COMPILER_RUNTIME={__proto__:null,c:function(k){return I.H.useMemoCache(k)}},gn.cache=function(k){return function(){return k.apply(null,arguments)}},gn.cacheSignal=function(){return null},gn.cloneElement=function(k,U,K){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var q=S({},k.props),Z=k.key;if(U!=null)for(X in U.key!==void 0&&(Z=""+U.key),U)!M.call(U,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&U.ref===void 0||(q[X]=U[X]);var X=arguments.length-2;if(X===1)q.children=K;else if(1<X){for(var ee=Array(X),te=0;te<X;te++)ee[te]=arguments[te+2];q.children=ee}return T(k.type,Z,q)},gn.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:i,_context:k},k},gn.createElement=function(k,U,K){var q,Z={},X=null;if(U!=null)for(q in U.key!==void 0&&(X=""+U.key),U)M.call(U,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(Z[q]=U[q]);var ee=arguments.length-2;if(ee===1)Z.children=K;else if(1<ee){for(var te=Array(ee),oe=0;oe<ee;oe++)te[oe]=arguments[oe+2];Z.children=te}if(k&&k.defaultProps)for(q in ee=k.defaultProps,ee)Z[q]===void 0&&(Z[q]=ee[q]);return T(k,X,Z)},gn.createRef=function(){return{current:null}},gn.forwardRef=function(k){return{$$typeof:u,render:k}},gn.isValidElement=_,gn.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:W}},gn.memo=function(k,U){return{$$typeof:f,type:k,compare:U===void 0?null:U}},gn.startTransition=function(k){var U=I.T,K={};I.T=K;try{var q=k(),Z=I.S;Z!==null&&Z(K,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(N,G)}catch(X){G(X)}finally{U!==null&&K.types!==null&&(U.types=K.types),I.T=U}},gn.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},gn.use=function(k){return I.H.use(k)},gn.useActionState=function(k,U,K){return I.H.useActionState(k,U,K)},gn.useCallback=function(k,U){return I.H.useCallback(k,U)},gn.useContext=function(k){return I.H.useContext(k)},gn.useDebugValue=function(){},gn.useDeferredValue=function(k,U){return I.H.useDeferredValue(k,U)},gn.useEffect=function(k,U){return I.H.useEffect(k,U)},gn.useEffectEvent=function(k){return I.H.useEffectEvent(k)},gn.useId=function(){return I.H.useId()},gn.useImperativeHandle=function(k,U,K){return I.H.useImperativeHandle(k,U,K)},gn.useInsertionEffect=function(k,U){return I.H.useInsertionEffect(k,U)},gn.useLayoutEffect=function(k,U){return I.H.useLayoutEffect(k,U)},gn.useMemo=function(k,U){return I.H.useMemo(k,U)},gn.useOptimistic=function(k,U){return I.H.useOptimistic(k,U)},gn.useReducer=function(k,U,K){return I.H.useReducer(k,U,K)},gn.useRef=function(k){return I.H.useRef(k)},gn.useState=function(k){return I.H.useState(k)},gn.useSyncExternalStore=function(k,U,K){return I.H.useSyncExternalStore(k,U,K)},gn.useTransition=function(){return I.H.useTransition()},gn.version="19.2.7",gn}var B$;function xy(){return B$||(B$=1,$h.exports=e6()),$h.exports}var l=xy();const ve=Eo(l),xv=vR({__proto__:null,default:ve},[l]);var wh={exports:{}},Nu={},Eh={exports:{}},Oh={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and 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
|
+
*/var L$;function t6(){return L$||(L$=1,(function(e){function t(D,L){var W=D.length;D.push(L);e:for(;0<W;){var G=W-1>>>1,V=D[G];if(0<a(V,L))D[G]=L,D[W]=V,W=G;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var L=D[0],W=D.pop();if(W!==L){D[0]=W;e:for(var G=0,V=D.length,k=V>>>1;G<k;){var U=2*(G+1)-1,K=D[U],q=U+1,Z=D[q];if(0>a(K,W))q<V&&0>a(Z,K)?(D[G]=Z,D[q]=W,G=q):(D[G]=K,D[U]=W,G=U);else if(q<V&&0>a(Z,W))D[G]=Z,D[q]=W,G=q;else break e}}return L}function a(D,L){var W=D.sortIndex-L.sortIndex;return W!==0?W:D.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],v=1,g=null,p=3,y=!1,C=!1,S=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function E(D){for(var L=n(f);L!==null;){if(L.callback===null)r(f);else if(L.startTime<=D)r(f),L.sortIndex=L.expirationTime,t(d,L);else break;L=n(f)}}function O(D){if(S=!1,E(D),!C)if(n(d)!==null)C=!0,N||(N=!0,B());else{var L=n(f);L!==null&&F(O,L.startTime-D)}}var N=!1,I=-1,M=5,T=-1;function j(){return b?!0:!(e.unstable_now()-T<M)}function _(){if(b=!1,N){var D=e.unstable_now();T=D;var L=!0;try{e:{C=!1,S&&(S=!1,$(I),I=-1),y=!0;var W=p;try{t:{for(E(D),g=n(d);g!==null&&!(g.expirationTime>D&&j());){var G=g.callback;if(typeof G=="function"){g.callback=null,p=g.priorityLevel;var V=G(g.expirationTime<=D);if(D=e.unstable_now(),typeof V=="function"){g.callback=V,E(D),L=!0;break t}g===n(d)&&r(d),E(D)}else r(d);g=n(d)}if(g!==null)L=!0;else{var k=n(f);k!==null&&F(O,k.startTime-D),L=!1}}break e}finally{g=null,p=W,y=!1}L=void 0}}finally{L?B():N=!1}}}var B;if(typeof w=="function")B=function(){w(_)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,A=H.port2;H.port1.onmessage=_,B=function(){A.postMessage(null)}}else B=function(){x(_,0)};function F(D,L){I=x(function(){D(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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var L=3;break;default:L=p}var W=p;p=L;try{return D()}finally{p=W}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(D,L){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=p;p=D;try{return L()}finally{p=W}},e.unstable_scheduleCallback=function(D,L,W){var G=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?G+W:G):W=G,D){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=W+V,D={id:v++,callback:L,priorityLevel:D,startTime:W,expirationTime:V,sortIndex:-1},W>G?(D.sortIndex=W,t(f,D),n(d)===null&&D===n(f)&&(S?($(I),I=-1):S=!0,F(O,W-G))):(D.sortIndex=V,t(d,D),C||y||(C=!0,N||(N=!0,B()))),D},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(D){var L=p;return function(){var W=p;p=L;try{return D.apply(this,arguments)}finally{p=W}}}})(Oh)),Oh}var k$;function n6(){return k$||(k$=1,Eh.exports=t6()),Eh.exports}var Rh={exports:{}},sa={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 H$;function r6(){if(H$)return sa;H$=1;var e=xy();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,f,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:f,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return sa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,sa.createPortal=function(d,f){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(d,f,null,v)},sa.flushSync=function(d){var f=c.T,v=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=f,r.p=v,r.d.f()}},sa.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},sa.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},sa.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var v=f.as,g=u(v,f.crossOrigin),p=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;v==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:p,fetchPriority:y}):v==="script"&&r.d.X(d,{crossOrigin:g,integrity:p,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},sa.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var v=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},sa.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var v=f.as,g=u(v,f.crossOrigin);r.d.L(d,v,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},sa.preloadModule=function(d,f){if(typeof d=="string")if(f){var v=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},sa.requestFormReset=function(d){r.d.r(d)},sa.unstable_batchedUpdates=function(d,f){return d(f)},sa.useFormState=function(d,f,v){return c.H.useFormState(d,f,v)},sa.useFormStatus=function(){return c.H.useHostTransitionStatus()},sa.version="19.2.7",sa}var F$;function gR(){if(F$)return Rh.exports;F$=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Rh.exports=r6(),Rh.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var V$;function a6(){if(V$)return Nu;V$=1;var e=n6(),t=xy(),n=gR();function r(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)s+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function i(o){var s=o,m=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(m=s.return),o=s.return;while(o)}return s.tag===3?m:null}function c(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function d(o){if(i(o)!==o)throw Error(r(188))}function f(o){var s=o.alternate;if(!s){if(s=i(o),s===null)throw Error(r(188));return s!==o?null:o}for(var m=o,h=s;;){var R=m.return;if(R===null)break;var P=R.alternate;if(P===null){if(h=R.return,h!==null){m=h;continue}break}if(R.child===P.child){for(P=R.child;P;){if(P===m)return d(R),o;if(P===h)return d(R),s;P=P.sibling}throw Error(r(188))}if(m.return!==h.return)m=R,h=P;else{for(var Y=!1,fe=R.child;fe;){if(fe===m){Y=!0,m=R,h=P;break}if(fe===h){Y=!0,h=R,m=P;break}fe=fe.sibling}if(!Y){for(fe=P.child;fe;){if(fe===m){Y=!0,m=P,h=R;break}if(fe===h){Y=!0,h=P,m=R;break}fe=fe.sibling}if(!Y)throw Error(r(189))}}if(m.alternate!==h)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?o:s}function v(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=v(o),s!==null)return s;o=o.sibling}return null}var g=Object.assign,p=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),_=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=_&&o[_]||o["@@iterator"],typeof o=="function"?o:null)}var H=Symbol.for("react.client.reference");function A(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===H?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList";case T:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case C:return"Portal";case w:return o.displayName||"Context";case $:return(o._context.displayName||"Context")+".Consumer";case E:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case I:return s=o.displayName||null,s!==null?s:A(o.type)||"Memo";case M:s=o._payload,o=o._init;try{return A(o(s))}catch{}}return null}var F=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},G=[],V=-1;function k(o){return{current:o}}function U(o){0>V||(o.current=G[V],G[V]=null,V--)}function K(o,s){V++,G[V]=o.current,o.current=s}var q=k(null),Z=k(null),X=k(null),ee=k(null);function te(o,s){switch(K(X,s),K(Z,o),K(q,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?a$(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=a$(s),o=o$(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}U(q),K(q,o)}function oe(){U(q),U(Z),U(X)}function le(o){o.memoizedState!==null&&K(ee,o);var s=q.current,m=o$(s,o.type);s!==m&&(K(Z,o),K(q,m))}function ne(o){Z.current===o&&(U(q),U(Z)),ee.current===o&&(U(ee),wu._currentValue=W)}var Q,ie;function ue(o){if(Q===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);Q=s&&s[1]||"",ie=-1<m.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Q+o+ie}var de=!1;function se(o,s){if(!o||de)return"";de=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var ot=function(){throw Error()};if(Object.defineProperty(ot.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ot,[])}catch(qe){var He=qe}Reflect.construct(o,[],ot)}else{try{ot.call()}catch(qe){He=qe}o.call(ot.prototype)}}else{try{throw Error()}catch(qe){He=qe}(ot=o())&&typeof ot.catch=="function"&&ot.catch(function(){})}}catch(qe){if(qe&&He&&typeof qe.stack=="string")return[qe.stack,He.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=h.DetermineComponentFrameRoot(),Y=P[0],fe=P[1];if(Y&&fe){var Ce=Y.split(`
|
|
44
|
+
`),Le=fe.split(`
|
|
45
|
+
`);for(R=h=0;h<Ce.length&&!Ce[h].includes("DetermineComponentFrameRoot");)h++;for(;R<Le.length&&!Le[R].includes("DetermineComponentFrameRoot");)R++;if(h===Ce.length||R===Le.length)for(h=Ce.length-1,R=Le.length-1;1<=h&&0<=R&&Ce[h]!==Le[R];)R--;for(;1<=h&&0<=R;h--,R--)if(Ce[h]!==Le[R]){if(h!==1||R!==1)do if(h--,R--,0>R||Ce[h]!==Le[R]){var Ze=`
|
|
46
|
+
`+Ce[h].replace(" at new "," at ");return o.displayName&&Ze.includes("<anonymous>")&&(Ze=Ze.replace("<anonymous>",o.displayName)),Ze}while(1<=h&&0<=R);break}}}finally{de=!1,Error.prepareStackTrace=m}return(m=o?o.displayName||o.name:"")?ue(m):""}function ge(o,s){switch(o.tag){case 26:case 27:case 5:return ue(o.type);case 16:return ue("Lazy");case 13:return o.child!==s&&s!==null?ue("Suspense Fallback"):ue("Suspense");case 19:return ue("SuspenseList");case 0:case 15:return se(o.type,!1);case 11:return se(o.type.render,!1);case 1:return se(o.type,!0);case 31:return ue("Activity");default:return""}}function he(o){try{var s="",m=null;do s+=ge(o,m),m=o,o=o.return;while(o);return s}catch(h){return`
|
|
47
|
+
Error generating stack: `+h.message+`
|
|
48
|
+
`+h.stack}}var Oe=Object.prototype.hasOwnProperty,Re=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,Ie=e.unstable_shouldYield,we=e.unstable_requestPaint,ye=e.unstable_now,ze=e.unstable_getCurrentPriorityLevel,Ae=e.unstable_ImmediatePriority,Ye=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,je=e.log,$e=e.unstable_setDisableYieldValue,_e=null,Ee=null;function Pe(o){if(typeof je=="function"&&$e(o),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(_e,o)}catch{}}var be=Math.clz32?Math.clz32:ke,Se=Math.log,Me=Math.LN2;function ke(o){return o>>>=0,o===0?32:31-(Se(o)/Me|0)|0}var et=256,ht=262144,We=4194304;function tt(o){var s=o&42;if(s!==0)return s;switch(o&-o){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function ut(o,s,m){var h=o.pendingLanes;if(h===0)return 0;var R=0,P=o.suspendedLanes,Y=o.pingedLanes;o=o.warmLanes;var fe=h&134217727;return fe!==0?(h=fe&~P,h!==0?R=tt(h):(Y&=fe,Y!==0?R=tt(Y):m||(m=fe&~o,m!==0&&(R=tt(m))))):(fe=h&~P,fe!==0?R=tt(fe):Y!==0?R=tt(Y):m||(m=h&~o,m!==0&&(R=tt(m)))),R===0?0:s!==0&&s!==R&&(s&P)===0&&(P=R&-R,m=s&-s,P>=m||P===32&&(m&4194048)!==0)?s:R}function rt(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function gt(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32: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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mt(){var o=We;return We<<=1,(We&62914560)===0&&(We=4194304),o}function xt(o){for(var s=[],m=0;31>m;m++)s.push(o);return s}function st(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ct(o,s,m,h,R,P){var Y=o.pendingLanes;o.pendingLanes=m,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=m,o.entangledLanes&=m,o.errorRecoveryDisabledLanes&=m,o.shellSuspendCounter=0;var fe=o.entanglements,Ce=o.expirationTimes,Le=o.hiddenUpdates;for(m=Y&~m;0<m;){var Ze=31-be(m),ot=1<<Ze;fe[Ze]=0,Ce[Ze]=-1;var He=Le[Ze];if(He!==null)for(Le[Ze]=null,Ze=0;Ze<He.length;Ze++){var qe=He[Ze];qe!==null&&(qe.lane&=-536870913)}m&=~ot}h!==0&&bt(o,h,0),P!==0&&R===0&&o.tag!==0&&(o.suspendedLanes|=P&~(Y&~s))}function bt(o,s,m){o.pendingLanes|=s,o.suspendedLanes&=~s;var h=31-be(s);o.entangledLanes|=s,o.entanglements[h]=o.entanglements[h]|1073741824|m&261930}function Je(o,s){var m=o.entangledLanes|=s;for(o=o.entanglements;m;){var h=31-be(m),R=1<<h;R&s|o[h]&s&&(o[h]|=s),m&=~R}}function Ve(o,s){var m=s&-s;return m=(m&42)!==0?1:Ue(m),(m&(o.suspendedLanes|s))!==0?0:m}function Ue(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function ft(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function It(){var o=L.p;return o!==0?o:(o=window.event,o===void 0?32:I$(o.type))}function Et(o,s){var m=L.p;try{return L.p=o,s()}finally{L.p=m}}var Ht=Math.random().toString(36).slice(2),dt="__reactFiber$"+Ht,it="__reactProps$"+Ht,Dt="__reactContainer$"+Ht,Wt="__reactEvents$"+Ht,en="__reactListeners$"+Ht,Xt="__reactHandles$"+Ht,vn="__reactResources$"+Ht,Kt="__reactMarker$"+Ht;function sn(o){delete o[dt],delete o[it],delete o[Wt],delete o[en],delete o[Xt]}function lt(o){var s=o[dt];if(s)return s;for(var m=o.parentNode;m;){if(s=m[Dt]||m[dt]){if(m=s.alternate,s.child!==null||m!==null&&m.child!==null)for(o=f$(o);o!==null;){if(m=o[dt])return m;o=f$(o)}return s}o=m,m=o.parentNode}return null}function yt(o){if(o=o[dt]||o[Dt]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function pt(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Xe(o){var s=o[vn];return s||(s=o[vn]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Qe(o){o[Kt]=!0}var ct=new Set,Tt={};function Vt(o,s){mt(o,s),mt(o+"Capture",s)}function mt(o,s){for(Tt[o]=s,o=0;o<s.length;o++)ct.add(s[o])}var Ot=RegExp("^[: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]*$"),kt={},Sn={};function Pn(o){return Oe.call(Sn,o)?!0:Oe.call(kt,o)?!1:Ot.test(o)?Sn[o]=!0:(kt[o]=!0,!1)}function Mn(o,s,m){if(Pn(s))if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+m)}}function Ln(o,s,m){if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+m)}}function En(o,s,m,h){if(h===null)o.removeAttribute(m);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(m);return}o.setAttributeNS(s,m,""+h)}}function Dn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function mr(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function $r(o,s,m){var h=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var R=h.get,P=h.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return R.call(this)},set:function(Y){m=""+Y,P.call(this,Y)}}),Object.defineProperty(o,s,{enumerable:h.enumerable}),{getValue:function(){return m},setValue:function(Y){m=""+Y},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function dr(o){if(!o._valueTracker){var s=mr(o)?"checked":"value";o._valueTracker=$r(o,s,""+o[s])}}function yn(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var m=s.getValue(),h="";return o&&(h=mr(o)?o.checked?"true":"false":o.value),o=h,o!==m?(s.setValue(o),!0):!1}function _t(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var zt=/[\n"\\]/g;function tn(o){return o.replace(zt,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Nt(o,s,m,h,R,P,Y,fe){o.name="",Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"?o.type=Y:o.removeAttribute("type"),s!=null?Y==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Dn(s)):o.value!==""+Dn(s)&&(o.value=""+Dn(s)):Y!=="submit"&&Y!=="reset"||o.removeAttribute("value"),s!=null?un(o,Y,Dn(s)):m!=null?un(o,Y,Dn(m)):h!=null&&o.removeAttribute("value"),R==null&&P!=null&&(o.defaultChecked=!!P),R!=null&&(o.checked=R&&typeof R!="function"&&typeof R!="symbol"),fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"?o.name=""+Dn(fe):o.removeAttribute("name")}function jt(o,s,m,h,R,P,Y,fe){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(o.type=P),s!=null||m!=null){if(!(P!=="submit"&&P!=="reset"||s!=null)){dr(o);return}m=m!=null?""+Dn(m):"",s=s!=null?""+Dn(s):m,fe||s===o.value||(o.value=s),o.defaultValue=s}h=h??R,h=typeof h!="function"&&typeof h!="symbol"&&!!h,o.checked=fe?o.checked:!!h,o.defaultChecked=!!h,Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"&&(o.name=Y),dr(o)}function un(o,s,m){s==="number"&&_t(o.ownerDocument)===o||o.defaultValue===""+m||(o.defaultValue=""+m)}function On(o,s,m,h){if(o=o.options,s){s={};for(var R=0;R<m.length;R++)s["$"+m[R]]=!0;for(m=0;m<o.length;m++)R=s.hasOwnProperty("$"+o[m].value),o[m].selected!==R&&(o[m].selected=R),R&&h&&(o[m].defaultSelected=!0)}else{for(m=""+Dn(m),s=null,R=0;R<o.length;R++){if(o[R].value===m){o[R].selected=!0,h&&(o[R].defaultSelected=!0);return}s!==null||o[R].disabled||(s=o[R])}s!==null&&(s.selected=!0)}}function Wn(o,s,m){if(s!=null&&(s=""+Dn(s),s!==o.value&&(o.value=s),m==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=m!=null?""+Dn(m):""}function vr(o,s,m,h){if(s==null){if(h!=null){if(m!=null)throw Error(r(92));if(F(h)){if(1<h.length)throw Error(r(93));h=h[0]}m=h}m==null&&(m=""),s=m}m=Dn(s),o.defaultValue=m,h=o.textContent,h===m&&h!==""&&h!==null&&(o.value=h),dr(o)}function Kn(o,s){if(s){var m=o.firstChild;if(m&&m===o.lastChild&&m.nodeType===3){m.nodeValue=s;return}}o.textContent=s}var pr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function on(o,s,m){var h=s.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?h?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":h?o.setProperty(s,m):typeof m!="number"||m===0||pr.has(s)?s==="float"?o.cssFloat=m:o[s]=(""+m).trim():o[s]=m+"px"}function vt(o,s,m){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,m!=null){for(var h in m)!m.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?o.setProperty(h,""):h==="float"?o.cssFloat="":o[h]="");for(var R in s)h=s[R],s.hasOwnProperty(R)&&m[R]!==h&&on(o,R,h)}else for(var P in s)s.hasOwnProperty(P)&&on(o,P,s[P])}function wt(o){if(o.indexOf("-")===-1)return!1;switch(o){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 cn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Un(o){return Tn.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function kn(){}var Lr=null;function Kr(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var wr=null,ta=null;function vl(o){var s=yt(o);if(s&&(o=s.stateNode)){var m=o[it]||null;e:switch(o=s.stateNode,s.type){case"input":if(Nt(o,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),s=m.name,m.type==="radio"&&s!=null){for(m=o;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+tn(""+s)+'"][type="radio"]'),s=0;s<m.length;s++){var h=m[s];if(h!==o&&h.form===o.form){var R=h[it]||null;if(!R)throw Error(r(90));Nt(h,R.value,R.defaultValue,R.defaultValue,R.checked,R.defaultChecked,R.type,R.name)}}for(s=0;s<m.length;s++)h=m[s],h.form===o.form&&yn(h)}break e;case"textarea":Wn(o,m.value,m.defaultValue);break e;case"select":s=m.value,s!=null&&On(o,!!m.multiple,s,!1)}}}var yi=!1;function ds(o,s,m){if(yi)return o(s,m);yi=!0;try{var h=o(s);return h}finally{if(yi=!1,(wr!==null||ta!==null)&&(Rf(),wr&&(s=wr,o=ta,ta=wr=null,vl(s),o)))for(s=0;s<o.length;s++)vl(o[s])}}function Lt(o,s){var m=o.stateNode;if(m===null)return null;var h=m[it]||null;if(h===null)return null;m=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(m&&typeof m!="function")throw Error(r(231,s,typeof m));return m}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qn=!1;if(Yt)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Qn=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Qn=!1}var _n=null,Ci=null,Si=null;function Fc(){if(Si)return Si;var o,s=Ci,m=s.length,h,R="value"in _n?_n.value:_n.textContent,P=R.length;for(o=0;o<m&&s[o]===R[o];o++);var Y=m-o;for(h=1;h<=Y&&s[m-h]===R[P-h];h++);return Si=R.slice(o,1<h?1-h:void 0)}function qo(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Fd(){return!0}function iS(){return!1}function ba(o){function s(m,h,R,P,Y){this._reactName=m,this._targetInst=R,this.type=h,this.nativeEvent=P,this.target=Y,this.currentTarget=null;for(var fe in o)o.hasOwnProperty(fe)&&(m=o[fe],this[fe]=m?m(P):P[fe]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?Fd:iS,this.isPropagationStopped=iS,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Fd)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Fd)},persist:function(){},isPersistent:Fd}),s}var gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vd=ba(gl),Vc=g({},gl,{view:0,detail:0}),YT=ba(Vc),wg,Eg,Wc,Wd=g({},Vc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Wc&&(Wc&&o.type==="mousemove"?(wg=o.screenX-Wc.screenX,Eg=o.screenY-Wc.screenY):Eg=wg=0,Wc=o),wg)},movementY:function(o){return"movementY"in o?o.movementY:Eg}}),lS=ba(Wd),QT=g({},Wd,{dataTransfer:0}),ZT=ba(QT),JT=g({},Vc,{relatedTarget:0}),Og=ba(JT),ej=g({},gl,{animationName:0,elapsedTime:0,pseudoElement:0}),tj=ba(ej),nj=g({},gl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),rj=ba(nj),aj=g({},gl,{data:0}),sS=ba(aj),oj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ij={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"},lj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sj(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=lj[o])?!!s[o]:!1}function Rg(){return sj}var cj=g({},Vc,{key:function(o){if(o.key){var s=oj[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=qo(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?ij[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rg,charCode:function(o){return o.type==="keypress"?qo(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?qo(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),uj=ba(cj),dj=g({},Wd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cS=ba(dj),fj=g({},Vc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rg}),mj=ba(fj),vj=g({},gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),gj=ba(vj),pj=g({},Wd,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),hj=ba(pj),bj=g({},gl,{newState:0,oldState:0}),yj=ba(bj),Cj=[9,13,27,32],Ig=Yt&&"CompositionEvent"in window,Kc=null;Yt&&"documentMode"in document&&(Kc=document.documentMode);var Sj=Yt&&"TextEvent"in window&&!Kc,uS=Yt&&(!Ig||Kc&&8<Kc&&11>=Kc),dS=" ",fS=!1;function mS(o,s){switch(o){case"keyup":return Cj.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vS(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var fs=!1;function xj(o,s){switch(o){case"compositionend":return vS(s);case"keypress":return s.which!==32?null:(fS=!0,dS);case"textInput":return o=s.data,o===dS&&fS?null:o;default:return null}}function $j(o,s){if(fs)return o==="compositionend"||!Ig&&mS(o,s)?(o=Fc(),Si=Ci=_n=null,fs=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return uS&&s.locale!=="ko"?null:s.data;default:return null}}var wj={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 gS(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!wj[o.type]:s==="textarea"}function pS(o,s,m,h){wr?ta?ta.push(h):ta=[h]:wr=h,s=Df(s,"onChange"),0<s.length&&(m=new Vd("onChange","change",null,m,h),o.push({event:m,listeners:s}))}var Uc=null,qc=null;function Ej(o){Zx(o,0)}function Kd(o){var s=pt(o);if(yn(s))return o}function hS(o,s){if(o==="change")return s}var bS=!1;if(Yt){var Ng;if(Yt){var Mg="oninput"in document;if(!Mg){var yS=document.createElement("div");yS.setAttribute("oninput","return;"),Mg=typeof yS.oninput=="function"}Ng=Mg}else Ng=!1;bS=Ng&&(!document.documentMode||9<document.documentMode)}function CS(){Uc&&(Uc.detachEvent("onpropertychange",SS),qc=Uc=null)}function SS(o){if(o.propertyName==="value"&&Kd(qc)){var s=[];pS(s,qc,o,Kr(o)),ds(Ej,s)}}function Oj(o,s,m){o==="focusin"?(CS(),Uc=s,qc=m,Uc.attachEvent("onpropertychange",SS)):o==="focusout"&&CS()}function Rj(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Kd(qc)}function Ij(o,s){if(o==="click")return Kd(s)}function Nj(o,s){if(o==="input"||o==="change")return Kd(s)}function Mj(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Ia=typeof Object.is=="function"?Object.is:Mj;function Gc(o,s){if(Ia(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var m=Object.keys(o),h=Object.keys(s);if(m.length!==h.length)return!1;for(h=0;h<m.length;h++){var R=m[h];if(!Oe.call(s,R)||!Ia(o[R],s[R]))return!1}return!0}function xS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function $S(o,s){var m=xS(o);o=0;for(var h;m;){if(m.nodeType===3){if(h=o+m.textContent.length,o<=s&&h>=s)return{node:m,offset:s-o};o=h}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=xS(m)}}function wS(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?wS(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function ES(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=_t(o.document);s instanceof o.HTMLIFrameElement;){try{var m=typeof s.contentWindow.location.href=="string"}catch{m=!1}if(m)o=s.contentWindow;else break;s=_t(o.document)}return s}function Tg(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var Tj=Yt&&"documentMode"in document&&11>=document.documentMode,ms=null,jg=null,Xc=null,Pg=!1;function OS(o,s,m){var h=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Pg||ms==null||ms!==_t(h)||(h=ms,"selectionStart"in h&&Tg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Xc&&Gc(Xc,h)||(Xc=h,h=Df(jg,"onSelect"),0<h.length&&(s=new Vd("onSelect","select",null,s,m),o.push({event:s,listeners:h}),s.target=ms)))}function pl(o,s){var m={};return m[o.toLowerCase()]=s.toLowerCase(),m["Webkit"+o]="webkit"+s,m["Moz"+o]="moz"+s,m}var vs={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},Dg={},RS={};Yt&&(RS=document.createElement("div").style,"AnimationEvent"in window||(delete vs.animationend.animation,delete vs.animationiteration.animation,delete vs.animationstart.animation),"TransitionEvent"in window||delete vs.transitionend.transition);function hl(o){if(Dg[o])return Dg[o];if(!vs[o])return o;var s=vs[o],m;for(m in s)if(s.hasOwnProperty(m)&&m in RS)return Dg[o]=s[m];return o}var IS=hl("animationend"),NS=hl("animationiteration"),MS=hl("animationstart"),jj=hl("transitionrun"),Pj=hl("transitionstart"),Dj=hl("transitioncancel"),TS=hl("transitionend"),jS=new Map,_g="abort auxClick beforeToggle 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(" ");_g.push("scrollEnd");function co(o,s){jS.set(o,s),Vt(s,[o])}var Ud=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Va=[],gs=0,zg=0;function qd(){for(var o=gs,s=zg=gs=0;s<o;){var m=Va[s];Va[s++]=null;var h=Va[s];Va[s++]=null;var R=Va[s];Va[s++]=null;var P=Va[s];if(Va[s++]=null,h!==null&&R!==null){var Y=h.pending;Y===null?R.next=R:(R.next=Y.next,Y.next=R),h.pending=R}P!==0&&PS(m,R,P)}}function Gd(o,s,m,h){Va[gs++]=o,Va[gs++]=s,Va[gs++]=m,Va[gs++]=h,zg|=h,o.lanes|=h,o=o.alternate,o!==null&&(o.lanes|=h)}function Ag(o,s,m,h){return Gd(o,s,m,h),Xd(o)}function bl(o,s){return Gd(o,null,null,s),Xd(o)}function PS(o,s,m){o.lanes|=m;var h=o.alternate;h!==null&&(h.lanes|=m);for(var R=!1,P=o.return;P!==null;)P.childLanes|=m,h=P.alternate,h!==null&&(h.childLanes|=m),P.tag===22&&(o=P.stateNode,o===null||o._visibility&1||(R=!0)),o=P,P=P.return;return o.tag===3?(P=o.stateNode,R&&s!==null&&(R=31-be(m),o=P.hiddenUpdates,h=o[R],h===null?o[R]=[s]:h.push(s),s.lane=m|536870912),P):null}function Xd(o){if(50<hu)throw hu=0,Up=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var ps={};function _j(o,s,m,h){this.tag=o,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Na(o,s,m,h){return new _j(o,s,m,h)}function Bg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Go(o,s){var m=o.alternate;return m===null?(m=Na(o.tag,s,o.key,o.mode),m.elementType=o.elementType,m.type=o.type,m.stateNode=o.stateNode,m.alternate=o,o.alternate=m):(m.pendingProps=s,m.type=o.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=o.flags&65011712,m.childLanes=o.childLanes,m.lanes=o.lanes,m.child=o.child,m.memoizedProps=o.memoizedProps,m.memoizedState=o.memoizedState,m.updateQueue=o.updateQueue,s=o.dependencies,m.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},m.sibling=o.sibling,m.index=o.index,m.ref=o.ref,m.refCleanup=o.refCleanup,m}function DS(o,s){o.flags&=65011714;var m=o.alternate;return m===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=m.childLanes,o.lanes=m.lanes,o.child=m.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=m.memoizedProps,o.memoizedState=m.memoizedState,o.updateQueue=m.updateQueue,o.type=m.type,s=m.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Yd(o,s,m,h,R,P){var Y=0;if(h=o,typeof o=="function")Bg(o)&&(Y=1);else if(typeof o=="string")Y=kP(o,m,q.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case T:return o=Na(31,m,s,R),o.elementType=T,o.lanes=P,o;case S:return yl(m.children,R,P,s);case b:Y=8,R|=24;break;case x:return o=Na(12,m,s,R|2),o.elementType=x,o.lanes=P,o;case O:return o=Na(13,m,s,R),o.elementType=O,o.lanes=P,o;case N:return o=Na(19,m,s,R),o.elementType=N,o.lanes=P,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:Y=10;break e;case $:Y=9;break e;case E:Y=11;break e;case I:Y=14;break e;case M:Y=16,h=null;break e}Y=29,m=Error(r(130,o===null?"null":typeof o,"")),h=null}return s=Na(Y,m,s,R),s.elementType=o,s.type=h,s.lanes=P,s}function yl(o,s,m,h){return o=Na(7,o,h,s),o.lanes=m,o}function Lg(o,s,m){return o=Na(6,o,null,s),o.lanes=m,o}function _S(o){var s=Na(18,null,null,0);return s.stateNode=o,s}function kg(o,s,m){return s=Na(4,o.children!==null?o.children:[],o.key,s),s.lanes=m,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var zS=new WeakMap;function Wa(o,s){if(typeof o=="object"&&o!==null){var m=zS.get(o);return m!==void 0?m:(s={value:o,source:s,stack:he(s)},zS.set(o,s),s)}return{value:o,source:s,stack:he(s)}}var hs=[],bs=0,Qd=null,Yc=0,Ka=[],Ua=0,xi=null,jo=1,Po="";function Xo(o,s){hs[bs++]=Yc,hs[bs++]=Qd,Qd=o,Yc=s}function AS(o,s,m){Ka[Ua++]=jo,Ka[Ua++]=Po,Ka[Ua++]=xi,xi=o;var h=jo;o=Po;var R=32-be(h)-1;h&=~(1<<R),m+=1;var P=32-be(s)+R;if(30<P){var Y=R-R%5;P=(h&(1<<Y)-1).toString(32),h>>=Y,R-=Y,jo=1<<32-be(s)+R|m<<R|h,Po=P+o}else jo=1<<P|m<<R|h,Po=o}function Hg(o){o.return!==null&&(Xo(o,1),AS(o,1,0))}function Fg(o){for(;o===Qd;)Qd=hs[--bs],hs[bs]=null,Yc=hs[--bs],hs[bs]=null;for(;o===xi;)xi=Ka[--Ua],Ka[Ua]=null,Po=Ka[--Ua],Ka[Ua]=null,jo=Ka[--Ua],Ka[Ua]=null}function BS(o,s){Ka[Ua++]=jo,Ka[Ua++]=Po,Ka[Ua++]=xi,jo=s.id,Po=s.overflow,xi=o}var na=null,lr=null,jn=!1,$i=null,qa=!1,Vg=Error(r(519));function wi(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qc(Wa(s,o)),Vg}function LS(o){var s=o.stateNode,m=o.type,h=o.memoizedProps;switch(s[dt]=o,s[it]=h,m){case"dialog":wn("cancel",s),wn("close",s);break;case"iframe":case"object":case"embed":wn("load",s);break;case"video":case"audio":for(m=0;m<yu.length;m++)wn(yu[m],s);break;case"source":wn("error",s);break;case"img":case"image":case"link":wn("error",s),wn("load",s);break;case"details":wn("toggle",s);break;case"input":wn("invalid",s),jt(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":wn("invalid",s);break;case"textarea":wn("invalid",s),vr(s,h.value,h.defaultValue,h.children)}m=h.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||s.textContent===""+m||h.suppressHydrationWarning===!0||n$(s.textContent,m)?(h.popover!=null&&(wn("beforetoggle",s),wn("toggle",s)),h.onScroll!=null&&wn("scroll",s),h.onScrollEnd!=null&&wn("scrollend",s),h.onClick!=null&&(s.onclick=kn),s=!0):s=!1,s||wi(o,!0)}function kS(o){for(na=o.return;na;)switch(na.tag){case 5:case 31:case 13:qa=!1;return;case 27:case 3:qa=!0;return;default:na=na.return}}function ys(o){if(o!==na)return!1;if(!jn)return kS(o),jn=!0,!1;var s=o.tag,m;if((m=s!==3&&s!==27)&&((m=s===5)&&(m=o.type,m=!(m!=="form"&&m!=="button")||lh(o.type,o.memoizedProps)),m=!m),m&&lr&&wi(o),kS(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));lr=d$(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));lr=d$(o)}else s===27?(s=lr,Bi(o.type)?(o=fh,fh=null,lr=o):lr=s):lr=na?Xa(o.stateNode.nextSibling):null;return!0}function Cl(){lr=na=null,jn=!1}function Wg(){var o=$i;return o!==null&&(xa===null?xa=o:xa.push.apply(xa,o),$i=null),o}function Qc(o){$i===null?$i=[o]:$i.push(o)}var Kg=k(null),Sl=null,Yo=null;function Ei(o,s,m){K(Kg,s._currentValue),s._currentValue=m}function Qo(o){o._currentValue=Kg.current,U(Kg)}function Ug(o,s,m){for(;o!==null;){var h=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),o===m)break;o=o.return}}function qg(o,s,m,h){var R=o.child;for(R!==null&&(R.return=o);R!==null;){var P=R.dependencies;if(P!==null){var Y=R.child;P=P.firstContext;e:for(;P!==null;){var fe=P;P=R;for(var Ce=0;Ce<s.length;Ce++)if(fe.context===s[Ce]){P.lanes|=m,fe=P.alternate,fe!==null&&(fe.lanes|=m),Ug(P.return,m,o),h||(Y=null);break e}P=fe.next}}else if(R.tag===18){if(Y=R.return,Y===null)throw Error(r(341));Y.lanes|=m,P=Y.alternate,P!==null&&(P.lanes|=m),Ug(Y,m,o),Y=null}else Y=R.child;if(Y!==null)Y.return=R;else for(Y=R;Y!==null;){if(Y===o){Y=null;break}if(R=Y.sibling,R!==null){R.return=Y.return,Y=R;break}Y=Y.return}R=Y}}function Cs(o,s,m,h){o=null;for(var R=s,P=!1;R!==null;){if(!P){if((R.flags&524288)!==0)P=!0;else if((R.flags&262144)!==0)break}if(R.tag===10){var Y=R.alternate;if(Y===null)throw Error(r(387));if(Y=Y.memoizedProps,Y!==null){var fe=R.type;Ia(R.pendingProps.value,Y.value)||(o!==null?o.push(fe):o=[fe])}}else if(R===ee.current){if(Y=R.alternate,Y===null)throw Error(r(387));Y.memoizedState.memoizedState!==R.memoizedState.memoizedState&&(o!==null?o.push(wu):o=[wu])}R=R.return}o!==null&&qg(s,o,m,h),s.flags|=262144}function Zd(o){for(o=o.firstContext;o!==null;){if(!Ia(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function xl(o){Sl=o,Yo=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function ra(o){return HS(Sl,o)}function Jd(o,s){return Sl===null&&xl(o),HS(o,s)}function HS(o,s){var m=s._currentValue;if(s={context:s,memoizedValue:m,next:null},Yo===null){if(o===null)throw Error(r(308));Yo=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else Yo=Yo.next=s;return m}var zj=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(m,h){o.push(h)}};this.abort=function(){s.aborted=!0,o.forEach(function(m){return m()})}},Aj=e.unstable_scheduleCallback,Bj=e.unstable_NormalPriority,Nr={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gg(){return{controller:new zj,data:new Map,refCount:0}}function Zc(o){o.refCount--,o.refCount===0&&Aj(Bj,function(){o.controller.abort()})}var Jc=null,Xg=0,Ss=0,xs=null;function Lj(o,s){if(Jc===null){var m=Jc=[];Xg=0,Ss=Zp(),xs={status:"pending",value:void 0,then:function(h){m.push(h)}}}return Xg++,s.then(FS,FS),s}function FS(){if(--Xg===0&&Jc!==null){xs!==null&&(xs.status="fulfilled");var o=Jc;Jc=null,Ss=0,xs=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function kj(o,s){var m=[],h={status:"pending",value:null,reason:null,then:function(R){m.push(R)}};return o.then(function(){h.status="fulfilled",h.value=s;for(var R=0;R<m.length;R++)(0,m[R])(s)},function(R){for(h.status="rejected",h.reason=R,R=0;R<m.length;R++)(0,m[R])(void 0)}),h}var VS=D.S;D.S=function(o,s){Ox=ye(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&Lj(o,s),VS!==null&&VS(o,s)};var $l=k(null);function Yg(){var o=$l.current;return o!==null?o:rr.pooledCache}function ef(o,s){s===null?K($l,$l.current):K($l,s.pool)}function WS(){var o=Yg();return o===null?null:{parent:Nr._currentValue,pool:o}}var $s=Error(r(460)),Qg=Error(r(474)),tf=Error(r(542)),nf={then:function(){}};function KS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function US(o,s,m){switch(m=o[m],m===void 0?o.push(s):m!==s&&(s.then(kn,kn),s=m),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,GS(o),o;default:if(typeof s.status=="string")s.then(kn,kn);else{if(o=rr,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(h){if(s.status==="pending"){var R=s;R.status="fulfilled",R.value=h}},function(h){if(s.status==="pending"){var R=s;R.status="rejected",R.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,GS(o),o}throw El=s,$s}}function wl(o){try{var s=o._init;return s(o._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(El=m,$s):m}}var El=null;function qS(){if(El===null)throw Error(r(459));var o=El;return El=null,o}function GS(o){if(o===$s||o===tf)throw Error(r(483))}var ws=null,eu=0;function rf(o){var s=eu;return eu+=1,ws===null&&(ws=[]),US(ws,o,s)}function tu(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function af(o,s){throw s.$$typeof===p?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function XS(o){function s(De,Ne){if(o){var Be=De.deletions;Be===null?(De.deletions=[Ne],De.flags|=16):Be.push(Ne)}}function m(De,Ne){if(!o)return null;for(;Ne!==null;)s(De,Ne),Ne=Ne.sibling;return null}function h(De){for(var Ne=new Map;De!==null;)De.key!==null?Ne.set(De.key,De):Ne.set(De.index,De),De=De.sibling;return Ne}function R(De,Ne){return De=Go(De,Ne),De.index=0,De.sibling=null,De}function P(De,Ne,Be){return De.index=Be,o?(Be=De.alternate,Be!==null?(Be=Be.index,Be<Ne?(De.flags|=67108866,Ne):Be):(De.flags|=67108866,Ne)):(De.flags|=1048576,Ne)}function Y(De){return o&&De.alternate===null&&(De.flags|=67108866),De}function fe(De,Ne,Be,nt){return Ne===null||Ne.tag!==6?(Ne=Lg(Be,De.mode,nt),Ne.return=De,Ne):(Ne=R(Ne,Be),Ne.return=De,Ne)}function Ce(De,Ne,Be,nt){var Jt=Be.type;return Jt===S?Ze(De,Ne,Be.props.children,nt,Be.key):Ne!==null&&(Ne.elementType===Jt||typeof Jt=="object"&&Jt!==null&&Jt.$$typeof===M&&wl(Jt)===Ne.type)?(Ne=R(Ne,Be.props),tu(Ne,Be),Ne.return=De,Ne):(Ne=Yd(Be.type,Be.key,Be.props,null,De.mode,nt),tu(Ne,Be),Ne.return=De,Ne)}function Le(De,Ne,Be,nt){return Ne===null||Ne.tag!==4||Ne.stateNode.containerInfo!==Be.containerInfo||Ne.stateNode.implementation!==Be.implementation?(Ne=kg(Be,De.mode,nt),Ne.return=De,Ne):(Ne=R(Ne,Be.children||[]),Ne.return=De,Ne)}function Ze(De,Ne,Be,nt,Jt){return Ne===null||Ne.tag!==7?(Ne=yl(Be,De.mode,nt,Jt),Ne.return=De,Ne):(Ne=R(Ne,Be),Ne.return=De,Ne)}function ot(De,Ne,Be){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return Ne=Lg(""+Ne,De.mode,Be),Ne.return=De,Ne;if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case y:return Be=Yd(Ne.type,Ne.key,Ne.props,null,De.mode,Be),tu(Be,Ne),Be.return=De,Be;case C:return Ne=kg(Ne,De.mode,Be),Ne.return=De,Ne;case M:return Ne=wl(Ne),ot(De,Ne,Be)}if(F(Ne)||B(Ne))return Ne=yl(Ne,De.mode,Be,null),Ne.return=De,Ne;if(typeof Ne.then=="function")return ot(De,rf(Ne),Be);if(Ne.$$typeof===w)return ot(De,Jd(De,Ne),Be);af(De,Ne)}return null}function He(De,Ne,Be,nt){var Jt=Ne!==null?Ne.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return Jt!==null?null:fe(De,Ne,""+Be,nt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case y:return Be.key===Jt?Ce(De,Ne,Be,nt):null;case C:return Be.key===Jt?Le(De,Ne,Be,nt):null;case M:return Be=wl(Be),He(De,Ne,Be,nt)}if(F(Be)||B(Be))return Jt!==null?null:Ze(De,Ne,Be,nt,null);if(typeof Be.then=="function")return He(De,Ne,rf(Be),nt);if(Be.$$typeof===w)return He(De,Ne,Jd(De,Be),nt);af(De,Be)}return null}function qe(De,Ne,Be,nt,Jt){if(typeof nt=="string"&&nt!==""||typeof nt=="number"||typeof nt=="bigint")return De=De.get(Be)||null,fe(Ne,De,""+nt,Jt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case y:return De=De.get(nt.key===null?Be:nt.key)||null,Ce(Ne,De,nt,Jt);case C:return De=De.get(nt.key===null?Be:nt.key)||null,Le(Ne,De,nt,Jt);case M:return nt=wl(nt),qe(De,Ne,Be,nt,Jt)}if(F(nt)||B(nt))return De=De.get(Be)||null,Ze(Ne,De,nt,Jt,null);if(typeof nt.then=="function")return qe(De,Ne,Be,rf(nt),Jt);if(nt.$$typeof===w)return qe(De,Ne,Be,Jd(Ne,nt),Jt);af(Ne,nt)}return null}function Ft(De,Ne,Be,nt){for(var Jt=null,zn=null,Ut=Ne,Cn=Ne=0,In=null;Ut!==null&&Cn<Be.length;Cn++){Ut.index>Cn?(In=Ut,Ut=null):In=Ut.sibling;var An=He(De,Ut,Be[Cn],nt);if(An===null){Ut===null&&(Ut=In);break}o&&Ut&&An.alternate===null&&s(De,Ut),Ne=P(An,Ne,Cn),zn===null?Jt=An:zn.sibling=An,zn=An,Ut=In}if(Cn===Be.length)return m(De,Ut),jn&&Xo(De,Cn),Jt;if(Ut===null){for(;Cn<Be.length;Cn++)Ut=ot(De,Be[Cn],nt),Ut!==null&&(Ne=P(Ut,Ne,Cn),zn===null?Jt=Ut:zn.sibling=Ut,zn=Ut);return jn&&Xo(De,Cn),Jt}for(Ut=h(Ut);Cn<Be.length;Cn++)In=qe(Ut,De,Cn,Be[Cn],nt),In!==null&&(o&&In.alternate!==null&&Ut.delete(In.key===null?Cn:In.key),Ne=P(In,Ne,Cn),zn===null?Jt=In:zn.sibling=In,zn=In);return o&&Ut.forEach(function(Vi){return s(De,Vi)}),jn&&Xo(De,Cn),Jt}function an(De,Ne,Be,nt){if(Be==null)throw Error(r(151));for(var Jt=null,zn=null,Ut=Ne,Cn=Ne=0,In=null,An=Be.next();Ut!==null&&!An.done;Cn++,An=Be.next()){Ut.index>Cn?(In=Ut,Ut=null):In=Ut.sibling;var Vi=He(De,Ut,An.value,nt);if(Vi===null){Ut===null&&(Ut=In);break}o&&Ut&&Vi.alternate===null&&s(De,Ut),Ne=P(Vi,Ne,Cn),zn===null?Jt=Vi:zn.sibling=Vi,zn=Vi,Ut=In}if(An.done)return m(De,Ut),jn&&Xo(De,Cn),Jt;if(Ut===null){for(;!An.done;Cn++,An=Be.next())An=ot(De,An.value,nt),An!==null&&(Ne=P(An,Ne,Cn),zn===null?Jt=An:zn.sibling=An,zn=An);return jn&&Xo(De,Cn),Jt}for(Ut=h(Ut);!An.done;Cn++,An=Be.next())An=qe(Ut,De,Cn,An.value,nt),An!==null&&(o&&An.alternate!==null&&Ut.delete(An.key===null?Cn:An.key),Ne=P(An,Ne,Cn),zn===null?Jt=An:zn.sibling=An,zn=An);return o&&Ut.forEach(function(QP){return s(De,QP)}),jn&&Xo(De,Cn),Jt}function er(De,Ne,Be,nt){if(typeof Be=="object"&&Be!==null&&Be.type===S&&Be.key===null&&(Be=Be.props.children),typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case y:e:{for(var Jt=Be.key;Ne!==null;){if(Ne.key===Jt){if(Jt=Be.type,Jt===S){if(Ne.tag===7){m(De,Ne.sibling),nt=R(Ne,Be.props.children),nt.return=De,De=nt;break e}}else if(Ne.elementType===Jt||typeof Jt=="object"&&Jt!==null&&Jt.$$typeof===M&&wl(Jt)===Ne.type){m(De,Ne.sibling),nt=R(Ne,Be.props),tu(nt,Be),nt.return=De,De=nt;break e}m(De,Ne);break}else s(De,Ne);Ne=Ne.sibling}Be.type===S?(nt=yl(Be.props.children,De.mode,nt,Be.key),nt.return=De,De=nt):(nt=Yd(Be.type,Be.key,Be.props,null,De.mode,nt),tu(nt,Be),nt.return=De,De=nt)}return Y(De);case C:e:{for(Jt=Be.key;Ne!==null;){if(Ne.key===Jt)if(Ne.tag===4&&Ne.stateNode.containerInfo===Be.containerInfo&&Ne.stateNode.implementation===Be.implementation){m(De,Ne.sibling),nt=R(Ne,Be.children||[]),nt.return=De,De=nt;break e}else{m(De,Ne);break}else s(De,Ne);Ne=Ne.sibling}nt=kg(Be,De.mode,nt),nt.return=De,De=nt}return Y(De);case M:return Be=wl(Be),er(De,Ne,Be,nt)}if(F(Be))return Ft(De,Ne,Be,nt);if(B(Be)){if(Jt=B(Be),typeof Jt!="function")throw Error(r(150));return Be=Jt.call(Be),an(De,Ne,Be,nt)}if(typeof Be.then=="function")return er(De,Ne,rf(Be),nt);if(Be.$$typeof===w)return er(De,Ne,Jd(De,Be),nt);af(De,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(Be=""+Be,Ne!==null&&Ne.tag===6?(m(De,Ne.sibling),nt=R(Ne,Be),nt.return=De,De=nt):(m(De,Ne),nt=Lg(Be,De.mode,nt),nt.return=De,De=nt),Y(De)):m(De,Ne)}return function(De,Ne,Be,nt){try{eu=0;var Jt=er(De,Ne,Be,nt);return ws=null,Jt}catch(Ut){if(Ut===$s||Ut===tf)throw Ut;var zn=Na(29,Ut,null,De.mode);return zn.lanes=nt,zn.return=De,zn}finally{}}}var Ol=XS(!0),YS=XS(!1),Oi=!1;function Zg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ri(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Ii(o,s,m){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(Hn&2)!==0){var R=h.pending;return R===null?s.next=s:(s.next=R.next,R.next=s),h.pending=s,s=Xd(o),PS(o,null,m),s}return Gd(o,h,s,m),Xd(o)}function nu(o,s,m){if(s=s.updateQueue,s!==null&&(s=s.shared,(m&4194048)!==0)){var h=s.lanes;h&=o.pendingLanes,m|=h,s.lanes=m,Je(o,m)}}function ep(o,s){var m=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,m===h)){var R=null,P=null;if(m=m.firstBaseUpdate,m!==null){do{var Y={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};P===null?R=P=Y:P=P.next=Y,m=m.next}while(m!==null);P===null?R=P=s:P=P.next=s}else R=P=s;m={baseState:h.baseState,firstBaseUpdate:R,lastBaseUpdate:P,shared:h.shared,callbacks:h.callbacks},o.updateQueue=m;return}o=m.lastBaseUpdate,o===null?m.firstBaseUpdate=s:o.next=s,m.lastBaseUpdate=s}var tp=!1;function ru(){if(tp){var o=xs;if(o!==null)throw o}}function au(o,s,m,h){tp=!1;var R=o.updateQueue;Oi=!1;var P=R.firstBaseUpdate,Y=R.lastBaseUpdate,fe=R.shared.pending;if(fe!==null){R.shared.pending=null;var Ce=fe,Le=Ce.next;Ce.next=null,Y===null?P=Le:Y.next=Le,Y=Ce;var Ze=o.alternate;Ze!==null&&(Ze=Ze.updateQueue,fe=Ze.lastBaseUpdate,fe!==Y&&(fe===null?Ze.firstBaseUpdate=Le:fe.next=Le,Ze.lastBaseUpdate=Ce))}if(P!==null){var ot=R.baseState;Y=0,Ze=Le=Ce=null,fe=P;do{var He=fe.lane&-536870913,qe=He!==fe.lane;if(qe?(Rn&He)===He:(h&He)===He){He!==0&&He===Ss&&(tp=!0),Ze!==null&&(Ze=Ze.next={lane:0,tag:fe.tag,payload:fe.payload,callback:null,next:null});e:{var Ft=o,an=fe;He=s;var er=m;switch(an.tag){case 1:if(Ft=an.payload,typeof Ft=="function"){ot=Ft.call(er,ot,He);break e}ot=Ft;break e;case 3:Ft.flags=Ft.flags&-65537|128;case 0:if(Ft=an.payload,He=typeof Ft=="function"?Ft.call(er,ot,He):Ft,He==null)break e;ot=g({},ot,He);break e;case 2:Oi=!0}}He=fe.callback,He!==null&&(o.flags|=64,qe&&(o.flags|=8192),qe=R.callbacks,qe===null?R.callbacks=[He]:qe.push(He))}else qe={lane:He,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Ze===null?(Le=Ze=qe,Ce=ot):Ze=Ze.next=qe,Y|=He;if(fe=fe.next,fe===null){if(fe=R.shared.pending,fe===null)break;qe=fe,fe=qe.next,qe.next=null,R.lastBaseUpdate=qe,R.shared.pending=null}}while(!0);Ze===null&&(Ce=ot),R.baseState=Ce,R.firstBaseUpdate=Le,R.lastBaseUpdate=Ze,P===null&&(R.shared.lanes=0),Pi|=Y,o.lanes=Y,o.memoizedState=ot}}function QS(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function ZS(o,s){var m=o.callbacks;if(m!==null)for(o.callbacks=null,o=0;o<m.length;o++)QS(m[o],s)}var Es=k(null),of=k(0);function JS(o,s){o=ii,K(of,o),K(Es,s),ii=o|s.baseLanes}function np(){K(of,ii),K(Es,Es.current)}function rp(){ii=of.current,U(Es),U(of)}var Ma=k(null),Ga=null;function Ni(o){var s=o.alternate;K(Er,Er.current&1),K(Ma,o),Ga===null&&(s===null||Es.current!==null||s.memoizedState!==null)&&(Ga=o)}function ap(o){K(Er,Er.current),K(Ma,o),Ga===null&&(Ga=o)}function e1(o){o.tag===22?(K(Er,Er.current),K(Ma,o),Ga===null&&(Ga=o)):Mi()}function Mi(){K(Er,Er.current),K(Ma,Ma.current)}function Ta(o){U(Ma),Ga===o&&(Ga=null),U(Er)}var Er=k(0);function lf(o){for(var s=o;s!==null;){if(s.tag===13){var m=s.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||uh(m)||dh(m)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Zo=0,hn=null,Zn=null,Mr=null,sf=!1,Os=!1,Rl=!1,cf=0,ou=0,Rs=null,Hj=0;function hr(){throw Error(r(321))}function op(o,s){if(s===null)return!1;for(var m=0;m<s.length&&m<o.length;m++)if(!Ia(o[m],s[m]))return!1;return!0}function ip(o,s,m,h,R,P){return Zo=P,hn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,D.H=o===null||o.memoizedState===null?A1:Sp,Rl=!1,P=m(h,R),Rl=!1,Os&&(P=n1(s,m,h,R)),t1(o),P}function t1(o){D.H=su;var s=Zn!==null&&Zn.next!==null;if(Zo=0,Mr=Zn=hn=null,sf=!1,ou=0,Rs=null,s)throw Error(r(300));o===null||Tr||(o=o.dependencies,o!==null&&Zd(o)&&(Tr=!0))}function n1(o,s,m,h){hn=o;var R=0;do{if(Os&&(Rs=null),ou=0,Os=!1,25<=R)throw Error(r(301));if(R+=1,Mr=Zn=null,o.updateQueue!=null){var P=o.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}D.H=B1,P=s(m,h)}while(Os);return P}function Fj(){var o=D.H,s=o.useState()[0];return s=typeof s.then=="function"?iu(s):s,o=o.useState()[0],(Zn!==null?Zn.memoizedState:null)!==o&&(hn.flags|=1024),s}function lp(){var o=cf!==0;return cf=0,o}function sp(o,s,m){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~m}function cp(o){if(sf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}sf=!1}Zo=0,Mr=Zn=hn=null,Os=!1,ou=cf=0,Rs=null}function ma(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mr===null?hn.memoizedState=Mr=o:Mr=Mr.next=o,Mr}function Or(){if(Zn===null){var o=hn.alternate;o=o!==null?o.memoizedState:null}else o=Zn.next;var s=Mr===null?hn.memoizedState:Mr.next;if(s!==null)Mr=s,Zn=o;else{if(o===null)throw hn.alternate===null?Error(r(467)):Error(r(310));Zn=o,o={memoizedState:Zn.memoizedState,baseState:Zn.baseState,baseQueue:Zn.baseQueue,queue:Zn.queue,next:null},Mr===null?hn.memoizedState=Mr=o:Mr=Mr.next=o}return Mr}function uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function iu(o){var s=ou;return ou+=1,Rs===null&&(Rs=[]),o=US(Rs,o,s),s=hn,(Mr===null?s.memoizedState:Mr.next)===null&&(s=s.alternate,D.H=s===null||s.memoizedState===null?A1:Sp),o}function df(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return iu(o);if(o.$$typeof===w)return ra(o)}throw Error(r(438,String(o)))}function up(o){var s=null,m=hn.updateQueue;if(m!==null&&(s=m.memoCache),s==null){var h=hn.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(R){return R.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),m===null&&(m=uf(),hn.updateQueue=m),m.memoCache=s,m=s.data[s.index],m===void 0)for(m=s.data[s.index]=Array(o),h=0;h<o;h++)m[h]=j;return s.index++,m}function Jo(o,s){return typeof s=="function"?s(o):s}function ff(o){var s=Or();return dp(s,Zn,o)}function dp(o,s,m){var h=o.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=m;var R=o.baseQueue,P=h.pending;if(P!==null){if(R!==null){var Y=R.next;R.next=P.next,P.next=Y}s.baseQueue=R=P,h.pending=null}if(P=o.baseState,R===null)o.memoizedState=P;else{s=R.next;var fe=Y=null,Ce=null,Le=s,Ze=!1;do{var ot=Le.lane&-536870913;if(ot!==Le.lane?(Rn&ot)===ot:(Zo&ot)===ot){var He=Le.revertLane;if(He===0)Ce!==null&&(Ce=Ce.next={lane:0,revertLane:0,gesture:null,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null}),ot===Ss&&(Ze=!0);else if((Zo&He)===He){Le=Le.next,He===Ss&&(Ze=!0);continue}else ot={lane:0,revertLane:Le.revertLane,gesture:null,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},Ce===null?(fe=Ce=ot,Y=P):Ce=Ce.next=ot,hn.lanes|=He,Pi|=He;ot=Le.action,Rl&&m(P,ot),P=Le.hasEagerState?Le.eagerState:m(P,ot)}else He={lane:ot,revertLane:Le.revertLane,gesture:Le.gesture,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},Ce===null?(fe=Ce=He,Y=P):Ce=Ce.next=He,hn.lanes|=ot,Pi|=ot;Le=Le.next}while(Le!==null&&Le!==s);if(Ce===null?Y=P:Ce.next=fe,!Ia(P,o.memoizedState)&&(Tr=!0,Ze&&(m=xs,m!==null)))throw m;o.memoizedState=P,o.baseState=Y,o.baseQueue=Ce,h.lastRenderedState=P}return R===null&&(h.lanes=0),[o.memoizedState,h.dispatch]}function fp(o){var s=Or(),m=s.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=o;var h=m.dispatch,R=m.pending,P=s.memoizedState;if(R!==null){m.pending=null;var Y=R=R.next;do P=o(P,Y.action),Y=Y.next;while(Y!==R);Ia(P,s.memoizedState)||(Tr=!0),s.memoizedState=P,s.baseQueue===null&&(s.baseState=P),m.lastRenderedState=P}return[P,h]}function r1(o,s,m){var h=hn,R=Or(),P=jn;if(P){if(m===void 0)throw Error(r(407));m=m()}else m=s();var Y=!Ia((Zn||R).memoizedState,m);if(Y&&(R.memoizedState=m,Tr=!0),R=R.queue,gp(i1.bind(null,h,R,o),[o]),R.getSnapshot!==s||Y||Mr!==null&&Mr.memoizedState.tag&1){if(h.flags|=2048,Is(9,{destroy:void 0},o1.bind(null,h,R,m,s),null),rr===null)throw Error(r(349));P||(Zo&127)!==0||a1(h,s,m)}return m}function a1(o,s,m){o.flags|=16384,o={getSnapshot:s,value:m},s=hn.updateQueue,s===null?(s=uf(),hn.updateQueue=s,s.stores=[o]):(m=s.stores,m===null?s.stores=[o]:m.push(o))}function o1(o,s,m,h){s.value=m,s.getSnapshot=h,l1(s)&&s1(o)}function i1(o,s,m){return m(function(){l1(s)&&s1(o)})}function l1(o){var s=o.getSnapshot;o=o.value;try{var m=s();return!Ia(o,m)}catch{return!0}}function s1(o){var s=bl(o,2);s!==null&&$a(s,o,2)}function mp(o){var s=ma();if(typeof o=="function"){var m=o;if(o=m(),Rl){Pe(!0);try{m()}finally{Pe(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:o},s}function c1(o,s,m,h){return o.baseState=m,dp(o,Zn,typeof h=="function"?h:Jo)}function Vj(o,s,m,h,R){if(gf(o))throw Error(r(485));if(o=s.action,o!==null){var P={payload:R,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Y){P.listeners.push(Y)}};D.T!==null?m(!0):P.isTransition=!1,h(P),m=s.pending,m===null?(P.next=s.pending=P,u1(s,P)):(P.next=m.next,s.pending=m.next=P)}}function u1(o,s){var m=s.action,h=s.payload,R=o.state;if(s.isTransition){var P=D.T,Y={};D.T=Y;try{var fe=m(R,h),Ce=D.S;Ce!==null&&Ce(Y,fe),d1(o,s,fe)}catch(Le){vp(o,s,Le)}finally{P!==null&&Y.types!==null&&(P.types=Y.types),D.T=P}}else try{P=m(R,h),d1(o,s,P)}catch(Le){vp(o,s,Le)}}function d1(o,s,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(h){f1(o,s,h)},function(h){return vp(o,s,h)}):f1(o,s,m)}function f1(o,s,m){s.status="fulfilled",s.value=m,m1(s),o.state=m,s=o.pending,s!==null&&(m=s.next,m===s?o.pending=null:(m=m.next,s.next=m,u1(o,m)))}function vp(o,s,m){var h=o.pending;if(o.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=m,m1(s),s=s.next;while(s!==h)}o.action=null}function m1(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function v1(o,s){return s}function g1(o,s){if(jn){var m=rr.formState;if(m!==null){e:{var h=hn;if(jn){if(lr){t:{for(var R=lr,P=qa;R.nodeType!==8;){if(!P){R=null;break t}if(R=Xa(R.nextSibling),R===null){R=null;break t}}P=R.data,R=P==="F!"||P==="F"?R:null}if(R){lr=Xa(R.nextSibling),h=R.data==="F!";break e}}wi(h)}h=!1}h&&(s=m[0])}}return m=ma(),m.memoizedState=m.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:v1,lastRenderedState:s},m.queue=h,m=D1.bind(null,hn,h),h.dispatch=m,h=mp(!1),P=Cp.bind(null,hn,!1,h.queue),h=ma(),R={state:s,dispatch:null,action:o,pending:null},h.queue=R,m=Vj.bind(null,hn,R,P,m),R.dispatch=m,h.memoizedState=o,[s,m,!1]}function p1(o){var s=Or();return h1(s,Zn,o)}function h1(o,s,m){if(s=dp(o,s,v1)[0],o=ff(Jo)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=iu(s)}catch(Y){throw Y===$s?tf:Y}else h=s;s=Or();var R=s.queue,P=R.dispatch;return m!==s.memoizedState&&(hn.flags|=2048,Is(9,{destroy:void 0},Wj.bind(null,R,m),null)),[h,P,o]}function Wj(o,s){o.action=s}function b1(o){var s=Or(),m=Zn;if(m!==null)return h1(s,m,o);Or(),s=s.memoizedState,m=Or();var h=m.queue.dispatch;return m.memoizedState=o,[s,h,!1]}function Is(o,s,m,h){return o={tag:o,create:m,deps:h,inst:s,next:null},s=hn.updateQueue,s===null&&(s=uf(),hn.updateQueue=s),m=s.lastEffect,m===null?s.lastEffect=o.next=o:(h=m.next,m.next=o,o.next=h,s.lastEffect=o),o}function y1(){return Or().memoizedState}function mf(o,s,m,h){var R=ma();hn.flags|=o,R.memoizedState=Is(1|s,{destroy:void 0},m,h===void 0?null:h)}function vf(o,s,m,h){var R=Or();h=h===void 0?null:h;var P=R.memoizedState.inst;Zn!==null&&h!==null&&op(h,Zn.memoizedState.deps)?R.memoizedState=Is(s,P,m,h):(hn.flags|=o,R.memoizedState=Is(1|s,P,m,h))}function C1(o,s){mf(8390656,8,o,s)}function gp(o,s){vf(2048,8,o,s)}function Kj(o){hn.flags|=4;var s=hn.updateQueue;if(s===null)s=uf(),hn.updateQueue=s,s.events=[o];else{var m=s.events;m===null?s.events=[o]:m.push(o)}}function S1(o){var s=Or().memoizedState;return Kj({ref:s,nextImpl:o}),function(){if((Hn&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function x1(o,s){return vf(4,2,o,s)}function $1(o,s){return vf(4,4,o,s)}function w1(o,s){if(typeof s=="function"){o=o();var m=s(o);return function(){typeof m=="function"?m():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function E1(o,s,m){m=m!=null?m.concat([o]):null,vf(4,4,w1.bind(null,s,o),m)}function pp(){}function O1(o,s){var m=Or();s=s===void 0?null:s;var h=m.memoizedState;return s!==null&&op(s,h[1])?h[0]:(m.memoizedState=[o,s],o)}function R1(o,s){var m=Or();s=s===void 0?null:s;var h=m.memoizedState;if(s!==null&&op(s,h[1]))return h[0];if(h=o(),Rl){Pe(!0);try{o()}finally{Pe(!1)}}return m.memoizedState=[h,s],h}function hp(o,s,m){return m===void 0||(Zo&1073741824)!==0&&(Rn&261930)===0?o.memoizedState=s:(o.memoizedState=m,o=Ix(),hn.lanes|=o,Pi|=o,m)}function I1(o,s,m,h){return Ia(m,s)?m:Es.current!==null?(o=hp(o,m,h),Ia(o,s)||(Tr=!0),o):(Zo&42)===0||(Zo&1073741824)!==0&&(Rn&261930)===0?(Tr=!0,o.memoizedState=m):(o=Ix(),hn.lanes|=o,Pi|=o,s)}function N1(o,s,m,h,R){var P=L.p;L.p=P!==0&&8>P?P:8;var Y=D.T,fe={};D.T=fe,Cp(o,!1,s,m);try{var Ce=R(),Le=D.S;if(Le!==null&&Le(fe,Ce),Ce!==null&&typeof Ce=="object"&&typeof Ce.then=="function"){var Ze=kj(Ce,h);lu(o,s,Ze,Da(o))}else lu(o,s,h,Da(o))}catch(ot){lu(o,s,{then:function(){},status:"rejected",reason:ot},Da())}finally{L.p=P,Y!==null&&fe.types!==null&&(Y.types=fe.types),D.T=Y}}function Uj(){}function bp(o,s,m,h){if(o.tag!==5)throw Error(r(476));var R=M1(o).queue;N1(o,R,s,W,m===null?Uj:function(){return T1(o),m(h)})}function M1(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:W},next:null};var m={};return s.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:m},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function T1(o){var s=M1(o);s.next===null&&(s=o.alternate.memoizedState),lu(o,s.next.queue,{},Da())}function yp(){return ra(wu)}function j1(){return Or().memoizedState}function P1(){return Or().memoizedState}function qj(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var m=Da();o=Ri(m);var h=Ii(s,o,m);h!==null&&($a(h,s,m),nu(h,s,m)),s={cache:Gg()},o.payload=s;return}s=s.return}}function Gj(o,s,m){var h=Da();m={lane:h,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},gf(o)?_1(s,m):(m=Ag(o,s,m,h),m!==null&&($a(m,o,h),z1(m,s,h)))}function D1(o,s,m){var h=Da();lu(o,s,m,h)}function lu(o,s,m,h){var R={lane:h,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(gf(o))_1(s,R);else{var P=o.alternate;if(o.lanes===0&&(P===null||P.lanes===0)&&(P=s.lastRenderedReducer,P!==null))try{var Y=s.lastRenderedState,fe=P(Y,m);if(R.hasEagerState=!0,R.eagerState=fe,Ia(fe,Y))return Gd(o,s,R,0),rr===null&&qd(),!1}catch{}finally{}if(m=Ag(o,s,R,h),m!==null)return $a(m,o,h),z1(m,s,h),!0}return!1}function Cp(o,s,m,h){if(h={lane:2,revertLane:Zp(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},gf(o)){if(s)throw Error(r(479))}else s=Ag(o,m,h,2),s!==null&&$a(s,o,2)}function gf(o){var s=o.alternate;return o===hn||s!==null&&s===hn}function _1(o,s){Os=sf=!0;var m=o.pending;m===null?s.next=s:(s.next=m.next,m.next=s),o.pending=s}function z1(o,s,m){if((m&4194048)!==0){var h=s.lanes;h&=o.pendingLanes,m|=h,s.lanes=m,Je(o,m)}}var su={readContext:ra,use:df,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useLayoutEffect:hr,useInsertionEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useSyncExternalStore:hr,useId:hr,useHostTransitionStatus:hr,useFormState:hr,useActionState:hr,useOptimistic:hr,useMemoCache:hr,useCacheRefresh:hr};su.useEffectEvent=hr;var A1={readContext:ra,use:df,useCallback:function(o,s){return ma().memoizedState=[o,s===void 0?null:s],o},useContext:ra,useEffect:C1,useImperativeHandle:function(o,s,m){m=m!=null?m.concat([o]):null,mf(4194308,4,w1.bind(null,s,o),m)},useLayoutEffect:function(o,s){return mf(4194308,4,o,s)},useInsertionEffect:function(o,s){mf(4,2,o,s)},useMemo:function(o,s){var m=ma();s=s===void 0?null:s;var h=o();if(Rl){Pe(!0);try{o()}finally{Pe(!1)}}return m.memoizedState=[h,s],h},useReducer:function(o,s,m){var h=ma();if(m!==void 0){var R=m(s);if(Rl){Pe(!0);try{m(s)}finally{Pe(!1)}}}else R=s;return h.memoizedState=h.baseState=R,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:R},h.queue=o,o=o.dispatch=Gj.bind(null,hn,o),[h.memoizedState,o]},useRef:function(o){var s=ma();return o={current:o},s.memoizedState=o},useState:function(o){o=mp(o);var s=o.queue,m=D1.bind(null,hn,s);return s.dispatch=m,[o.memoizedState,m]},useDebugValue:pp,useDeferredValue:function(o,s){var m=ma();return hp(m,o,s)},useTransition:function(){var o=mp(!1);return o=N1.bind(null,hn,o.queue,!0,!1),ma().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,m){var h=hn,R=ma();if(jn){if(m===void 0)throw Error(r(407));m=m()}else{if(m=s(),rr===null)throw Error(r(349));(Rn&127)!==0||a1(h,s,m)}R.memoizedState=m;var P={value:m,getSnapshot:s};return R.queue=P,C1(i1.bind(null,h,P,o),[o]),h.flags|=2048,Is(9,{destroy:void 0},o1.bind(null,h,P,m,s),null),m},useId:function(){var o=ma(),s=rr.identifierPrefix;if(jn){var m=Po,h=jo;m=(h&~(1<<32-be(h)-1)).toString(32)+m,s="_"+s+"R_"+m,m=cf++,0<m&&(s+="H"+m.toString(32)),s+="_"}else m=Hj++,s="_"+s+"r_"+m.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:yp,useFormState:g1,useActionState:g1,useOptimistic:function(o){var s=ma();s.memoizedState=s.baseState=o;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=m,s=Cp.bind(null,hn,!0,m),m.dispatch=s,[o,s]},useMemoCache:up,useCacheRefresh:function(){return ma().memoizedState=qj.bind(null,hn)},useEffectEvent:function(o){var s=ma(),m={impl:o};return s.memoizedState=m,function(){if((Hn&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},Sp={readContext:ra,use:df,useCallback:O1,useContext:ra,useEffect:gp,useImperativeHandle:E1,useInsertionEffect:x1,useLayoutEffect:$1,useMemo:R1,useReducer:ff,useRef:y1,useState:function(){return ff(Jo)},useDebugValue:pp,useDeferredValue:function(o,s){var m=Or();return I1(m,Zn.memoizedState,o,s)},useTransition:function(){var o=ff(Jo)[0],s=Or().memoizedState;return[typeof o=="boolean"?o:iu(o),s]},useSyncExternalStore:r1,useId:j1,useHostTransitionStatus:yp,useFormState:p1,useActionState:p1,useOptimistic:function(o,s){var m=Or();return c1(m,Zn,o,s)},useMemoCache:up,useCacheRefresh:P1};Sp.useEffectEvent=S1;var B1={readContext:ra,use:df,useCallback:O1,useContext:ra,useEffect:gp,useImperativeHandle:E1,useInsertionEffect:x1,useLayoutEffect:$1,useMemo:R1,useReducer:fp,useRef:y1,useState:function(){return fp(Jo)},useDebugValue:pp,useDeferredValue:function(o,s){var m=Or();return Zn===null?hp(m,o,s):I1(m,Zn.memoizedState,o,s)},useTransition:function(){var o=fp(Jo)[0],s=Or().memoizedState;return[typeof o=="boolean"?o:iu(o),s]},useSyncExternalStore:r1,useId:j1,useHostTransitionStatus:yp,useFormState:b1,useActionState:b1,useOptimistic:function(o,s){var m=Or();return Zn!==null?c1(m,Zn,o,s):(m.baseState=o,[o,m.queue.dispatch])},useMemoCache:up,useCacheRefresh:P1};B1.useEffectEvent=S1;function xp(o,s,m,h){s=o.memoizedState,m=m(h,s),m=m==null?s:g({},s,m),o.memoizedState=m,o.lanes===0&&(o.updateQueue.baseState=m)}var $p={enqueueSetState:function(o,s,m){o=o._reactInternals;var h=Da(),R=Ri(h);R.payload=s,m!=null&&(R.callback=m),s=Ii(o,R,h),s!==null&&($a(s,o,h),nu(s,o,h))},enqueueReplaceState:function(o,s,m){o=o._reactInternals;var h=Da(),R=Ri(h);R.tag=1,R.payload=s,m!=null&&(R.callback=m),s=Ii(o,R,h),s!==null&&($a(s,o,h),nu(s,o,h))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var m=Da(),h=Ri(m);h.tag=2,s!=null&&(h.callback=s),s=Ii(o,h,m),s!==null&&($a(s,o,m),nu(s,o,m))}};function L1(o,s,m,h,R,P,Y){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,P,Y):s.prototype&&s.prototype.isPureReactComponent?!Gc(m,h)||!Gc(R,P):!0}function k1(o,s,m,h){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(m,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(m,h),s.state!==o&&$p.enqueueReplaceState(s,s.state,null)}function Il(o,s){var m=s;if("ref"in s){m={};for(var h in s)h!=="ref"&&(m[h]=s[h])}if(o=o.defaultProps){m===s&&(m=g({},m));for(var R in o)m[R]===void 0&&(m[R]=o[R])}return m}function H1(o){Ud(o)}function F1(o){console.error(o)}function V1(o){Ud(o)}function pf(o,s){try{var m=o.onUncaughtError;m(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function W1(o,s,m){try{var h=o.onCaughtError;h(m.value,{componentStack:m.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(R){setTimeout(function(){throw R})}}function wp(o,s,m){return m=Ri(m),m.tag=3,m.payload={element:null},m.callback=function(){pf(o,s)},m}function K1(o){return o=Ri(o),o.tag=3,o}function U1(o,s,m,h){var R=m.type.getDerivedStateFromError;if(typeof R=="function"){var P=h.value;o.payload=function(){return R(P)},o.callback=function(){W1(s,m,h)}}var Y=m.stateNode;Y!==null&&typeof Y.componentDidCatch=="function"&&(o.callback=function(){W1(s,m,h),typeof R!="function"&&(Di===null?Di=new Set([this]):Di.add(this));var fe=h.stack;this.componentDidCatch(h.value,{componentStack:fe!==null?fe:""})})}function Xj(o,s,m,h,R){if(m.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=m.alternate,s!==null&&Cs(s,m,R,!0),m=Ma.current,m!==null){switch(m.tag){case 31:case 13:return Ga===null?If():m.alternate===null&&br===0&&(br=3),m.flags&=-257,m.flags|=65536,m.lanes=R,h===nf?m.flags|=16384:(s=m.updateQueue,s===null?m.updateQueue=new Set([h]):s.add(h),Xp(o,h,R)),!1;case 22:return m.flags|=65536,h===nf?m.flags|=16384:(s=m.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},m.updateQueue=s):(m=s.retryQueue,m===null?s.retryQueue=new Set([h]):m.add(h)),Xp(o,h,R)),!1}throw Error(r(435,m.tag))}return Xp(o,h,R),If(),!1}if(jn)return s=Ma.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=R,h!==Vg&&(o=Error(r(422),{cause:h}),Qc(Wa(o,m)))):(h!==Vg&&(s=Error(r(423),{cause:h}),Qc(Wa(s,m))),o=o.current.alternate,o.flags|=65536,R&=-R,o.lanes|=R,h=Wa(h,m),R=wp(o.stateNode,h,R),ep(o,R),br!==4&&(br=2)),!1;var P=Error(r(520),{cause:h});if(P=Wa(P,m),pu===null?pu=[P]:pu.push(P),br!==4&&(br=2),s===null)return!0;h=Wa(h,m),m=s;do{switch(m.tag){case 3:return m.flags|=65536,o=R&-R,m.lanes|=o,o=wp(m.stateNode,h,o),ep(m,o),!1;case 1:if(s=m.type,P=m.stateNode,(m.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Di===null||!Di.has(P))))return m.flags|=65536,R&=-R,m.lanes|=R,R=K1(R),U1(R,o,m,h),ep(m,R),!1}m=m.return}while(m!==null);return!1}var Ep=Error(r(461)),Tr=!1;function aa(o,s,m,h){s.child=o===null?YS(s,null,m,h):Ol(s,o.child,m,h)}function q1(o,s,m,h,R){m=m.render;var P=s.ref;if("ref"in h){var Y={};for(var fe in h)fe!=="ref"&&(Y[fe]=h[fe])}else Y=h;return xl(s),h=ip(o,s,m,Y,P,R),fe=lp(),o!==null&&!Tr?(sp(o,s,R),ei(o,s,R)):(jn&&fe&&Hg(s),s.flags|=1,aa(o,s,h,R),s.child)}function G1(o,s,m,h,R){if(o===null){var P=m.type;return typeof P=="function"&&!Bg(P)&&P.defaultProps===void 0&&m.compare===null?(s.tag=15,s.type=P,X1(o,s,P,h,R)):(o=Yd(m.type,null,h,s,s.mode,R),o.ref=s.ref,o.return=s,s.child=o)}if(P=o.child,!Pp(o,R)){var Y=P.memoizedProps;if(m=m.compare,m=m!==null?m:Gc,m(Y,h)&&o.ref===s.ref)return ei(o,s,R)}return s.flags|=1,o=Go(P,h),o.ref=s.ref,o.return=s,s.child=o}function X1(o,s,m,h,R){if(o!==null){var P=o.memoizedProps;if(Gc(P,h)&&o.ref===s.ref)if(Tr=!1,s.pendingProps=h=P,Pp(o,R))(o.flags&131072)!==0&&(Tr=!0);else return s.lanes=o.lanes,ei(o,s,R)}return Op(o,s,m,h,R)}function Y1(o,s,m,h){var R=h.children,P=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((s.flags&128)!==0){if(P=P!==null?P.baseLanes|m:m,o!==null){for(h=s.child=o.child,R=0;h!==null;)R=R|h.lanes|h.childLanes,h=h.sibling;h=R&~P}else h=0,s.child=null;return Q1(o,s,P,m,h)}if((m&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&ef(s,P!==null?P.cachePool:null),P!==null?JS(s,P):np(),e1(s);else return h=s.lanes=536870912,Q1(o,s,P!==null?P.baseLanes|m:m,m,h)}else P!==null?(ef(s,P.cachePool),JS(s,P),Mi(),s.memoizedState=null):(o!==null&&ef(s,null),np(),Mi());return aa(o,s,R,m),s.child}function cu(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function Q1(o,s,m,h,R){var P=Yg();return P=P===null?null:{parent:Nr._currentValue,pool:P},s.memoizedState={baseLanes:m,cachePool:P},o!==null&&ef(s,null),np(),e1(s),o!==null&&Cs(o,s,h,!0),s.childLanes=R,null}function hf(o,s){return s=yf({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function Z1(o,s,m){return Ol(s,o.child,null,m),o=hf(s,s.pendingProps),o.flags|=2,Ta(s),s.memoizedState=null,o}function Yj(o,s,m){var h=s.pendingProps,R=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(jn){if(h.mode==="hidden")return o=hf(s,h),s.lanes=536870912,cu(null,o);if(ap(s),(o=lr)?(o=u$(o,qa),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:xi!==null?{id:jo,overflow:Po}:null,retryLane:536870912,hydrationErrors:null},m=_S(o),m.return=s,s.child=m,na=s,lr=null)):o=null,o===null)throw wi(s);return s.lanes=536870912,null}return hf(s,h)}var P=o.memoizedState;if(P!==null){var Y=P.dehydrated;if(ap(s),R)if(s.flags&256)s.flags&=-257,s=Z1(o,s,m);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(Tr||Cs(o,s,m,!1),R=(m&o.childLanes)!==0,Tr||R){if(h=rr,h!==null&&(Y=Ve(h,m),Y!==0&&Y!==P.retryLane))throw P.retryLane=Y,bl(o,Y),$a(h,o,Y),Ep;If(),s=Z1(o,s,m)}else o=P.treeContext,lr=Xa(Y.nextSibling),na=s,jn=!0,$i=null,qa=!1,o!==null&&BS(s,o),s=hf(s,h),s.flags|=4096;return s}return o=Go(o.child,{mode:h.mode,children:h.children}),o.ref=s.ref,s.child=o,o.return=s,o}function bf(o,s){var m=s.ref;if(m===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(o===null||o.ref!==m)&&(s.flags|=4194816)}}function Op(o,s,m,h,R){return xl(s),m=ip(o,s,m,h,void 0,R),h=lp(),o!==null&&!Tr?(sp(o,s,R),ei(o,s,R)):(jn&&h&&Hg(s),s.flags|=1,aa(o,s,m,R),s.child)}function J1(o,s,m,h,R,P){return xl(s),s.updateQueue=null,m=n1(s,h,m,R),t1(o),h=lp(),o!==null&&!Tr?(sp(o,s,P),ei(o,s,P)):(jn&&h&&Hg(s),s.flags|=1,aa(o,s,m,P),s.child)}function ex(o,s,m,h,R){if(xl(s),s.stateNode===null){var P=ps,Y=m.contextType;typeof Y=="object"&&Y!==null&&(P=ra(Y)),P=new m(h,P),s.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=$p,s.stateNode=P,P._reactInternals=s,P=s.stateNode,P.props=h,P.state=s.memoizedState,P.refs={},Zg(s),Y=m.contextType,P.context=typeof Y=="object"&&Y!==null?ra(Y):ps,P.state=s.memoizedState,Y=m.getDerivedStateFromProps,typeof Y=="function"&&(xp(s,m,Y,h),P.state=s.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(Y=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),Y!==P.state&&$p.enqueueReplaceState(P,P.state,null),au(s,h,P,R),ru(),P.state=s.memoizedState),typeof P.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(o===null){P=s.stateNode;var fe=s.memoizedProps,Ce=Il(m,fe);P.props=Ce;var Le=P.context,Ze=m.contextType;Y=ps,typeof Ze=="object"&&Ze!==null&&(Y=ra(Ze));var ot=m.getDerivedStateFromProps;Ze=typeof ot=="function"||typeof P.getSnapshotBeforeUpdate=="function",fe=s.pendingProps!==fe,Ze||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(fe||Le!==Y)&&k1(s,P,h,Y),Oi=!1;var He=s.memoizedState;P.state=He,au(s,h,P,R),ru(),Le=s.memoizedState,fe||He!==Le||Oi?(typeof ot=="function"&&(xp(s,m,ot,h),Le=s.memoizedState),(Ce=Oi||L1(s,m,Ce,h,He,Le,Y))?(Ze||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(s.flags|=4194308)):(typeof P.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=Le),P.props=h,P.state=Le,P.context=Y,h=Ce):(typeof P.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{P=s.stateNode,Jg(o,s),Y=s.memoizedProps,Ze=Il(m,Y),P.props=Ze,ot=s.pendingProps,He=P.context,Le=m.contextType,Ce=ps,typeof Le=="object"&&Le!==null&&(Ce=ra(Le)),fe=m.getDerivedStateFromProps,(Le=typeof fe=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(Y!==ot||He!==Ce)&&k1(s,P,h,Ce),Oi=!1,He=s.memoizedState,P.state=He,au(s,h,P,R),ru();var qe=s.memoizedState;Y!==ot||He!==qe||Oi||o!==null&&o.dependencies!==null&&Zd(o.dependencies)?(typeof fe=="function"&&(xp(s,m,fe,h),qe=s.memoizedState),(Ze=Oi||L1(s,m,Ze,h,He,qe,Ce)||o!==null&&o.dependencies!==null&&Zd(o.dependencies))?(Le||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(h,qe,Ce),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(h,qe,Ce)),typeof P.componentDidUpdate=="function"&&(s.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof P.componentDidUpdate!="function"||Y===o.memoizedProps&&He===o.memoizedState||(s.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Y===o.memoizedProps&&He===o.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=qe),P.props=h,P.state=qe,P.context=Ce,h=Ze):(typeof P.componentDidUpdate!="function"||Y===o.memoizedProps&&He===o.memoizedState||(s.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Y===o.memoizedProps&&He===o.memoizedState||(s.flags|=1024),h=!1)}return P=h,bf(o,s),h=(s.flags&128)!==0,P||h?(P=s.stateNode,m=h&&typeof m.getDerivedStateFromError!="function"?null:P.render(),s.flags|=1,o!==null&&h?(s.child=Ol(s,o.child,null,R),s.child=Ol(s,null,m,R)):aa(o,s,m,R),s.memoizedState=P.state,o=s.child):o=ei(o,s,R),o}function tx(o,s,m,h){return Cl(),s.flags|=256,aa(o,s,m,h),s.child}var Rp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ip(o){return{baseLanes:o,cachePool:WS()}}function Np(o,s,m){return o=o!==null?o.childLanes&~m:0,s&&(o|=Pa),o}function nx(o,s,m){var h=s.pendingProps,R=!1,P=(s.flags&128)!==0,Y;if((Y=P)||(Y=o!==null&&o.memoizedState===null?!1:(Er.current&2)!==0),Y&&(R=!0,s.flags&=-129),Y=(s.flags&32)!==0,s.flags&=-33,o===null){if(jn){if(R?Ni(s):Mi(),(o=lr)?(o=u$(o,qa),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:xi!==null?{id:jo,overflow:Po}:null,retryLane:536870912,hydrationErrors:null},m=_S(o),m.return=s,s.child=m,na=s,lr=null)):o=null,o===null)throw wi(s);return dh(o)?s.lanes=32:s.lanes=536870912,null}var fe=h.children;return h=h.fallback,R?(Mi(),R=s.mode,fe=yf({mode:"hidden",children:fe},R),h=yl(h,R,m,null),fe.return=s,h.return=s,fe.sibling=h,s.child=fe,h=s.child,h.memoizedState=Ip(m),h.childLanes=Np(o,Y,m),s.memoizedState=Rp,cu(null,h)):(Ni(s),Mp(s,fe))}var Ce=o.memoizedState;if(Ce!==null&&(fe=Ce.dehydrated,fe!==null)){if(P)s.flags&256?(Ni(s),s.flags&=-257,s=Tp(o,s,m)):s.memoizedState!==null?(Mi(),s.child=o.child,s.flags|=128,s=null):(Mi(),fe=h.fallback,R=s.mode,h=yf({mode:"visible",children:h.children},R),fe=yl(fe,R,m,null),fe.flags|=2,h.return=s,fe.return=s,h.sibling=fe,s.child=h,Ol(s,o.child,null,m),h=s.child,h.memoizedState=Ip(m),h.childLanes=Np(o,Y,m),s.memoizedState=Rp,s=cu(null,h));else if(Ni(s),dh(fe)){if(Y=fe.nextSibling&&fe.nextSibling.dataset,Y)var Le=Y.dgst;Y=Le,h=Error(r(419)),h.stack="",h.digest=Y,Qc({value:h,source:null,stack:null}),s=Tp(o,s,m)}else if(Tr||Cs(o,s,m,!1),Y=(m&o.childLanes)!==0,Tr||Y){if(Y=rr,Y!==null&&(h=Ve(Y,m),h!==0&&h!==Ce.retryLane))throw Ce.retryLane=h,bl(o,h),$a(Y,o,h),Ep;uh(fe)||If(),s=Tp(o,s,m)}else uh(fe)?(s.flags|=192,s.child=o.child,s=null):(o=Ce.treeContext,lr=Xa(fe.nextSibling),na=s,jn=!0,$i=null,qa=!1,o!==null&&BS(s,o),s=Mp(s,h.children),s.flags|=4096);return s}return R?(Mi(),fe=h.fallback,R=s.mode,Ce=o.child,Le=Ce.sibling,h=Go(Ce,{mode:"hidden",children:h.children}),h.subtreeFlags=Ce.subtreeFlags&65011712,Le!==null?fe=Go(Le,fe):(fe=yl(fe,R,m,null),fe.flags|=2),fe.return=s,h.return=s,h.sibling=fe,s.child=h,cu(null,h),h=s.child,fe=o.child.memoizedState,fe===null?fe=Ip(m):(R=fe.cachePool,R!==null?(Ce=Nr._currentValue,R=R.parent!==Ce?{parent:Ce,pool:Ce}:R):R=WS(),fe={baseLanes:fe.baseLanes|m,cachePool:R}),h.memoizedState=fe,h.childLanes=Np(o,Y,m),s.memoizedState=Rp,cu(o.child,h)):(Ni(s),m=o.child,o=m.sibling,m=Go(m,{mode:"visible",children:h.children}),m.return=s,m.sibling=null,o!==null&&(Y=s.deletions,Y===null?(s.deletions=[o],s.flags|=16):Y.push(o)),s.child=m,s.memoizedState=null,m)}function Mp(o,s){return s=yf({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function yf(o,s){return o=Na(22,o,null,s),o.lanes=0,o}function Tp(o,s,m){return Ol(s,o.child,null,m),o=Mp(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function rx(o,s,m){o.lanes|=s;var h=o.alternate;h!==null&&(h.lanes|=s),Ug(o.return,s,m)}function jp(o,s,m,h,R,P){var Y=o.memoizedState;Y===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:m,tailMode:R,treeForkCount:P}:(Y.isBackwards=s,Y.rendering=null,Y.renderingStartTime=0,Y.last=h,Y.tail=m,Y.tailMode=R,Y.treeForkCount=P)}function ax(o,s,m){var h=s.pendingProps,R=h.revealOrder,P=h.tail;h=h.children;var Y=Er.current,fe=(Y&2)!==0;if(fe?(Y=Y&1|2,s.flags|=128):Y&=1,K(Er,Y),aa(o,s,h,m),h=jn?Yc:0,!fe&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&rx(o,m,s);else if(o.tag===19)rx(o,m,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(R){case"forwards":for(m=s.child,R=null;m!==null;)o=m.alternate,o!==null&&lf(o)===null&&(R=m),m=m.sibling;m=R,m===null?(R=s.child,s.child=null):(R=m.sibling,m.sibling=null),jp(s,!1,R,m,P,h);break;case"backwards":case"unstable_legacy-backwards":for(m=null,R=s.child,s.child=null;R!==null;){if(o=R.alternate,o!==null&&lf(o)===null){s.child=R;break}o=R.sibling,R.sibling=m,m=R,R=o}jp(s,!0,m,null,P,h);break;case"together":jp(s,!1,null,null,void 0,h);break;default:s.memoizedState=null}return s.child}function ei(o,s,m){if(o!==null&&(s.dependencies=o.dependencies),Pi|=s.lanes,(m&s.childLanes)===0)if(o!==null){if(Cs(o,s,m,!1),(m&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,m=Go(o,o.pendingProps),s.child=m,m.return=s;o.sibling!==null;)o=o.sibling,m=m.sibling=Go(o,o.pendingProps),m.return=s;m.sibling=null}return s.child}function Pp(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&Zd(o)))}function Qj(o,s,m){switch(s.tag){case 3:te(s,s.stateNode.containerInfo),Ei(s,Nr,o.memoizedState.cache),Cl();break;case 27:case 5:le(s);break;case 4:te(s,s.stateNode.containerInfo);break;case 10:Ei(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,ap(s),null;break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Ni(s),s.flags|=128,null):(m&s.child.childLanes)!==0?nx(o,s,m):(Ni(s),o=ei(o,s,m),o!==null?o.sibling:null);Ni(s);break;case 19:var R=(o.flags&128)!==0;if(h=(m&s.childLanes)!==0,h||(Cs(o,s,m,!1),h=(m&s.childLanes)!==0),R){if(h)return ax(o,s,m);s.flags|=128}if(R=s.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),K(Er,Er.current),h)break;return null;case 22:return s.lanes=0,Y1(o,s,m,s.pendingProps);case 24:Ei(s,Nr,o.memoizedState.cache)}return ei(o,s,m)}function ox(o,s,m){if(o!==null)if(o.memoizedProps!==s.pendingProps)Tr=!0;else{if(!Pp(o,m)&&(s.flags&128)===0)return Tr=!1,Qj(o,s,m);Tr=(o.flags&131072)!==0}else Tr=!1,jn&&(s.flags&1048576)!==0&&AS(s,Yc,s.index);switch(s.lanes=0,s.tag){case 16:e:{var h=s.pendingProps;if(o=wl(s.elementType),s.type=o,typeof o=="function")Bg(o)?(h=Il(o,h),s.tag=1,s=ex(null,s,o,h,m)):(s.tag=0,s=Op(null,s,o,h,m));else{if(o!=null){var R=o.$$typeof;if(R===E){s.tag=11,s=q1(null,s,o,h,m);break e}else if(R===I){s.tag=14,s=G1(null,s,o,h,m);break e}}throw s=A(o)||o,Error(r(306,s,""))}}return s;case 0:return Op(o,s,s.type,s.pendingProps,m);case 1:return h=s.type,R=Il(h,s.pendingProps),ex(o,s,h,R,m);case 3:e:{if(te(s,s.stateNode.containerInfo),o===null)throw Error(r(387));h=s.pendingProps;var P=s.memoizedState;R=P.element,Jg(o,s),au(s,h,null,m);var Y=s.memoizedState;if(h=Y.cache,Ei(s,Nr,h),h!==P.cache&&qg(s,[Nr],m,!0),ru(),h=Y.element,P.isDehydrated)if(P={element:h,isDehydrated:!1,cache:Y.cache},s.updateQueue.baseState=P,s.memoizedState=P,s.flags&256){s=tx(o,s,h,m);break e}else if(h!==R){R=Wa(Error(r(424)),s),Qc(R),s=tx(o,s,h,m);break e}else{switch(o=s.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(lr=Xa(o.firstChild),na=s,jn=!0,$i=null,qa=!0,m=YS(s,null,h,m),s.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Cl(),h===R){s=ei(o,s,m);break e}aa(o,s,h,m)}s=s.child}return s;case 26:return bf(o,s),o===null?(m=p$(s.type,null,s.pendingProps,null))?s.memoizedState=m:jn||(m=s.type,o=s.pendingProps,h=_f(X.current).createElement(m),h[dt]=s,h[it]=o,oa(h,m,o),Qe(h),s.stateNode=h):s.memoizedState=p$(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return le(s),o===null&&jn&&(h=s.stateNode=m$(s.type,s.pendingProps,X.current),na=s,qa=!0,R=lr,Bi(s.type)?(fh=R,lr=Xa(h.firstChild)):lr=R),aa(o,s,s.pendingProps.children,m),bf(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&jn&&((R=h=lr)&&(h=RP(h,s.type,s.pendingProps,qa),h!==null?(s.stateNode=h,na=s,lr=Xa(h.firstChild),qa=!1,R=!0):R=!1),R||wi(s)),le(s),R=s.type,P=s.pendingProps,Y=o!==null?o.memoizedProps:null,h=P.children,lh(R,P)?h=null:Y!==null&&lh(R,Y)&&(s.flags|=32),s.memoizedState!==null&&(R=ip(o,s,Fj,null,null,m),wu._currentValue=R),bf(o,s),aa(o,s,h,m),s.child;case 6:return o===null&&jn&&((o=m=lr)&&(m=IP(m,s.pendingProps,qa),m!==null?(s.stateNode=m,na=s,lr=null,o=!0):o=!1),o||wi(s)),null;case 13:return nx(o,s,m);case 4:return te(s,s.stateNode.containerInfo),h=s.pendingProps,o===null?s.child=Ol(s,null,h,m):aa(o,s,h,m),s.child;case 11:return q1(o,s,s.type,s.pendingProps,m);case 7:return aa(o,s,s.pendingProps,m),s.child;case 8:return aa(o,s,s.pendingProps.children,m),s.child;case 12:return aa(o,s,s.pendingProps.children,m),s.child;case 10:return h=s.pendingProps,Ei(s,s.type,h.value),aa(o,s,h.children,m),s.child;case 9:return R=s.type._context,h=s.pendingProps.children,xl(s),R=ra(R),h=h(R),s.flags|=1,aa(o,s,h,m),s.child;case 14:return G1(o,s,s.type,s.pendingProps,m);case 15:return X1(o,s,s.type,s.pendingProps,m);case 19:return ax(o,s,m);case 31:return Yj(o,s,m);case 22:return Y1(o,s,m,s.pendingProps);case 24:return xl(s),h=ra(Nr),o===null?(R=Yg(),R===null&&(R=rr,P=Gg(),R.pooledCache=P,P.refCount++,P!==null&&(R.pooledCacheLanes|=m),R=P),s.memoizedState={parent:h,cache:R},Zg(s),Ei(s,Nr,R)):((o.lanes&m)!==0&&(Jg(o,s),au(s,null,null,m),ru()),R=o.memoizedState,P=s.memoizedState,R.parent!==h?(R={parent:h,cache:h},s.memoizedState=R,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=R),Ei(s,Nr,h)):(h=P.cache,Ei(s,Nr,h),h!==R.cache&&qg(s,[Nr],m,!0))),aa(o,s,s.pendingProps.children,m),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function ti(o){o.flags|=4}function Dp(o,s,m,h,R){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(R&335544128)===R)if(o.stateNode.complete)o.flags|=8192;else if(jx())o.flags|=8192;else throw El=nf,Qg}else o.flags&=-16777217}function ix(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!S$(s))if(jx())o.flags|=8192;else throw El=nf,Qg}function Cf(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?Mt():536870912,o.lanes|=s,js|=s)}function uu(o,s){if(!jn)switch(o.tailMode){case"hidden":s=o.tail;for(var m=null;s!==null;)s.alternate!==null&&(m=s),s=s.sibling;m===null?o.tail=null:m.sibling=null;break;case"collapsed":m=o.tail;for(var h=null;m!==null;)m.alternate!==null&&(h=m),m=m.sibling;h===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function sr(o){var s=o.alternate!==null&&o.alternate.child===o.child,m=0,h=0;if(s)for(var R=o.child;R!==null;)m|=R.lanes|R.childLanes,h|=R.subtreeFlags&65011712,h|=R.flags&65011712,R.return=o,R=R.sibling;else for(R=o.child;R!==null;)m|=R.lanes|R.childLanes,h|=R.subtreeFlags,h|=R.flags,R.return=o,R=R.sibling;return o.subtreeFlags|=h,o.childLanes=m,s}function Zj(o,s,m){var h=s.pendingProps;switch(Fg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sr(s),null;case 1:return sr(s),null;case 3:return m=s.stateNode,h=null,o!==null&&(h=o.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Qo(Nr),oe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(o===null||o.child===null)&&(ys(s)?ti(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Wg())),sr(s),null;case 26:var R=s.type,P=s.memoizedState;return o===null?(ti(s),P!==null?(sr(s),ix(s,P)):(sr(s),Dp(s,R,null,h,m))):P?P!==o.memoizedState?(ti(s),sr(s),ix(s,P)):(sr(s),s.flags&=-16777217):(o=o.memoizedProps,o!==h&&ti(s),sr(s),Dp(s,R,o,h,m)),null;case 27:if(ne(s),m=X.current,R=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==h&&ti(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return sr(s),null}o=q.current,ys(s)?LS(s):(o=m$(R,h,m),s.stateNode=o,ti(s))}return sr(s),null;case 5:if(ne(s),R=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==h&&ti(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return sr(s),null}if(P=q.current,ys(s))LS(s);else{var Y=_f(X.current);switch(P){case 1:P=Y.createElementNS("http://www.w3.org/2000/svg",R);break;case 2:P=Y.createElementNS("http://www.w3.org/1998/Math/MathML",R);break;default:switch(R){case"svg":P=Y.createElementNS("http://www.w3.org/2000/svg",R);break;case"math":P=Y.createElementNS("http://www.w3.org/1998/Math/MathML",R);break;case"script":P=Y.createElement("div"),P.innerHTML="<script><\/script>",P=P.removeChild(P.firstChild);break;case"select":P=typeof h.is=="string"?Y.createElement("select",{is:h.is}):Y.createElement("select"),h.multiple?P.multiple=!0:h.size&&(P.size=h.size);break;default:P=typeof h.is=="string"?Y.createElement(R,{is:h.is}):Y.createElement(R)}}P[dt]=s,P[it]=h;e:for(Y=s.child;Y!==null;){if(Y.tag===5||Y.tag===6)P.appendChild(Y.stateNode);else if(Y.tag!==4&&Y.tag!==27&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===s)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===s)break e;Y=Y.return}Y.sibling.return=Y.return,Y=Y.sibling}s.stateNode=P;e:switch(oa(P,R,h),R){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ti(s)}}return sr(s),Dp(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,m),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==h&&ti(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(o=X.current,ys(s)){if(o=s.stateNode,m=s.memoizedProps,h=null,R=na,R!==null)switch(R.tag){case 27:case 5:h=R.memoizedProps}o[dt]=s,o=!!(o.nodeValue===m||h!==null&&h.suppressHydrationWarning===!0||n$(o.nodeValue,m)),o||wi(s,!0)}else o=_f(o).createTextNode(h),o[dt]=s,s.stateNode=o}return sr(s),null;case 31:if(m=s.memoizedState,o===null||o.memoizedState!==null){if(h=ys(s),m!==null){if(o===null){if(!h)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[dt]=s}else Cl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;sr(s),o=!1}else m=Wg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=m),o=!0;if(!o)return s.flags&256?(Ta(s),s):(Ta(s),null);if((s.flags&128)!==0)throw Error(r(558))}return sr(s),null;case 13:if(h=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(R=ys(s),h!==null&&h.dehydrated!==null){if(o===null){if(!R)throw Error(r(318));if(R=s.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(r(317));R[dt]=s}else Cl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;sr(s),R=!1}else R=Wg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=R),R=!0;if(!R)return s.flags&256?(Ta(s),s):(Ta(s),null)}return Ta(s),(s.flags&128)!==0?(s.lanes=m,s):(m=h!==null,o=o!==null&&o.memoizedState!==null,m&&(h=s.child,R=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(R=h.alternate.memoizedState.cachePool.pool),P=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(P=h.memoizedState.cachePool.pool),P!==R&&(h.flags|=2048)),m!==o&&m&&(s.child.flags|=8192),Cf(s,s.updateQueue),sr(s),null);case 4:return oe(),o===null&&nh(s.stateNode.containerInfo),sr(s),null;case 10:return Qo(s.type),sr(s),null;case 19:if(U(Er),h=s.memoizedState,h===null)return sr(s),null;if(R=(s.flags&128)!==0,P=h.rendering,P===null)if(R)uu(h,!1);else{if(br!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(P=lf(o),P!==null){for(s.flags|=128,uu(h,!1),o=P.updateQueue,s.updateQueue=o,Cf(s,o),s.subtreeFlags=0,o=m,m=s.child;m!==null;)DS(m,o),m=m.sibling;return K(Er,Er.current&1|2),jn&&Xo(s,h.treeForkCount),s.child}o=o.sibling}h.tail!==null&&ye()>Ef&&(s.flags|=128,R=!0,uu(h,!1),s.lanes=4194304)}else{if(!R)if(o=lf(P),o!==null){if(s.flags|=128,R=!0,o=o.updateQueue,s.updateQueue=o,Cf(s,o),uu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!P.alternate&&!jn)return sr(s),null}else 2*ye()-h.renderingStartTime>Ef&&m!==536870912&&(s.flags|=128,R=!0,uu(h,!1),s.lanes=4194304);h.isBackwards?(P.sibling=s.child,s.child=P):(o=h.last,o!==null?o.sibling=P:s.child=P,h.last=P)}return h.tail!==null?(o=h.tail,h.rendering=o,h.tail=o.sibling,h.renderingStartTime=ye(),o.sibling=null,m=Er.current,K(Er,R?m&1|2:m&1),jn&&Xo(s,h.treeForkCount),o):(sr(s),null);case 22:case 23:return Ta(s),rp(),h=s.memoizedState!==null,o!==null?o.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(m&536870912)!==0&&(s.flags&128)===0&&(sr(s),s.subtreeFlags&6&&(s.flags|=8192)):sr(s),m=s.updateQueue,m!==null&&Cf(s,m.retryQueue),m=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==m&&(s.flags|=2048),o!==null&&U($l),null;case 24:return m=null,o!==null&&(m=o.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),Qo(Nr),sr(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function Jj(o,s){switch(Fg(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return Qo(Nr),oe(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return ne(s),null;case 31:if(s.memoizedState!==null){if(Ta(s),s.alternate===null)throw Error(r(340));Cl()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(Ta(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Cl()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return U(Er),null;case 4:return oe(),null;case 10:return Qo(s.type),null;case 22:case 23:return Ta(s),rp(),o!==null&&U($l),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return Qo(Nr),null;case 25:return null;default:return null}}function lx(o,s){switch(Fg(s),s.tag){case 3:Qo(Nr),oe();break;case 26:case 27:case 5:ne(s);break;case 4:oe();break;case 31:s.memoizedState!==null&&Ta(s);break;case 13:Ta(s);break;case 19:U(Er);break;case 10:Qo(s.type);break;case 22:case 23:Ta(s),rp(),o!==null&&U($l);break;case 24:Qo(Nr)}}function du(o,s){try{var m=s.updateQueue,h=m!==null?m.lastEffect:null;if(h!==null){var R=h.next;m=R;do{if((m.tag&o)===o){h=void 0;var P=m.create,Y=m.inst;h=P(),Y.destroy=h}m=m.next}while(m!==R)}}catch(fe){Gn(s,s.return,fe)}}function Ti(o,s,m){try{var h=s.updateQueue,R=h!==null?h.lastEffect:null;if(R!==null){var P=R.next;h=P;do{if((h.tag&o)===o){var Y=h.inst,fe=Y.destroy;if(fe!==void 0){Y.destroy=void 0,R=s;var Ce=m,Le=fe;try{Le()}catch(Ze){Gn(R,Ce,Ze)}}}h=h.next}while(h!==P)}}catch(Ze){Gn(s,s.return,Ze)}}function sx(o){var s=o.updateQueue;if(s!==null){var m=o.stateNode;try{ZS(s,m)}catch(h){Gn(o,o.return,h)}}}function cx(o,s,m){m.props=Il(o.type,o.memoizedProps),m.state=o.memoizedState;try{m.componentWillUnmount()}catch(h){Gn(o,s,h)}}function fu(o,s){try{var m=o.ref;if(m!==null){switch(o.tag){case 26:case 27:case 5:var h=o.stateNode;break;case 30:h=o.stateNode;break;default:h=o.stateNode}typeof m=="function"?o.refCleanup=m(h):m.current=h}}catch(R){Gn(o,s,R)}}function Do(o,s){var m=o.ref,h=o.refCleanup;if(m!==null)if(typeof h=="function")try{h()}catch(R){Gn(o,s,R)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(R){Gn(o,s,R)}else m.current=null}function ux(o){var s=o.type,m=o.memoizedProps,h=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":m.autoFocus&&h.focus();break e;case"img":m.src?h.src=m.src:m.srcSet&&(h.srcset=m.srcSet)}}catch(R){Gn(o,o.return,R)}}function _p(o,s,m){try{var h=o.stateNode;SP(h,o.type,m,s),h[it]=s}catch(R){Gn(o,o.return,R)}}function dx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Bi(o.type)||o.tag===4}function zp(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||dx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Bi(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ap(o,s,m){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(o,s):(s=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,s.appendChild(o),m=m._reactRootContainer,m!=null||s.onclick!==null||(s.onclick=kn));else if(h!==4&&(h===27&&Bi(o.type)&&(m=o.stateNode,s=null),o=o.child,o!==null))for(Ap(o,s,m),o=o.sibling;o!==null;)Ap(o,s,m),o=o.sibling}function Sf(o,s,m){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?m.insertBefore(o,s):m.appendChild(o);else if(h!==4&&(h===27&&Bi(o.type)&&(m=o.stateNode),o=o.child,o!==null))for(Sf(o,s,m),o=o.sibling;o!==null;)Sf(o,s,m),o=o.sibling}function fx(o){var s=o.stateNode,m=o.memoizedProps;try{for(var h=o.type,R=s.attributes;R.length;)s.removeAttributeNode(R[0]);oa(s,h,m),s[dt]=o,s[it]=m}catch(P){Gn(o,o.return,P)}}var ni=!1,jr=!1,Bp=!1,mx=typeof WeakSet=="function"?WeakSet:Set,Ur=null;function eP(o,s){if(o=o.containerInfo,oh=Ff,o=ES(o),Tg(o)){if("selectionStart"in o)var m={start:o.selectionStart,end:o.selectionEnd};else e:{m=(m=o.ownerDocument)&&m.defaultView||window;var h=m.getSelection&&m.getSelection();if(h&&h.rangeCount!==0){m=h.anchorNode;var R=h.anchorOffset,P=h.focusNode;h=h.focusOffset;try{m.nodeType,P.nodeType}catch{m=null;break e}var Y=0,fe=-1,Ce=-1,Le=0,Ze=0,ot=o,He=null;t:for(;;){for(var qe;ot!==m||R!==0&&ot.nodeType!==3||(fe=Y+R),ot!==P||h!==0&&ot.nodeType!==3||(Ce=Y+h),ot.nodeType===3&&(Y+=ot.nodeValue.length),(qe=ot.firstChild)!==null;)He=ot,ot=qe;for(;;){if(ot===o)break t;if(He===m&&++Le===R&&(fe=Y),He===P&&++Ze===h&&(Ce=Y),(qe=ot.nextSibling)!==null)break;ot=He,He=ot.parentNode}ot=qe}m=fe===-1||Ce===-1?null:{start:fe,end:Ce}}else m=null}m=m||{start:0,end:0}}else m=null;for(ih={focusedElem:o,selectionRange:m},Ff=!1,Ur=s;Ur!==null;)if(s=Ur,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Ur=o;else for(;Ur!==null;){switch(s=Ur,P=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(m=0;m<o.length;m++)R=o[m],R.ref.impl=R.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&P!==null){o=void 0,m=s,R=P.memoizedProps,P=P.memoizedState,h=m.stateNode;try{var Ft=Il(m.type,R);o=h.getSnapshotBeforeUpdate(Ft,P),h.__reactInternalSnapshotBeforeUpdate=o}catch(an){Gn(m,m.return,an)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,m=o.nodeType,m===9)ch(o);else if(m===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":ch(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=s.sibling,o!==null){o.return=s.return,Ur=o;break}Ur=s.return}}function vx(o,s,m){var h=m.flags;switch(m.tag){case 0:case 11:case 15:ai(o,m),h&4&&du(5,m);break;case 1:if(ai(o,m),h&4)if(o=m.stateNode,s===null)try{o.componentDidMount()}catch(Y){Gn(m,m.return,Y)}else{var R=Il(m.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(R,s,o.__reactInternalSnapshotBeforeUpdate)}catch(Y){Gn(m,m.return,Y)}}h&64&&sx(m),h&512&&fu(m,m.return);break;case 3:if(ai(o,m),h&64&&(o=m.updateQueue,o!==null)){if(s=null,m.child!==null)switch(m.child.tag){case 27:case 5:s=m.child.stateNode;break;case 1:s=m.child.stateNode}try{ZS(o,s)}catch(Y){Gn(m,m.return,Y)}}break;case 27:s===null&&h&4&&fx(m);case 26:case 5:ai(o,m),s===null&&h&4&&ux(m),h&512&&fu(m,m.return);break;case 12:ai(o,m);break;case 31:ai(o,m),h&4&&hx(o,m);break;case 13:ai(o,m),h&4&&bx(o,m),h&64&&(o=m.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(m=cP.bind(null,m),NP(o,m))));break;case 22:if(h=m.memoizedState!==null||ni,!h){s=s!==null&&s.memoizedState!==null||jr,R=ni;var P=jr;ni=h,(jr=s)&&!P?oi(o,m,(m.subtreeFlags&8772)!==0):ai(o,m),ni=R,jr=P}break;case 30:break;default:ai(o,m)}}function gx(o){var s=o.alternate;s!==null&&(o.alternate=null,gx(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&sn(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var fr=null,ya=!1;function ri(o,s,m){for(m=m.child;m!==null;)px(o,s,m),m=m.sibling}function px(o,s,m){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(_e,m)}catch{}switch(m.tag){case 26:jr||Do(m,s),ri(o,s,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:jr||Do(m,s);var h=fr,R=ya;Bi(m.type)&&(fr=m.stateNode,ya=!1),ri(o,s,m),Su(m.stateNode),fr=h,ya=R;break;case 5:jr||Do(m,s);case 6:if(h=fr,R=ya,fr=null,ri(o,s,m),fr=h,ya=R,fr!==null)if(ya)try{(fr.nodeType===9?fr.body:fr.nodeName==="HTML"?fr.ownerDocument.body:fr).removeChild(m.stateNode)}catch(P){Gn(m,s,P)}else try{fr.removeChild(m.stateNode)}catch(P){Gn(m,s,P)}break;case 18:fr!==null&&(ya?(o=fr,s$(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,m.stateNode),ks(o)):s$(fr,m.stateNode));break;case 4:h=fr,R=ya,fr=m.stateNode.containerInfo,ya=!0,ri(o,s,m),fr=h,ya=R;break;case 0:case 11:case 14:case 15:Ti(2,m,s),jr||Ti(4,m,s),ri(o,s,m);break;case 1:jr||(Do(m,s),h=m.stateNode,typeof h.componentWillUnmount=="function"&&cx(m,s,h)),ri(o,s,m);break;case 21:ri(o,s,m);break;case 22:jr=(h=jr)||m.memoizedState!==null,ri(o,s,m),jr=h;break;default:ri(o,s,m)}}function hx(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ks(o)}catch(m){Gn(s,s.return,m)}}}function bx(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ks(o)}catch(m){Gn(s,s.return,m)}}function tP(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new mx),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new mx),s;default:throw Error(r(435,o.tag))}}function xf(o,s){var m=tP(o);s.forEach(function(h){if(!m.has(h)){m.add(h);var R=uP.bind(null,o,h);h.then(R,R)}})}function Ca(o,s){var m=s.deletions;if(m!==null)for(var h=0;h<m.length;h++){var R=m[h],P=o,Y=s,fe=Y;e:for(;fe!==null;){switch(fe.tag){case 27:if(Bi(fe.type)){fr=fe.stateNode,ya=!1;break e}break;case 5:fr=fe.stateNode,ya=!1;break e;case 3:case 4:fr=fe.stateNode.containerInfo,ya=!0;break e}fe=fe.return}if(fr===null)throw Error(r(160));px(P,Y,R),fr=null,ya=!1,P=R.alternate,P!==null&&(P.return=null),R.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)yx(s,o),s=s.sibling}var uo=null;function yx(o,s){var m=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ca(s,o),Sa(o),h&4&&(Ti(3,o,o.return),du(3,o),Ti(5,o,o.return));break;case 1:Ca(s,o),Sa(o),h&512&&(jr||m===null||Do(m,m.return)),h&64&&ni&&(o=o.updateQueue,o!==null&&(h=o.callbacks,h!==null&&(m=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=m===null?h:m.concat(h))));break;case 26:var R=uo;if(Ca(s,o),Sa(o),h&512&&(jr||m===null||Do(m,m.return)),h&4){var P=m!==null?m.memoizedState:null;if(h=o.memoizedState,m===null)if(h===null)if(o.stateNode===null){e:{h=o.type,m=o.memoizedProps,R=R.ownerDocument||R;t:switch(h){case"title":P=R.getElementsByTagName("title")[0],(!P||P[Kt]||P[dt]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=R.createElement(h),R.head.insertBefore(P,R.querySelector("head > title"))),oa(P,h,m),P[dt]=o,Qe(P),h=P;break e;case"link":var Y=y$("link","href",R).get(h+(m.href||""));if(Y){for(var fe=0;fe<Y.length;fe++)if(P=Y[fe],P.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&P.getAttribute("rel")===(m.rel==null?null:m.rel)&&P.getAttribute("title")===(m.title==null?null:m.title)&&P.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){Y.splice(fe,1);break t}}P=R.createElement(h),oa(P,h,m),R.head.appendChild(P);break;case"meta":if(Y=y$("meta","content",R).get(h+(m.content||""))){for(fe=0;fe<Y.length;fe++)if(P=Y[fe],P.getAttribute("content")===(m.content==null?null:""+m.content)&&P.getAttribute("name")===(m.name==null?null:m.name)&&P.getAttribute("property")===(m.property==null?null:m.property)&&P.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&P.getAttribute("charset")===(m.charSet==null?null:m.charSet)){Y.splice(fe,1);break t}}P=R.createElement(h),oa(P,h,m),R.head.appendChild(P);break;default:throw Error(r(468,h))}P[dt]=o,Qe(P),h=P}o.stateNode=h}else C$(R,o.type,o.stateNode);else o.stateNode=b$(R,h,o.memoizedProps);else P!==h?(P===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):P.count--,h===null?C$(R,o.type,o.stateNode):b$(R,h,o.memoizedProps)):h===null&&o.stateNode!==null&&_p(o,o.memoizedProps,m.memoizedProps)}break;case 27:Ca(s,o),Sa(o),h&512&&(jr||m===null||Do(m,m.return)),m!==null&&h&4&&_p(o,o.memoizedProps,m.memoizedProps);break;case 5:if(Ca(s,o),Sa(o),h&512&&(jr||m===null||Do(m,m.return)),o.flags&32){R=o.stateNode;try{Kn(R,"")}catch(Ft){Gn(o,o.return,Ft)}}h&4&&o.stateNode!=null&&(R=o.memoizedProps,_p(o,R,m!==null?m.memoizedProps:R)),h&1024&&(Bp=!0);break;case 6:if(Ca(s,o),Sa(o),h&4){if(o.stateNode===null)throw Error(r(162));h=o.memoizedProps,m=o.stateNode;try{m.nodeValue=h}catch(Ft){Gn(o,o.return,Ft)}}break;case 3:if(Bf=null,R=uo,uo=zf(s.containerInfo),Ca(s,o),uo=R,Sa(o),h&4&&m!==null&&m.memoizedState.isDehydrated)try{ks(s.containerInfo)}catch(Ft){Gn(o,o.return,Ft)}Bp&&(Bp=!1,Cx(o));break;case 4:h=uo,uo=zf(o.stateNode.containerInfo),Ca(s,o),Sa(o),uo=h;break;case 12:Ca(s,o),Sa(o);break;case 31:Ca(s,o),Sa(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,xf(o,h)));break;case 13:Ca(s,o),Sa(o),o.child.flags&8192&&o.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(wf=ye()),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,xf(o,h)));break;case 22:R=o.memoizedState!==null;var Ce=m!==null&&m.memoizedState!==null,Le=ni,Ze=jr;if(ni=Le||R,jr=Ze||Ce,Ca(s,o),jr=Ze,ni=Le,Sa(o),h&8192)e:for(s=o.stateNode,s._visibility=R?s._visibility&-2:s._visibility|1,R&&(m===null||Ce||ni||jr||Nl(o)),m=null,s=o;;){if(s.tag===5||s.tag===26){if(m===null){Ce=m=s;try{if(P=Ce.stateNode,R)Y=P.style,typeof Y.setProperty=="function"?Y.setProperty("display","none","important"):Y.display="none";else{fe=Ce.stateNode;var ot=Ce.memoizedProps.style,He=ot!=null&&ot.hasOwnProperty("display")?ot.display:null;fe.style.display=He==null||typeof He=="boolean"?"":(""+He).trim()}}catch(Ft){Gn(Ce,Ce.return,Ft)}}}else if(s.tag===6){if(m===null){Ce=s;try{Ce.stateNode.nodeValue=R?"":Ce.memoizedProps}catch(Ft){Gn(Ce,Ce.return,Ft)}}}else if(s.tag===18){if(m===null){Ce=s;try{var qe=Ce.stateNode;R?c$(qe,!0):c$(Ce.stateNode,!1)}catch(Ft){Gn(Ce,Ce.return,Ft)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;m===s&&(m=null),s=s.return}m===s&&(m=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=o.updateQueue,h!==null&&(m=h.retryQueue,m!==null&&(h.retryQueue=null,xf(o,m))));break;case 19:Ca(s,o),Sa(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,xf(o,h)));break;case 30:break;case 21:break;default:Ca(s,o),Sa(o)}}function Sa(o){var s=o.flags;if(s&2){try{for(var m,h=o.return;h!==null;){if(dx(h)){m=h;break}h=h.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var R=m.stateNode,P=zp(o);Sf(o,P,R);break;case 5:var Y=m.stateNode;m.flags&32&&(Kn(Y,""),m.flags&=-33);var fe=zp(o);Sf(o,fe,Y);break;case 3:case 4:var Ce=m.stateNode.containerInfo,Le=zp(o);Ap(o,Le,Ce);break;default:throw Error(r(161))}}catch(Ze){Gn(o,o.return,Ze)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function Cx(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;Cx(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function ai(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)vx(o,s.alternate,s),s=s.sibling}function Nl(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:Ti(4,s,s.return),Nl(s);break;case 1:Do(s,s.return);var m=s.stateNode;typeof m.componentWillUnmount=="function"&&cx(s,s.return,m),Nl(s);break;case 27:Su(s.stateNode);case 26:case 5:Do(s,s.return),Nl(s);break;case 22:s.memoizedState===null&&Nl(s);break;case 30:Nl(s);break;default:Nl(s)}o=o.sibling}}function oi(o,s,m){for(m=m&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,R=o,P=s,Y=P.flags;switch(P.tag){case 0:case 11:case 15:oi(R,P,m),du(4,P);break;case 1:if(oi(R,P,m),h=P,R=h.stateNode,typeof R.componentDidMount=="function")try{R.componentDidMount()}catch(Le){Gn(h,h.return,Le)}if(h=P,R=h.updateQueue,R!==null){var fe=h.stateNode;try{var Ce=R.shared.hiddenCallbacks;if(Ce!==null)for(R.shared.hiddenCallbacks=null,R=0;R<Ce.length;R++)QS(Ce[R],fe)}catch(Le){Gn(h,h.return,Le)}}m&&Y&64&&sx(P),fu(P,P.return);break;case 27:fx(P);case 26:case 5:oi(R,P,m),m&&h===null&&Y&4&&ux(P),fu(P,P.return);break;case 12:oi(R,P,m);break;case 31:oi(R,P,m),m&&Y&4&&hx(R,P);break;case 13:oi(R,P,m),m&&Y&4&&bx(R,P);break;case 22:P.memoizedState===null&&oi(R,P,m),fu(P,P.return);break;case 30:break;default:oi(R,P,m)}s=s.sibling}}function Lp(o,s){var m=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==m&&(o!=null&&o.refCount++,m!=null&&Zc(m))}function kp(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Zc(o))}function fo(o,s,m,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Sx(o,s,m,h),s=s.sibling}function Sx(o,s,m,h){var R=s.flags;switch(s.tag){case 0:case 11:case 15:fo(o,s,m,h),R&2048&&du(9,s);break;case 1:fo(o,s,m,h);break;case 3:fo(o,s,m,h),R&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Zc(o)));break;case 12:if(R&2048){fo(o,s,m,h),o=s.stateNode;try{var P=s.memoizedProps,Y=P.id,fe=P.onPostCommit;typeof fe=="function"&&fe(Y,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Ce){Gn(s,s.return,Ce)}}else fo(o,s,m,h);break;case 31:fo(o,s,m,h);break;case 13:fo(o,s,m,h);break;case 23:break;case 22:P=s.stateNode,Y=s.alternate,s.memoizedState!==null?P._visibility&2?fo(o,s,m,h):mu(o,s):P._visibility&2?fo(o,s,m,h):(P._visibility|=2,Ns(o,s,m,h,(s.subtreeFlags&10256)!==0||!1)),R&2048&&Lp(Y,s);break;case 24:fo(o,s,m,h),R&2048&&kp(s.alternate,s);break;default:fo(o,s,m,h)}}function Ns(o,s,m,h,R){for(R=R&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var P=o,Y=s,fe=m,Ce=h,Le=Y.flags;switch(Y.tag){case 0:case 11:case 15:Ns(P,Y,fe,Ce,R),du(8,Y);break;case 23:break;case 22:var Ze=Y.stateNode;Y.memoizedState!==null?Ze._visibility&2?Ns(P,Y,fe,Ce,R):mu(P,Y):(Ze._visibility|=2,Ns(P,Y,fe,Ce,R)),R&&Le&2048&&Lp(Y.alternate,Y);break;case 24:Ns(P,Y,fe,Ce,R),R&&Le&2048&&kp(Y.alternate,Y);break;default:Ns(P,Y,fe,Ce,R)}s=s.sibling}}function mu(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var m=o,h=s,R=h.flags;switch(h.tag){case 22:mu(m,h),R&2048&&Lp(h.alternate,h);break;case 24:mu(m,h),R&2048&&kp(h.alternate,h);break;default:mu(m,h)}s=s.sibling}}var vu=8192;function Ms(o,s,m){if(o.subtreeFlags&vu)for(o=o.child;o!==null;)xx(o,s,m),o=o.sibling}function xx(o,s,m){switch(o.tag){case 26:Ms(o,s,m),o.flags&vu&&o.memoizedState!==null&&HP(m,uo,o.memoizedState,o.memoizedProps);break;case 5:Ms(o,s,m);break;case 3:case 4:var h=uo;uo=zf(o.stateNode.containerInfo),Ms(o,s,m),uo=h;break;case 22:o.memoizedState===null&&(h=o.alternate,h!==null&&h.memoizedState!==null?(h=vu,vu=16777216,Ms(o,s,m),vu=h):Ms(o,s,m));break;default:Ms(o,s,m)}}function $x(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function gu(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var h=s[m];Ur=h,Ex(h,o)}$x(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)wx(o),o=o.sibling}function wx(o){switch(o.tag){case 0:case 11:case 15:gu(o),o.flags&2048&&Ti(9,o,o.return);break;case 3:gu(o);break;case 12:gu(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,$f(o)):gu(o);break;default:gu(o)}}function $f(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var h=s[m];Ur=h,Ex(h,o)}$x(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:Ti(8,s,s.return),$f(s);break;case 22:m=s.stateNode,m._visibility&2&&(m._visibility&=-3,$f(s));break;default:$f(s)}o=o.sibling}}function Ex(o,s){for(;Ur!==null;){var m=Ur;switch(m.tag){case 0:case 11:case 15:Ti(8,m,s);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var h=m.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Zc(m.memoizedState.cache)}if(h=m.child,h!==null)h.return=m,Ur=h;else e:for(m=o;Ur!==null;){h=Ur;var R=h.sibling,P=h.return;if(gx(h),h===m){Ur=null;break e}if(R!==null){R.return=P,Ur=R;break e}Ur=P}}}var nP={getCacheForType:function(o){var s=ra(Nr),m=s.data.get(o);return m===void 0&&(m=o(),s.data.set(o,m)),m},cacheSignal:function(){return ra(Nr).controller.signal}},rP=typeof WeakMap=="function"?WeakMap:Map,Hn=0,rr=null,$n=null,Rn=0,qn=0,ja=null,ji=!1,Ts=!1,Hp=!1,ii=0,br=0,Pi=0,Ml=0,Fp=0,Pa=0,js=0,pu=null,xa=null,Vp=!1,wf=0,Ox=0,Ef=1/0,Of=null,Di=null,kr=0,_i=null,Ps=null,li=0,Wp=0,Kp=null,Rx=null,hu=0,Up=null;function Da(){return(Hn&2)!==0&&Rn!==0?Rn&-Rn:D.T!==null?Zp():It()}function Ix(){if(Pa===0)if((Rn&536870912)===0||jn){var o=ht;ht<<=1,(ht&3932160)===0&&(ht=262144),Pa=o}else Pa=536870912;return o=Ma.current,o!==null&&(o.flags|=32),Pa}function $a(o,s,m){(o===rr&&(qn===2||qn===9)||o.cancelPendingCommit!==null)&&(Ds(o,0),zi(o,Rn,Pa,!1)),st(o,m),((Hn&2)===0||o!==rr)&&(o===rr&&((Hn&2)===0&&(Ml|=m),br===4&&zi(o,Rn,Pa,!1)),_o(o))}function Nx(o,s,m){if((Hn&6)!==0)throw Error(r(327));var h=!m&&(s&127)===0&&(s&o.expiredLanes)===0||rt(o,s),R=h?iP(o,s):Gp(o,s,!0),P=h;do{if(R===0){Ts&&!h&&zi(o,s,0,!1);break}else{if(m=o.current.alternate,P&&!aP(m)){R=Gp(o,s,!1),P=!1;continue}if(R===2){if(P=s,o.errorRecoveryDisabledLanes&P)var Y=0;else Y=o.pendingLanes&-536870913,Y=Y!==0?Y:Y&536870912?536870912:0;if(Y!==0){s=Y;e:{var fe=o;R=pu;var Ce=fe.current.memoizedState.isDehydrated;if(Ce&&(Ds(fe,Y).flags|=256),Y=Gp(fe,Y,!1),Y!==2){if(Hp&&!Ce){fe.errorRecoveryDisabledLanes|=P,Ml|=P,R=4;break e}P=xa,xa=R,P!==null&&(xa===null?xa=P:xa.push.apply(xa,P))}R=Y}if(P=!1,R!==2)continue}}if(R===1){Ds(o,0),zi(o,s,0,!0);break}e:{switch(h=o,P=R,P){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:zi(h,s,Pa,!ji);break e;case 2:xa=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(R=wf+300-ye(),10<R)){if(zi(h,s,Pa,!ji),ut(h,0,!0)!==0)break e;li=s,h.timeoutHandle=i$(Mx.bind(null,h,m,xa,Of,Vp,s,Pa,Ml,js,ji,P,"Throttled",-0,0),R);break e}Mx(h,m,xa,Of,Vp,s,Pa,Ml,js,ji,P,null,-0,0)}}break}while(!0);_o(o)}function Mx(o,s,m,h,R,P,Y,fe,Ce,Le,Ze,ot,He,qe){if(o.timeoutHandle=-1,ot=s.subtreeFlags,ot&8192||(ot&16785408)===16785408){ot={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kn},xx(s,P,ot);var Ft=(P&62914560)===P?wf-ye():(P&4194048)===P?Ox-ye():0;if(Ft=FP(ot,Ft),Ft!==null){li=P,o.cancelPendingCommit=Ft(Bx.bind(null,o,s,P,m,h,R,Y,fe,Ce,Ze,ot,null,He,qe)),zi(o,P,Y,!Le);return}}Bx(o,s,P,m,h,R,Y,fe,Ce)}function aP(o){for(var s=o;;){var m=s.tag;if((m===0||m===11||m===15)&&s.flags&16384&&(m=s.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var h=0;h<m.length;h++){var R=m[h],P=R.getSnapshot;R=R.value;try{if(!Ia(P(),R))return!1}catch{return!1}}if(m=s.child,s.subtreeFlags&16384&&m!==null)m.return=s,s=m;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function zi(o,s,m,h){s&=~Fp,s&=~Ml,o.suspendedLanes|=s,o.pingedLanes&=~s,h&&(o.warmLanes|=s),h=o.expirationTimes;for(var R=s;0<R;){var P=31-be(R),Y=1<<P;h[P]=-1,R&=~Y}m!==0&&bt(o,m,s)}function Rf(){return(Hn&6)===0?(bu(0),!1):!0}function qp(){if($n!==null){if(qn===0)var o=$n.return;else o=$n,Yo=Sl=null,cp(o),ws=null,eu=0,o=$n;for(;o!==null;)lx(o.alternate,o),o=o.return;$n=null}}function Ds(o,s){var m=o.timeoutHandle;m!==-1&&(o.timeoutHandle=-1,wP(m)),m=o.cancelPendingCommit,m!==null&&(o.cancelPendingCommit=null,m()),li=0,qp(),rr=o,$n=m=Go(o.current,null),Rn=s,qn=0,ja=null,ji=!1,Ts=rt(o,s),Hp=!1,js=Pa=Fp=Ml=Pi=br=0,xa=pu=null,Vp=!1,(s&8)!==0&&(s|=s&32);var h=o.entangledLanes;if(h!==0)for(o=o.entanglements,h&=s;0<h;){var R=31-be(h),P=1<<R;s|=o[R],h&=~P}return ii=s,qd(),m}function Tx(o,s){hn=null,D.H=su,s===$s||s===tf?(s=qS(),qn=3):s===Qg?(s=qS(),qn=4):qn=s===Ep?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,ja=s,$n===null&&(br=1,pf(o,Wa(s,o.current)))}function jx(){var o=Ma.current;return o===null?!0:(Rn&4194048)===Rn?Ga===null:(Rn&62914560)===Rn||(Rn&536870912)!==0?o===Ga:!1}function Px(){var o=D.H;return D.H=su,o===null?su:o}function Dx(){var o=D.A;return D.A=nP,o}function If(){br=4,ji||(Rn&4194048)!==Rn&&Ma.current!==null||(Ts=!0),(Pi&134217727)===0&&(Ml&134217727)===0||rr===null||zi(rr,Rn,Pa,!1)}function Gp(o,s,m){var h=Hn;Hn|=2;var R=Px(),P=Dx();(rr!==o||Rn!==s)&&(Of=null,Ds(o,s)),s=!1;var Y=br;e:do try{if(qn!==0&&$n!==null){var fe=$n,Ce=ja;switch(qn){case 8:qp(),Y=6;break e;case 3:case 2:case 9:case 6:Ma.current===null&&(s=!0);var Le=qn;if(qn=0,ja=null,_s(o,fe,Ce,Le),m&&Ts){Y=0;break e}break;default:Le=qn,qn=0,ja=null,_s(o,fe,Ce,Le)}}oP(),Y=br;break}catch(Ze){Tx(o,Ze)}while(!0);return s&&o.shellSuspendCounter++,Yo=Sl=null,Hn=h,D.H=R,D.A=P,$n===null&&(rr=null,Rn=0,qd()),Y}function oP(){for(;$n!==null;)_x($n)}function iP(o,s){var m=Hn;Hn|=2;var h=Px(),R=Dx();rr!==o||Rn!==s?(Of=null,Ef=ye()+500,Ds(o,s)):Ts=rt(o,s);e:do try{if(qn!==0&&$n!==null){s=$n;var P=ja;t:switch(qn){case 1:qn=0,ja=null,_s(o,s,P,1);break;case 2:case 9:if(KS(P)){qn=0,ja=null,zx(s);break}s=function(){qn!==2&&qn!==9||rr!==o||(qn=7),_o(o)},P.then(s,s);break e;case 3:qn=7;break e;case 4:qn=5;break e;case 7:KS(P)?(qn=0,ja=null,zx(s)):(qn=0,ja=null,_s(o,s,P,7));break;case 5:var Y=null;switch($n.tag){case 26:Y=$n.memoizedState;case 5:case 27:var fe=$n;if(Y?S$(Y):fe.stateNode.complete){qn=0,ja=null;var Ce=fe.sibling;if(Ce!==null)$n=Ce;else{var Le=fe.return;Le!==null?($n=Le,Nf(Le)):$n=null}break t}}qn=0,ja=null,_s(o,s,P,5);break;case 6:qn=0,ja=null,_s(o,s,P,6);break;case 8:qp(),br=6;break e;default:throw Error(r(462))}}lP();break}catch(Ze){Tx(o,Ze)}while(!0);return Yo=Sl=null,D.H=h,D.A=R,Hn=m,$n!==null?0:(rr=null,Rn=0,qd(),br)}function lP(){for(;$n!==null&&!Ie();)_x($n)}function _x(o){var s=ox(o.alternate,o,ii);o.memoizedProps=o.pendingProps,s===null?Nf(o):$n=s}function zx(o){var s=o,m=s.alternate;switch(s.tag){case 15:case 0:s=J1(m,s,s.pendingProps,s.type,void 0,Rn);break;case 11:s=J1(m,s,s.pendingProps,s.type.render,s.ref,Rn);break;case 5:cp(s);default:lx(m,s),s=$n=DS(s,ii),s=ox(m,s,ii)}o.memoizedProps=o.pendingProps,s===null?Nf(o):$n=s}function _s(o,s,m,h){Yo=Sl=null,cp(s),ws=null,eu=0;var R=s.return;try{if(Xj(o,R,s,m,Rn)){br=1,pf(o,Wa(m,o.current)),$n=null;return}}catch(P){if(R!==null)throw $n=R,P;br=1,pf(o,Wa(m,o.current)),$n=null;return}s.flags&32768?(jn||h===1?o=!0:Ts||(Rn&536870912)!==0?o=!1:(ji=o=!0,(h===2||h===9||h===3||h===6)&&(h=Ma.current,h!==null&&h.tag===13&&(h.flags|=16384))),Ax(s,o)):Nf(s)}function Nf(o){var s=o;do{if((s.flags&32768)!==0){Ax(s,ji);return}o=s.return;var m=Zj(s.alternate,s,ii);if(m!==null){$n=m;return}if(s=s.sibling,s!==null){$n=s;return}$n=s=o}while(s!==null);br===0&&(br=5)}function Ax(o,s){do{var m=Jj(o.alternate,o);if(m!==null){m.flags&=32767,$n=m;return}if(m=o.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!s&&(o=o.sibling,o!==null)){$n=o;return}$n=o=m}while(o!==null);br=6,$n=null}function Bx(o,s,m,h,R,P,Y,fe,Ce){o.cancelPendingCommit=null;do Mf();while(kr!==0);if((Hn&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(P=s.lanes|s.childLanes,P|=zg,Ct(o,m,P,Y,fe,Ce),o===rr&&($n=rr=null,Rn=0),Ps=s,_i=o,li=m,Wp=P,Kp=R,Rx=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,dP(Ke,function(){return Vx(),null})):(o.callbackNode=null,o.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=D.T,D.T=null,R=L.p,L.p=2,Y=Hn,Hn|=4;try{eP(o,s,m)}finally{Hn=Y,L.p=R,D.T=h}}kr=1,Lx(),kx(),Hx()}}function Lx(){if(kr===1){kr=0;var o=_i,s=Ps,m=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||m){m=D.T,D.T=null;var h=L.p;L.p=2;var R=Hn;Hn|=4;try{yx(s,o);var P=ih,Y=ES(o.containerInfo),fe=P.focusedElem,Ce=P.selectionRange;if(Y!==fe&&fe&&fe.ownerDocument&&wS(fe.ownerDocument.documentElement,fe)){if(Ce!==null&&Tg(fe)){var Le=Ce.start,Ze=Ce.end;if(Ze===void 0&&(Ze=Le),"selectionStart"in fe)fe.selectionStart=Le,fe.selectionEnd=Math.min(Ze,fe.value.length);else{var ot=fe.ownerDocument||document,He=ot&&ot.defaultView||window;if(He.getSelection){var qe=He.getSelection(),Ft=fe.textContent.length,an=Math.min(Ce.start,Ft),er=Ce.end===void 0?an:Math.min(Ce.end,Ft);!qe.extend&&an>er&&(Y=er,er=an,an=Y);var De=$S(fe,an),Ne=$S(fe,er);if(De&&Ne&&(qe.rangeCount!==1||qe.anchorNode!==De.node||qe.anchorOffset!==De.offset||qe.focusNode!==Ne.node||qe.focusOffset!==Ne.offset)){var Be=ot.createRange();Be.setStart(De.node,De.offset),qe.removeAllRanges(),an>er?(qe.addRange(Be),qe.extend(Ne.node,Ne.offset)):(Be.setEnd(Ne.node,Ne.offset),qe.addRange(Be))}}}}for(ot=[],qe=fe;qe=qe.parentNode;)qe.nodeType===1&&ot.push({element:qe,left:qe.scrollLeft,top:qe.scrollTop});for(typeof fe.focus=="function"&&fe.focus(),fe=0;fe<ot.length;fe++){var nt=ot[fe];nt.element.scrollLeft=nt.left,nt.element.scrollTop=nt.top}}Ff=!!oh,ih=oh=null}finally{Hn=R,L.p=h,D.T=m}}o.current=s,kr=2}}function kx(){if(kr===2){kr=0;var o=_i,s=Ps,m=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||m){m=D.T,D.T=null;var h=L.p;L.p=2;var R=Hn;Hn|=4;try{vx(o,s.alternate,s)}finally{Hn=R,L.p=h,D.T=m}}kr=3}}function Hx(){if(kr===4||kr===3){kr=0,we();var o=_i,s=Ps,m=li,h=Rx;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?kr=5:(kr=0,Ps=_i=null,Fx(o,o.pendingLanes));var R=o.pendingLanes;if(R===0&&(Di=null),ft(m),s=s.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(_e,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=D.T,R=L.p,L.p=2,D.T=null;try{for(var P=o.onRecoverableError,Y=0;Y<h.length;Y++){var fe=h[Y];P(fe.value,{componentStack:fe.stack})}}finally{D.T=s,L.p=R}}(li&3)!==0&&Mf(),_o(o),R=o.pendingLanes,(m&261930)!==0&&(R&42)!==0?o===Up?hu++:(hu=0,Up=o):hu=0,bu(0)}}function Fx(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,Zc(s)))}function Mf(){return Lx(),kx(),Hx(),Vx()}function Vx(){if(kr!==5)return!1;var o=_i,s=Wp;Wp=0;var m=ft(li),h=D.T,R=L.p;try{L.p=32>m?32:m,D.T=null,m=Kp,Kp=null;var P=_i,Y=li;if(kr=0,Ps=_i=null,li=0,(Hn&6)!==0)throw Error(r(331));var fe=Hn;if(Hn|=4,wx(P.current),Sx(P,P.current,Y,m),Hn=fe,bu(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(_e,P)}catch{}return!0}finally{L.p=R,D.T=h,Fx(o,s)}}function Wx(o,s,m){s=Wa(m,s),s=wp(o.stateNode,s,2),o=Ii(o,s,2),o!==null&&(st(o,2),_o(o))}function Gn(o,s,m){if(o.tag===3)Wx(o,o,m);else for(;s!==null;){if(s.tag===3){Wx(s,o,m);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Di===null||!Di.has(h))){o=Wa(m,o),m=K1(2),h=Ii(s,m,2),h!==null&&(U1(m,h,s,o),st(h,2),_o(h));break}}s=s.return}}function Xp(o,s,m){var h=o.pingCache;if(h===null){h=o.pingCache=new rP;var R=new Set;h.set(s,R)}else R=h.get(s),R===void 0&&(R=new Set,h.set(s,R));R.has(m)||(Hp=!0,R.add(m),o=sP.bind(null,o,s,m),s.then(o,o))}function sP(o,s,m){var h=o.pingCache;h!==null&&h.delete(s),o.pingedLanes|=o.suspendedLanes&m,o.warmLanes&=~m,rr===o&&(Rn&m)===m&&(br===4||br===3&&(Rn&62914560)===Rn&&300>ye()-wf?(Hn&2)===0&&Ds(o,0):Fp|=m,js===Rn&&(js=0)),_o(o)}function Kx(o,s){s===0&&(s=Mt()),o=bl(o,s),o!==null&&(st(o,s),_o(o))}function cP(o){var s=o.memoizedState,m=0;s!==null&&(m=s.retryLane),Kx(o,m)}function uP(o,s){var m=0;switch(o.tag){case 31:case 13:var h=o.stateNode,R=o.memoizedState;R!==null&&(m=R.retryLane);break;case 19:h=o.stateNode;break;case 22:h=o.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),Kx(o,m)}function dP(o,s){return Re(o,s)}var Tf=null,zs=null,Yp=!1,jf=!1,Qp=!1,Ai=0;function _o(o){o!==zs&&o.next===null&&(zs===null?Tf=zs=o:zs=zs.next=o),jf=!0,Yp||(Yp=!0,mP())}function bu(o,s){if(!Qp&&jf){Qp=!0;do for(var m=!1,h=Tf;h!==null;){if(o!==0){var R=h.pendingLanes;if(R===0)var P=0;else{var Y=h.suspendedLanes,fe=h.pingedLanes;P=(1<<31-be(42|o)+1)-1,P&=R&~(Y&~fe),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(m=!0,Xx(h,P))}else P=Rn,P=ut(h,h===rr?P:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(P&3)===0||rt(h,P)||(m=!0,Xx(h,P));h=h.next}while(m);Qp=!1}}function fP(){Ux()}function Ux(){jf=Yp=!1;var o=0;Ai!==0&&$P()&&(o=Ai);for(var s=ye(),m=null,h=Tf;h!==null;){var R=h.next,P=qx(h,s);P===0?(h.next=null,m===null?Tf=R:m.next=R,R===null&&(zs=m)):(m=h,(o!==0||(P&3)!==0)&&(jf=!0)),h=R}kr!==0&&kr!==5||bu(o),Ai!==0&&(Ai=0)}function qx(o,s){for(var m=o.suspendedLanes,h=o.pingedLanes,R=o.expirationTimes,P=o.pendingLanes&-62914561;0<P;){var Y=31-be(P),fe=1<<Y,Ce=R[Y];Ce===-1?((fe&m)===0||(fe&h)!==0)&&(R[Y]=gt(fe,s)):Ce<=s&&(o.expiredLanes|=fe),P&=~fe}if(s=rr,m=Rn,m=ut(o,o===s?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h=o.callbackNode,m===0||o===s&&(qn===2||qn===9)||o.cancelPendingCommit!==null)return h!==null&&h!==null&&pe(h),o.callbackNode=null,o.callbackPriority=0;if((m&3)===0||rt(o,m)){if(s=m&-m,s===o.callbackPriority)return s;switch(h!==null&&pe(h),ft(m)){case 2:case 8:m=Ye;break;case 32:m=Ke;break;case 268435456:m=Ge;break;default:m=Ke}return h=Gx.bind(null,o),m=Re(m,h),o.callbackPriority=s,o.callbackNode=m,s}return h!==null&&h!==null&&pe(h),o.callbackPriority=2,o.callbackNode=null,2}function Gx(o,s){if(kr!==0&&kr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var m=o.callbackNode;if(Mf()&&o.callbackNode!==m)return null;var h=Rn;return h=ut(o,o===rr?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h===0?null:(Nx(o,h,s),qx(o,ye()),o.callbackNode!=null&&o.callbackNode===m?Gx.bind(null,o):null)}function Xx(o,s){if(Mf())return null;Nx(o,s,!0)}function mP(){EP(function(){(Hn&6)!==0?Re(Ae,fP):Ux()})}function Zp(){if(Ai===0){var o=Ss;o===0&&(o=et,et<<=1,(et&261888)===0&&(et=256)),Ai=o}return Ai}function Yx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Un(""+o)}function Qx(o,s){var m=s.ownerDocument.createElement("input");return m.name=s.name,m.value=s.value,o.id&&m.setAttribute("form",o.id),s.parentNode.insertBefore(m,s),o=new FormData(o),m.parentNode.removeChild(m),o}function vP(o,s,m,h,R){if(s==="submit"&&m&&m.stateNode===R){var P=Yx((R[it]||null).action),Y=h.submitter;Y&&(s=(s=Y[it]||null)?Yx(s.formAction):Y.getAttribute("formAction"),s!==null&&(P=s,Y=null));var fe=new Vd("action","action",null,h,R);o.push({event:fe,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Ai!==0){var Ce=Y?Qx(R,Y):new FormData(R);bp(m,{pending:!0,data:Ce,method:R.method,action:P},null,Ce)}}else typeof P=="function"&&(fe.preventDefault(),Ce=Y?Qx(R,Y):new FormData(R),bp(m,{pending:!0,data:Ce,method:R.method,action:P},P,Ce))},currentTarget:R}]})}}for(var Jp=0;Jp<_g.length;Jp++){var eh=_g[Jp],gP=eh.toLowerCase(),pP=eh[0].toUpperCase()+eh.slice(1);co(gP,"on"+pP)}co(IS,"onAnimationEnd"),co(NS,"onAnimationIteration"),co(MS,"onAnimationStart"),co("dblclick","onDoubleClick"),co("focusin","onFocus"),co("focusout","onBlur"),co(jj,"onTransitionRun"),co(Pj,"onTransitionStart"),co(Dj,"onTransitionCancel"),co(TS,"onTransitionEnd"),mt("onMouseEnter",["mouseout","mouseover"]),mt("onMouseLeave",["mouseout","mouseover"]),mt("onPointerEnter",["pointerout","pointerover"]),mt("onPointerLeave",["pointerout","pointerover"]),Vt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yu="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(" "),hP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yu));function Zx(o,s){s=(s&4)!==0;for(var m=0;m<o.length;m++){var h=o[m],R=h.event;h=h.listeners;e:{var P=void 0;if(s)for(var Y=h.length-1;0<=Y;Y--){var fe=h[Y],Ce=fe.instance,Le=fe.currentTarget;if(fe=fe.listener,Ce!==P&&R.isPropagationStopped())break e;P=fe,R.currentTarget=Le;try{P(R)}catch(Ze){Ud(Ze)}R.currentTarget=null,P=Ce}else for(Y=0;Y<h.length;Y++){if(fe=h[Y],Ce=fe.instance,Le=fe.currentTarget,fe=fe.listener,Ce!==P&&R.isPropagationStopped())break e;P=fe,R.currentTarget=Le;try{P(R)}catch(Ze){Ud(Ze)}R.currentTarget=null,P=Ce}}}}function wn(o,s){var m=s[Wt];m===void 0&&(m=s[Wt]=new Set);var h=o+"__bubble";m.has(h)||(Jx(s,o,2,!1),m.add(h))}function th(o,s,m){var h=0;s&&(h|=4),Jx(m,o,h,s)}var Pf="_reactListening"+Math.random().toString(36).slice(2);function nh(o){if(!o[Pf]){o[Pf]=!0,ct.forEach(function(m){m!=="selectionchange"&&(hP.has(m)||th(m,!1,o),th(m,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Pf]||(s[Pf]=!0,th("selectionchange",!1,s))}}function Jx(o,s,m,h){switch(I$(s)){case 2:var R=KP;break;case 8:R=UP;break;default:R=hh}m=R.bind(null,s,m,o),R=void 0,!Qn||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(R=!0),h?R!==void 0?o.addEventListener(s,m,{capture:!0,passive:R}):o.addEventListener(s,m,!0):R!==void 0?o.addEventListener(s,m,{passive:R}):o.addEventListener(s,m,!1)}function rh(o,s,m,h,R){var P=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var Y=h.tag;if(Y===3||Y===4){var fe=h.stateNode.containerInfo;if(fe===R)break;if(Y===4)for(Y=h.return;Y!==null;){var Ce=Y.tag;if((Ce===3||Ce===4)&&Y.stateNode.containerInfo===R)return;Y=Y.return}for(;fe!==null;){if(Y=lt(fe),Y===null)return;if(Ce=Y.tag,Ce===5||Ce===6||Ce===26||Ce===27){h=P=Y;continue e}fe=fe.parentNode}}h=h.return}ds(function(){var Le=P,Ze=Kr(m),ot=[];e:{var He=jS.get(o);if(He!==void 0){var qe=Vd,Ft=o;switch(o){case"keypress":if(qo(m)===0)break e;case"keydown":case"keyup":qe=uj;break;case"focusin":Ft="focus",qe=Og;break;case"focusout":Ft="blur",qe=Og;break;case"beforeblur":case"afterblur":qe=Og;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":qe=lS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=ZT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=mj;break;case IS:case NS:case MS:qe=tj;break;case TS:qe=gj;break;case"scroll":case"scrollend":qe=YT;break;case"wheel":qe=hj;break;case"copy":case"cut":case"paste":qe=rj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=cS;break;case"toggle":case"beforetoggle":qe=yj}var an=(s&4)!==0,er=!an&&(o==="scroll"||o==="scrollend"),De=an?He!==null?He+"Capture":null:He;an=[];for(var Ne=Le,Be;Ne!==null;){var nt=Ne;if(Be=nt.stateNode,nt=nt.tag,nt!==5&&nt!==26&&nt!==27||Be===null||De===null||(nt=Lt(Ne,De),nt!=null&&an.push(Cu(Ne,nt,Be))),er)break;Ne=Ne.return}0<an.length&&(He=new qe(He,Ft,null,m,Ze),ot.push({event:He,listeners:an}))}}if((s&7)===0){e:{if(He=o==="mouseover"||o==="pointerover",qe=o==="mouseout"||o==="pointerout",He&&m!==Lr&&(Ft=m.relatedTarget||m.fromElement)&&(lt(Ft)||Ft[Dt]))break e;if((qe||He)&&(He=Ze.window===Ze?Ze:(He=Ze.ownerDocument)?He.defaultView||He.parentWindow:window,qe?(Ft=m.relatedTarget||m.toElement,qe=Le,Ft=Ft?lt(Ft):null,Ft!==null&&(er=i(Ft),an=Ft.tag,Ft!==er||an!==5&&an!==27&&an!==6)&&(Ft=null)):(qe=null,Ft=Le),qe!==Ft)){if(an=lS,nt="onMouseLeave",De="onMouseEnter",Ne="mouse",(o==="pointerout"||o==="pointerover")&&(an=cS,nt="onPointerLeave",De="onPointerEnter",Ne="pointer"),er=qe==null?He:pt(qe),Be=Ft==null?He:pt(Ft),He=new an(nt,Ne+"leave",qe,m,Ze),He.target=er,He.relatedTarget=Be,nt=null,lt(Ze)===Le&&(an=new an(De,Ne+"enter",Ft,m,Ze),an.target=Be,an.relatedTarget=er,nt=an),er=nt,qe&&Ft)t:{for(an=bP,De=qe,Ne=Ft,Be=0,nt=De;nt;nt=an(nt))Be++;nt=0;for(var Jt=Ne;Jt;Jt=an(Jt))nt++;for(;0<Be-nt;)De=an(De),Be--;for(;0<nt-Be;)Ne=an(Ne),nt--;for(;Be--;){if(De===Ne||Ne!==null&&De===Ne.alternate){an=De;break t}De=an(De),Ne=an(Ne)}an=null}else an=null;qe!==null&&e$(ot,He,qe,an,!1),Ft!==null&&er!==null&&e$(ot,er,Ft,an,!0)}}e:{if(He=Le?pt(Le):window,qe=He.nodeName&&He.nodeName.toLowerCase(),qe==="select"||qe==="input"&&He.type==="file")var zn=hS;else if(gS(He))if(bS)zn=Nj;else{zn=Rj;var Ut=Oj}else qe=He.nodeName,!qe||qe.toLowerCase()!=="input"||He.type!=="checkbox"&&He.type!=="radio"?Le&&wt(Le.elementType)&&(zn=hS):zn=Ij;if(zn&&(zn=zn(o,Le))){pS(ot,zn,m,Ze);break e}Ut&&Ut(o,He,Le),o==="focusout"&&Le&&He.type==="number"&&Le.memoizedProps.value!=null&&un(He,"number",He.value)}switch(Ut=Le?pt(Le):window,o){case"focusin":(gS(Ut)||Ut.contentEditable==="true")&&(ms=Ut,jg=Le,Xc=null);break;case"focusout":Xc=jg=ms=null;break;case"mousedown":Pg=!0;break;case"contextmenu":case"mouseup":case"dragend":Pg=!1,OS(ot,m,Ze);break;case"selectionchange":if(Tj)break;case"keydown":case"keyup":OS(ot,m,Ze)}var Cn;if(Ig)e:{switch(o){case"compositionstart":var In="onCompositionStart";break e;case"compositionend":In="onCompositionEnd";break e;case"compositionupdate":In="onCompositionUpdate";break e}In=void 0}else fs?mS(o,m)&&(In="onCompositionEnd"):o==="keydown"&&m.keyCode===229&&(In="onCompositionStart");In&&(uS&&m.locale!=="ko"&&(fs||In!=="onCompositionStart"?In==="onCompositionEnd"&&fs&&(Cn=Fc()):(_n=Ze,Ci="value"in _n?_n.value:_n.textContent,fs=!0)),Ut=Df(Le,In),0<Ut.length&&(In=new sS(In,o,null,m,Ze),ot.push({event:In,listeners:Ut}),Cn?In.data=Cn:(Cn=vS(m),Cn!==null&&(In.data=Cn)))),(Cn=Sj?xj(o,m):$j(o,m))&&(In=Df(Le,"onBeforeInput"),0<In.length&&(Ut=new sS("onBeforeInput","beforeinput",null,m,Ze),ot.push({event:Ut,listeners:In}),Ut.data=Cn)),vP(ot,o,Le,m,Ze)}Zx(ot,s)})}function Cu(o,s,m){return{instance:o,listener:s,currentTarget:m}}function Df(o,s){for(var m=s+"Capture",h=[];o!==null;){var R=o,P=R.stateNode;if(R=R.tag,R!==5&&R!==26&&R!==27||P===null||(R=Lt(o,m),R!=null&&h.unshift(Cu(o,R,P)),R=Lt(o,s),R!=null&&h.push(Cu(o,R,P))),o.tag===3)return h;o=o.return}return[]}function bP(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function e$(o,s,m,h,R){for(var P=s._reactName,Y=[];m!==null&&m!==h;){var fe=m,Ce=fe.alternate,Le=fe.stateNode;if(fe=fe.tag,Ce!==null&&Ce===h)break;fe!==5&&fe!==26&&fe!==27||Le===null||(Ce=Le,R?(Le=Lt(m,P),Le!=null&&Y.unshift(Cu(m,Le,Ce))):R||(Le=Lt(m,P),Le!=null&&Y.push(Cu(m,Le,Ce)))),m=m.return}Y.length!==0&&o.push({event:s,listeners:Y})}var yP=/\r\n?/g,CP=/\u0000|\uFFFD/g;function t$(o){return(typeof o=="string"?o:""+o).replace(yP,`
|
|
49
|
+
`).replace(CP,"")}function n$(o,s){return s=t$(s),t$(o)===s}function Jn(o,s,m,h,R,P){switch(m){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Kn(o,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Kn(o,""+h);break;case"className":Ln(o,"class",h);break;case"tabIndex":Ln(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Ln(o,m,h);break;case"style":vt(o,h,P);break;case"data":if(s!=="object"){Ln(o,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||m!=="href")){o.removeAttribute(m);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(m);break}h=Un(""+h),o.setAttribute(m,h);break;case"action":case"formAction":if(typeof h=="function"){o.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof P=="function"&&(m==="formAction"?(s!=="input"&&Jn(o,s,"name",R.name,R,null),Jn(o,s,"formEncType",R.formEncType,R,null),Jn(o,s,"formMethod",R.formMethod,R,null),Jn(o,s,"formTarget",R.formTarget,R,null)):(Jn(o,s,"encType",R.encType,R,null),Jn(o,s,"method",R.method,R,null),Jn(o,s,"target",R.target,R,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(m);break}h=Un(""+h),o.setAttribute(m,h);break;case"onClick":h!=null&&(o.onclick=kn);break;case"onScroll":h!=null&&wn("scroll",o);break;case"onScrollEnd":h!=null&&wn("scrollend",o);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(m=h.__html,m!=null){if(R.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"multiple":o.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":o.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){o.removeAttribute("xlink:href");break}m=Un(""+h),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(m,""+h):o.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(m,""):o.removeAttribute(m);break;case"capture":case"download":h===!0?o.setAttribute(m,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(m,h):o.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?o.setAttribute(m,h):o.removeAttribute(m);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?o.removeAttribute(m):o.setAttribute(m,h);break;case"popover":wn("beforetoggle",o),wn("toggle",o),Mn(o,"popover",h);break;case"xlinkActuate":En(o,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":En(o,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":En(o,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":En(o,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":En(o,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":En(o,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":En(o,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":En(o,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":En(o,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Mn(o,"is",h);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=cn.get(m)||m,Mn(o,m,h))}}function ah(o,s,m,h,R,P){switch(m){case"style":vt(o,h,P);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(m=h.__html,m!=null){if(R.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"children":typeof h=="string"?Kn(o,h):(typeof h=="number"||typeof h=="bigint")&&Kn(o,""+h);break;case"onScroll":h!=null&&wn("scroll",o);break;case"onScrollEnd":h!=null&&wn("scrollend",o);break;case"onClick":h!=null&&(o.onclick=kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tt.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(R=m.endsWith("Capture"),s=m.slice(2,R?m.length-7:void 0),P=o[it]||null,P=P!=null?P[m]:null,typeof P=="function"&&o.removeEventListener(s,P,R),typeof h=="function")){typeof P!="function"&&P!==null&&(m in o?o[m]=null:o.hasAttribute(m)&&o.removeAttribute(m)),o.addEventListener(s,h,R);break e}m in o?o[m]=h:h===!0?o.setAttribute(m,""):Mn(o,m,h)}}}function oa(o,s,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wn("error",o),wn("load",o);var h=!1,R=!1,P;for(P in m)if(m.hasOwnProperty(P)){var Y=m[P];if(Y!=null)switch(P){case"src":h=!0;break;case"srcSet":R=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Jn(o,s,P,Y,m,null)}}R&&Jn(o,s,"srcSet",m.srcSet,m,null),h&&Jn(o,s,"src",m.src,m,null);return;case"input":wn("invalid",o);var fe=P=Y=R=null,Ce=null,Le=null;for(h in m)if(m.hasOwnProperty(h)){var Ze=m[h];if(Ze!=null)switch(h){case"name":R=Ze;break;case"type":Y=Ze;break;case"checked":Ce=Ze;break;case"defaultChecked":Le=Ze;break;case"value":P=Ze;break;case"defaultValue":fe=Ze;break;case"children":case"dangerouslySetInnerHTML":if(Ze!=null)throw Error(r(137,s));break;default:Jn(o,s,h,Ze,m,null)}}jt(o,P,fe,Ce,Le,Y,R,!1);return;case"select":wn("invalid",o),h=Y=P=null;for(R in m)if(m.hasOwnProperty(R)&&(fe=m[R],fe!=null))switch(R){case"value":P=fe;break;case"defaultValue":Y=fe;break;case"multiple":h=fe;default:Jn(o,s,R,fe,m,null)}s=P,m=Y,o.multiple=!!h,s!=null?On(o,!!h,s,!1):m!=null&&On(o,!!h,m,!0);return;case"textarea":wn("invalid",o),P=R=h=null;for(Y in m)if(m.hasOwnProperty(Y)&&(fe=m[Y],fe!=null))switch(Y){case"value":h=fe;break;case"defaultValue":R=fe;break;case"children":P=fe;break;case"dangerouslySetInnerHTML":if(fe!=null)throw Error(r(91));break;default:Jn(o,s,Y,fe,m,null)}vr(o,h,R,P);return;case"option":for(Ce in m)if(m.hasOwnProperty(Ce)&&(h=m[Ce],h!=null))switch(Ce){case"selected":o.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Jn(o,s,Ce,h,m,null)}return;case"dialog":wn("beforetoggle",o),wn("toggle",o),wn("cancel",o),wn("close",o);break;case"iframe":case"object":wn("load",o);break;case"video":case"audio":for(h=0;h<yu.length;h++)wn(yu[h],o);break;case"image":wn("error",o),wn("load",o);break;case"details":wn("toggle",o);break;case"embed":case"source":case"link":wn("error",o),wn("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Le in m)if(m.hasOwnProperty(Le)&&(h=m[Le],h!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Jn(o,s,Le,h,m,null)}return;default:if(wt(s)){for(Ze in m)m.hasOwnProperty(Ze)&&(h=m[Ze],h!==void 0&&ah(o,s,Ze,h,m,void 0));return}}for(fe in m)m.hasOwnProperty(fe)&&(h=m[fe],h!=null&&Jn(o,s,fe,h,m,null))}function SP(o,s,m,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var R=null,P=null,Y=null,fe=null,Ce=null,Le=null,Ze=null;for(qe in m){var ot=m[qe];if(m.hasOwnProperty(qe)&&ot!=null)switch(qe){case"checked":break;case"value":break;case"defaultValue":Ce=ot;default:h.hasOwnProperty(qe)||Jn(o,s,qe,null,h,ot)}}for(var He in h){var qe=h[He];if(ot=m[He],h.hasOwnProperty(He)&&(qe!=null||ot!=null))switch(He){case"type":P=qe;break;case"name":R=qe;break;case"checked":Le=qe;break;case"defaultChecked":Ze=qe;break;case"value":Y=qe;break;case"defaultValue":fe=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(r(137,s));break;default:qe!==ot&&Jn(o,s,He,qe,h,ot)}}Nt(o,Y,fe,Ce,Le,Ze,P,R);return;case"select":qe=Y=fe=He=null;for(P in m)if(Ce=m[P],m.hasOwnProperty(P)&&Ce!=null)switch(P){case"value":break;case"multiple":qe=Ce;default:h.hasOwnProperty(P)||Jn(o,s,P,null,h,Ce)}for(R in h)if(P=h[R],Ce=m[R],h.hasOwnProperty(R)&&(P!=null||Ce!=null))switch(R){case"value":He=P;break;case"defaultValue":fe=P;break;case"multiple":Y=P;default:P!==Ce&&Jn(o,s,R,P,h,Ce)}s=fe,m=Y,h=qe,He!=null?On(o,!!m,He,!1):!!h!=!!m&&(s!=null?On(o,!!m,s,!0):On(o,!!m,m?[]:"",!1));return;case"textarea":qe=He=null;for(fe in m)if(R=m[fe],m.hasOwnProperty(fe)&&R!=null&&!h.hasOwnProperty(fe))switch(fe){case"value":break;case"children":break;default:Jn(o,s,fe,null,h,R)}for(Y in h)if(R=h[Y],P=m[Y],h.hasOwnProperty(Y)&&(R!=null||P!=null))switch(Y){case"value":He=R;break;case"defaultValue":qe=R;break;case"children":break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:R!==P&&Jn(o,s,Y,R,h,P)}Wn(o,He,qe);return;case"option":for(var Ft in m)if(He=m[Ft],m.hasOwnProperty(Ft)&&He!=null&&!h.hasOwnProperty(Ft))switch(Ft){case"selected":o.selected=!1;break;default:Jn(o,s,Ft,null,h,He)}for(Ce in h)if(He=h[Ce],qe=m[Ce],h.hasOwnProperty(Ce)&&He!==qe&&(He!=null||qe!=null))switch(Ce){case"selected":o.selected=He&&typeof He!="function"&&typeof He!="symbol";break;default:Jn(o,s,Ce,He,h,qe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var an in m)He=m[an],m.hasOwnProperty(an)&&He!=null&&!h.hasOwnProperty(an)&&Jn(o,s,an,null,h,He);for(Le in h)if(He=h[Le],qe=m[Le],h.hasOwnProperty(Le)&&He!==qe&&(He!=null||qe!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,s));break;default:Jn(o,s,Le,He,h,qe)}return;default:if(wt(s)){for(var er in m)He=m[er],m.hasOwnProperty(er)&&He!==void 0&&!h.hasOwnProperty(er)&&ah(o,s,er,void 0,h,He);for(Ze in h)He=h[Ze],qe=m[Ze],!h.hasOwnProperty(Ze)||He===qe||He===void 0&&qe===void 0||ah(o,s,Ze,He,h,qe);return}}for(var De in m)He=m[De],m.hasOwnProperty(De)&&He!=null&&!h.hasOwnProperty(De)&&Jn(o,s,De,null,h,He);for(ot in h)He=h[ot],qe=m[ot],!h.hasOwnProperty(ot)||He===qe||He==null&&qe==null||Jn(o,s,ot,He,h,qe)}function r$(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xP(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,m=performance.getEntriesByType("resource"),h=0;h<m.length;h++){var R=m[h],P=R.transferSize,Y=R.initiatorType,fe=R.duration;if(P&&fe&&r$(Y)){for(Y=0,fe=R.responseEnd,h+=1;h<m.length;h++){var Ce=m[h],Le=Ce.startTime;if(Le>fe)break;var Ze=Ce.transferSize,ot=Ce.initiatorType;Ze&&r$(ot)&&(Ce=Ce.responseEnd,Y+=Ze*(Ce<fe?1:(fe-Le)/(Ce-Le)))}if(--h,s+=8*(P+Y)/(R.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var oh=null,ih=null;function _f(o){return o.nodeType===9?o:o.ownerDocument}function a$(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function o$(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function lh(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var sh=null;function $P(){var o=window.event;return o&&o.type==="popstate"?o===sh?!1:(sh=o,!0):(sh=null,!1)}var i$=typeof setTimeout=="function"?setTimeout:void 0,wP=typeof clearTimeout=="function"?clearTimeout:void 0,l$=typeof Promise=="function"?Promise:void 0,EP=typeof queueMicrotask=="function"?queueMicrotask:typeof l$<"u"?function(o){return l$.resolve(null).then(o).catch(OP)}:i$;function OP(o){setTimeout(function(){throw o})}function Bi(o){return o==="head"}function s$(o,s){var m=s,h=0;do{var R=m.nextSibling;if(o.removeChild(m),R&&R.nodeType===8)if(m=R.data,m==="/$"||m==="/&"){if(h===0){o.removeChild(R),ks(s);return}h--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")h++;else if(m==="html")Su(o.ownerDocument.documentElement);else if(m==="head"){m=o.ownerDocument.head,Su(m);for(var P=m.firstChild;P;){var Y=P.nextSibling,fe=P.nodeName;P[Kt]||fe==="SCRIPT"||fe==="STYLE"||fe==="LINK"&&P.rel.toLowerCase()==="stylesheet"||m.removeChild(P),P=Y}}else m==="body"&&Su(o.ownerDocument.body);m=R}while(m);ks(s)}function c$(o,s){var m=o;o=0;do{var h=m.nextSibling;if(m.nodeType===1?s?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(s?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),h&&h.nodeType===8)if(m=h.data,m==="/$"){if(o===0)break;o--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||o++;m=h}while(m)}function ch(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var m=s;switch(s=s.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":ch(m),sn(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}o.removeChild(m)}}function RP(o,s,m,h){for(;o.nodeType===1;){var R=m;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(h){if(!o[Kt])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(P=o.getAttribute("rel"),P==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(P!==R.rel||o.getAttribute("href")!==(R.href==null||R.href===""?null:R.href)||o.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin)||o.getAttribute("title")!==(R.title==null?null:R.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(P=o.getAttribute("src"),(P!==(R.src==null?null:R.src)||o.getAttribute("type")!==(R.type==null?null:R.type)||o.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin))&&P&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var P=R.name==null?null:""+R.name;if(R.type==="hidden"&&o.getAttribute("name")===P)return o}else return o;if(o=Xa(o.nextSibling),o===null)break}return null}function IP(o,s,m){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!m||(o=Xa(o.nextSibling),o===null))return null;return o}function u$(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Xa(o.nextSibling),o===null))return null;return o}function uh(o){return o.data==="$?"||o.data==="$~"}function dh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function NP(o,s){var m=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||m.readyState!=="loading")s();else{var h=function(){s(),m.removeEventListener("DOMContentLoaded",h)};m.addEventListener("DOMContentLoaded",h),o._reactRetry=h}}function Xa(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var fh=null;function d$(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var m=o.data;if(m==="/$"||m==="/&"){if(s===0)return Xa(o.nextSibling);s--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||s++}o=o.nextSibling}return null}function f$(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var m=o.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(s===0)return o;s--}else m!=="/$"&&m!=="/&"||s++}o=o.previousSibling}return null}function m$(o,s,m){switch(s=_f(m),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Su(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);sn(o)}var Ya=new Map,v$=new Set;function zf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var si=L.d;L.d={f:MP,r:TP,D:jP,C:PP,L:DP,m:_P,X:AP,S:zP,M:BP};function MP(){var o=si.f(),s=Rf();return o||s}function TP(o){var s=yt(o);s!==null&&s.tag===5&&s.type==="form"?T1(s):si.r(o)}var As=typeof document>"u"?null:document;function g$(o,s,m){var h=As;if(h&&typeof s=="string"&&s){var R=tn(s);R='link[rel="'+o+'"][href="'+R+'"]',typeof m=="string"&&(R+='[crossorigin="'+m+'"]'),v$.has(R)||(v$.add(R),o={rel:o,crossOrigin:m,href:s},h.querySelector(R)===null&&(s=h.createElement("link"),oa(s,"link",o),Qe(s),h.head.appendChild(s)))}}function jP(o){si.D(o),g$("dns-prefetch",o,null)}function PP(o,s){si.C(o,s),g$("preconnect",o,s)}function DP(o,s,m){si.L(o,s,m);var h=As;if(h&&o&&s){var R='link[rel="preload"][as="'+tn(s)+'"]';s==="image"&&m&&m.imageSrcSet?(R+='[imagesrcset="'+tn(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(R+='[imagesizes="'+tn(m.imageSizes)+'"]')):R+='[href="'+tn(o)+'"]';var P=R;switch(s){case"style":P=Bs(o);break;case"script":P=Ls(o)}Ya.has(P)||(o=g({rel:"preload",href:s==="image"&&m&&m.imageSrcSet?void 0:o,as:s},m),Ya.set(P,o),h.querySelector(R)!==null||s==="style"&&h.querySelector(xu(P))||s==="script"&&h.querySelector($u(P))||(s=h.createElement("link"),oa(s,"link",o),Qe(s),h.head.appendChild(s)))}}function _P(o,s){si.m(o,s);var m=As;if(m&&o){var h=s&&typeof s.as=="string"?s.as:"script",R='link[rel="modulepreload"][as="'+tn(h)+'"][href="'+tn(o)+'"]',P=R;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=Ls(o)}if(!Ya.has(P)&&(o=g({rel:"modulepreload",href:o},s),Ya.set(P,o),m.querySelector(R)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector($u(P)))return}h=m.createElement("link"),oa(h,"link",o),Qe(h),m.head.appendChild(h)}}}function zP(o,s,m){si.S(o,s,m);var h=As;if(h&&o){var R=Xe(h).hoistableStyles,P=Bs(o);s=s||"default";var Y=R.get(P);if(!Y){var fe={loading:0,preload:null};if(Y=h.querySelector(xu(P)))fe.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":s},m),(m=Ya.get(P))&&mh(o,m);var Ce=Y=h.createElement("link");Qe(Ce),oa(Ce,"link",o),Ce._p=new Promise(function(Le,Ze){Ce.onload=Le,Ce.onerror=Ze}),Ce.addEventListener("load",function(){fe.loading|=1}),Ce.addEventListener("error",function(){fe.loading|=2}),fe.loading|=4,Af(Y,s,h)}Y={type:"stylesheet",instance:Y,count:1,state:fe},R.set(P,Y)}}}function AP(o,s){si.X(o,s);var m=As;if(m&&o){var h=Xe(m).hoistableScripts,R=Ls(o),P=h.get(R);P||(P=m.querySelector($u(R)),P||(o=g({src:o,async:!0},s),(s=Ya.get(R))&&vh(o,s),P=m.createElement("script"),Qe(P),oa(P,"link",o),m.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},h.set(R,P))}}function BP(o,s){si.M(o,s);var m=As;if(m&&o){var h=Xe(m).hoistableScripts,R=Ls(o),P=h.get(R);P||(P=m.querySelector($u(R)),P||(o=g({src:o,async:!0,type:"module"},s),(s=Ya.get(R))&&vh(o,s),P=m.createElement("script"),Qe(P),oa(P,"link",o),m.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},h.set(R,P))}}function p$(o,s,m,h){var R=(R=X.current)?zf(R):null;if(!R)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(s=Bs(m.href),m=Xe(R).hoistableStyles,h=m.get(s),h||(h={type:"style",instance:null,count:0,state:null},m.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){o=Bs(m.href);var P=Xe(R).hoistableStyles,Y=P.get(o);if(Y||(R=R.ownerDocument||R,Y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(o,Y),(P=R.querySelector(xu(o)))&&!P._p&&(Y.instance=P,Y.state.loading=5),Ya.has(o)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},Ya.set(o,m),P||LP(R,o,m,Y.state))),s&&h===null)throw Error(r(528,""));return Y}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=m.async,m=m.src,typeof m=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ls(m),m=Xe(R).hoistableScripts,h=m.get(s),h||(h={type:"script",instance:null,count:0,state:null},m.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Bs(o){return'href="'+tn(o)+'"'}function xu(o){return'link[rel="stylesheet"]['+o+"]"}function h$(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function LP(o,s,m,h){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=o.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),oa(s,"link",m),Qe(s),o.head.appendChild(s))}function Ls(o){return'[src="'+tn(o)+'"]'}function $u(o){return"script[async]"+o}function b$(o,s,m){if(s.count++,s.instance===null)switch(s.type){case"style":var h=o.querySelector('style[data-href~="'+tn(m.href)+'"]');if(h)return s.instance=h,Qe(h),h;var R=g({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return h=(o.ownerDocument||o).createElement("style"),Qe(h),oa(h,"style",R),Af(h,m.precedence,o),s.instance=h;case"stylesheet":R=Bs(m.href);var P=o.querySelector(xu(R));if(P)return s.state.loading|=4,s.instance=P,Qe(P),P;h=h$(m),(R=Ya.get(R))&&mh(h,R),P=(o.ownerDocument||o).createElement("link"),Qe(P);var Y=P;return Y._p=new Promise(function(fe,Ce){Y.onload=fe,Y.onerror=Ce}),oa(P,"link",h),s.state.loading|=4,Af(P,m.precedence,o),s.instance=P;case"script":return P=Ls(m.src),(R=o.querySelector($u(P)))?(s.instance=R,Qe(R),R):(h=m,(R=Ya.get(P))&&(h=g({},m),vh(h,R)),o=o.ownerDocument||o,R=o.createElement("script"),Qe(R),oa(R,"link",h),o.head.appendChild(R),s.instance=R);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,Af(h,m.precedence,o));return s.instance}function Af(o,s,m){for(var h=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),R=h.length?h[h.length-1]:null,P=R,Y=0;Y<h.length;Y++){var fe=h[Y];if(fe.dataset.precedence===s)P=fe;else if(P!==R)break}P?P.parentNode.insertBefore(o,P.nextSibling):(s=m.nodeType===9?m.head:m,s.insertBefore(o,s.firstChild))}function mh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function vh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var Bf=null;function y$(o,s,m){if(Bf===null){var h=new Map,R=Bf=new Map;R.set(m,h)}else R=Bf,h=R.get(m),h||(h=new Map,R.set(m,h));if(h.has(o))return h;for(h.set(o,null),m=m.getElementsByTagName(o),R=0;R<m.length;R++){var P=m[R];if(!(P[Kt]||P[dt]||o==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var Y=P.getAttribute(s)||"";Y=o+Y;var fe=h.get(Y);fe?fe.push(P):h.set(Y,[P])}}return h}function C$(o,s,m){o=o.ownerDocument||o,o.head.insertBefore(m,s==="title"?o.querySelector("head > title"):null)}function kP(o,s,m){if(m===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return o=s.disabled,typeof s.precedence=="string"&&o==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function S$(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function HP(o,s,m,h){if(m.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var R=Bs(h.href),P=s.querySelector(xu(R));if(P){s=P._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=Lf.bind(o),s.then(o,o)),m.state.loading|=4,m.instance=P,Qe(P);return}P=s.ownerDocument||s,h=h$(h),(R=Ya.get(R))&&mh(h,R),P=P.createElement("link"),Qe(P);var Y=P;Y._p=new Promise(function(fe,Ce){Y.onload=fe,Y.onerror=Ce}),oa(P,"link",h),m.instance=P}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(m,s),(s=m.state.preload)&&(m.state.loading&3)===0&&(o.count++,m=Lf.bind(o),s.addEventListener("load",m),s.addEventListener("error",m))}}var gh=0;function FP(o,s){return o.stylesheets&&o.count===0&&Hf(o,o.stylesheets),0<o.count||0<o.imgCount?function(m){var h=setTimeout(function(){if(o.stylesheets&&Hf(o,o.stylesheets),o.unsuspend){var P=o.unsuspend;o.unsuspend=null,P()}},6e4+s);0<o.imgBytes&&gh===0&&(gh=62500*xP());var R=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Hf(o,o.stylesheets),o.unsuspend)){var P=o.unsuspend;o.unsuspend=null,P()}},(o.imgBytes>gh?50:800)+s);return o.unsuspend=m,function(){o.unsuspend=null,clearTimeout(h),clearTimeout(R)}}:null}function Lf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var kf=null;function Hf(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,kf=new Map,s.forEach(VP,o),kf=null,Lf.call(o))}function VP(o,s){if(!(s.state.loading&4)){var m=kf.get(o);if(m)var h=m.get(null);else{m=new Map,kf.set(o,m);for(var R=o.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<R.length;P++){var Y=R[P];(Y.nodeName==="LINK"||Y.getAttribute("media")!=="not all")&&(m.set(Y.dataset.precedence,Y),h=Y)}h&&m.set(null,h)}R=s.instance,Y=R.getAttribute("data-precedence"),P=m.get(Y)||h,P===h&&m.set(null,R),m.set(Y,R),this.count++,h=Lf.bind(this),R.addEventListener("load",h),R.addEventListener("error",h),P?P.parentNode.insertBefore(R,P.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(R,o.firstChild)),s.state.loading|=4}}var wu={$$typeof:w,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function WP(o,s,m,h,R,P,Y,fe,Ce){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xt(0),this.hiddenUpdates=xt(null),this.identifierPrefix=h,this.onUncaughtError=R,this.onCaughtError=P,this.onRecoverableError=Y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ce,this.incompleteTransitions=new Map}function x$(o,s,m,h,R,P,Y,fe,Ce,Le,Ze,ot){return o=new WP(o,s,m,Y,Ce,Le,Ze,ot,fe),s=1,P===!0&&(s|=24),P=Na(3,null,null,s),o.current=P,P.stateNode=o,s=Gg(),s.refCount++,o.pooledCache=s,s.refCount++,P.memoizedState={element:h,isDehydrated:m,cache:s},Zg(P),o}function $$(o){return o?(o=ps,o):ps}function w$(o,s,m,h,R,P){R=$$(R),h.context===null?h.context=R:h.pendingContext=R,h=Ri(s),h.payload={element:m},P=P===void 0?null:P,P!==null&&(h.callback=P),m=Ii(o,h,s),m!==null&&($a(m,o,s),nu(m,o,s))}function E$(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var m=o.retryLane;o.retryLane=m!==0&&m<s?m:s}}function ph(o,s){E$(o,s),(o=o.alternate)&&E$(o,s)}function O$(o){if(o.tag===13||o.tag===31){var s=bl(o,67108864);s!==null&&$a(s,o,67108864),ph(o,67108864)}}function R$(o){if(o.tag===13||o.tag===31){var s=Da();s=Ue(s);var m=bl(o,s);m!==null&&$a(m,o,s),ph(o,s)}}var Ff=!0;function KP(o,s,m,h){var R=D.T;D.T=null;var P=L.p;try{L.p=2,hh(o,s,m,h)}finally{L.p=P,D.T=R}}function UP(o,s,m,h){var R=D.T;D.T=null;var P=L.p;try{L.p=8,hh(o,s,m,h)}finally{L.p=P,D.T=R}}function hh(o,s,m,h){if(Ff){var R=bh(h);if(R===null)rh(o,s,h,Vf,m),N$(o,h);else if(GP(R,o,s,m,h))h.stopPropagation();else if(N$(o,h),s&4&&-1<qP.indexOf(o)){for(;R!==null;){var P=yt(R);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var Y=tt(P.pendingLanes);if(Y!==0){var fe=P;for(fe.pendingLanes|=2,fe.entangledLanes|=2;Y;){var Ce=1<<31-be(Y);fe.entanglements[1]|=Ce,Y&=~Ce}_o(P),(Hn&6)===0&&(Ef=ye()+500,bu(0))}}break;case 31:case 13:fe=bl(P,2),fe!==null&&$a(fe,P,2),Rf(),ph(P,2)}if(P=bh(h),P===null&&rh(o,s,h,Vf,m),P===R)break;R=P}R!==null&&h.stopPropagation()}else rh(o,s,h,null,m)}}function bh(o){return o=Kr(o),yh(o)}var Vf=null;function yh(o){if(Vf=null,o=lt(o),o!==null){var s=i(o);if(s===null)o=null;else{var m=s.tag;if(m===13){if(o=c(s),o!==null)return o;o=null}else if(m===31){if(o=u(s),o!==null)return o;o=null}else if(m===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return Vf=o,null}function I$(o){switch(o){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ze()){case Ae:return 2;case Ye:return 8;case Ke:case Fe:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Ch=!1,Li=null,ki=null,Hi=null,Eu=new Map,Ou=new Map,Fi=[],qP="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".split(" ");function N$(o,s){switch(o){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":ki=null;break;case"mouseover":case"mouseout":Hi=null;break;case"pointerover":case"pointerout":Eu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ou.delete(s.pointerId)}}function Ru(o,s,m,h,R,P){return o===null||o.nativeEvent!==P?(o={blockedOn:s,domEventName:m,eventSystemFlags:h,nativeEvent:P,targetContainers:[R]},s!==null&&(s=yt(s),s!==null&&O$(s)),o):(o.eventSystemFlags|=h,s=o.targetContainers,R!==null&&s.indexOf(R)===-1&&s.push(R),o)}function GP(o,s,m,h,R){switch(s){case"focusin":return Li=Ru(Li,o,s,m,h,R),!0;case"dragenter":return ki=Ru(ki,o,s,m,h,R),!0;case"mouseover":return Hi=Ru(Hi,o,s,m,h,R),!0;case"pointerover":var P=R.pointerId;return Eu.set(P,Ru(Eu.get(P)||null,o,s,m,h,R)),!0;case"gotpointercapture":return P=R.pointerId,Ou.set(P,Ru(Ou.get(P)||null,o,s,m,h,R)),!0}return!1}function M$(o){var s=lt(o.target);if(s!==null){var m=i(s);if(m!==null){if(s=m.tag,s===13){if(s=c(m),s!==null){o.blockedOn=s,Et(o.priority,function(){R$(m)});return}}else if(s===31){if(s=u(m),s!==null){o.blockedOn=s,Et(o.priority,function(){R$(m)});return}}else if(s===3&&m.stateNode.current.memoizedState.isDehydrated){o.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Wf(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var m=bh(o.nativeEvent);if(m===null){m=o.nativeEvent;var h=new m.constructor(m.type,m);Lr=h,m.target.dispatchEvent(h),Lr=null}else return s=yt(m),s!==null&&O$(s),o.blockedOn=m,!1;s.shift()}return!0}function T$(o,s,m){Wf(o)&&m.delete(s)}function XP(){Ch=!1,Li!==null&&Wf(Li)&&(Li=null),ki!==null&&Wf(ki)&&(ki=null),Hi!==null&&Wf(Hi)&&(Hi=null),Eu.forEach(T$),Ou.forEach(T$)}function Kf(o,s){o.blockedOn===s&&(o.blockedOn=null,Ch||(Ch=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,XP)))}var Uf=null;function j$(o){Uf!==o&&(Uf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Uf===o&&(Uf=null);for(var s=0;s<o.length;s+=3){var m=o[s],h=o[s+1],R=o[s+2];if(typeof h!="function"){if(yh(h||m)===null)continue;break}var P=yt(m);P!==null&&(o.splice(s,3),s-=3,bp(P,{pending:!0,data:R,method:m.method,action:h},h,R))}}))}function ks(o){function s(Ce){return Kf(Ce,o)}Li!==null&&Kf(Li,o),ki!==null&&Kf(ki,o),Hi!==null&&Kf(Hi,o),Eu.forEach(s),Ou.forEach(s);for(var m=0;m<Fi.length;m++){var h=Fi[m];h.blockedOn===o&&(h.blockedOn=null)}for(;0<Fi.length&&(m=Fi[0],m.blockedOn===null);)M$(m),m.blockedOn===null&&Fi.shift();if(m=(o.ownerDocument||o).$$reactFormReplay,m!=null)for(h=0;h<m.length;h+=3){var R=m[h],P=m[h+1],Y=R[it]||null;if(typeof P=="function")Y||j$(m);else if(Y){var fe=null;if(P&&P.hasAttribute("formAction")){if(R=P,Y=P[it]||null)fe=Y.formAction;else if(yh(R)!==null)continue}else fe=Y.action;typeof fe=="function"?m[h+1]=fe:(m.splice(h,3),h-=3),j$(m)}}}function P$(){function o(P){P.canIntercept&&P.info==="react-transition"&&P.intercept({handler:function(){return new Promise(function(Y){return R=Y})},focusReset:"manual",scroll:"manual"})}function s(){R!==null&&(R(),R=null),h||setTimeout(m,20)}function m(){if(!h&&!navigation.transition){var P=navigation.currentEntry;P&&P.url!=null&&navigation.navigate(P.url,{state:P.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,R=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(m,100),function(){h=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),R!==null&&(R(),R=null)}}}function Sh(o){this._internalRoot=o}qf.prototype.render=Sh.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var m=s.current,h=Da();w$(m,h,o,s,null,null)},qf.prototype.unmount=Sh.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;w$(o.current,2,null,o,null,null),Rf(),s[Dt]=null}};function qf(o){this._internalRoot=o}qf.prototype.unstable_scheduleHydration=function(o){if(o){var s=It();o={blockedOn:null,target:o,priority:s};for(var m=0;m<Fi.length&&s!==0&&s<Fi[m].priority;m++);Fi.splice(m,0,o),m===0&&M$(o)}};var D$=t.version;if(D$!=="19.2.7")throw Error(r(527,D$,"19.2.7"));L.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(s),o=o!==null?v(o):null,o=o===null?null:o.stateNode,o};var YP={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gf.isDisabled&&Gf.supportsFiber)try{_e=Gf.inject(YP),Ee=Gf}catch{}}return Nu.createRoot=function(o,s){if(!a(o))throw Error(r(299));var m=!1,h="",R=H1,P=F1,Y=V1;return s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(R=s.onUncaughtError),s.onCaughtError!==void 0&&(P=s.onCaughtError),s.onRecoverableError!==void 0&&(Y=s.onRecoverableError)),s=x$(o,1,!1,null,null,m,h,null,R,P,Y,P$),o[Dt]=s.current,nh(o),new Sh(s)},Nu.hydrateRoot=function(o,s,m){if(!a(o))throw Error(r(299));var h=!1,R="",P=H1,Y=F1,fe=V1,Ce=null;return m!=null&&(m.unstable_strictMode===!0&&(h=!0),m.identifierPrefix!==void 0&&(R=m.identifierPrefix),m.onUncaughtError!==void 0&&(P=m.onUncaughtError),m.onCaughtError!==void 0&&(Y=m.onCaughtError),m.onRecoverableError!==void 0&&(fe=m.onRecoverableError),m.formState!==void 0&&(Ce=m.formState)),s=x$(o,1,!0,s,m??null,h,R,Ce,P,Y,fe,P$),s.context=$$(null),m=s.current,h=Da(),h=Ue(h),R=Ri(h),R.callback=null,Ii(m,R,h),m=h,s.current.lanes=m,st(s,m),_o(s),o[Dt]=s.current,nh(o),new qf(s)},Nu.version="19.2.7",Nu}var W$;function o6(){if(W$)return wh.exports;W$=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wh.exports=a6(),wh.exports}var i6=o6(),Ih={exports:{}};/*!
|
|
50
|
+
Copyright (c) 2018 Jed Watson.
|
|
51
|
+
Licensed under the MIT License (MIT), see
|
|
52
|
+
http://jedwatson.github.io/classnames
|
|
53
|
+
*/var K$;function l6(){return K$||(K$=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(i=a(i,r(u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var c="";for(var u in i)t.call(i,u)&&i[u]&&(c=a(c,u));return c}function a(i,c){return c?i?i+" "+c:i+c:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ih)),Ih.exports}var s6=l6();const ce=Eo(s6);function xe(){return xe=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},xe.apply(null,arguments)}function $t(e){"@babel/helpers - typeof";return $t=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},$t(e)}var c6=Symbol.for("react.element"),u6=Symbol.for("react.transitional.element"),d6=Symbol.for("react.fragment");function pR(e){return e&&$t(e)==="object"&&(e.$$typeof===c6||e.$$typeof===u6)&&e.type===d6}function Fr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ve.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Fr(r)):pR(r)&&r.props?n=n.concat(Fr(r.props.children,t)):n.push(r))}),n}var W0={},f6=function(t){};function m6(e,t){}function v6(e,t){}function g6(){W0={}}function hR(e,t,n){!t&&!W0[n]&&(e(!1,n),W0[n]=!0)}function Vn(e,t){hR(m6,e,t)}function p6(e,t){hR(v6,e,t)}Vn.preMessage=f6;Vn.resetWarned=g6;Vn.noteOnce=p6;function h6(e,t){if($t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bR(e){var t=h6(e,"string");return $t(t)=="symbol"?t:t+""}function J(e,t,n){return(t=bR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U$(Object(n),!0).forEach(function(r){J(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ro=gR();const ad=Eo(ro),b6=vR({__proto__:null,default:ad},[ro]);function od(e){return e instanceof HTMLElement||e instanceof SVGElement}function $d(e){return e&&$t(e)==="object"&&od(e.nativeElement)?e.nativeElement:od(e)?e:null}function wm(e){var t=$d(e);if(t)return t;if(e instanceof ve.Component){var n;return(n=ad.findDOMNode)===null||n===void 0?void 0:n.call(ad,e)}return null}var Nh={exports:{}},Fn={};/**
|
|
54
|
+
* @license React
|
|
55
|
+
* react-is.production.min.js
|
|
56
|
+
*
|
|
57
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the MIT license found in the
|
|
60
|
+
* LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/var q$;function y6(){if(q$)return Fn;q$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function S(b){if(typeof b=="object"&&b!==null){var x=b.$$typeof;switch(x){case e:switch(b=b.type,b){case n:case a:case r:case f:case v:return b;default:switch(b=b&&b.$$typeof,b){case u:case c:case d:case p:case g:case i:return b;default:return x}}case t:return x}}}return Fn.ContextConsumer=c,Fn.ContextProvider=i,Fn.Element=e,Fn.ForwardRef=d,Fn.Fragment=n,Fn.Lazy=p,Fn.Memo=g,Fn.Portal=t,Fn.Profiler=a,Fn.StrictMode=r,Fn.Suspense=f,Fn.SuspenseList=v,Fn.isAsyncMode=function(){return!1},Fn.isConcurrentMode=function(){return!1},Fn.isContextConsumer=function(b){return S(b)===c},Fn.isContextProvider=function(b){return S(b)===i},Fn.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Fn.isForwardRef=function(b){return S(b)===d},Fn.isFragment=function(b){return S(b)===n},Fn.isLazy=function(b){return S(b)===p},Fn.isMemo=function(b){return S(b)===g},Fn.isPortal=function(b){return S(b)===t},Fn.isProfiler=function(b){return S(b)===a},Fn.isStrictMode=function(b){return S(b)===r},Fn.isSuspense=function(b){return S(b)===f},Fn.isSuspenseList=function(b){return S(b)===v},Fn.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===f||b===v||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===g||b.$$typeof===i||b.$$typeof===c||b.$$typeof===d||b.$$typeof===C||b.getModuleId!==void 0)},Fn.typeOf=S,Fn}var G$;function C6(){return G$||(G$=1,Nh.exports=y6()),Nh.exports}var Mh=C6();function es(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 S6=Number(l.version.split(".")[0]),id=function(t,n){typeof t=="function"?t(n):$t(t)==="object"&&t&&"current"in t&&(t.current=n)},Ar=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(i){n.forEach(function(c){id(c,i)})}},bi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return es(function(){return Ar.apply(void 0,n)},n,function(a,i){return a.length!==i.length||a.every(function(c,u){return c!==i[u]})})},So=function(t){var n,r;if(!t)return!1;if($y(t)&&S6>=19)return!0;var a=Mh.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==Mh.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Mh.ForwardRef)};function $y(e){return l.isValidElement(e)&&!pR(e)}var x6=function(t){return $y(t)&&So(t)},sl=function(t){if(t&&$y(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},K0=l.createContext(null);function $6(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),i=l.useContext(K0),c=l.useCallback(function(u,d,f){r.current+=1;var v=r.current;a.current.push({size:u,element:d,data:f}),Promise.resolve().then(function(){v===r.current&&(n==null||n(a.current),a.current=[])}),i==null||i(u,d,f)},[n,i]);return l.createElement(K0.Provider,{value:c},t)}var yR=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,i){return a[0]===n?(r=i,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,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 a=0,i=this.__entries__;a<i.length;a++){var c=i[a];n.call(r,c[1],c[0])}},t})()})(),U0=typeof window<"u"&&typeof document<"u"&&window.document===document,Km=(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")()})(),w6=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Km):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),E6=2;function O6(e,t){var n=!1,r=!1,a=0;function i(){n&&(n=!1,e()),r&&u()}function c(){w6(i)}function u(){var d=Date.now();if(n){if(d-a<E6)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=d}return u}var R6=20,I6=["top","right","bottom","left","width","height","size","weight"],N6=typeof MutationObserver<"u",M6=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=O6(this.refresh.bind(this),R6)}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(){!U0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),N6?(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(){!U0||!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,a=I6.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),CR=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e}),uc=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Km}),SR=$v(0,0,0,0);function Um(e){return parseFloat(e)||0}function X$(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var i=e["border-"+a+"-width"];return r+Um(i)},0)}function T6(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var i=a[r],c=e["padding-"+i];n[i]=Um(c)}return n}function j6(e){var t=e.getBBox();return $v(0,0,t.width,t.height)}function P6(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return SR;var r=uc(e).getComputedStyle(e),a=T6(r),i=a.left+a.right,c=a.top+a.bottom,u=Um(r.width),d=Um(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+i)!==t&&(u-=X$(r,"left","right")+i),Math.round(d+c)!==n&&(d-=X$(r,"top","bottom")+c)),!_6(e)){var f=Math.round(u+i)-t,v=Math.round(d+c)-n;Math.abs(f)!==1&&(u-=f),Math.abs(v)!==1&&(d-=v)}return $v(a.left,a.top,u,d)}var D6=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof uc(e).SVGGraphicsElement}:function(e){return e instanceof uc(e).SVGElement&&typeof e.getBBox=="function"}})();function _6(e){return e===uc(e).document.documentElement}function z6(e){return U0?D6(e)?j6(e):P6(e):SR}function A6(e){var t=e.x,n=e.y,r=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(i.prototype);return CR(c,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),c}function $v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var B6=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$v(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=z6(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})(),L6=(function(){function e(t,n){var r=A6(n);CR(this,{target:t,contentRect:r})}return e})(),k6=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new yR,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 uc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new B6(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 uc(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 L6(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})(),xR=typeof WeakMap<"u"?new WeakMap:new yR,$R=(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=M6.getInstance(),r=new k6(t,n,this);xR.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){$R.prototype[e]=function(){var t;return(t=xR.get(this))[e].apply(t,arguments)}});var H6=(function(){return typeof Km.ResizeObserver<"u"?Km.ResizeObserver:$R})(),Zi=new Map;function F6(e){e.forEach(function(t){var n,r=t.target;(n=Zi.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var wR=new H6(F6);function V6(e,t){Zi.has(e)||(Zi.set(e,new Set),wR.observe(e)),Zi.get(e).add(t)}function W6(e,t){Zi.has(e)&&(Zi.get(e).delete(t),Zi.get(e).size||(wR.unobserve(e),Zi.delete(e)))}function or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y$(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,bR(r.key),r)}}function ir(e,t,n){return t&&Y$(e.prototype,t),n&&Y$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ld(e,t)}function Fa(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&&ld(e,t)}function Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ul(e)}function wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wv=function(){return!!e})()}function St(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ER(e,t){if(t&&($t(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return St(e)}function so(e){var t=wv();return function(){var n,r=Ul(e);if(t){var a=Ul(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ER(this,n)}}var K6=(function(e){Fa(n,e);var t=so(n);function n(){return or(this,n),t.apply(this,arguments)}return ir(n,[{key:"render",value:function(){return this.props.children}}]),n})(l.Component);function U6(e,t){var n=e.children,r=e.disabled,a=l.useRef(null),i=l.useRef(null),c=l.useContext(K0),u=typeof n=="function",d=u?n(a):n,f=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!u&&l.isValidElement(d)&&So(d),g=v?sl(d):null,p=bi(g,a),y=function(){var x;return wm(a.current)||(a.current&&$t(a.current)==="object"?wm((x=a.current)===null||x===void 0?void 0:x.nativeElement):null)||wm(i.current)};l.useImperativeHandle(t,function(){return y()});var C=l.useRef(e);C.current=e;var S=l.useCallback(function(b){var x=C.current,$=x.onResize,w=x.data,E=b.getBoundingClientRect(),O=E.width,N=E.height,I=b.offsetWidth,M=b.offsetHeight,T=Math.floor(O),j=Math.floor(N);if(f.current.width!==T||f.current.height!==j||f.current.offsetWidth!==I||f.current.offsetHeight!==M){var _={width:T,height:j,offsetWidth:I,offsetHeight:M};f.current=_;var B=I===Math.round(O)?O:I,H=M===Math.round(N)?N:M,A=ae(ae({},_),{},{offsetWidth:B,offsetHeight:H});c==null||c(A,b,w),$&&Promise.resolve().then(function(){$(A,b)})}},[]);return l.useEffect(function(){var b=y();return b&&!r&&V6(b,S),function(){return W6(b,S)}},[a.current,r]),l.createElement(K6,{ref:i},v?l.cloneElement(d,{ref:p}):d)}var q6=l.forwardRef(U6),G6="rc-observer-key";function X6(e,t){var n=e.children,r=typeof n=="function"?[n]:Fr(n);return r.map(function(a,i){var c=(a==null?void 0:a.key)||"".concat(G6,"-").concat(i);return l.createElement(q6,xe({},e,{key:c,ref:i===0?t:void 0}),a)})}var la=l.forwardRef(X6);la.Collection=$6;function q0(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 Y6(e){if(Array.isArray(e))return q0(e)}function OR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wy(e,t){if(e){if(typeof e=="string")return q0(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)?q0(e,t):void 0}}function Q6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e){return Y6(e)||OR(e)||wy(e)||Q6()}var RR=function(t){return+setTimeout(t,16)},IR=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(RR=function(t){return window.requestAnimationFrame(t)},IR=function(t){return window.cancelAnimationFrame(t)});var Q$=0,Ey=new Map;function NR(e){Ey.delete(e)}var Gt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Q$+=1;var r=Q$;function a(i){if(i===0)NR(r),t();else{var c=RR(function(){a(i-1)});Ey.set(r,c)}}return a(n),r};Gt.cancel=function(e){var t=Ey.get(e);return NR(e),IR(t)};function Z6(e){let t=null;const n=a=>()=>{t=null,e.apply(void 0,Te(a))},r=(...a)=>{t===null&&(t=Gt(n(a)))};return r.cancel=()=>{Gt.cancel(t),t=null},r}function MR(e){if(Array.isArray(e))return e}function J6(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,c,u=[],d=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(v){f=!0,a=v}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}function TR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e,t){return MR(e)||J6(e,t)||wy(e,t)||TR()}function sd(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 Yr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function G0(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 Z$="data-rc-order",J$="data-rc-priority",eD="rc-util-key",X0=new Map;function jR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):eD}function Ev(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function tD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Oy(e){return Array.from((X0.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function PR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yr())return null;var n=t.csp,r=t.prepend,a=t.priority,i=a===void 0?0:a,c=tD(r),u=c==="prependQueue",d=document.createElement("style");d.setAttribute(Z$,c),u&&i&&d.setAttribute(J$,"".concat(i)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var f=Ev(t),v=f.firstChild;if(r){if(u){var g=(t.styles||Oy(f)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Z$)))return!1;var y=Number(p.getAttribute(J$)||0);return i>=y});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,v)}else f.appendChild(d);return d}function DR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ev(t);return(t.styles||Oy(n)).find(function(r){return r.getAttribute(jR(t))===e})}function cd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=DR(e,t);if(n){var r=Ev(t);r.removeChild(n)}}function nD(e,t){var n=X0.get(e);if(!n||!G0(document,n)){var r=PR("",t),a=r.parentNode;X0.set(e,a),e.removeChild(r)}}function di(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ev(n),a=Oy(r),i=ae(ae({},n),{},{styles:a});nD(r,i);var c=DR(t,i);if(c){var u,d;if((u=i.csp)!==null&&u!==void 0&&u.nonce&&c.nonce!==((d=i.csp)===null||d===void 0?void 0:d.nonce)){var f;c.nonce=(f=i.csp)===null||f===void 0?void 0:f.nonce}return c.innerHTML!==e&&(c.innerHTML=e),c}var v=PR(e,i);return v.setAttribute(jR(i),t),v}function rD(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 At(e,t){if(e==null)return{};var n,r,a=rD(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function xo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(i,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(i);if(Vn(!d,"Warning: There may be circular references"),d)return!1;if(i===c)return!0;if(n&&u>1)return!1;r.add(i);var f=u+1;if(Array.isArray(i)){if(!Array.isArray(c)||i.length!==c.length)return!1;for(var v=0;v<i.length;v++)if(!a(i[v],c[v],f))return!1;return!0}if(i&&c&&$t(i)==="object"&&$t(c)==="object"){var g=Object.keys(i);return g.length!==Object.keys(c).length?!1:g.every(function(p){return a(i[p],c[p],f)})}return!1}return a(e,t)}var aD="%";function Y0(e){return e.join(aD)}var oD=(function(){function e(t){or(this,e),J(this,"instanceId",void 0),J(this,"cache",new Map),J(this,"extracted",new Set),this.instanceId=t}return ir(e,[{key:"get",value:function(n){return this.opGet(Y0(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Y0(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),i=r(a);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e})(),dc="data-token-hash",po="data-css-hash",Ji="__cssinjs_instance__";function iD(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(po,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[Ji]=a[Ji]||e,a[Ji]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(po,"]"))).forEach(function(a){var i=a.getAttribute(po);if(r[i]){if(a[Ji]===e){var c;(c=a.parentNode)===null||c===void 0||c.removeChild(a)}}else r[i]=!0})}return new oD(e)}var wd=l.createContext({hashPriority:"low",cache:iD(),defaultCache:!0});function lD(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 Ry=(function(){function e(){or(this,e),J(this,"cache",void 0),J(this,"keys",void 0),J(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ir(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c={map:this.cache};return n.forEach(function(u){if(!c)c=void 0;else{var d;c=(d=c)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(u)}}),(r=c)!==null&&r!==void 0&&r.value&&i&&(c.value[1]=this.cacheCallTimes++),(a=c)===null||a===void 0?void 0:a.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 a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(f,v){var g=me(f,2),p=g[1];return a.internalGet(v)[1]<p?[v,a.internalGet(v)[1]]:f},[this.keys[0],this.cacheCallTimes]),c=me(i,1),u=c[0];this.delete(u)}this.keys.push(n)}var d=this.cache;n.forEach(function(f,v){if(v===n.length-1)d.set(f,{value:[r,a.cacheCallTimes++]});else{var g=d.get(f);g?g.map||(g.map=new Map):d.set(f,{map:new Map}),d=d.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var i;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(i=a.value)===null||i===void 0?void 0:i[0]}var c=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),c}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!lD(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();J(Ry,"MAX_CACHE_SIZE",20);J(Ry,"MAX_CACHE_OFFSET",5);var ew=0,_R=(function(){function e(t){or(this,e),J(this,"derivatives",void 0),J(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ew,t.length===0&&(t.length>0,void 0),ew+=1}return ir(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),Th=new Ry;function Q0(e){var t=Array.isArray(e)?e:[e];return Th.has(t)||Th.set(t,new _R(t)),Th.get(t)}var sD=new WeakMap,jh={};function cD(e,t){for(var n=sD,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(jh)||n.set(jh,e()),n.get(jh)}var tw=new WeakMap;function Yu(e){var t=tw.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof _R?t+=r.id:r&&$t(r)==="object"?t+=Yu(r):t+=r}),t=sd(t),tw.set(e,t)),t}function nw(e,t){return sd("".concat(t,"_").concat(Yu(e)))}var Z0=Yr();function re(e){return typeof e=="number"?"".concat(e,"px"):e}function qm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=ae(ae({},r),{},J(J({},dc,t),po,n)),c=Object.keys(i).map(function(u){var d=i[u];return d?"".concat(u,'="').concat(d,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var Em=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()},uD=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(a){var i=me(a,2),c=i[0],u=i[1];return"".concat(c,":").concat(u,";")}).join(""),"}"):""},zR=function(t,n,r){var a={},i={};return Object.entries(t).forEach(function(c){var u,d,f=me(c,2),v=f[0],g=f[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[v])i[v]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[v])){var p,y=Em(v,r==null?void 0:r.prefix);a[y]=typeof g=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[v])?"".concat(g,"px"):String(g),i[v]="var(".concat(y,")")}}),[i,uD(a,n,{scope:r==null?void 0:r.scope})]},rw=Yr()?l.useLayoutEffect:l.useEffect,nn=function(t,n){var r=l.useRef(!0);rw(function(){return t(r.current)},n),rw(function(){return r.current=!1,function(){r.current=!0}},[])},Vl=function(t,n){nn(function(r){if(!r)return t()},n)},dD=ae({},xv),aw=dD.useInsertionEffect,fD=function(t,n,r){l.useMemo(t,r),nn(function(){return n(!0)},r)},mD=aw?function(e,t,n){return aw(function(){return e(),t()},n)}:fD,vD=ae({},xv),gD=vD.useInsertionEffect,pD=function(t){var n=[],r=!1;function a(i){r||n.push(i)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),a},hD=function(){return function(t){t()}},bD=typeof gD<"u"?pD:hD;function Iy(e,t,n,r,a){var i=l.useContext(wd),c=i.cache,u=[e].concat(Te(t)),d=Y0(u),f=bD([d]),v=function(C){c.opUpdate(d,function(S){var b=S||[void 0,void 0],x=me(b,2),$=x[0],w=$===void 0?0:$,E=x[1],O=E,N=O||n(),I=[w,N];return C?C(I):I})};l.useMemo(function(){v()},[d]);var g=c.opGet(d),p=g[1];return mD(function(){a==null||a(p)},function(y){return v(function(C){var S=me(C,2),b=S[0],x=S[1];return y&&b===0&&(a==null||a(p)),[b+1,x]}),function(){c.opUpdate(d,function(C){var S=C||[],b=me(S,2),x=b[0],$=x===void 0?0:x,w=b[1],E=$-1;return E===0?(f(function(){(y||!c.opGet(d))&&(r==null||r(w,!1))}),null):[$-1,w]})}},[d]),p}var yD={},CD="css",_l=new Map;function SD(e){_l.set(e,(_l.get(e)||0)+1)}function xD(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(dc,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ji]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var $D=0;function wD(e,t){_l.set(e,(_l.get(e)||0)-1);var n=new Set;_l.forEach(function(r,a){r<=0&&n.add(a)}),_l.size-n.size>$D&&n.forEach(function(r){xD(r,t),_l.delete(r)})}var ED=function(t,n,r,a){var i=r.getDerivativeToken(t),c=ae(ae({},i),n);return a&&(c=a(c)),c},AR="token";function OD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(wd),a=r.cache.instanceId,i=r.container,c=n.salt,u=c===void 0?"":c,d=n.override,f=d===void 0?yD:d,v=n.formatToken,g=n.getComputedToken,p=n.cssVar,y=cD(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),C=Yu(y),S=Yu(f),b=p?Yu(p):"",x=Iy(AR,[u,e.id,C,S,b],function(){var $,w=g?g(y,f,e):ED(y,f,e,v),E=ae({},w),O="";if(p){var N=zR(w,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),I=me(N,2);w=I[0],O=I[1]}var M=nw(w,u);w._tokenKey=M,E._tokenKey=nw(E,u);var T=($=p==null?void 0:p.key)!==null&&$!==void 0?$:M;w._themeKey=T,SD(T);var j="".concat(CD,"-").concat(sd(M));return w._hashId=j,[w,j,E,O,(p==null?void 0:p.key)||""]},function($){wD($[0]._themeKey,a)},function($){var w=me($,4),E=w[0],O=w[3];if(p&&O){var N=di(O,sd("css-variables-".concat(E._themeKey)),{mark:po,prepend:"queue",attachTo:i,priority:-999});N[Ji]=a,N.setAttribute(dc,E._themeKey)}});return x}var RD=function(t,n,r){var a=me(t,5),i=a[2],c=a[3],u=a[4],d=r||{},f=d.plain;if(!c)return null;var v=i._tokenKey,g=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=qm(c,u,v,p,f);return[g,v,y]},ID={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},BR="comm",LR="rule",kR="decl",ND="@import",MD="@namespace",TD="@keyframes",jD="@layer",PD=Math.abs,Qu=String.fromCharCode;function HR(e){return e.trim()}function J0(e,t,n){return e.replace(t,n)}function ac(e,t){return e.charCodeAt(t)|0}function fc(e,t,n){return e.slice(t,n)}function Bo(e){return e.length}function DD(e){return e.length}function Xf(e,t){return t.push(e),e}var Ov=1,mc=1,FR=0,ao=0,Dr=0,xc="";function Ny(e,t,n,r,a,i,c,u){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:Ov,column:mc,length:c,return:"",siblings:u}}function _D(){return Dr}function zD(){return Dr=ao>0?ac(xc,--ao):0,mc--,Dr===10&&(mc=1,Ov--),Dr}function ho(){return Dr=ao<FR?ac(xc,ao++):0,mc++,Dr===10&&(mc=1,Ov++),Dr}function el(){return ac(xc,ao)}function Om(){return ao}function Rv(e,t){return fc(xc,e,t)}function ud(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 AD(e){return Ov=mc=1,FR=Bo(xc=e),ao=0,[]}function BD(e){return xc="",e}function Ph(e){return HR(Rv(ao-1,eb(e===91?e+2:e===40?e+1:e)))}function LD(e){for(;(Dr=el())&&Dr<33;)ho();return ud(e)>2||ud(Dr)>3?"":" "}function kD(e,t){for(;--t&&ho()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return Rv(e,Om()+(t<6&&el()==32&&ho()==32))}function eb(e){for(;ho();)switch(Dr){case e:return ao;case 34:case 39:e!==34&&e!==39&&eb(Dr);break;case 40:e===41&&eb(e);break;case 92:ho();break}return ao}function HD(e,t){for(;ho()&&e+Dr!==57;)if(e+Dr===84&&el()===47)break;return"/*"+Rv(t,ao-1)+"*"+Qu(e===47?e:ho())}function FD(e){for(;!ud(el());)ho();return Rv(e,ao)}function VD(e){return BD(Rm("",null,null,null,[""],e=AD(e),0,[0],e))}function Rm(e,t,n,r,a,i,c,u,d){for(var f=0,v=0,g=c,p=0,y=0,C=0,S=1,b=1,x=1,$=0,w=0,E="",O=a,N=i,I=r,M=E;b;)switch(C=w,w=ho()){case 40:C!=108&&ac(M,g-1)==58?($++,M+="("):M+=Ph(w);break;case 41:$--,M+=")";break;case 34:case 39:case 91:M+=Ph(w);break;case 9:case 10:case 13:case 32:if($>0){M+=Qu(w);break}M+=LD(C);break;case 92:M+=kD(Om()-1,7);continue;case 47:switch(el()){case 42:case 47:Xf(WD(HD(ho(),Om()),t,n,d),d),(ud(C||1)==5||ud(el()||1)==5)&&Bo(M)&&fc(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*S:u[f++]=Bo(M)*x;case 125*S:case 59:case 0:if($>0&&w){M+=Qu(w);break}switch(w){case 0:case 125:b=0;case 59+v:x==-1&&(M=J0(M,/\f/g,"")),y>0&&(Bo(M)-g||S===0)&&Xf(y>32?iw(M+";",r,n,g-1,d):iw(J0(M," ","")+";",r,n,g-2,d),d);break;case 59:M+=";";default:if(Xf(I=ow(M,t,n,f,v,a,u,E,O=[],N=[],g,i),i),w===123)if(v===0)Rm(M,t,I,I,O,i,g,u,N);else{switch(p){case 99:if(ac(M,3)===110)break;case 108:if(ac(M,2)===97)break;default:v=0;case 100:case 109:case 115:}v?Rm(e,I,I,r&&Xf(ow(e,I,I,0,0,a,u,E,a,O=[],g,N),N),a,N,g,u,r?O:N):Rm(M,I,I,I,[""],N,0,u,N)}}f=v=y=0,S=x=1,E=M="",g=c;break;case 58:g=1+Bo(M),y=C;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&zD()==125)continue}switch(M+=Qu(w),w*S){case 38:x=v>0?1:(M+="\f",-1);break;case 44:if($>0)break;u[f++]=(Bo(M)-1)*x,x=1;break;case 64:el()===45&&(M+=Ph(ho())),p=el(),v=g=Bo(E=M+=FD(Om())),w++;break;case 45:C===45&&Bo(M)==2&&(S=0)}}return i}function ow(e,t,n,r,a,i,c,u,d,f,v,g){for(var p=a-1,y=a===0?i:[""],C=DD(y),S=0,b=0,x=0;S<r;++S)for(var $=0,w=fc(e,p+1,p=PD(b=c[S])),E=e;$<C;++$)(E=HR(b>0?y[$]+" "+w:J0(w,/&\f/g,y[$])))&&(d[x++]=E);return Ny(e,t,n,a===0?LR:u,d,f,v,g)}function WD(e,t,n,r){return Ny(e,t,n,BR,Qu(_D()),fc(e,2,-2),0,r)}function iw(e,t,n,r,a){return Ny(e,t,n,kR,fc(e,0,r),fc(e,r+1,-1),r,a)}function tb(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function KD(e,t,n,r){switch(e.type){case jD:if(e.children.length)break;case ND:case MD:case kR:return e.return=e.return||e.value;case BR:return"";case TD:return e.return=e.value+"{"+tb(e.children,r)+"}";case LR:if(!Bo(e.value=e.props.join(",")))return""}return Bo(n=tb(e.children,r))?e.return=e.value+"{"+n+"}":""}var lw="data-ant-cssinjs-cache-path",VR="_FILE_STYLE__",Wl,WR=!0;function UD(){if(!Wl&&(Wl={},Yr())){var e=document.createElement("div");e.className=lw,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(a){var i=a.split(":"),c=me(i,2),u=c[0],d=c[1];Wl[u]=d});var n=document.querySelector("style[".concat(lw,"]"));if(n){var r;WR=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function qD(e){return UD(),!!Wl[e]}function GD(e){var t=Wl[e],n=null;if(t&&Yr())if(WR)n=VR;else{var r=document.querySelector("style[".concat(po,'="').concat(Wl[e],'"]'));r?n=r.innerHTML:delete Wl[e]}return[n,t]}var XD="_skip_check_",KR="_multi_value_";function Im(e){var t=tb(VD(e),KD);return t.replace(/\{%%%\:[^;];}/g,";")}function YD(e){return $t(e)==="object"&&e&&(XD in e||KR in e)}function sw(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(c){var u,d=c.trim().split(/\s+/),f=d[0]||"",v=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(v).concat(a).concat(f.slice(v.length)),[f].concat(Te(d.slice(1))).join(" ")});return i.join(",")}var QD=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:[]},a=r.root,i=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer;n.path;var f=n.hashPriority,v=n.transformers,g=v===void 0?[]:v;n.linters;var p="",y={};function C(x){var $=x.getName(u);if(!y[$]){var w=e(x.style,n,{root:!1,parentSelectors:c}),E=me(w,1),O=E[0];y[$]="@keyframes ".concat(x.getName(u)).concat(O)}}function S(x){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(w){Array.isArray(w)?S(w,$):w&&$.push(w)}),$}var b=S(Array.isArray(t)?t:[t]);return b.forEach(function(x){var $=typeof x=="string"&&!a?{}:x;if(typeof $=="string")p+="".concat($,`
|
|
64
|
+
`);else if($._keyframe)C($);else{var w=g.reduce(function(E,O){var N;return(O==null||(N=O.visit)===null||N===void 0?void 0:N.call(O,E))||E},$);Object.keys(w).forEach(function(E){var O=w[E];if($t(O)==="object"&&O&&(E!=="animationName"||!O._keyframe)&&!YD(O)){var N=!1,I=E.trim(),M=!1;(a||i)&&u?I.startsWith("@")?N=!0:I==="&"?I=sw("",u,f):I=sw(E,u,f):a&&!u&&(I==="&"||I==="")&&(I="",M=!0);var T=e(O,n,{root:M,injectHash:N,parentSelectors:[].concat(Te(c),[I])}),j=me(T,2),_=j[0],B=j[1];y=ae(ae({},y),B),p+="".concat(I).concat(_)}else{let F=function(D,L){var W=D.replace(/[A-Z]/g,function(V){return"-".concat(V.toLowerCase())}),G=L;!ID[D]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),D==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(C(L),G=L.getName(u)),p+="".concat(W,":").concat(G,";")};var H,A=(H=O==null?void 0:O.value)!==null&&H!==void 0?H:O;$t(O)==="object"&&O!==null&&O!==void 0&&O[KR]&&Array.isArray(A)?A.forEach(function(D){F(E,D)}):F(E,A)}})}}),a?d&&(p&&(p="@layer ".concat(d.name," {").concat(p,"}")),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(d.name,";")}).join(`
|
|
65
|
+
`))):p="{".concat(p,"}"),[p,y]};function UR(e,t){return sd("".concat(e.join("%")).concat(t))}function ZD(){return null}var qR="style";function nb(e,t){var n=e.token,r=e.path,a=e.hashId,i=e.layer,c=e.nonce,u=e.clientOnly,d=e.order,f=d===void 0?0:d,v=l.useContext(wd),g=v.autoClear;v.mock;var p=v.defaultCache,y=v.hashPriority,C=v.container,S=v.ssrInline,b=v.transformers,x=v.linters,$=v.cache,w=v.layer,E=n._tokenKey,O=[E];w&&O.push("layer"),O.push.apply(O,Te(r));var N=Z0,I=Iy(qR,O,function(){var B=O.join("|");if(qD(B)){var H=GD(B),A=me(H,2),F=A[0],D=A[1];if(F)return[F,E,D,{},u,f]}var L=t(),W=QD(L,{hashId:a,hashPriority:y,layer:w?i:void 0,path:r.join("-"),transformers:b,linters:x}),G=me(W,2),V=G[0],k=G[1],U=Im(V),K=UR(O,U);return[U,E,K,k,u,f]},function(B,H){var A=me(B,3),F=A[2];(H||g)&&Z0&&cd(F,{mark:po,attachTo:C})},function(B){var H=me(B,4),A=H[0];H[1];var F=H[2],D=H[3];if(N&&A!==VR){var L={mark:po,prepend:w?!1:"queue",attachTo:C,priority:f},W=typeof c=="function"?c():c;W&&(L.csp={nonce:W});var G=[],V=[];Object.keys(D).forEach(function(U){U.startsWith("@layer")?G.push(U):V.push(U)}),G.forEach(function(U){di(Im(D[U]),"_layer-".concat(U),ae(ae({},L),{},{prepend:!0}))});var k=di(A,F,L);k[Ji]=$.instanceId,k.setAttribute(dc,E),V.forEach(function(U){di(Im(D[U]),"_effect-".concat(U),L)})}}),M=me(I,3),T=M[0],j=M[1],_=M[2];return function(B){var H;return!S||N||!p?H=l.createElement(ZD,null):H=l.createElement("style",xe({},J(J({},dc,j),po,_),{dangerouslySetInnerHTML:{__html:T}})),l.createElement(l.Fragment,null,H,B)}}var JD=function(t,n,r){var a=me(t,6),i=a[0],c=a[1],u=a[2],d=a[3],f=a[4],v=a[5],g=r||{},p=g.plain;if(f)return null;var y=i,C={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return y=qm(i,c,u,C,p),d&&Object.keys(d).forEach(function(S){if(!n[S]){n[S]=!0;var b=Im(d[S]),x=qm(b,c,"_effect-".concat(S),C,p);S.startsWith("@layer")?y=x+y:y+=x}}),[v,u,y]},GR="cssVar",e8=function(t,n){var r=t.key,a=t.prefix,i=t.unitless,c=t.ignore,u=t.token,d=t.scope,f=d===void 0?"":d,v=l.useContext(wd),g=v.cache.instanceId,p=v.container,y=u._tokenKey,C=[].concat(Te(t.path),[r,f,y]),S=Iy(GR,C,function(){var b=n(),x=zR(b,r,{prefix:a,unitless:i,ignore:c,scope:f}),$=me(x,2),w=$[0],E=$[1],O=UR(C,E);return[w,E,O,r]},function(b){var x=me(b,3),$=x[2];Z0&&cd($,{mark:po,attachTo:p})},function(b){var x=me(b,3),$=x[1],w=x[2];if($){var E=di($,w,{mark:po,prepend:"queue",attachTo:p,priority:-999});E[Ji]=g,E.setAttribute(dc,r)}});return S},t8=function(t,n,r){var a=me(t,4),i=a[1],c=a[2],u=a[3],d=r||{},f=d.plain;if(!i)return null;var v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},p=qm(i,u,c,g,f);return[v,c,p]};J(J(J({},qR,JD),AR,RD),GR,t8);var Qt=(function(){function e(t,n){or(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=n}return ir(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 Hs(e){return e.notSplit=!0,e}Hs(["borderTop","borderBottom"]),Hs(["borderTop"]),Hs(["borderBottom"]),Hs(["borderLeft","borderRight"]),Hs(["borderLeft"]),Hs(["borderRight"]);var My=l.createContext({});function XR(e){return MR(e)||OR(e)||wy(e)||TR()}function ga(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function YR(e,t,n,r){if(!t.length)return n;var a=XR(t),i=a[0],c=a.slice(1),u;return!e&&typeof i=="number"?u=[]:Array.isArray(e)?u=Te(e):u=ae({},e),r&&n===void 0&&c.length===1?delete u[i][c[0]]:u[i]=YR(u[i],c,n,r),u}function to(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ga(e,t.slice(0,-1))?e:YR(e,t,n,r)}function n8(e){return $t(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function cw(e){return Array.isArray(e)?[]:{}}var r8=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ec(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=cw(t[0]);return t.forEach(function(a){function i(c,u){var d=new Set(u),f=ga(a,c),v=Array.isArray(f);if(v||n8(f)){if(!d.has(f)){d.add(f);var g=ga(r,c);v?r=to(r,c,[]):(!g||$t(g)!=="object")&&(r=to(r,c,cw(f))),r8(f).forEach(function(p){i([].concat(Te(c),[p]),d)})}}else r=to(r,c,f)}i([])}),r}function a8(){}const o8=l.createContext({}),Uo=()=>{const e=()=>{};return e.deprecated=a8,e},QR=l.createContext(void 0);var ZR={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"},i8={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},l8=ae(ae({},i8),{},{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 JR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Gm={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"]},l8),timePickerLocale:Object.assign({},JR)},_a="${label} is not a valid ${type}",oo={locale:"en",Pagination:ZR,DatePicker:Gm,TimePicker:JR,Calendar:Gm,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:_a,method:_a,array:_a,object:_a,number:_a,date:_a,boolean:_a,integer:_a,float:_a,regexp:_a,email:_a,url:_a,hex:_a},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 Nm=Object.assign({},oo.Modal),Mm=[];const uw=()=>Mm.reduce((e,t)=>Object.assign(Object.assign({},e),t),oo.Modal);function s8(e){if(e){const t=Object.assign({},e);return Mm.push(t),Nm=uw(),()=>{Mm=Mm.filter(n=>n!==t),Nm=uw()}}Nm=Object.assign({},oo.Modal)}function eI(){return Nm}const Ty=l.createContext(void 0),Ra=(e,t)=>{const n=l.useContext(Ty),r=l.useMemo(()=>{var i;const c=t||oo[e],u=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof c=="function"?c():c),u||{})},[e,t,n]),a=l.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?oo.locale:i},[n]);return[r,a]},c8="internalMark",u8=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>s8(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(Ty.Provider,{value:a},n)},tI={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"},dd=Object.assign(Object.assign({},tI),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
66
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
67
|
+
'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}),qr=Math.round;function Dh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const dw=(e,t,n)=>n===0?e:e/100;function Mu(e,t){const n=t||255;return e>n?n:e<0?0:e}class pn{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let i=function(c){return a.startsWith(c)};var r=i;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):i("rgb")?this.fromRgbString(a):i("hsl")?this.fromHslString(a):(i("hsv")||i("hsb"))&&this.fromHsvString(a)}else if(t instanceof pn)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=Mu(t.r),this.g=Mu(t.g),this.b=Mu(t.b),this.a=typeof t.a=="number"?Mu(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const c=i/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=qr(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 a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,i=u=>(r[u]-this[u])*a+this[u],c={r:qr(i("r")),g:qr(i("g")),b:qr(i("b")),a:qr(i("a")*100)/100};return this._c(c)}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),a=i=>qr((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("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 a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=qr(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=qr(this.getSaturation()*100),r=qr(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 a=this.clone();return a[t]=Mu(n,r),a}_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(a,i){return parseInt(n[a]+n[i||a],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}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const p=qr(r*255);this.r=p,this.g=p,this.b=p}let i=0,c=0,u=0;const d=t/60,f=(1-Math.abs(2*r-1))*n,v=f*(1-Math.abs(d%2-1));d>=0&&d<1?(i=f,c=v):d>=1&&d<2?(i=v,c=f):d>=2&&d<3?(c=f,u=v):d>=3&&d<4?(c=v,u=f):d>=4&&d<5?(i=v,u=f):d>=5&&d<6&&(i=f,u=v);const g=r-f/2;this.r=qr((i+g)*255),this.g=qr((c+g)*255),this.b=qr((u+g)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const i=qr(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const c=t/60,u=Math.floor(c),d=c-u,f=qr(r*(1-n)*255),v=qr(r*(1-n*d)*255),g=qr(r*(1-n*(1-d))*255);switch(u){case 0:this.g=g,this.b=f;break;case 1:this.r=v,this.b=f;break;case 2:this.r=f,this.b=g;break;case 3:this.r=f,this.g=v;break;case 4:this.r=g,this.g=f;break;case 5:default:this.g=f,this.b=v;break}}fromHsvString(t){const n=Dh(t,dw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Dh(t,dw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Dh(t,(r,a)=>a.includes("%")?qr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Yf=2,fw=.16,d8=.05,f8=.05,m8=.15,nI=5,rI=4,v8=[{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 mw(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Yf*t:Math.round(e.h)+Yf*t:r=n?Math.round(e.h)+Yf*t:Math.round(e.h)-Yf*t,r<0?r+=360:r>=360&&(r-=360),r}function vw(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-fw*t:t===rI?r=e.s+fw:r=e.s+d8*t,r>1&&(r=1),n&&t===nI&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function gw(e,t,n){var r;return n?r=e.v+f8*t:r=e.v-m8*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function fd(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new pn(e),a=r.toHsv(),i=nI;i>0;i-=1){var c=new pn({h:mw(a,i,!0),s:vw(a,i,!0),v:gw(a,i,!0)});n.push(c)}n.push(r);for(var u=1;u<=rI;u+=1){var d=new pn({h:mw(a,u),s:vw(a,u),v:gw(a,u)});n.push(d)}return t.theme==="dark"?v8.map(function(f){var v=f.index,g=f.amount;return new pn(t.backgroundColor||"#141414").mix(n[v],g).toHexString()}):n.map(function(f){return f.toHexString()})}var oc={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"},rb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];rb.primary=rb[5];var ab=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ab.primary=ab[5];var ob=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ob.primary=ob[5];var Xm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Xm.primary=Xm[5];var ib=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ib.primary=ib[5];var lb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];lb.primary=lb[5];var sb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];sb.primary=sb[5];var cb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];cb.primary=cb[5];var vc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];vc.primary=vc[5];var ub=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ub.primary=ub[5];var db=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];db.primary=db[5];var fb=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];fb.primary=fb[5];var mb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];mb.primary=mb[5];var _h={red:rb,volcano:ab,orange:ob,gold:Xm,yellow:ib,lime:lb,green:sb,cyan:cb,blue:vc,geekblue:ub,purple:db,magenta:fb,grey:mb};function g8(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:i,colorInfo:c,colorPrimary:u,colorBgBase:d,colorTextBase:f}=e,v=t(u),g=t(r),p=t(a),y=t(i),C=t(c),S=n(d,f),b=e.colorLink||e.colorInfo,x=t(b),$=new pn(y[1]).mix(new pn(y[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:$,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new pn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const p8=e=>{let t=e,n=e,r=e,a=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?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function h8(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=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:a+1},p8(r))}const b8=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Tm(e){return(e+8)/e}function y8(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,i=e*Math.pow(Math.E,a/5),c=r>1?Math.floor(i):Math.ceil(i);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Tm(n)}))}const C8=e=>{const t=y8(e),n=t.map(v=>v.size),r=t.map(v=>v.lineHeight),a=n[1],i=n[0],c=n[2],u=r[1],d=r[0],f=r[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:f,lineHeightSM:d,fontHeight:Math.round(u*a),fontHeightLG:Math.round(f*c),fontHeightSM:Math.round(d*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function S8(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 Qa=(e,t)=>new pn(e).setA(t).toRgbString(),Tu=(e,t)=>new pn(e).darken(t).toHexString(),x8=e=>{const t=fd(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]}},$8=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Qa(r,.88),colorTextSecondary:Qa(r,.65),colorTextTertiary:Qa(r,.45),colorTextQuaternary:Qa(r,.25),colorFill:Qa(r,.15),colorFillSecondary:Qa(r,.06),colorFillTertiary:Qa(r,.04),colorFillQuaternary:Qa(r,.02),colorBgSolid:Qa(r,1),colorBgSolidHover:Qa(r,.75),colorBgSolidActive:Qa(r,.95),colorBgLayout:Tu(n,4),colorBgContainer:Tu(n,0),colorBgElevated:Tu(n,0),colorBgSpotlight:Qa(r,.85),colorBgBlur:"transparent",colorBorder:Tu(n,15),colorBorderSecondary:Tu(n,6)}};function w8(e){oc.pink=oc.magenta,_h.pink=_h.magenta;const t=Object.keys(tI).map(n=>{const r=e[n]===oc[n]?_h[n]:fd(e[n]);return Array.from({length:10},()=>1).reduce((a,i,c)=>(a[`${n}-${c+1}`]=r[c],a[`${n}${c+1}`]=r[c],a),{})}).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),g8(e,{generateColorPalettes:x8,generateNeutralColorPalettes:$8})),C8(e.fontSize)),S8(e)),b8(e)),h8(e))}const aI=Q0(w8),vb={token:dd,override:{override:dd},hashed:!0},oI=ve.createContext(vb),md="ant",Iv="anticon",E8=["outlined","borderless","filled","underlined"],O8=(e,t)=>t||(e?`${md}-${e}`:md),Rt=l.createContext({getPrefixCls:O8,iconPrefixCls:Iv}),{Consumer:aoe}=Rt,pw={};function ur(e){const t=l.useContext(Rt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:pw,styles:pw},i),{getPrefixCls:n,direction:r,getPopupContainer:a})}const R8=`-ant-${Date.now()}-${Math.random()}`;function I8(e,t){const n={},r=(c,u)=>{let d=c.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},a=(c,u)=>{const d=new pn(c),f=fd(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=f[1],n[`${u}-color-hover`]=f[4],n[`${u}-color-active`]=f[6],n[`${u}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=f[0],n[`${u}-color-deprecated-border`]=f[2]};if(t.primaryColor){a(t.primaryColor,"primary");const c=new pn(t.primaryColor),u=fd(c.toRgbString());u.forEach((f,v)=>{n[`primary-${v+1}`]=f}),n["primary-color-deprecated-l-35"]=r(c,f=>f.lighten(35)),n["primary-color-deprecated-l-20"]=r(c,f=>f.lighten(20)),n["primary-color-deprecated-t-20"]=r(c,f=>f.tint(20)),n["primary-color-deprecated-t-50"]=r(c,f=>f.tint(50)),n["primary-color-deprecated-f-12"]=r(c,f=>f.setA(f.a*.12));const d=new pn(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,f=>f.setA(f.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,f=>f.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
68
|
+
:root {
|
|
69
|
+
${Object.keys(n).map(c=>`--${e}-${c}: ${n[c]};`).join(`
|
|
70
|
+
`)}
|
|
71
|
+
}
|
|
72
|
+
`.trim()}function N8(e,t){const n=I8(e,t);Yr()&&di(n,`${R8}-dynamic-theme`)}const _r=l.createContext(!1),jy=({children:e,disabled:t})=>{const n=l.useContext(_r);return l.createElement(_r.Provider,{value:t??n},e)},ql=l.createContext(void 0),M8=({children:e,size:t})=>{const n=l.useContext(ql);return l.createElement(ql.Provider,{value:t||n},e)};function T8(){const e=l.useContext(_r),t=l.useContext(ql);return{componentDisabled:e,componentSize:t}}var iI=ir(function e(){or(this,e)}),lI="CALC_UNIT",j8=new RegExp(lI,"g");function zh(e){return typeof e=="number"?"".concat(e).concat(lI):e}var P8=(function(e){Fa(n,e);var t=so(n);function n(r,a){var i;or(this,n),i=t.call(this),J(St(i),"result",""),J(St(i),"unitlessCssVar",void 0),J(St(i),"lowPriority",void 0);var c=$t(r);return i.unitlessCssVar=a,r instanceof n?i.result="(".concat(r.result,")"):c==="number"?i.result=zh(r):c==="string"&&(i.result=r),i}return ir(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(zh(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(zh(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var i=this,c=a||{},u=c.unit,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(f){return i.result.includes(f)})&&(d=!1),this.result=this.result.replace(j8,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(iI),D8=(function(e){Fa(n,e);var t=so(n);function n(r){var a;return or(this,n),a=t.call(this),J(St(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return ir(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(iI),_8=function(t,n){var r=t==="css"?P8:D8;return function(a){return new r(a,n)}},hw=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 qt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function Gl(e){var t=l.useRef(!1),n=l.useState(e),r=me(n,2),a=r[0],i=r[1];l.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function c(u,d){d&&t.current||i(u)}return[a,c]}function Ah(e){return e!==void 0}function bn(e,t){var n=t||{},r=n.defaultValue,a=n.value,i=n.onChange,c=n.postState,u=Gl(function(){return Ah(a)?a:Ah(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=me(u,2),f=d[0],v=d[1],g=a!==void 0?a:f,p=c?c(g):g,y=qt(i),C=Gl([g]),S=me(C,2),b=S[0],x=S[1];Vl(function(){var w=b[0];f!==w&&y(f,w)},[b]),Vl(function(){Ah(a)||v(a)},[a]);var $=qt(function(w,E){v(w,E),x([g],E)});return[p,$]}function bw(e,t,n,r){var a=ae({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(u){var d=me(u,2),f=d[0],v=d[1];if(a!=null&&a[f]||a!=null&&a[v]){var g;(g=a[v])!==null&&g!==void 0||(a[v]=a==null?void 0:a[f])}})}var c=ae(ae({},n),a);return Object.keys(c).forEach(function(u){c[u]===t[u]&&delete c[u]}),c}var sI=typeof CSSINJS_STATISTIC<"u",gb=!0;function rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!sI)return Object.assign.apply(Object,[{}].concat(t));gb=!1;var r={};return t.forEach(function(a){if($t(a)==="object"){var i=Object.keys(a);i.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),gb=!0,r}var yw={};function z8(){}var A8=function(t){var n,r=t,a=z8;return sI&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,u){if(gb){var d;(d=n)===null||d===void 0||d.add(u)}return c[u]}}),a=function(c,u){var d;yw[c]={global:Array.from(n),component:ae(ae({},(d=yw[c])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:a}};function Cw(e,t,n){if(typeof n=="function"){var r;return n(rn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function B8(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(i){return re(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(i){return re(i)}).join(","),")")}}}var L8=1e3*60*10,k8=(function(){function e(){or(this,e),J(this,"map",new Map),J(this,"objectIDMap",new WeakMap),J(this,"nextID",0),J(this,"lastAccessBeat",new Map),J(this,"accessBeat",0)}return ir(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(i){return i&&$t(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat($t(i),"_").concat(i)});return a.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(a,i){r-a>L8&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Sw=new k8;function H8(e,t){return ve.useMemo(function(){var n=Sw.get(t);if(n)return n;var r=e();return Sw.set(t,r),r},t)}var F8=function(){return{}};function V8(e){var t=e.useCSP,n=t===void 0?F8:t,r=e.useToken,a=e.usePrefix,i=e.getResetStyles,c=e.getCommonStyle,u=e.getCompUnitless;function d(p,y,C,S){var b=Array.isArray(p)?p[0]:p;function x(M){return"".concat(String(b)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var $=(S==null?void 0:S.unitless)||{},w=typeof u=="function"?u(p):{},E=ae(ae({},w),{},J({},x("zIndexPopup"),!0));Object.keys($).forEach(function(M){E[x(M)]=$[M]});var O=ae(ae({},S),{},{unitless:E,prefixToken:x}),N=v(p,y,C,O),I=f(b,C,O);return function(M){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,j=N(M,T),_=me(j,2),B=_[1],H=I(T),A=me(H,2),F=A[0],D=A[1];return[F,B,D]}}function f(p,y,C){var S=C.unitless,b=C.injectStyle,x=b===void 0?!0:b,$=C.prefixToken,w=C.ignore,E=function(I){var M=I.rootCls,T=I.cssVar,j=T===void 0?{}:T,_=r(),B=_.realToken;return e8({path:[p],prefix:j.prefix,key:j.key,unitless:S,ignore:w,token:B,scope:M},function(){var H=Cw(p,B,y),A=bw(p,B,H,{deprecatedTokens:C==null?void 0:C.deprecatedTokens});return Object.keys(H).forEach(function(F){A[$(F)]=A[F],delete A[F]}),A}),null},O=function(I){var M=r(),T=M.cssVar;return[function(j){return x&&T?ve.createElement(ve.Fragment,null,ve.createElement(E,{rootCls:I,cssVar:T,component:p}),j):j},T==null?void 0:T.key]};return O}function v(p,y,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],x=me(b,1),$=x[0],w=b.join("-"),E=e.layer||{name:"antd"};return function(O){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,I=r(),M=I.theme,T=I.realToken,j=I.hashId,_=I.token,B=I.cssVar,H=a(),A=H.rootPrefixCls,F=H.iconPrefixCls,D=n(),L=B?"css":"js",W=H8(function(){var q=new Set;return B&&Object.keys(S.unitless||{}).forEach(function(Z){q.add(Em(Z,B.prefix)),q.add(Em(Z,hw($,B.prefix)))}),_8(L,q)},[L,$,B==null?void 0:B.prefix]),G=B8(L),V=G.max,k=G.min,U={theme:M,token:_,hashId:j,nonce:function(){return D.nonce},clientOnly:S.clientOnly,layer:E,order:S.order||-999};typeof i=="function"&&nb(ae(ae({},U),{},{clientOnly:!1,path:["Shared",A]}),function(){return i(_,{prefix:{rootPrefixCls:A,iconPrefixCls:F},csp:D})});var K=nb(ae(ae({},U),{},{path:[w,O,F]}),function(){if(S.injectStyle===!1)return[];var q=A8(_),Z=q.token,X=q.flush,ee=Cw($,T,C),te=".".concat(O),oe=bw($,T,ee,{deprecatedTokens:S.deprecatedTokens});B&&ee&&$t(ee)==="object"&&Object.keys(ee).forEach(function(ie){ee[ie]="var(".concat(Em(ie,hw($,B.prefix)),")")});var le=rn(Z,{componentCls:te,prefixCls:O,iconCls:".".concat(F),antCls:".".concat(A),calc:W,max:V,min:k},B?ee:oe),ne=y(le,{hashId:j,prefixCls:O,rootPrefixCls:A,iconPrefixCls:F});X($,oe);var Q=typeof c=="function"?c(le,O,N,S.resetFont):null;return[S.resetStyle===!1?null:Q,ne]});return[K,j]}}function g(p,y,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=v(p,y,C,ae({resetStyle:!1,order:-998},S)),x=function(w){var E=w.prefixCls,O=w.rootCls,N=O===void 0?E:O;return b(E,N),null};return x}return{genStyleHooks:d,genSubStyleComponent:g,genComponentStyleHook:v}}const al=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],W8="5.29.3";function Bh(e){return e>=0&&e<=255}function Fu(e,t){const{r:n,g:r,b:a,a:i}=new pn(e).toRgb();if(i<1)return e;const{r:c,g:u,b:d}=new pn(t).toRgb();for(let f=.01;f<=1;f+=.01){const v=Math.round((n-c*(1-f))/f),g=Math.round((r-u*(1-f))/f),p=Math.round((a-d*(1-f))/f);if(Bh(v)&&Bh(g)&&Bh(p))return new pn({r:v,g,b:p,a:Math.round(f*100)/100}).toRgbString()}return new pn({r:n,g:r,b:a,a:1}).toRgbString()}var K8=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function cI(e){const{override:t}=e,n=K8(e,["override"]),r=Object.assign({},t);Object.keys(dd).forEach(p=>{delete r[p]});const a=Object.assign(Object.assign({},n),r),i=480,c=576,u=768,d=992,f=1200,v=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Fu(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Fu(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Fu(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Fu(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
73
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
74
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
75
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
76
|
+
`,boxShadowSecondary:`
|
|
77
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
78
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
79
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
80
|
+
`,boxShadowTertiary:`
|
|
81
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
82
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
83
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
84
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:v-1,screenXXL:v,screenXXLMin:v,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
85
|
+
0 1px 2px -2px ${new pn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
86
|
+
0 3px 6px 0 ${new pn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
87
|
+
0 5px 12px 4px ${new pn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
88
|
+
`,boxShadowDrawerRight:`
|
|
89
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
90
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
91
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
92
|
+
`,boxShadowDrawerLeft:`
|
|
93
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
94
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
95
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
96
|
+
`,boxShadowDrawerUp:`
|
|
97
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
98
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
99
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
100
|
+
`,boxShadowDrawerDown:`
|
|
101
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
102
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
103
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
104
|
+
`,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 xw=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const uI={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},U8={motionBase:!0,motionUnit:!0},q8={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},dI=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,i=xw(t,["override"]);let c=Object.assign(Object.assign({},r),{override:a});return c=cI(c),i&&Object.entries(i).forEach(([u,d])=>{const{theme:f}=d,v=xw(d,["theme"]);let g=v;f&&(g=dI(Object.assign(Object.assign({},c),v),{override:v},f)),c[u]=g}),c};function Zr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ve.useContext(oI),i=`${W8}-${t||""}`,c=n||aI,[u,d,f]=OD(c,[dd,e],{salt:i,override:r,getComputedToken:dI,formatToken:cI,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:uI,ignore:U8,preserve:q8}});return[c,f,t?d:"",u,a]}const io={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},fn=(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}),ts=()=>({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"}}),ko=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),G8=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"}}}),X8=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:a,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},u),c),{[a]:c})}},Ho=(e,t)=>({outline:`${re(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),lo=(e,t)=>({"&:focus-visible":Ho(e,t)}),fI=e=>({[`.${e}`]:Object.assign(Object.assign({},ts()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Py=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"},lo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:ln,genComponentStyleHook:mI,genSubStyleComponent:$c}=V8({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Zr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=l.useContext(Rt);return e??{}},getResetStyles:(e,t)=>{var n;const r=G8(e);return[r,{"&":r},fI((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Iv)]},getCommonStyle:X8,getCompUnitless:()=>uI});function Nv(e,t){return al.reduce((n,r)=>{const a=e[`${r}1`],i=e[`${r}3`],c=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:i,darkColor:c,textColor:u}))},{})}const Y8=(e,t)=>{const[n,r]=Zr();return nb({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>fI(e))},Q8=Object.assign({},xv),{useId:$w}=Q8,Z8=()=>"",J8=typeof $w>"u"?Z8:$w;function e_(e,t,n){var r;Uo();const a=e||{},i=a.inherit===!1||!t?Object.assign(Object.assign({},vb),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:vb.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=J8();return es(()=>{var u,d;if(!e)return t;const f=Object.assign({},i.components);Object.keys(e.components||{}).forEach(p=>{f[p]=Object.assign(Object.assign({},f[p]),e.components[p])});const v=`css-var-${c.replace(/:/g,"")}`,g=((u=a.cssVar)!==null&&u!==void 0?u:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:f,cssVar:g})},[a,i],(u,d)=>u.some((f,v)=>{const g=d[v];return!xo(f,g,!0)}))}var t_=["children"],vI=l.createContext({});function n_(e){var t=e.children,n=At(e,t_);return l.createElement(vI.Provider,{value:n},t)}var r_=(function(e){Fa(n,e);var t=so(n);function n(){return or(this,n),t.apply(this,arguments)}return ir(n,[{key:"render",value:function(){return this.props.children}}]),n})(l.Component);function a_(e){var t=l.useReducer(function(u){return u+1},0),n=me(t,2),r=n[1],a=l.useRef(e),i=qt(function(){return a.current}),c=qt(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[i,c]}var Gi="none",Qf="appear",Zf="enter",Jf="leave",ww="none",go="prepare",tc="start",nc="active",Dy="end",gI="prepared";function Ew(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 o_(e,t){var n={animationend:Ew("Animation","AnimationEnd"),transitionend:Ew("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var i_=o_(Yr(),typeof window<"u"?window:{}),pI={};if(Yr()){var l_=document.createElement("div");pI=l_.style}var em={};function hI(e){if(em[e])return em[e];var t=i_[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var i=n[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in pI)return em[e]=t[i],em[e]}return""}var bI=hI("animationend"),yI=hI("transitionend"),CI=!!(bI&&yI),Ow=bI||"animationend",Rw=yI||"transitionend";function Iw(e,t){if(!e)return null;if($t(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const s_=(function(e){var t=l.useRef();function n(a){a&&(a.removeEventListener(Rw,e),a.removeEventListener(Ow,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(Rw,e),a.addEventListener(Ow,e),t.current=a)}return l.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var SI=Yr()?l.useLayoutEffect:l.useEffect;const c_=(function(){var e=l.useRef(null);function t(){Gt.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Gt(function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)});e.current=i}return l.useEffect(function(){return function(){t()}},[]),[n,t]});var u_=[go,tc,nc,Dy],d_=[go,gI],xI=!1,f_=!0;function $I(e){return e===nc||e===Dy}const m_=(function(e,t,n){var r=Gl(ww),a=me(r,2),i=a[0],c=a[1],u=c_(),d=me(u,2),f=d[0],v=d[1];function g(){c(go,!0)}var p=t?d_:u_;return SI(function(){if(i!==ww&&i!==Dy){var y=p.indexOf(i),C=p[y+1],S=n(i);S===xI?c(C,!0):C&&f(function(b){function x(){b.isCanceled()||c(C,!0)}S===!0?x():Promise.resolve(S).then(x)})}},[e,i]),l.useEffect(function(){return function(){v()}},[]),[g,i]});function v_(e,t,n,r){var a=r.motionEnter,i=a===void 0?!0:a,c=r.motionAppear,u=c===void 0?!0:c,d=r.motionLeave,f=d===void 0?!0:d,v=r.motionDeadline,g=r.motionLeaveImmediately,p=r.onAppearPrepare,y=r.onEnterPrepare,C=r.onLeavePrepare,S=r.onAppearStart,b=r.onEnterStart,x=r.onLeaveStart,$=r.onAppearActive,w=r.onEnterActive,E=r.onLeaveActive,O=r.onAppearEnd,N=r.onEnterEnd,I=r.onLeaveEnd,M=r.onVisibleChanged,T=Gl(),j=me(T,2),_=j[0],B=j[1],H=a_(Gi),A=me(H,2),F=A[0],D=A[1],L=Gl(null),W=me(L,2),G=W[0],V=W[1],k=F(),U=l.useRef(!1),K=l.useRef(null);function q(){return n()}var Z=l.useRef(!1);function X(){D(Gi),V(null,!0)}var ee=qt(function(pe){var Ie=F();if(Ie!==Gi){var we=q();if(!(pe&&!pe.deadline&&pe.target!==we)){var ye=Z.current,ze;Ie===Qf&&ye?ze=O==null?void 0:O(we,pe):Ie===Zf&&ye?ze=N==null?void 0:N(we,pe):Ie===Jf&&ye&&(ze=I==null?void 0:I(we,pe)),ye&&ze!==!1&&X()}}}),te=s_(ee),oe=me(te,1),le=oe[0],ne=function(Ie){switch(Ie){case Qf:return J(J(J({},go,p),tc,S),nc,$);case Zf:return J(J(J({},go,y),tc,b),nc,w);case Jf:return J(J(J({},go,C),tc,x),nc,E);default:return{}}},Q=l.useMemo(function(){return ne(k)},[k]),ie=m_(k,!e,function(pe){if(pe===go){var Ie=Q[go];return Ie?Ie(q()):xI}if(se in Q){var we;V(((we=Q[se])===null||we===void 0?void 0:we.call(Q,q(),null))||null)}return se===nc&&k!==Gi&&(le(q()),v>0&&(clearTimeout(K.current),K.current=setTimeout(function(){ee({deadline:!0})},v))),se===gI&&X(),f_}),ue=me(ie,2),de=ue[0],se=ue[1],ge=$I(se);Z.current=ge;var he=l.useRef(null);SI(function(){if(!(U.current&&he.current===t)){B(t);var pe=U.current;U.current=!0;var Ie;!pe&&t&&u&&(Ie=Qf),pe&&t&&i&&(Ie=Zf),(pe&&!t&&f||!pe&&g&&!t&&f)&&(Ie=Jf);var we=ne(Ie);Ie&&(e||we[go])?(D(Ie),de()):D(Gi),he.current=t}},[t]),l.useEffect(function(){(k===Qf&&!u||k===Zf&&!i||k===Jf&&!f)&&D(Gi)},[u,i,f]),l.useEffect(function(){return function(){U.current=!1,clearTimeout(K.current)}},[]);var Oe=l.useRef(!1);l.useEffect(function(){_&&(Oe.current=!0),_!==void 0&&k===Gi&&((Oe.current||_)&&(M==null||M(_)),Oe.current=!0)},[_,k]);var Re=G;return Q[go]&&se===tc&&(Re=ae({transition:"none"},Re)),[k,se,Re,_??t]}function g_(e){var t=e;$t(e)==="object"&&(t=e.transitionSupport);function n(a,i){return!!(a.motionName&&t&&i!==!1)}var r=l.forwardRef(function(a,i){var c=a.visible,u=c===void 0?!0:c,d=a.removeOnLeave,f=d===void 0?!0:d,v=a.forceRender,g=a.children,p=a.motionName,y=a.leavedClassName,C=a.eventProps,S=l.useContext(vI),b=S.motion,x=n(a,b),$=l.useRef(),w=l.useRef();function E(){try{return $.current instanceof HTMLElement?$.current:wm(w.current)}catch{return null}}var O=v_(x,u,E,a),N=me(O,4),I=N[0],M=N[1],T=N[2],j=N[3],_=l.useRef(j);j&&(_.current=!0);var B=l.useCallback(function(W){$.current=W,id(i,W)},[i]),H,A=ae(ae({},C),{},{visible:u});if(!g)H=null;else if(I===Gi)j?H=g(ae({},A),B):!f&&_.current&&y?H=g(ae(ae({},A),{},{className:y}),B):v||!f&&!y?H=g(ae(ae({},A),{},{style:{display:"none"}}),B):H=null;else{var F;M===go?F="prepare":$I(M)?F="active":M===tc&&(F="start");var D=Iw(p,"".concat(I,"-").concat(F));H=g(ae(ae({},A),{},{className:ce(Iw(p,I),J(J({},D,D&&F),p,typeof p=="string")),style:T}),B)}if(l.isValidElement(H)&&So(H)){var L=sl(H);L||(H=l.cloneElement(H,{ref:B}))}return l.createElement(r_,{ref:w},H)});return r.displayName="CSSMotion",r}const Jr=g_(CI);var pb="add",hb="keep",bb="remove",Lh="removed";function p_(e){var t;return e&&$t(e)==="object"&&"key"in e?t=e:t={key:e},ae(ae({},t),{},{key:String(t.key)})}function yb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(p_)}function h_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,i=yb(e),c=yb(t);i.forEach(function(f){for(var v=!1,g=r;g<a;g+=1){var p=c[g];if(p.key===f.key){r<g&&(n=n.concat(c.slice(r,g).map(function(y){return ae(ae({},y),{},{status:pb})})),r=g),n.push(ae(ae({},p),{},{status:hb})),r+=1,v=!0;break}}v||n.push(ae(ae({},f),{},{status:bb}))}),r<a&&(n=n.concat(c.slice(r).map(function(f){return ae(ae({},f),{},{status:pb})})));var u={};n.forEach(function(f){var v=f.key;u[v]=(u[v]||0)+1});var d=Object.keys(u).filter(function(f){return u[f]>1});return d.forEach(function(f){n=n.filter(function(v){var g=v.key,p=v.status;return g!==f||p!==bb}),n.forEach(function(v){v.key===f&&(v.status=hb)})}),n}var b_=["component","children","onVisibleChanged","onAllRemoved"],y_=["status"],C_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function S_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr,n=(function(r){Fa(i,r);var a=so(i);function i(){var c;or(this,i);for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=a.call.apply(a,[this].concat(d)),J(St(c),"state",{keyEntities:[]}),J(St(c),"removeKey",function(v){c.setState(function(g){var p=g.keyEntities.map(function(y){return y.key!==v?y:ae(ae({},y),{},{status:Lh})});return{keyEntities:p}},function(){var g=c.state.keyEntities,p=g.filter(function(y){var C=y.status;return C!==Lh}).length;p===0&&c.props.onAllRemoved&&c.props.onAllRemoved()})}),c}return ir(i,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,f=this.props,v=f.component,g=f.children,p=f.onVisibleChanged;f.onAllRemoved;var y=At(f,b_),C=v||l.Fragment,S={};return C_.forEach(function(b){S[b]=y[b],delete y[b]}),delete y.keys,l.createElement(C,y,d.map(function(b,x){var $=b.status,w=At(b,y_),E=$===pb||$===hb;return l.createElement(t,xe({},S,{key:w.key,visible:E,eventProps:w,onVisibleChanged:function(N){p==null||p(N,{key:w.key}),N||u.removeKey(w.key)}}),function(O,N){return g(ae(ae({},O),{},{index:x}),N)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var f=u.keys,v=d.keyEntities,g=yb(f),p=h_(v,g);return{keyEntities:p.filter(function(y){var C=v.find(function(S){var b=S.key;return y.key===b});return!(C&&C.status===Lh&&y.status===bb)})}}}]),i})(l.Component);return J(n,"defaultProps",{component:"div"}),n}const _y=S_(CI),Nw=l.createContext(!0);function x_(e){const t=l.useContext(Nw),{children:n}=e,[,r]=Zr(),{motion:a}=r,i=l.useRef(!1);return i.current||(i.current=t!==a),i.current?l.createElement(Nw.Provider,{value:a},l.createElement(n_,{motion:a},n)):n}const $_=()=>null;var w_=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const E_=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ym,wI,EI,OI;function jm(){return Ym||md}function O_(){return wI||Iv}function R_(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const I_=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Ym=t),n!==void 0&&(wI=n),"holderRender"in e&&(OI=a),r&&(R_(r)?N8(jm(),r):EI=r)},RI=()=>({getPrefixCls:(e,t)=>t||(e?`${jm()}-${e}`:jm()),getIconPrefixCls:O_,getRootPrefixCls:()=>Ym||jm(),getTheme:()=>EI,holderRender:OI}),N_=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:i,form:c,locale:u,componentSize:d,direction:f,space:v,splitter:g,virtual:p,dropdownMatchSelectWidth:y,popupMatchSelectWidth:C,popupOverflow:S,legacyLocale:b,parentContext:x,iconPrefixCls:$,theme:w,componentDisabled:E,segmented:O,statistic:N,spin:I,calendar:M,carousel:T,cascader:j,collapse:_,typography:B,checkbox:H,descriptions:A,divider:F,drawer:D,skeleton:L,steps:W,image:G,layout:V,list:k,mentions:U,modal:K,progress:q,result:Z,slider:X,breadcrumb:ee,menu:te,pagination:oe,input:le,textArea:ne,empty:Q,badge:ie,radio:ue,rate:de,switch:se,transfer:ge,avatar:he,message:Oe,tag:Re,table:pe,card:Ie,tabs:we,timeline:ye,timePicker:ze,upload:Ae,notification:Ye,tree:Ke,colorPicker:Fe,datePicker:Ge,rangePicker:je,flex:$e,wave:_e,dropdown:Ee,warning:Pe,tour:be,tooltip:Se,popover:Me,popconfirm:ke,floatButton:et,floatButtonGroup:ht,variant:We,inputNumber:tt,treeSelect:ut}=e,rt=l.useCallback((Et,Ht)=>{const{prefixCls:dt}=e;if(Ht)return Ht;const it=dt||x.getPrefixCls("");return Et?`${it}-${Et}`:it},[x.getPrefixCls,e.prefixCls]),gt=$||x.iconPrefixCls||Iv,Mt=n||x.csp;Y8(gt,Mt);const xt=e_(w,x.theme,{prefixCls:rt("")}),st={csp:Mt,autoInsertSpaceInButton:r,alert:a,anchor:i,locale:u||b,direction:f,space:v,splitter:g,virtual:p,popupMatchSelectWidth:C??y,popupOverflow:S,getPrefixCls:rt,iconPrefixCls:gt,theme:xt,segmented:O,statistic:N,spin:I,calendar:M,carousel:T,cascader:j,collapse:_,typography:B,checkbox:H,descriptions:A,divider:F,drawer:D,skeleton:L,steps:W,image:G,input:le,textArea:ne,layout:V,list:k,mentions:U,modal:K,progress:q,result:Z,slider:X,breadcrumb:ee,menu:te,pagination:oe,empty:Q,badge:ie,radio:ue,rate:de,switch:se,transfer:ge,avatar:he,message:Oe,tag:Re,table:pe,card:Ie,tabs:we,timeline:ye,timePicker:ze,upload:Ae,notification:Ye,tree:Ke,colorPicker:Fe,datePicker:Ge,rangePicker:je,flex:$e,wave:_e,dropdown:Ee,warning:Pe,tour:be,tooltip:Se,popover:Me,popconfirm:ke,floatButton:et,floatButtonGroup:ht,variant:We,inputNumber:tt,treeSelect:ut},Ct=Object.assign({},x);Object.keys(st).forEach(Et=>{st[Et]!==void 0&&(Ct[Et]=st[Et])}),E_.forEach(Et=>{const Ht=e[Et];Ht&&(Ct[Et]=Ht)}),typeof r<"u"&&(Ct.button=Object.assign({autoInsertSpace:r},Ct.button));const bt=es(()=>Ct,Ct,(Et,Ht)=>{const dt=Object.keys(Et),it=Object.keys(Ht);return dt.length!==it.length||dt.some(Dt=>Et[Dt]!==Ht[Dt])}),{layer:Je}=l.useContext(wd),Ve=l.useMemo(()=>({prefixCls:gt,csp:Mt,layer:Je?"antd":void 0}),[gt,Mt,Je]);let Ue=l.createElement(l.Fragment,null,l.createElement($_,{dropdownMatchSelectWidth:y}),t);const ft=l.useMemo(()=>{var Et,Ht,dt,it;return ec(((Et=oo.Form)===null||Et===void 0?void 0:Et.defaultValidateMessages)||{},((dt=(Ht=bt.locale)===null||Ht===void 0?void 0:Ht.Form)===null||dt===void 0?void 0:dt.defaultValidateMessages)||{},((it=bt.form)===null||it===void 0?void 0:it.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[bt,c==null?void 0:c.validateMessages]);Object.keys(ft).length>0&&(Ue=l.createElement(QR.Provider,{value:ft},Ue)),u&&(Ue=l.createElement(u8,{locale:u,_ANT_MARK__:c8},Ue)),Ue=l.createElement(My.Provider,{value:Ve},Ue),d&&(Ue=l.createElement(M8,{size:d},Ue)),Ue=l.createElement(x_,null,Ue);const It=l.useMemo(()=>{const Et=xt||{},{algorithm:Ht,token:dt,components:it,cssVar:Dt}=Et,Wt=w_(Et,["algorithm","token","components","cssVar"]),en=Ht&&(!Array.isArray(Ht)||Ht.length>0)?Q0(Ht):aI,Xt={};Object.entries(it||{}).forEach(([Kt,sn])=>{const lt=Object.assign({},sn);"algorithm"in lt&&(lt.algorithm===!0?lt.theme=en:(Array.isArray(lt.algorithm)||typeof lt.algorithm=="function")&&(lt.theme=Q0(lt.algorithm)),delete lt.algorithm),Xt[Kt]=lt});const vn=Object.assign(Object.assign({},dd),dt);return Object.assign(Object.assign({},Wt),{theme:en,token:vn,components:Xt,override:Object.assign({override:vn},Xt),cssVar:Dt})},[xt]);return w&&(Ue=l.createElement(oI.Provider,{value:It},Ue)),bt.warning&&(Ue=l.createElement(o8.Provider,{value:bt.warning},Ue)),E!==void 0&&(Ue=l.createElement(jy,{disabled:E},Ue)),l.createElement(Rt.Provider,{value:bt},Ue)},Oo=e=>{const t=l.useContext(Rt),n=l.useContext(Ty);return l.createElement(N_,Object.assign({parentContext:t,legacyLocale:n},e))};Oo.ConfigContext=Rt;Oo.SizeContext=ql;Oo.config=I_;Oo.useConfig=T8;Object.defineProperty(Oo,"SizeContext",{get:()=>ql});var M_={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 II(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function T_(e){return II(e)instanceof ShadowRoot}function Qm(e){return T_(e)?II(e):null}function j_(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function P_(e,t){Vn(e,"[@ant-design/icons] ".concat(t))}function Mw(e){return $t(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&($t(e.icon)==="object"||typeof e.icon=="function")}function Tw(){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[j_(n)]=r}return t},{})}function Cb(e,t,n){return n?ve.createElement(e.tag,ae(ae({key:t},Tw(e.attrs)),n),(e.children||[]).map(function(r,a){return Cb(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ve.createElement(e.tag,ae({key:t},Tw(e.attrs)),(e.children||[]).map(function(r,a){return Cb(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function NI(e){return fd(e)[0]}function MI(e){return e?Array.isArray(e)?e:[e]:[]}var D_=`
|
|
105
|
+
.anticon {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
color: inherit;
|
|
109
|
+
font-style: normal;
|
|
110
|
+
line-height: 0;
|
|
111
|
+
text-align: center;
|
|
112
|
+
text-transform: none;
|
|
113
|
+
vertical-align: -0.125em;
|
|
114
|
+
text-rendering: optimizeLegibility;
|
|
115
|
+
-webkit-font-smoothing: antialiased;
|
|
116
|
+
-moz-osx-font-smoothing: grayscale;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.anticon > * {
|
|
120
|
+
line-height: 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.anticon svg {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.anticon::before {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.anticon .anticon-icon {
|
|
132
|
+
display: block;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.anticon[tabindex] {
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.anticon-spin::before,
|
|
140
|
+
.anticon-spin {
|
|
141
|
+
display: inline-block;
|
|
142
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
143
|
+
animation: loadingCircle 1s infinite linear;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@-webkit-keyframes loadingCircle {
|
|
147
|
+
100% {
|
|
148
|
+
-webkit-transform: rotate(360deg);
|
|
149
|
+
transform: rotate(360deg);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@keyframes loadingCircle {
|
|
154
|
+
100% {
|
|
155
|
+
-webkit-transform: rotate(360deg);
|
|
156
|
+
transform: rotate(360deg);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
`,__=function(t){var n=l.useContext(My),r=n.csp,a=n.prefixCls,i=n.layer,c=D_;a&&(c=c.replace(/anticon/g,a)),i&&(c="@layer ".concat(i,` {
|
|
160
|
+
`).concat(c,`
|
|
161
|
+
}`)),l.useEffect(function(){var u=t.current,d=Qm(u);di(c,"@ant-design-icons",{prepend:!i,csp:r,attachTo:d})},[])},z_=["icon","className","onClick","style","primaryColor","secondaryColor"],Zu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function A_(e){var t=e.primaryColor,n=e.secondaryColor;Zu.primaryColor=t,Zu.secondaryColor=n||NI(t),Zu.calculated=!!n}function B_(){return ae({},Zu)}var wc=function(t){var n=t.icon,r=t.className,a=t.onClick,i=t.style,c=t.primaryColor,u=t.secondaryColor,d=At(t,z_),f=l.useRef(),v=Zu;if(c&&(v={primaryColor:c,secondaryColor:u||NI(c)}),__(f),P_(Mw(n),"icon should be icon definiton, but got ".concat(n)),!Mw(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=ae(ae({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),Cb(g.icon,"svg-".concat(g.name),ae(ae({className:r,onClick:a,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};wc.displayName="IconReact";wc.getTwoToneColors=B_;wc.setTwoToneColors=A_;function TI(e){var t=MI(e),n=me(t,2),r=n[0],a=n[1];return wc.setTwoToneColors({primaryColor:r,secondaryColor:a})}function L_(){var e=wc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var k_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];TI(vc.primary);var Bt=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,i=e.rotate,c=e.tabIndex,u=e.onClick,d=e.twoToneColor,f=At(e,k_),v=l.useContext(My),g=v.prefixCls,p=g===void 0?"anticon":g,y=v.rootClassName,C=ce(y,p,J(J({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),S=c;S===void 0&&u&&(S=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,x=MI(d),$=me(x,2),w=$[0],E=$[1];return l.createElement("span",xe({role:"img","aria-label":r.name},f,{ref:t,tabIndex:S,onClick:u,className:C}),l.createElement(wc,{icon:r,primaryColor:w,secondaryColor:E,style:b}))});Bt.displayName="AntdIcon";Bt.getTwoToneColor=L_;Bt.setTwoToneColor=TI;var H_=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:M_}))},Ec=l.forwardRef(H_),F_={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"},V_=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:F_}))},cl=l.forwardRef(V_),W_={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"},K_=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:W_}))},Ro=l.forwardRef(K_),U_={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"},q_=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:U_}))},ns=l.forwardRef(q_),G_={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"},X_=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:G_}))},Mv=l.forwardRef(X_),Y_=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
162
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
163
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
164
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
165
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
166
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
167
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
168
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
169
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
170
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
171
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
172
|
+
summary tabIndex target title type useMap value width wmode wrap`,Q_=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
173
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
174
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
175
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
176
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
177
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
178
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Z_="".concat(Y_," ").concat(Q_).split(/[\s\n]+/),J_="aria-",ez="data-";function jw(e,t){return e.indexOf(t)===0}function Sr(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=ae({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||jw(a,J_))||n.data&&jw(a,ez)||n.attr&&Z_.includes(a))&&(r[a]=e[a])}),r}function jI(e){return e&&ve.isValidElement(e)&&e.type===ve.Fragment}const zy=(e,t,n)=>ve.isValidElement(e)?ve.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function xr(e,t){return zy(e,e,t)}const tm=(e,t,n,r,a)=>({background:e,border:`${re(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),tz=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:i,fontSizeLG:c,lineHeight:u,borderRadiusLG:d,motionEaseInOutCirc:f,withDescriptionIconSize:v,colorText:g,colorTextHeading:p,withDescriptionPadding:y,defaultPadding:C}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"flex",alignItems:"center",padding:C,wordWrap:"break-word",borderRadius:d,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:u},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${f}, opacity ${n} ${f},
|
|
179
|
+
padding-top ${n} ${f}, padding-bottom ${n} ${f},
|
|
180
|
+
margin-bottom ${n} ${f}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:y,[`${t}-icon`]:{marginInlineEnd:a,fontSize:v,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:c},[`${t}-description`]:{display:"block",color:g}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},nz=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:i,colorWarningBorder:c,colorWarningBg:u,colorError:d,colorErrorBorder:f,colorErrorBg:v,colorInfo:g,colorInfoBorder:p,colorInfoBg:y}=e;return{[t]:{"&-success":tm(a,r,n,e,t),"&-info":tm(y,p,g,e,t),"&-warning":tm(u,c,i,e,t),"&-error":Object.assign(Object.assign({},tm(v,f,d,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},rz=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:i,colorIcon:c,colorIconHover:u}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:i,lineHeight:re(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:c,transition:`color ${r}`,"&:hover":{color:u}}},"&-close-text":{color:c,transition:`color ${r}`,"&:hover":{color:u}}}}},az=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),oz=ln("Alert",e=>[tz(e),nz(e),rz(e)],az);var Pw=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const iz={success:Ec,info:Mv,error:cl,warning:ns},lz=e=>{const{icon:t,prefixCls:n,type:r}=e,a=iz[r]||null;return t?zy(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ce(`${n}-icon`,t.props.className)})):l.createElement(a,{className:`${n}-icon`})},sz=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:i}=e,c=r===!0||r===void 0?l.createElement(Ro,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},i),c):null},PI=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:i,className:c,rootClassName:u,style:d,onMouseEnter:f,onMouseLeave:v,onClick:g,afterClose:p,showIcon:y,closable:C,closeText:S,closeIcon:b,action:x,id:$}=e,w=Pw(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[E,O]=l.useState(!1),N=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:N.current}));const{getPrefixCls:I,direction:M,closable:T,closeIcon:j,className:_,style:B}=ur("alert"),H=I("alert",r),[A,F,D]=oz(H),L=Z=>{var X;O(!0),(X=e.onClose)===null||X===void 0||X.call(e,Z)},W=l.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),G=l.useMemo(()=>typeof C=="object"&&C.closeIcon||S?!0:typeof C=="boolean"?C:b!==!1&&b!==null&&b!==void 0?!0:!!T,[S,b,C,T]),V=i&&y===void 0?!0:y,k=ce(H,`${H}-${W}`,{[`${H}-with-description`]:!!n,[`${H}-no-icon`]:!V,[`${H}-banner`]:!!i,[`${H}-rtl`]:M==="rtl"},_,c,u,D,F),U=Sr(w,{aria:!0,data:!0}),K=l.useMemo(()=>typeof C=="object"&&C.closeIcon?C.closeIcon:S||(b!==void 0?b:typeof T=="object"&&T.closeIcon?T.closeIcon:j),[b,C,T,S,j]),q=l.useMemo(()=>{const Z=C??T;if(typeof Z=="object"){const{closeIcon:X}=Z;return Pw(Z,["closeIcon"])}return{}},[C,T]);return A(l.createElement(Jr,{visible:!E,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Z=>({maxHeight:Z.offsetHeight}),onLeaveEnd:p},({className:Z,style:X},ee)=>l.createElement("div",Object.assign({id:$,ref:Ar(N,ee),"data-show":!E,className:ce(k,Z),style:Object.assign(Object.assign(Object.assign({},B),d),X),onMouseEnter:f,onMouseLeave:v,onClick:g,role:"alert"},U),V?l.createElement(lz,{description:n,icon:e.icon,prefixCls:H,type:W}):null,l.createElement("div",{className:`${H}-content`},a?l.createElement("div",{className:`${H}-message`},a):null,n?l.createElement("div",{className:`${H}-description`},n):null),x?l.createElement("div",{className:`${H}-action`},x):null,l.createElement(sz,{isClosable:G,prefixCls:H,closeIcon:K,handleClose:L,ariaProps:q}))))});function cz(e,t,n){return t=Ul(t),ER(e,wv()?Reflect.construct(t,n||[],Ul(e).constructor):t.apply(e,n))}let uz=(function(e){function t(){var n;return or(this,t),n=cz(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Fa(t,e),ir(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:i,children:c}=this.props,{error:u,info:d}=this.state,f=(d==null?void 0:d.componentStack)||null,v=typeof r>"u"?(u||"").toString():r,g=typeof a>"u"?f:a;return u?l.createElement(PI,{id:i,type:"error",message:v,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):c}}])})(l.Component);const DI=PI;DI.ErrorBoundary=uz;const Dw=e=>typeof e=="object"&&e!=null&&e.nodeType===1,_w=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",nm=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return _w(n.overflowY,t)||_w(n.overflowX,t)||(r=>{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},rm=(e,t,n,r,a,i,c,u)=>i<e&&c>t||i>e&&c<t?0:i<=e&&u<=n||c>=t&&u>=n?i-e-r:c>t&&u<n||i<e&&u>n?c-t+a:0,dz=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},zw=(e,t)=>{var n,r,a,i;if(typeof document>"u")return[];const{scrollMode:c,block:u,inline:d,boundary:f,skipOverflowHiddenElements:v}=t,g=typeof f=="function"?f:D=>D!==f;if(!Dw(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let C=e;for(;Dw(C)&&g(C);){if(C=dz(C),C===p){y.push(C);break}C!=null&&C===document.body&&nm(C)&&!nm(document.documentElement)||C!=null&&nm(C,v)&&y.push(C)}const S=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:x,scrollY:$}=window,{height:w,width:E,top:O,right:N,bottom:I,left:M}=e.getBoundingClientRect(),{top:T,right:j,bottom:_,left:B}=(D=>{const L=window.getComputedStyle(D);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let H=u==="start"||u==="nearest"?O-T:u==="end"?I+_:O+w/2-T+_,A=d==="center"?M+E/2-B+j:d==="end"?N+j:M-B;const F=[];for(let D=0;D<y.length;D++){const L=y[D],{height:W,width:G,top:V,right:k,bottom:U,left:K}=L.getBoundingClientRect();if(c==="if-needed"&&O>=0&&M>=0&&I<=b&&N<=S&&(L===p&&!nm(L)||O>=V&&I<=U&&M>=K&&N<=k))return F;const q=getComputedStyle(L),Z=parseInt(q.borderLeftWidth,10),X=parseInt(q.borderTopWidth,10),ee=parseInt(q.borderRightWidth,10),te=parseInt(q.borderBottomWidth,10);let oe=0,le=0;const ne="offsetWidth"in L?L.offsetWidth-L.clientWidth-Z-ee:0,Q="offsetHeight"in L?L.offsetHeight-L.clientHeight-X-te:0,ie="offsetWidth"in L?L.offsetWidth===0?0:G/L.offsetWidth:0,ue="offsetHeight"in L?L.offsetHeight===0?0:W/L.offsetHeight:0;if(p===L)oe=u==="start"?H:u==="end"?H-b:u==="nearest"?rm($,$+b,b,X,te,$+H,$+H+w,w):H-b/2,le=d==="start"?A:d==="center"?A-S/2:d==="end"?A-S:rm(x,x+S,S,Z,ee,x+A,x+A+E,E),oe=Math.max(0,oe+$),le=Math.max(0,le+x);else{oe=u==="start"?H-V-X:u==="end"?H-U+te+Q:u==="nearest"?rm(V,U,W,X,te+Q,H,H+w,w):H-(V+W/2)+Q/2,le=d==="start"?A-K-Z:d==="center"?A-(K+G/2)+ne/2:d==="end"?A-k+ee+ne:rm(K,k,G,Z,ee+ne,A,A+E,E);const{scrollLeft:de,scrollTop:se}=L;oe=ue===0?0:Math.max(0,Math.min(se+oe/ue,L.scrollHeight-W/ue+Q)),le=ie===0?0:Math.max(0,Math.min(de+le/ie,L.scrollWidth-G/ie+ne)),H+=se-oe,A+=de-le}F.push({el:L,top:oe,left:le})}return F},fz=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function mz(e,t){if(!e.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(zw(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:c}of zw(e,fz(t))){const u=i-n.top+n.bottom,d=c-n.left+n.right;a.scroll({top:u,left:d,behavior:r})}}function Sb(e){return e!=null&&e===e.window}const _I=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Sb(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Sb(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 vz(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function zI(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,i=n(),c=_I(i),u=Date.now(),d=()=>{const v=Date.now()-u,g=vz(v>a?a:v,c,e,a);Sb(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,v<a?Gt(d):typeof r=="function"&&r()};Gt(d)}const ar=e=>{const[,,,,t]=Zr();return t?`${e}-css-var`:""};var at={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,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},AI=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,c=i===void 0?4.5:i,u=e.showProgress,d=e.pauseOnHover,f=d===void 0?!0:d,v=e.eventKey,g=e.content,p=e.closable,y=e.closeIcon,C=y===void 0?"x":y,S=e.props,b=e.onClick,x=e.onNoticeClose,$=e.times,w=e.hovering,E=l.useState(!1),O=me(E,2),N=O[0],I=O[1],M=l.useState(0),T=me(M,2),j=T[0],_=T[1],B=l.useState(0),H=me(B,2),A=H[0],F=H[1],D=w||N,L=c>0&&u,W=function(){x(v)},G=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===at.ENTER)&&W()};l.useEffect(function(){if(!D&&c>0){var q=Date.now()-A,Z=setTimeout(function(){W()},c*1e3-A);return function(){f&&clearTimeout(Z),F(Date.now()-q)}}},[c,D,$]),l.useEffect(function(){if(!D&&L&&(f||A===0)){var q=performance.now(),Z,X=function ee(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(te){var oe=te+A-q,le=Math.min(oe/(c*1e3),1);_(le*100),le<1&&ee()})};return X(),function(){f&&cancelAnimationFrame(Z)}}},[c,A,D,L,$]);var V=l.useMemo(function(){return $t(p)==="object"&&p!==null?p:p?{closeIcon:C}:{}},[p,C]),k=Sr(V,!0),U=100-(!j||j<0?0:j>100?100:j),K="".concat(n,"-notice");return l.createElement("div",xe({},S,{ref:t,className:ce(K,a,J({},"".concat(K,"-closable"),p)),style:r,onMouseEnter:function(Z){var X;I(!0),S==null||(X=S.onMouseEnter)===null||X===void 0||X.call(S,Z)},onMouseLeave:function(Z){var X;I(!1),S==null||(X=S.onMouseLeave)===null||X===void 0||X.call(S,Z)},onClick:b}),l.createElement("div",{className:"".concat(K,"-content")},g),p&&l.createElement("a",xe({tabIndex:0,className:"".concat(K,"-close"),onKeyDown:G,"aria-label":"Close"},k,{onClick:function(Z){Z.preventDefault(),Z.stopPropagation(),W()}}),V.closeIcon),L&&l.createElement("progress",{className:"".concat(K,"-progress"),max:"100",value:U},U+"%"))}),BI=ve.createContext({}),LI=function(t){var n=t.children,r=t.classNames;return ve.createElement(BI.Provider,{value:{classNames:r}},n)},Aw=8,Bw=3,Lw=16,gz=function(t){var n={offset:Aw,threshold:Bw,gap:Lw};if(t&&$t(t)==="object"){var r,a,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:Aw,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:Bw,n.gap=(i=t.gap)!==null&&i!==void 0?i:Lw}return[!!t,n]},pz=["className","style","classNames","styles"],hz=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,i=t.className,c=t.style,u=t.motion,d=t.onAllNoticeRemoved,f=t.onNoticeClose,v=t.stack,g=l.useContext(BI),p=g.classNames,y=l.useRef({}),C=l.useState(null),S=me(C,2),b=S[0],x=S[1],$=l.useState([]),w=me($,2),E=w[0],O=w[1],N=n.map(function(D){return{config:D,key:String(D.key)}}),I=gz(v),M=me(I,2),T=M[0],j=M[1],_=j.offset,B=j.threshold,H=j.gap,A=T&&(E.length>0||N.length<=B),F=typeof u=="function"?u(r):u;return l.useEffect(function(){T&&E.length>1&&O(function(D){return D.filter(function(L){return N.some(function(W){var G=W.key;return L===G})})})},[E,N,T]),l.useEffect(function(){var D;if(T&&y.current[(D=N[N.length-1])===null||D===void 0?void 0:D.key]){var L;x(y.current[(L=N[N.length-1])===null||L===void 0?void 0:L.key])}},[N,T]),ve.createElement(_y,xe({key:r,className:ce(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,i,J(J({},"".concat(a,"-stack"),!!T),"".concat(a,"-stack-expanded"),A)),style:c,keys:N,motionAppear:!0},F,{onAllRemoved:function(){d(r)}}),function(D,L){var W=D.config,G=D.className,V=D.style,k=D.index,U=W,K=U.key,q=U.times,Z=String(K),X=W,ee=X.className,te=X.style,oe=X.classNames,le=X.styles,ne=At(X,pz),Q=N.findIndex(function(ye){return ye.key===Z}),ie={};if(T){var ue=N.length-1-(Q>-1?Q:k-1),de=r==="top"||r==="bottom"?"-50%":"0";if(ue>0){var se,ge,he;ie.height=A?(se=y.current[Z])===null||se===void 0?void 0:se.offsetHeight:b==null?void 0:b.offsetHeight;for(var Oe=0,Re=0;Re<ue;Re++){var pe;Oe+=((pe=y.current[N[N.length-1-Re].key])===null||pe===void 0?void 0:pe.offsetHeight)+H}var Ie=(A?Oe:ue*_)*(r.startsWith("top")?1:-1),we=!A&&b!==null&&b!==void 0&&b.offsetWidth&&(ge=y.current[Z])!==null&&ge!==void 0&&ge.offsetWidth?((b==null?void 0:b.offsetWidth)-_*2*(ue<3?ue:3))/((he=y.current[Z])===null||he===void 0?void 0:he.offsetWidth):1;ie.transform="translate3d(".concat(de,", ").concat(Ie,"px, 0) scaleX(").concat(we,")")}else ie.transform="translate3d(".concat(de,", 0, 0)")}return ve.createElement("div",{ref:L,className:ce("".concat(a,"-notice-wrapper"),G,oe==null?void 0:oe.wrapper),style:ae(ae(ae({},V),ie),le==null?void 0:le.wrapper),onMouseEnter:function(){return O(function(ze){return ze.includes(Z)?ze:[].concat(Te(ze),[Z])})},onMouseLeave:function(){return O(function(ze){return ze.filter(function(Ae){return Ae!==Z})})}},ve.createElement(AI,xe({},ne,{ref:function(ze){Q>-1?y.current[Z]=ze:delete y.current[Z]},prefixCls:a,classNames:oe,styles:le,className:ce(ee,p==null?void 0:p.notice),style:te,times:q,key:K,eventKey:K,onNoticeClose:f,hovering:T&&E.length>0})))})},bz=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,i=e.motion,c=e.maxCount,u=e.className,d=e.style,f=e.onAllRemoved,v=e.stack,g=e.renderNotifications,p=l.useState([]),y=me(p,2),C=y[0],S=y[1],b=function(T){var j,_=C.find(function(B){return B.key===T});_==null||(j=_.onClose)===null||j===void 0||j.call(_),S(function(B){return B.filter(function(H){return H.key!==T})})};l.useImperativeHandle(t,function(){return{open:function(T){S(function(j){var _=Te(j),B=_.findIndex(function(F){return F.key===T.key}),H=ae({},T);if(B>=0){var A;H.times=(((A=j[B])===null||A===void 0?void 0:A.times)||0)+1,_[B]=H}else H.times=0,_.push(H);return c>0&&_.length>c&&(_=_.slice(-c)),_})},close:function(T){b(T)},destroy:function(){S([])}}});var x=l.useState({}),$=me(x,2),w=$[0],E=$[1];l.useEffect(function(){var M={};C.forEach(function(T){var j=T.placement,_=j===void 0?"topRight":j;_&&(M[_]=M[_]||[],M[_].push(T))}),Object.keys(w).forEach(function(T){M[T]=M[T]||[]}),E(M)},[C]);var O=function(T){E(function(j){var _=ae({},j),B=_[T]||[];return B.length||delete _[T],_})},N=l.useRef(!1);if(l.useEffect(function(){Object.keys(w).length>0?N.current=!0:N.current&&(f==null||f(),N.current=!1)},[w]),!a)return null;var I=Object.keys(w);return ro.createPortal(l.createElement(l.Fragment,null,I.map(function(M){var T=w[M],j=l.createElement(hz,{key:M,configList:T,placement:M,prefixCls:r,className:u==null?void 0:u(M),style:d==null?void 0:d(M),motion:i,onNoticeClose:b,onAllNoticeRemoved:O,stack:v});return g?g(j,{prefixCls:r,key:M}):j})),a)}),yz=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Cz=function(){return document.body},kw=0;function Sz(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&Object.keys(a).forEach(function(i){var c=a[i];c!==void 0&&(e[i]=c)})}),e}function kI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Cz:t,r=e.motion,a=e.prefixCls,i=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,f=e.stack,v=e.renderNotifications,g=At(e,yz),p=l.useState(),y=me(p,2),C=y[0],S=y[1],b=l.useRef(),x=l.createElement(bz,{container:C,ref:b,prefixCls:a,motion:r,maxCount:i,className:c,style:u,onAllRemoved:d,stack:f,renderNotifications:v}),$=l.useState([]),w=me($,2),E=w[0],O=w[1],N=qt(function(M){var T=Sz(g,M);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(kw),kw+=1),O(function(j){return[].concat(Te(j),[{type:"open",config:T}])})}),I=l.useMemo(function(){return{open:N,close:function(T){O(function(j){return[].concat(Te(j),[{type:"close",key:T}])})},destroy:function(){O(function(T){return[].concat(Te(T),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){S(n())}),l.useEffect(function(){if(b.current&&E.length){E.forEach(function(j){switch(j.type){case"open":b.current.open(j.config);break;case"close":b.current.close(j.key);break;case"destroy":b.current.destroy();break}});var M,T;O(function(j){return(M!==j||!T)&&(M=j,T=j.filter(function(_){return!E.includes(_)})),T})}},[E]),[I,x]}var xz={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"},$z=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:xz}))},$o=l.forwardRef($z);function Zm(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Jm(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Hw(e){const{closable:t,closeIcon:n}=e||{};return ve.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 wz={},HI=(e,t,n=wz)=>{const r=Hw(e),a=Hw(t),[i]=Ra("global",oo.global),c=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=ve.useMemo(()=>Object.assign({closeIcon:ve.createElement(Ro,null)},n),[n]),d=ve.useMemo(()=>r===!1?!1:r?Zm(u,a,r):a===!1?!1:a?Zm(u,a):u.closable?u:!1,[r,a,u]);return ve.useMemo(()=>{var f,v;if(d===!1)return[!1,null,c,{}];const{closeIconRender:g}=u,{closeIcon:p}=d;let y=p;const C=Sr(d,!0);return y!=null&&(g&&(y=g(p)),y=ve.isValidElement(y)?ve.cloneElement(y,Object.assign(Object.assign(Object.assign({},y.props),{"aria-label":(v=(f=y.props)===null||f===void 0?void 0:f["aria-label"])!==null&&v!==void 0?v:i.close}),C)):ve.createElement("span",Object.assign({"aria-label":i.close},C),y)),[!0,y,c,C]},[c,i.close,d,u])},Ay=()=>ve.useReducer(e=>e+1,0);function FI(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(i=>{const c=n[i],u=a[i];if(c&&typeof c=="object")if(u&&typeof u=="object")r[i]=FI(c,r[i],u);else{const{_default:d}=c;d&&(r[i]=r[i]||{},r[i][d]=ce(r[i][d],u))}else r[i]=ce(r[i],u)}),r),{})}function Ez(e,...t){return l.useMemo(()=>FI.apply(void 0,[e].concat(t)),[t,e])}function Oz(...e){return l.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function xb(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],i=n[r]||{};n[r]=a?xb(i,a):i}}),n}const Rz=(e,t,n)=>{const r=Ez.apply(void 0,[n].concat(Te(e))),a=Oz.apply(void 0,Te(t));return l.useMemo(()=>[xb(r,n),xb(a,n)],[r,a,n])},Iz=e=>{const[t,n]=l.useState(null);return[l.useCallback((a,i,c)=>{const u=t??a,d=Math.min(u||0,a),f=Math.max(u||0,a),v=i.slice(d,f+1).map(e),g=v.some(y=>!c.has(y)),p=[];return v.forEach(y=>{g?(c.has(y)||p.push(y),c.add(y)):(c.delete(y),p.push(y))}),n(g?f:null),p},[t]),n]},Nz=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(Te(a),[r])),()=>{t(a=>a.filter(i=>i!==r))}),[]);return[e,n]};function Mz(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 Tz=(e,t)=>l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,i){return n[i]?n[i]:Reflect.get(a,i)}}):Mz(r,n)}),jz=e=>{const t=l.useRef(e),[,n]=Ay();return[()=>t.current,r=>{t.current=r,n()}]},Tv=ve.createContext(void 0),Xi=100,Pz=10,By=Xi*Pz,VI={Modal:Xi,Drawer:Xi,Popover:Xi,Popconfirm:Xi,Tooltip:Xi,Tour:Xi,FloatButton:Xi},Dz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function _z(e){return e in VI}const Io=(e,t)=>{const[,n]=Zr(),r=ve.useContext(Tv),a=_z(e);let i;if(t!==void 0)i=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+VI[e]:c+=Dz[e],i=[r===void 0?t:c,c]}return i},zz=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:i,colorError:c,colorWarning:u,colorInfo:d,fontSizeLG:f,motionEaseInOutCirc:v,motionDurationSlow:g,marginXS:p,paddingXS:y,borderRadiusLG:C,zIndexPopup:S,contentPadding:b,contentBg:x}=e,$=`${t}-notice`,w=new Qt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),E=new Qt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:f},[`${$}-content`]:{display:"inline-block",padding:b,background:x,borderRadius:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
|
|
181
|
+
${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},fn(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
182
|
+
${t}-move-up-appear,
|
|
183
|
+
${t}-move-up-enter
|
|
184
|
+
`]:{animationName:w,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`
|
|
185
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
186
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
187
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${$}-wrapper`]:Object.assign({},O)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},O),{padding:0,textAlign:"start"})}]},Az=e=>({zIndexPopup:e.zIndexPopupBase+By+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),WI=ln("Message",e=>{const t=rn(e,{height:150});return zz(t)},Az);var Bz=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Lz={info:l.createElement(Mv,null),success:l.createElement(Ec,null),error:l.createElement(cl,null),warning:l.createElement(ns,null),loading:l.createElement($o,null)},KI=({prefixCls:e,type:t,icon:n,children:r})=>l.createElement("div",{className:ce(`${e}-custom-content`,`${e}-${t}`)},n||Lz[t],l.createElement("span",null,r)),kz=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:i}=e,c=Bz(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=l.useContext(Rt),d=t||u("message"),f=ar(d),[v,g,p]=WI(d,f);return v(l.createElement(AI,Object.assign({},c,{prefixCls:d,className:ce(n,g,`${d}-notice-pure-panel`,p,f),eventKey:"pure",duration:null,content:l.createElement(KI,{prefixCls:d,type:r,icon:a},i)})))};function Hz(e,t){return{motionName:t??`${e}-move-up`}}function Ly(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,i)=>n.then(a,i),r.promise=n,r}var Fz=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Vz=8,Wz=3,Kz=({children:e,prefixCls:t})=>{const n=ar(t),[r,a,i]=WI(t,n);return r(l.createElement(LI,{classNames:{list:ce(a,i,n)}},e))},Uz=(e,{prefixCls:t,key:n})=>l.createElement(Kz,{prefixCls:t,key:n},e),qz=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:i,duration:c=Wz,rtl:u,transitionName:d,onAllRemoved:f}=e,{getPrefixCls:v,getPopupContainer:g,message:p,direction:y}=l.useContext(Rt),C=r||v("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??Vz}),b=()=>ce({[`${C}-rtl`]:u??y==="rtl"}),x=()=>Hz(C,d),$=l.createElement("span",{className:`${C}-close-x`},l.createElement(Ro,{className:`${C}-close-icon`})),[w,E]=kI({prefixCls:C,style:S,className:b,motion:x,closable:!1,closeIcon:$,duration:c,getContainer:()=>(a==null?void 0:a())||(g==null?void 0:g())||document.body,maxCount:i,onAllRemoved:f,renderNotifications:Uz});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:C,message:p})),E});let Fw=0;function UI(e){const t=l.useRef(null);return Uo(),[l.useMemo(()=>{const r=d=>{var f;(f=t.current)===null||f===void 0||f.close(d)},a=d=>{if(!t.current){const N=()=>{};return N.then=()=>{},N}const{open:f,prefixCls:v,message:g}=t.current,p=`${v}-notice`,{content:y,icon:C,type:S,key:b,className:x,style:$,onClose:w}=d,E=Fz(d,["content","icon","type","key","className","style","onClose"]);let O=b;return O==null&&(Fw+=1,O=`antd-message-${Fw}`),Ly(N=>(f(Object.assign(Object.assign({},E),{key:O,content:l.createElement(KI,{prefixCls:v,type:S,icon:C},y),placement:"top",className:ce(S&&`${p}-${S}`,x,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),$),onClose:()=>{w==null||w(),N()}})),()=>{r(O)}))},c={open:a,destroy:d=>{var f;d!==void 0?r(d):(f=t.current)===null||f===void 0||f.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const f=(v,g,p)=>{let y;v&&typeof v=="object"&&"content"in v?y=v:y={content:v};let C,S;typeof g=="function"?S=g:(C=g,S=p);const b=Object.assign(Object.assign({onClose:S,duration:C},y),{type:d});return a(b)};c[d]=f}),c},[]),l.createElement(qz,Object.assign({key:"message-holder"},e,{ref:t}))]}function qI(e){return UI(e)}function GI(e,t){this.v=e,this.k=t}function ca(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ca=function(c,u,d,f){function v(g,p){ca(c,g,function(y){return this._invoke(g,p,y)})}u?a?a(c,u,{value:d,enumerable:!f,configurable:!f,writable:!f}):c[u]=d:(v("next",0),v("throw",1),v("return",2))},ca(e,t,n,r)}function ky(){/*! 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",a=n.toStringTag||"@@toStringTag";function i(y,C,S,b){var x=C&&C.prototype instanceof u?C:u,$=Object.create(x.prototype);return ca($,"_invoke",(function(w,E,O){var N,I,M,T=0,j=O||[],_=!1,B={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(F,D){return N=F,I=0,M=e,B.n=D,c}};function H(A,F){for(I=A,M=F,t=0;!_&&T&&!D&&t<j.length;t++){var D,L=j[t],W=B.p,G=L[2];A>3?(D=G===F)&&(M=L[(I=L[4])?5:(I=3,3)],L[4]=L[5]=e):L[0]<=W&&((D=A<2&&W<L[1])?(I=0,B.v=F,B.n=L[1]):W<G&&(D=A<3||L[0]>F||F>G)&&(L[4]=A,L[5]=F,B.n=G,I=0))}if(D||A>1)return c;throw _=!0,F}return function(A,F,D){if(T>1)throw TypeError("Generator is already running");for(_&&F===1&&H(F,D),I=F,M=D;(t=I<2?e:M)||!_;){N||(I?I<3?(I>1&&(B.n=-1),H(I,M)):B.n=M:B.v=M);try{if(T=2,N){if(I||(A="next"),t=N[A]){if(!(t=t.call(N,M)))throw TypeError("iterator result is not an object");if(!t.done)return t;M=t.value,I<2&&(I=0)}else I===1&&(t=N.return)&&t.call(N),I<2&&(M=TypeError("The iterator does not provide a '"+A+"' method"),I=1);N=e}else if((t=(_=B.n<0)?M:w.call(E,B))!==c)break}catch(L){N=e,I=1,M=L}finally{T=1}}return{value:t,done:_}}})(y,S,b),!0),$}var c={};function u(){}function d(){}function f(){}t=Object.getPrototypeOf;var v=[][r]?t(t([][r]())):(ca(t={},r,function(){return this}),t),g=f.prototype=u.prototype=Object.create(v);function p(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,f):(y.__proto__=f,ca(y,a,"GeneratorFunction")),y.prototype=Object.create(g),y}return d.prototype=f,ca(g,"constructor",f),ca(f,"constructor",d),d.displayName="GeneratorFunction",ca(f,a,"GeneratorFunction"),ca(g),ca(g,a,"Generator"),ca(g,r,function(){return this}),ca(g,"toString",function(){return"[object Generator]"}),(ky=function(){return{w:i,m:p}})()}function ev(e,t){function n(a,i,c,u){try{var d=e[a](i),f=d.value;return f instanceof GI?t.resolve(f.v).then(function(v){n("next",v,c,u)},function(v){n("throw",v,c,u)}):t.resolve(f).then(function(v){d.value=v,c(d)},function(v){return n("throw",v,c,u)})}catch(v){u(v)}}var r;this.next||(ca(ev.prototype),ca(ev.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ca(this,"_invoke",function(a,i,c){function u(){return new t(function(d,f){n(a,c,d,f)})}return r=r?r.then(u,u):u()},!0)}function XI(e,t,n,r,a){return new ev(ky().w(e,t,n,r),a||Promise)}function Gz(e,t,n,r,a){var i=XI(e,t,n,r,a);return i.next().then(function(c){return c.done?c.value:i.next()})}function Xz(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function Vw(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($t(e)+" is not iterable")}function Bn(){var e=ky(),t=e.m(Bn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(c){var u=typeof c=="function"&&c.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(c){var u,d;return function(f){u||(u={stop:function(){return d(f.a,2)},catch:function(){return f.v},abrupt:function(g,p){return d(f.a,a[g],p)},delegateYield:function(g,p,y){return u.resultName=p,d(f.d,Vw(g),y)},finish:function(g){return d(f.f,g)}},d=function(g,p,y){f.p=u.prev,f.n=u.next;try{return g(p,y)}finally{u.next=f.n}}),u.resultName&&(u[u.resultName]=f.v,u.resultName=void 0),u.sent=f.v,u.next=f.n;try{return c.call(this,u)}finally{f.p=u.prev,f.n=u.next}}}return(Bn=function(){return{wrap:function(d,f,v,g){return e.w(i(d),f,v,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(d,f){return new GI(d,f)},AsyncIterator:ev,async:function(d,f,v,g,p){return(r(f)?XI:Gz)(i(d),f,v,g,p)},keys:Xz,values:Vw}})()}function Ww(e,t,n,r,a,i,c){try{var u=e[i](c),d=u.value}catch(f){return void n(f)}u.done?t(d):Promise.resolve(d).then(r,a)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function c(d){Ww(i,r,a,c,u,"next",d)}function u(d){Ww(i,r,a,c,u,"throw",d)}c(void 0)})}}var Ed=ae({},b6),Yz=Ed.version,kh=Ed.render,Qz=Ed.unmountComponentAtNode,jv;try{var Zz=Number((Yz||"").split(".")[0]);Zz>=18&&(jv=Ed.createRoot)}catch{}function Kw(e){var t=Ed.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&$t(t)==="object"&&(t.usingClientEntryPoint=e)}var tv="__rc_react_root__";function Jz(e,t){Kw(!0);var n=t[tv]||jv(t);Kw(!1),n.render(e),t[tv]=n}function e5(e,t){kh==null||kh(e,t)}function t5(e,t){if(jv){Jz(e,t);return}e5(e,t)}function n5(e){return $b.apply(this,arguments)}function $b(){return $b=pa(Bn().mark(function e(t){return Bn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[tv])===null||a===void 0||a.unmount(),delete t[tv]}));case 1:case"end":return r.stop()}},e)})),$b.apply(this,arguments)}function r5(e){Qz(e)}function a5(e){return wb.apply(this,arguments)}function wb(){return wb=pa(Bn().mark(function e(t){return Bn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(jv===void 0){r.next=2;break}return r.abrupt("return",n5(t));case 2:r5(t);case 3:case"end":return r.stop()}},e)})),wb.apply(this,arguments)}const o5=(e,t)=>(t5(e,t),()=>a5(t));let i5=o5;function Hy(e){return i5}const Hh=()=>({height:0,opacity:0}),Uw=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},l5=e=>({height:e?e.offsetHeight:0}),Fh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",gc=(e=md)=>({motionName:`${e}-motion-collapse`,onAppearStart:Hh,onEnterStart:Hh,onAppearActive:Uw,onEnterActive:Uw,onLeaveStart:l5,onLeaveActive:Hh,onAppearEnd:Fh,onEnterEnd:Fh,onLeaveEnd:Fh,motionDeadline:500}),Fo=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function xn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Oc=(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 a=e.getBoundingClientRect(),i=a.width,c=a.height;if(i||c)return!0}}return!1}),s5=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(",")}}}}},c5=mI("Wave",s5),Pv=`${md}-wave-target`;function u5(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 d5(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(u5))!==null&&t!==void 0?t:null}function Vh(e){return Number.isNaN(e)?0:e}const f5=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,i=l.useRef(null),c=l.useRef(null);l.useEffect(()=>{c.current=a()},[]);const[u,d]=l.useState(null),[f,v]=l.useState([]),[g,p]=l.useState(0),[y,C]=l.useState(0),[S,b]=l.useState(0),[x,$]=l.useState(0),[w,E]=l.useState(!1),O={left:g,top:y,width:S,height:x,borderRadius:f.map(M=>`${M}px`).join(" ")};u&&(O["--wave-color"]=u);function N(){const M=getComputedStyle(n);d(d5(n));const T=M.position==="static",{borderLeftWidth:j,borderTopWidth:_}=M;p(T?n.offsetLeft:Vh(-Number.parseFloat(j))),C(T?n.offsetTop:Vh(-Number.parseFloat(_))),b(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:B,borderTopRightRadius:H,borderBottomLeftRadius:A,borderBottomRightRadius:F}=M;v([B,H,F,A].map(D=>Vh(Number.parseFloat(D))))}if(l.useEffect(()=>{if(n){const M=Gt(()=>{N(),E(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(N),T.observe(n)),()=>{Gt.cancel(M),T==null||T.disconnect()}}},[n]),!w)return null;const I=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Pv));return l.createElement(Jr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(M,T)=>{var j,_;if(T.deadline||T.propertyName==="opacity"){const B=(j=i.current)===null||j===void 0?void 0:j.parentElement;(_=c.current)===null||_===void 0||_.call(c).then(()=>{B==null||B.remove()})}return!1}},({className:M},T)=>l.createElement("div",{ref:Ar(i,T),className:ce(t,M,{"wave-quick":I}),style:O}))},m5=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const i=Hy();let c=null;function u(){return c}c=i(l.createElement(f5,Object.assign({},t,{target:e,registerUnmount:u})),a)},v5=(e,t,n)=>{const{wave:r}=l.useContext(Rt),[,a,i]=Zr(),c=qt(f=>{const v=e.current;if(r!=null&&r.disabled||!v)return;const g=v.querySelector(`.${Pv}`)||v,{showEffect:p}=r||{};(p||m5)(g,{className:t,token:a,component:n,event:f,hashId:i})}),u=l.useRef(null);return f=>{Gt.cancel(u.current),u.current=Gt(()=>{c(f)})}},Od=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(Rt),i=l.useRef(null),c=a("wave"),[,u]=c5(c),d=v5(i,ce(c,u),r);if(ve.useEffect(()=>{const v=i.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=p=>{!Oc(p.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||d(p)};return v.addEventListener("click",g,!0),()=>{v.removeEventListener("click",g,!0)}},[n]),!ve.isValidElement(t))return t??null;const f=So(t)?Ar(sl(t),i):i;return xr(t,{ref:f})},Br=e=>{const t=ve.useContext(ql);return ve.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},g5=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},p5=ln(["Space","Compact"],e=>[g5(e)],()=>({}),{resetStyle:!1});var YI=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Dv=l.createContext(null),No=(e,t)=>{const n=l.useContext(Dv),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:i,isLastItem:c}=n,u=a==="vertical"?"-vertical-":"-";return ce(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:i,[`${e}-compact${u}last-item`]:c,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},h5=e=>{const{children:t}=e;return l.createElement(Dv.Provider,{value:null},t)},b5=e=>{const{children:t}=e,n=YI(e,["children"]);return l.createElement(Dv.Provider,{value:l.useMemo(()=>n,[n])},t)},y5=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Rt),{size:r,direction:a,block:i,prefixCls:c,className:u,rootClassName:d,children:f}=e,v=YI(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Br(w=>r??w),p=t("space-compact",c),[y,C]=p5(p),S=ce(p,C,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:i,[`${p}-vertical`]:a==="vertical"},u,d),b=l.useContext(Dv),x=Fr(f),$=l.useMemo(()=>x.map((w,E)=>{const O=(w==null?void 0:w.key)||`${p}-item-${E}`;return l.createElement(b5,{key:O,compactSize:g,compactDirection:a,isFirstItem:E===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:E===x.length-1&&(!b||(b==null?void 0:b.isLastItem))},w)}),[x,b,a,g,p]);return x.length===0?null:y(l.createElement("div",Object.assign({className:S},v),$))};var C5=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const QI=l.createContext(void 0),S5=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Rt),{prefixCls:r,size:a,className:i}=e,c=C5(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=Zr(),f=l.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),v=ce(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:n==="rtl"},i,d);return l.createElement(QI.Provider,{value:a},l.createElement("div",Object.assign({},c,{className:v})))},qw=/^[\u4E00-\u9FA5]{2}$/,Eb=qw.test.bind(qw);function Fy(e){return e==="danger"?{danger:!0}:{type:e}}function Gw(e){return typeof e=="string"}function Wh(e){return e==="text"||e==="link"}function x5(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Gw(e.type)&&Eb(e.props.children)?xr(e,{children:e.props.children.split("").join(n)}):Gw(e)?Eb(e)?ve.createElement("span",null,e.split("").join(n)):ve.createElement("span",null,e):jI(e)?ve.createElement("span",null,e):e}function $5(e,t){let n=!1;const r=[];return ve.Children.forEach(e,a=>{const i=typeof a,c=i==="string"||i==="number";if(n&&c){const u=r.length-1,d=r[u];r[u]=`${d}${a}`}else r.push(a);n=c}),ve.Children.map(r,a=>x5(a,t))}["default","primary","danger"].concat(Te(al));const ZI=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:i}=e,c=ce(`${i}-icon`,n);return ve.createElement("span",{ref:t,className:c,style:r},a)}),Xw=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:i}=e,c=ce(`${n}-loading-icon`,r);return ve.createElement(ZI,{prefixCls:n,className:c,style:a,ref:t},ve.createElement($o,{className:i}))}),Kh=()=>({width:0,opacity:0,transform:"scale(0)"}),Uh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),w5=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:i,mount:c}=e,u=!!n;return r?ve.createElement(Xw,{prefixCls:t,className:a,style:i}):ve.createElement(Jr,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Kh,onAppearActive:Uh,onEnterStart:Kh,onEnterActive:Uh,onLeaveStart:Uh,onLeaveActive:Kh},({className:d,style:f},v)=>{const g=Object.assign(Object.assign({},i),f);return ve.createElement(Xw,{prefixCls:t,className:ce(a,d),style:g,ref:v})})},Yw=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),E5=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Yw(`${t}-primary`,a),Yw(`${t}-danger`,i)]}};var O5=["b"],R5=["v"],qh=function(t){return Math.round(Number(t||0))},I5=function(t){if(t instanceof pn)return t;if(t&&$t(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=At(n,O5);return ae(ae({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},vd=(function(e){Fa(n,e);var t=so(n);function n(r){return or(this,n),t.call(this,I5(r))}return ir(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),i=qh(a.s*100),c=qh(a.b*100),u=qh(a.h),d=a.a,f="hsb(".concat(u,", ").concat(i,"%, ").concat(c,"%)"),v="hsba(".concat(u,", ").concat(i,"%, ").concat(c,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?f:v}},{key:"toHsb",value:function(){var a=this.toHsv(),i=a.v,c=At(a,R5);return ae(ae({},c),{},{b:i,a:this.a})}}]),n})(pn),N5=function(t){return t instanceof vd?t:new vd(t)};N5("#1677ff");const M5=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",T5=(e,t)=>e?M5(e,t):"";let Ob=(function(){function e(t){or(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(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:a,percent:i})=>({color:new e(a),percent:i})),this.metaColor=new vd(this.colors[0].color.metaColor)):this.metaColor=new vd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ir(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return T5(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(a=>`${a.color.toRgbString()} ${a.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,a)=>{const i=n.colors[a];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])})();var j5={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"},P5=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:j5}))},Xl=l.forwardRef(P5),JI=ve.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,i=e.style,c=e.children,u=e.isActive,d=e.role,f=e.classNames,v=e.styles,g=ve.useState(u||r),p=me(g,2),y=p[0],C=p[1];return ve.useEffect(function(){(r||u)&&C(!0)},[r,u]),y?ve.createElement("div",{ref:t,className:ce("".concat(n,"-content"),J(J({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),a),style:i,role:d},ve.createElement("div",{className:ce("".concat(n,"-content-box"),f==null?void 0:f.body),style:v==null?void 0:v.body},c)):null});JI.displayName="PanelContent";var D5=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],eN=ve.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,i=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,f=e.classNames,v=f===void 0?{}:f,g=e.styles,p=g===void 0?{}:g,y=e.prefixCls,C=e.collapsible,S=e.accordion,b=e.panelKey,x=e.extra,$=e.header,w=e.expandIcon,E=e.openMotion,O=e.destroyInactivePanel,N=e.children,I=At(e,D5),M=C==="disabled",T=x!=null&&typeof x!="boolean",j=J(J(J({onClick:function(){c==null||c(b)},onKeyDown:function(L){(L.key==="Enter"||L.keyCode===at.ENTER||L.which===at.ENTER)&&(c==null||c(b))},role:S?"tab":"button"},"aria-expanded",i),"aria-disabled",M),"tabIndex",M?-1:0),_=typeof w=="function"?w(e):ve.createElement("i",{className:"arrow"}),B=_&&ve.createElement("div",xe({className:"".concat(y,"-expand-icon")},["header","icon"].includes(C)?j:{}),_),H=ce("".concat(y,"-item"),J(J({},"".concat(y,"-item-active"),i),"".concat(y,"-item-disabled"),M),d),A=ce(a,"".concat(y,"-header"),J({},"".concat(y,"-collapsible-").concat(C),!!C),v.header),F=ae({className:A,style:p.header},["header","icon"].includes(C)?{}:j);return ve.createElement("div",xe({},I,{ref:t,className:H}),ve.createElement("div",F,r&&B,ve.createElement("span",xe({className:"".concat(y,"-header-text")},C==="header"?j:{}),$),T&&ve.createElement("div",{className:"".concat(y,"-extra")},x)),ve.createElement(Jr,xe({visible:i,leavedClassName:"".concat(y,"-content-hidden")},E,{forceRender:u,removeOnLeave:O}),function(D,L){var W=D.className,G=D.style;return ve.createElement(JI,{ref:L,prefixCls:y,className:W,classNames:v,style:G,styles:p,isActive:i,forceRender:u,role:S?"tabpanel":void 0},N)}))}),_5=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],z5=function(t,n){var r=n.prefixCls,a=n.accordion,i=n.collapsible,c=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,f=n.openMotion,v=n.expandIcon;return t.map(function(g,p){var y=g.children,C=g.label,S=g.key,b=g.collapsible,x=g.onItemClick,$=g.destroyInactivePanel,w=At(g,_5),E=String(S??p),O=b??i,N=$??c,I=function(j){O!=="disabled"&&(u(j),x==null||x(j))},M=!1;return a?M=d[0]===E:M=d.indexOf(E)>-1,ve.createElement(eN,xe({},w,{prefixCls:r,key:E,panelKey:E,isActive:M,accordion:a,openMotion:f,expandIcon:v,header:C,collapsible:O,onItemClick:I,destroyInactivePanel:N}),y)})},A5=function(t,n,r){if(!t)return null;var a=r.prefixCls,i=r.accordion,c=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,f=r.activeKey,v=r.openMotion,g=r.expandIcon,p=t.key||String(n),y=t.props,C=y.header,S=y.headerClass,b=y.destroyInactivePanel,x=y.collapsible,$=y.onItemClick,w=!1;i?w=f[0]===p:w=f.indexOf(p)>-1;var E=x??c,O=function(M){E!=="disabled"&&(d(M),$==null||$(M))},N={key:p,panelKey:p,header:C,headerClass:S,isActive:w,prefixCls:a,destroyInactivePanel:b??u,openMotion:v,accordion:i,children:t.props.children,onItemClick:O,expandIcon:g,collapsible:E};return typeof t.type=="string"?t:(Object.keys(N).forEach(function(I){typeof N[I]>"u"&&delete N[I]}),ve.cloneElement(t,N))};function B5(e,t,n){return Array.isArray(e)?z5(e,n):Fr(t).map(function(r,a){return A5(r,a,n)})}function L5(e){var t=e;if(!Array.isArray(t)){var n=$t(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var k5=ve.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,i=a===void 0?!1:a,c=e.style,u=e.accordion,d=e.className,f=e.children,v=e.collapsible,g=e.openMotion,p=e.expandIcon,y=e.activeKey,C=e.defaultActiveKey,S=e.onChange,b=e.items,x=ce(r,d),$=bn([],{value:y,onChange:function(T){return S==null?void 0:S(T)},defaultValue:C,postState:L5}),w=me($,2),E=w[0],O=w[1],N=function(T){return O(function(){if(u)return E[0]===T?[]:[T];var j=E.indexOf(T),_=j>-1;return _?E.filter(function(B){return B!==T}):[].concat(Te(E),[T])})};Vn(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var I=B5(b,f,{prefixCls:r,accordion:u,openMotion:g,expandIcon:p,collapsible:v,destroyInactivePanel:i,onItemClick:N,activeKey:E});return ve.createElement("div",xe({ref:t,className:x,style:c,role:u?"tablist":void 0},Sr(e,{aria:!0,data:!0})),I)});const Vy=Object.assign(k5,{Panel:eN});Vy.Panel;const H5=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(Rt),{prefixCls:r,className:a,showArrow:i=!0}=e,c=n("collapse",r),u=ce({[`${c}-no-arrow`]:!i},a);return l.createElement(Vy.Panel,Object.assign({ref:t},e,{prefixCls:c,className:u}))}),Rd=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
188
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
189
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),F5=e=>({animationDuration:e,animationFillMode:"both"}),V5=e=>({animationDuration:e,animationFillMode:"both"}),tl=(e,t,n,r,a=!1)=>{const i=a?"&":"";return{[`
|
|
190
|
+
${i}${e}-enter,
|
|
191
|
+
${i}${e}-appear
|
|
192
|
+
`]:Object.assign(Object.assign({},F5(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},V5(r)),{animationPlayState:"paused"}),[`
|
|
193
|
+
${i}${e}-enter${e}-enter-active,
|
|
194
|
+
${i}${e}-appear${e}-appear-active
|
|
195
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},W5=new Qt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),K5=new Qt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Wy=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[tl(r,W5,K5,e.motionDurationMid,t),{[`
|
|
196
|
+
${a}${r}-enter,
|
|
197
|
+
${a}${r}-appear
|
|
198
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},U5=new Qt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),q5=new Qt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),G5=new Qt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X5=new Qt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Y5=new Qt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q5=new Qt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Z5=new Qt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J5=new Qt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),eA={"move-up":{inKeyframes:Z5,outKeyframes:J5},"move-down":{inKeyframes:U5,outKeyframes:q5},"move-left":{inKeyframes:G5,outKeyframes:X5},"move-right":{inKeyframes:Y5,outKeyframes:Q5}},pc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=eA[t];return[tl(r,a,i,e.motionDurationMid),{[`
|
|
199
|
+
${r}-enter,
|
|
200
|
+
${r}-appear
|
|
201
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_v=new Qt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),zv=new Qt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Av=new Qt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Bv=new Qt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tA=new Qt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),nA=new Qt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),rA=new Qt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),aA=new Qt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),oA={"slide-up":{inKeyframes:_v,outKeyframes:zv},"slide-down":{inKeyframes:Av,outKeyframes:Bv},"slide-left":{inKeyframes:tA,outKeyframes:nA},"slide-right":{inKeyframes:rA,outKeyframes:aA}},Vo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=oA[t];return[tl(r,a,i,e.motionDurationMid),{[`
|
|
202
|
+
${r}-enter,
|
|
203
|
+
${r}-appear
|
|
204
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ky=new Qt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),iA=new Qt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Qw=new Qt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zw=new Qt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),lA=new Qt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),sA=new Qt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),cA=new Qt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),uA=new Qt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),dA=new Qt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),fA=new Qt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),mA=new Qt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),vA=new Qt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),gA={zoom:{inKeyframes:Ky,outKeyframes:iA},"zoom-big":{inKeyframes:Qw,outKeyframes:Zw},"zoom-big-fast":{inKeyframes:Qw,outKeyframes:Zw},"zoom-left":{inKeyframes:cA,outKeyframes:uA},"zoom-right":{inKeyframes:dA,outKeyframes:fA},"zoom-up":{inKeyframes:lA,outKeyframes:sA},"zoom-down":{inKeyframes:mA,outKeyframes:vA}},Id=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=gA[t];return[tl(r,a,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
205
|
+
${r}-enter,
|
|
206
|
+
${r}-appear
|
|
207
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},pA=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:i,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:f,lineType:v,colorBorder:g,colorText:p,colorTextHeading:y,colorTextDisabled:C,fontSizeLG:S,lineHeight:b,lineHeightLG:x,marginSM:$,paddingSM:w,paddingLG:E,paddingXS:O,motionDurationSlow:N,fontSizeIcon:I,contentPadding:M,fontHeight:T,fontHeightLG:j}=e,_=`${re(f)} ${v} ${g}`;return{[t]:Object.assign(Object.assign({},fn(e)),{backgroundColor:a,border:_,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&:first-child":{[`
|
|
208
|
+
&,
|
|
209
|
+
& > ${t}-header`]:{borderRadius:`${re(d)} ${re(d)} 0 0`}},"&:last-child":{[`
|
|
210
|
+
&,
|
|
211
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${re(d)} ${re(d)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:y,lineHeight:b,cursor:"pointer",transition:`all ${N}, visibility 0s`},lo(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:$},[`${t}-arrow`]:Object.assign(Object.assign({},ts()),{fontSize:I,transition:`transform ${N}`,svg:{transition:`transform ${N}`}}),[`${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:p,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:M},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:O,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(w).sub(O).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:x,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:j,marginInlineStart:e.calc(E).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${re(d)} ${re(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:C,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:$}}}}})}},hA=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},bA=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
|
|
212
|
+
> ${t}-item:last-child,
|
|
213
|
+
> ${t}-item:last-child ${t}-header
|
|
214
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},yA=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}}}}}},CA=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"}),SA=ln("Collapse",e=>{const t=rn(e,{collapseHeaderPaddingSM:`${re(e.paddingXS)} ${re(e.paddingSM)}`,collapseHeaderPaddingLG:`${re(e.padding)} ${re(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[pA(t),bA(t),yA(t),hA(t),Rd(t)]},CA),xA=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:i,style:c}=ur("collapse"),{prefixCls:u,className:d,rootClassName:f,style:v,bordered:g=!0,ghost:p,size:y,expandIconPosition:C="start",children:S,destroyInactivePanel:b,destroyOnHidden:x,expandIcon:$}=e,w=Br(F=>{var D;return(D=y??F)!==null&&D!==void 0?D:"middle"}),E=n("collapse",u),O=n(),[N,I,M]=SA(E),T=l.useMemo(()=>C==="left"?"start":C==="right"?"end":C,[C]),j=$??a,_=l.useCallback((F={})=>{const D=typeof j=="function"?j(F):l.createElement(Xl,{rotate:F.isActive?r==="rtl"?-90:90:void 0,"aria-label":F.isActive?"expanded":"collapsed"});return xr(D,()=>{var L;return{className:ce((L=D.props)===null||L===void 0?void 0:L.className,`${E}-arrow`)}})},[j,E,r]),B=ce(`${E}-icon-position-${T}`,{[`${E}-borderless`]:!g,[`${E}-rtl`]:r==="rtl",[`${E}-ghost`]:!!p,[`${E}-${w}`]:w!=="middle"},i,d,f,I,M),H=l.useMemo(()=>Object.assign(Object.assign({},gc(O)),{motionAppear:!1,leavedClassName:`${E}-content-hidden`}),[O,E]),A=l.useMemo(()=>S?Fr(S).map((F,D)=>{var L,W;const G=F.props;if(G!=null&&G.disabled){const V=(L=F.key)!==null&&L!==void 0?L:String(D),k=Object.assign(Object.assign({},xn(F.props,["disabled"])),{key:V,collapsible:(W=G.collapsible)!==null&&W!==void 0?W:"disabled"});return xr(F,k)}return F}):null,[S]);return N(l.createElement(Vy,Object.assign({ref:t,openMotion:H},xn(e,["rootClassName"]),{expandIcon:_,prefixCls:E,className:B,style:Object.assign(Object.assign({},c),v),destroyInactivePanel:x??b}),A))}),nv=Object.assign(xA,{Panel:H5}),$A=e=>e instanceof Ob?e:new Ob(e),wA=(e,t)=>{const{r:n,g:r,b:a,a:i}=e.toRgb(),c=new vd(e.toRgbString()).onBackground(t).toHsv();return i<=.5?c.v>.5:n*.299+r*.587+a*.114>192},tN=e=>{const{paddingInline:t,onlyIconSize:n}=e;return rn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},nN=e=>{var t,n,r,a,i,c;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,f=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,v=(a=e.contentLineHeight)!==null&&a!==void 0?a:Tm(u),g=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Tm(d),p=(c=e.contentLineHeightLG)!==null&&c!==void 0?c:Tm(f),y=wA(new Ob(e.colorBgSolid),"#fff")?"#000":"#fff",C=al.reduce((S,b)=>Object.assign(Object.assign({},S),{[`${b}ShadowColor`]:`0 ${re(e.controlOutlineWidth)} 0 ${Fu(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},C),{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:y,contentFontSize:u,contentFontSizeSM:d,contentFontSizeLG:f,contentLineHeight:v,contentLineHeightSM:g,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-u*v)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-f*p)/2-e.lineWidth,0)})},EA=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:i,motionEaseInOut:c,iconGap:u,calc:d}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${re(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`]:ts(),"> a":{color:"currentColor"},"&:not(:disabled)":lo(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:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(f=>`${f} ${i} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(u).mul(-1).equal()}}}}}},rN=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),OA=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),RA=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Lv=(e,t,n,r,a,i,c,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},rN(e,Object.assign({background:t},c),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),IA=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},RA(e))}),NA=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),kv=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?NA:IA;return Object.assign(Object.assign({},i(e)),rN(e.componentCls,t,n))},Hv=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},kv(e,r,a))}),Fv=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},kv(e,r,a))}),Vv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Wv=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},kv(e,n,r))}),Wo=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},kv(e,r,a,n))}),MA=e=>{const{componentCls:t}=e;return al.reduce((n,r)=>{const a=e[`${r}6`],i=e[`${r}1`],c=e[`${r}5`],u=e[`${r}2`],d=e[`${r}3`],f=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:a,boxShadow:e[`${r}ShadowColor`]},Hv(e,e.colorTextLightSolid,a,{background:c},{background:f})),Fv(e,a,e.colorBgContainer,{color:c,borderColor:c,background:e.colorBgContainer},{color:f,borderColor:f,background:e.colorBgContainer})),Vv(e)),Wv(e,i,{color:a,background:u},{color:a,background:d})),Wo(e,a,"link",{color:c},{color:f})),Wo(e,a,"text",{color:c,background:i},{color:f,background:d}))})},{})},TA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Hv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Vv(e)),Wv(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Lv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Wo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),jA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Fv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Vv(e)),Wv(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Wo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Wo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Lv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),PA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Hv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Fv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Vv(e)),Wv(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Wo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Wo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Lv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),DA=e=>Object.assign(Object.assign({},Wo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Lv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),_A=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:TA(e),[`${t}-color-primary`]:jA(e),[`${t}-color-dangerous`]:PA(e),[`${t}-color-link`]:DA(e)},MA(e))},zA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Wo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Hv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Wo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Uy=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:i,buttonPaddingHorizontal:c,iconCls:u,buttonPaddingVertical:d,buttonIconOnlyFontSize:f}=e;return[{[t]:{fontSize:a,height:r,padding:`${re(d)} ${re(c)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:f}}}},{[`${n}${n}-circle${t}`]:OA(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},AA=e=>{const t=rn(e,{fontSize:e.contentFontSize});return Uy(t,e.componentCls)},BA=e=>{const t=rn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Uy(t,`${e.componentCls}-sm`)},LA=e=>{const t=rn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Uy(t,`${e.componentCls}-lg`)},kA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},HA=ln("Button",e=>{const t=tN(e);return[EA(t),AA(t),BA(t),LA(t),kA(t),_A(t),zA(t),E5(t)]},nN,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function FA(e,t,n,r){const{focusElCls:a,focus:i,borderElCls:c}=n,u=c?"> *":"",d=["hover",i?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${u}`).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({[d]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function VA(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function rs(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,i=`${a}-compact`;return{[i]:Object.assign(Object.assign({},FA(e,i,t,a)),VA(a,i,t))}}function WA(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 KA(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 UA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},WA(e,t,e.componentCls)),KA(e.componentCls,t))}}const qA=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,i=a(r).mul(-1).equal(),c=u=>{const d=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:u?i:0,insetInlineStart:u?0:i,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},c()),c(!0))},GA=$c(["Button","compact"],e=>{const t=tN(e);return[rs(t),UA(t),qA(t)]},nN);var XA=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function YA(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 QA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ZA=ve.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:i,color:c,variant:u,type:d,danger:f=!1,shape:v,size:g,styles:p,disabled:y,className:C,rootClassName:S,children:b,icon:x,iconPosition:$="start",ghost:w=!1,block:E=!1,htmlType:O="button",classNames:N,style:I={},autoInsertSpace:M,autoFocus:T}=e,j=XA(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),_=d||"default",{button:B}=ve.useContext(Rt),H=v||(B==null?void 0:B.shape)||"default",[A,F]=l.useMemo(()=>{if(c&&u)return[c,u];if(d||f){const ke=QA[_]||[];return f?["danger",ke[1]]:ke}return B!=null&&B.color&&(B!=null&&B.variant)?[B.color,B.variant]:["default","outlined"]},[c,u,d,f,B==null?void 0:B.color,B==null?void 0:B.variant,_]),L=A==="danger"?"dangerous":A,{getPrefixCls:W,direction:G,autoInsertSpace:V,className:k,style:U,classNames:K,styles:q}=ur("button"),Z=(n=M??V)!==null&&n!==void 0?n:!0,X=W("btn",i),[ee,te,oe]=HA(X),le=l.useContext(_r),ne=y??le,Q=l.useContext(QI),ie=l.useMemo(()=>YA(a),[a]),[ue,de]=l.useState(ie.loading),[se,ge]=l.useState(!1),he=l.useRef(null),Oe=bi(t,he),Re=l.Children.count(b)===1&&!x&&!Wh(F),pe=l.useRef(!0);ve.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),nn(()=>{let ke=null;ie.delay>0?ke=setTimeout(()=>{ke=null,de(!0)},ie.delay):de(ie.loading);function et(){ke&&(clearTimeout(ke),ke=null)}return et},[ie.delay,ie.loading]),l.useEffect(()=>{if(!he.current||!Z)return;const ke=he.current.textContent||"";Re&&Eb(ke)?se||ge(!0):se&&ge(!1)}),l.useEffect(()=>{T&&he.current&&he.current.focus()},[]);const Ie=ve.useCallback(ke=>{var et;if(ue||ne){ke.preventDefault();return}(et=e.onClick)===null||et===void 0||et.call(e,("href"in e,ke))},[e.onClick,ue,ne]),{compactSize:we,compactItemClassnames:ye}=No(X,G),ze={large:"lg",small:"sm",middle:void 0},Ae=Br(ke=>{var et,ht;return(ht=(et=g??we)!==null&&et!==void 0?et:Q)!==null&&ht!==void 0?ht:ke}),Ye=Ae&&(r=ze[Ae])!==null&&r!==void 0?r:"",Ke=ue?"loading":x,Fe=xn(j,["navigate"]),Ge=ce(X,te,oe,{[`${X}-${H}`]:H!=="default"&&H,[`${X}-${_}`]:_,[`${X}-dangerous`]:f,[`${X}-color-${L}`]:L,[`${X}-variant-${F}`]:F,[`${X}-${Ye}`]:Ye,[`${X}-icon-only`]:!b&&b!==0&&!!Ke,[`${X}-background-ghost`]:w&&!Wh(F),[`${X}-loading`]:ue,[`${X}-two-chinese-chars`]:se&&Z&&!ue,[`${X}-block`]:E,[`${X}-rtl`]:G==="rtl",[`${X}-icon-end`]:$==="end"},ye,C,S,k),je=Object.assign(Object.assign({},U),I),$e=ce(N==null?void 0:N.icon,K.icon),_e=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),q.icon||{}),Ee=ke=>ve.createElement(ZI,{prefixCls:X,className:$e,style:_e},ke),Pe=()=>ve.createElement(w5,{existIcon:!!x,prefixCls:X,loading:ue,mount:pe.current});let be;x&&!ue?be=Ee(x):a&&typeof a=="object"&&a.icon?be=Ee(a.icon):be=Pe();const Se=b||b===0?$5(b,Re&&Z):null;if(Fe.href!==void 0)return ee(ve.createElement("a",Object.assign({},Fe,{className:ce(Ge,{[`${X}-disabled`]:ne}),href:ne?void 0:Fe.href,style:je,onClick:Ie,ref:Oe,tabIndex:ne?-1:0,"aria-disabled":ne}),be,Se));let Me=ve.createElement("button",Object.assign({},j,{type:O,className:Ge,style:je,onClick:Ie,disabled:ne,ref:Oe}),be,Se,ye&&ve.createElement(GA,{prefixCls:X}));return Wh(F)||(Me=ve.createElement(Od,{component:"Button",disabled:ue},Me)),ee(Me)}),Pt=ZA;Pt.Group=S5;Pt.__ANT_BUTTON=!0;const Gh=e=>typeof(e==null?void 0:e.then)=="function",qy=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:i,autoFocus:c,emitEvent:u,isSilent:d,quitOnNullishReturnValue:f,actionFn:v}=e,g=l.useRef(!1),p=l.useRef(null),[y,C]=Gl(!1),S=(...$)=>{i==null||i.apply(void 0,$)};l.useEffect(()=>{let $=null;return c&&($=setTimeout(()=>{var w;(w=p.current)===null||w===void 0||w.focus({preventScroll:!0})})),()=>{$&&clearTimeout($)}},[c]);const b=$=>{Gh($)&&(C(!0),$.then((...w)=>{C(!1,!0),S.apply(void 0,w),g.current=!1},w=>{if(C(!1,!0),g.current=!1,!(d!=null&&d()))return Promise.reject(w)}))},x=$=>{if(g.current)return;if(g.current=!0,!v){S();return}let w;if(u){if(w=v($),f&&!Gh(w)){g.current=!1,S($);return}}else if(v.length)w=v(i),g.current=!1;else if(w=v(),!Gh(w)){S();return}b(w)};return l.createElement(Pt,Object.assign({},Fy(t),{onClick:x,loading:y,prefixCls:r},a,{ref:p}),n)},Nd=ve.createContext({}),{Provider:aN}=Nd,Jw=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:i,close:c,onCancel:u,onConfirm:d}=l.useContext(Nd);return a?ve.createElement(qy,{isSilent:r,actionFn:u,close:(...f)=>{c==null||c.apply(void 0,f),d==null||d(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},e2=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:i,okType:c,onConfirm:u,onOk:d}=l.useContext(Nd);return ve.createElement(qy,{isSilent:n,type:c||"primary",actionFn:d,close:(...f)=>{t==null||t.apply(void 0,f),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},i)};var oN=l.createContext(null),t2=[];function JA(e,t){var n=l.useState(function(){if(!Yr())return null;var C=document.createElement("div");return C}),r=me(n,1),a=r[0],i=l.useRef(!1),c=l.useContext(oN),u=l.useState(t2),d=me(u,2),f=d[0],v=d[1],g=c||(i.current?void 0:function(C){v(function(S){var b=[C].concat(Te(S));return b})});function p(){a.parentElement||document.body.appendChild(a),i.current=!0}function y(){var C;(C=a.parentElement)===null||C===void 0||C.removeChild(a),i.current=!1}return nn(function(){return e?c?c(p):p():y(),y},[e]),nn(function(){f.length&&(f.forEach(function(C){return C()}),v(t2))},[f]),[a,g]}var Xh;function iN(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 a,i;if(e){var c=getComputedStyle(e);r.scrollbarColor=c.scrollbarColor,r.scrollbarWidth=c.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(u.width,10),f=parseInt(u.height,10);try{var v=d?"width: ".concat(u.width,";"):"",g=f?"height: ".concat(u.height,";"):"";di(`
|
|
215
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
216
|
+
`).concat(v,`
|
|
217
|
+
`).concat(g,`
|
|
218
|
+
}`),t)}catch(C){console.error(C),a=d,i=f}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,y=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),cd(t),{width:p,height:y}}function n2(e){return typeof document>"u"?0:(Xh===void 0&&(Xh=iN()),Xh.width)}function Rb(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:iN(e)}function eB(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var tB="rc-util-locker-".concat(Date.now()),r2=0;function nB(e){var t=!!e,n=l.useState(function(){return r2+=1,"".concat(tB,"_").concat(r2)}),r=me(n,1),a=r[0];nn(function(){if(t){var i=Rb(document.body).width,c=eB();di(`
|
|
219
|
+
html body {
|
|
220
|
+
overflow-y: hidden;
|
|
221
|
+
`.concat(c?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
222
|
+
}`),a)}else cd(a);return function(){cd(a)}},[t,a])}var rB=!1;function aB(e){return rB}var a2=function(t){return t===!1?!1:!Yr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Gy=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,c=i===void 0?!0:i,u=e.children,d=l.useState(n),f=me(d,2),v=f[0],g=f[1],p=v||n;l.useEffect(function(){(c||n)&&g(n)},[n,c]);var y=l.useState(function(){return a2(a)}),C=me(y,2),S=C[0],b=C[1];l.useEffect(function(){var _=a2(a);b(_??null)});var x=JA(p&&!S),$=me(x,2),w=$[0],E=$[1],O=S??w;nB(r&&n&&Yr()&&(O===w||O===document.body));var N=null;if(u&&So(u)&&t){var I=u;N=I.ref}var M=bi(N,t);if(!p||!Yr()||S===void 0)return null;var T=O===!1||aB(),j=u;return t&&(j=l.cloneElement(u,{ref:M})),l.createElement(oN.Provider,{value:E},T?j:ro.createPortal(j,O))}),lN=l.createContext({});function oB(){var e=ae({},xv);return e.useId}var o2=0,i2=oB();const Kv=i2?(function(t){var n=i2();return t||n}):(function(t){var n=l.useState("ssr-id"),r=me(n,2),a=r[0],i=r[1];return l.useEffect(function(){var c=o2;o2+=1,i("rc_unique_".concat(c))},[]),t||a});function l2(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function s2(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function iB(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=s2(a),n.top+=s2(a,!0),n}const lB=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var sB={width:0,height:0,overflow:"hidden",outline:"none"},cB={outline:"none"},sN=ve.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.title,c=e.ariaId,u=e.footer,d=e.closable,f=e.closeIcon,v=e.onClose,g=e.children,p=e.bodyStyle,y=e.bodyProps,C=e.modalRender,S=e.onMouseDown,b=e.onMouseUp,x=e.holderRef,$=e.visible,w=e.forceRender,E=e.width,O=e.height,N=e.classNames,I=e.styles,M=ve.useContext(lN),T=M.panel,j=bi(x,T),_=l.useRef(),B=l.useRef();ve.useImperativeHandle(t,function(){return{focus:function(){var U;(U=_.current)===null||U===void 0||U.focus({preventScroll:!0})},changeActive:function(U){var K=document,q=K.activeElement;U&&q===B.current?_.current.focus({preventScroll:!0}):!U&&q===_.current&&B.current.focus({preventScroll:!0})}}});var H={};E!==void 0&&(H.width=E),O!==void 0&&(H.height=O);var A=u?ve.createElement("div",{className:ce("".concat(n,"-footer"),N==null?void 0:N.footer),style:ae({},I==null?void 0:I.footer)},u):null,F=i?ve.createElement("div",{className:ce("".concat(n,"-header"),N==null?void 0:N.header),style:ae({},I==null?void 0:I.header)},ve.createElement("div",{className:"".concat(n,"-title"),id:c},i)):null,D=l.useMemo(function(){return $t(d)==="object"&&d!==null?d:d?{closeIcon:f??ve.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,f,n]),L=Sr(D,!0),W=$t(d)==="object"&&d.disabled,G=d?ve.createElement("button",xe({type:"button",onClick:v,"aria-label":"Close"},L,{className:"".concat(n,"-close"),disabled:W}),D.closeIcon):null,V=ve.createElement("div",{className:ce("".concat(n,"-content"),N==null?void 0:N.content),style:I==null?void 0:I.content},G,F,ve.createElement("div",xe({className:ce("".concat(n,"-body"),N==null?void 0:N.body),style:ae(ae({},p),I==null?void 0:I.body)},y),g),A);return ve.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?c:null,"aria-modal":"true",ref:j,style:ae(ae({},a),H),className:ce(n,r),onMouseDown:S,onMouseUp:b},ve.createElement("div",{ref:_,tabIndex:0,style:cB},ve.createElement(lB,{shouldUpdate:$||w},C?C(V):V)),ve.createElement("div",{tabIndex:0,ref:B,style:sB}))}),cN=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,i=e.className,c=e.visible,u=e.forceRender,d=e.destroyOnClose,f=e.motionName,v=e.ariaId,g=e.onVisibleChanged,p=e.mousePosition,y=l.useRef(),C=l.useState(),S=me(C,2),b=S[0],x=S[1],$={};b&&($.transformOrigin=b);function w(){var E=iB(y.current);x(p&&(p.x||p.y)?"".concat(p.x-E.left,"px ").concat(p.y-E.top,"px"):"")}return l.createElement(Jr,{visible:c,onVisibleChanged:g,onAppearPrepare:w,onEnterPrepare:w,forceRender:u,motionName:f,removeOnLeave:d,ref:y},function(E,O){var N=E.className,I=E.style;return l.createElement(sN,xe({},e,{ref:t,title:r,ariaId:v,prefixCls:n,holderRef:O,style:ae(ae(ae({},I),a),$),className:ce(i,N)}))})});cN.displayName="Content";var uB=function(t){var n=t.prefixCls,r=t.style,a=t.visible,i=t.maskProps,c=t.motionName,u=t.className;return l.createElement(Jr,{key:"mask",visible:a,motionName:c,leavedClassName:"".concat(n,"-mask-hidden")},function(d,f){var v=d.className,g=d.style;return l.createElement("div",xe({ref:f,style:ae(ae({},g),r),className:ce("".concat(n,"-mask"),v,u)},i))})},dB=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,i=t.visible,c=i===void 0?!1:i,u=t.keyboard,d=u===void 0?!0:u,f=t.focusTriggerAfterClose,v=f===void 0?!0:f,g=t.wrapStyle,p=t.wrapClassName,y=t.wrapProps,C=t.onClose,S=t.afterOpenChange,b=t.afterClose,x=t.transitionName,$=t.animation,w=t.closable,E=w===void 0?!0:w,O=t.mask,N=O===void 0?!0:O,I=t.maskTransitionName,M=t.maskAnimation,T=t.maskClosable,j=T===void 0?!0:T,_=t.maskStyle,B=t.maskProps,H=t.rootClassName,A=t.classNames,F=t.styles,D=l.useRef(),L=l.useRef(),W=l.useRef(),G=l.useState(c),V=me(G,2),k=V[0],U=V[1],K=Kv();function q(){G0(L.current,document.activeElement)||(D.current=document.activeElement)}function Z(){if(!G0(L.current,document.activeElement)){var de;(de=W.current)===null||de===void 0||de.focus()}}function X(de){if(de)Z();else{if(U(!1),N&&D.current&&v){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}k&&(b==null||b())}S==null||S(de)}function ee(de){C==null||C(de)}var te=l.useRef(!1),oe=l.useRef(),le=function(){clearTimeout(oe.current),te.current=!0},ne=function(){oe.current=setTimeout(function(){te.current=!1})},Q=null;j&&(Q=function(se){te.current?te.current=!1:L.current===se.target&&ee(se)});function ie(de){if(d&&de.keyCode===at.ESC){de.stopPropagation(),ee(de);return}c&&de.keyCode===at.TAB&&W.current.changeActive(!de.shiftKey)}l.useEffect(function(){c&&(U(!0),q())},[c]),l.useEffect(function(){return function(){clearTimeout(oe.current)}},[]);var ue=ae(ae(ae({zIndex:a},g),F==null?void 0:F.wrapper),{},{display:k?null:"none"});return l.createElement("div",xe({className:ce("".concat(r,"-root"),H)},Sr(t,{data:!0})),l.createElement(uB,{prefixCls:r,visible:N&&c,motionName:l2(r,I,M),style:ae(ae({zIndex:a},_),F==null?void 0:F.mask),maskProps:B,className:A==null?void 0:A.mask}),l.createElement("div",xe({tabIndex:-1,onKeyDown:ie,className:ce("".concat(r,"-wrap"),p,A==null?void 0:A.wrapper),ref:L,onClick:Q,style:ue},y),l.createElement(cN,xe({},t,{onMouseDown:le,onMouseUp:ne,ref:W,closable:E,ariaId:K,prefixCls:r,visible:c&&k,onClose:ee,onVisibleChanged:X,motionName:l2(r,x,$)}))))},uN=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,i=t.destroyOnClose,c=i===void 0?!1:i,u=t.afterClose,d=t.panelRef,f=l.useState(n),v=me(f,2),g=v[0],p=v[1],y=l.useMemo(function(){return{panel:d}},[d]);return l.useEffect(function(){n&&p(!0)},[n]),!a&&c&&!g?null:l.createElement(lN.Provider,{value:y},l.createElement(Gy,{open:n||a||g,autoDestroy:!1,getContainer:r,autoLock:n||g},l.createElement(dB,xe({},t,{destroyOnClose:c,afterClose:function(){u==null||u(),p(!1)}}))))};uN.displayName="Dialog";var Ll="RC_FORM_INTERNAL_HOOKS",tr=function(){Vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Yl=l.createContext({getFieldValue:tr,getFieldsValue:tr,getFieldError:tr,getFieldWarning:tr,getFieldsError:tr,isFieldsTouched:tr,isFieldTouched:tr,isFieldValidating:tr,isFieldsValidating:tr,resetFields:tr,setFields:tr,setFieldValue:tr,setFieldsValue:tr,validateFields:tr,submit:tr,getInternalHooks:function(){return tr(),{dispatch:tr,initEntityValue:tr,registerField:tr,useSubscribe:tr,setInitialValues:tr,destroyForm:tr,setCallbacks:tr,registerWatch:tr,getFields:tr,setValidateMessages:tr,setPreserve:tr,getInitialValue:tr}}}),gd=l.createContext(null);function Ib(e){return e==null?[]:Array.isArray(e)?e:[e]}function fB(e){return e&&!!e._init}function Nb(){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 Mb=Nb();function mB(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function vB(e,t,n){if(wv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&ld(a,n.prototype),a}function Tb(e){var t=typeof Map=="function"?new Map:void 0;return Tb=function(r){if(r===null||!mB(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,a)}function a(){return vB(r,arguments,Ul(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ld(a,r)},Tb(e)}var gB=/%[sdj%]/g,pB=function(){};function jb(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 La(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 a=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(gB,function(u){if(u==="%%")return"%";if(a>=i)return u;switch(u){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return u}});return c}return e}function hB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Vr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||hB(t)&&typeof e=="string"&&!e)}function bB(e,t,n){var r=[],a=0,i=e.length;function c(u){r.push.apply(r,Te(u||[])),a++,a===i&&n(r)}e.forEach(function(u){t(u,c)})}function c2(e,t,n){var r=0,a=e.length;function i(c){if(c&&c.length){n(c);return}var u=r;r=r+1,u<a?t(e[u],i):n([])}i([])}function yB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Te(e[n]||[]))}),t}var u2=(function(e){Fa(n,e);var t=so(n);function n(r,a){var i;return or(this,n),i=t.call(this,"Async Validation Error"),J(St(i),"errors",void 0),J(St(i),"fields",void 0),i.errors=r,i.fields=a,i}return ir(n)})(Tb(Error));function CB(e,t,n,r,a){if(t.first){var i=new Promise(function(p,y){var C=function(x){return r(x),x.length?y(new u2(x,jb(x))):p(a)},S=yB(e);c2(S,n,C)});return i.catch(function(p){return p}),i}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),d=u.length,f=0,v=[],g=new Promise(function(p,y){var C=function(b){if(v.push.apply(v,b),f++,f===d)return r(v),v.length?y(new u2(v,jb(v))):p(a)};u.length||(r(v),p(a)),u.forEach(function(S){var b=e[S];c.indexOf(S)!==-1?c2(b,n,C):bB(b,n,C)})});return g.catch(function(p){return p}),g}function SB(e){return!!(e&&e.message!==void 0)}function xB(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function d2(e,t){return function(n){var r;return e.fullFields?r=xB(t,e.fullFields):r=t[n.field||e.fullField],SB(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 f2(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];$t(r)==="object"&&$t(e[n])==="object"?e[n]=ae(ae({},e[n]),r):e[n]=r}}return e}var Fs="enum",$B=function(t,n,r,a,i){t[Fs]=Array.isArray(t[Fs])?t[Fs]:[],t[Fs].indexOf(n)===-1&&a.push(La(i.messages[Fs],t.fullField,t[Fs].join(", ")))},wB=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(La(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||a.push(La(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},EB=function(t,n,r,a,i){var c=typeof t.len=="number",u=typeof t.min=="number",d=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=n,g=null,p=typeof n=="number",y=typeof n=="string",C=Array.isArray(n);if(p?g="number":y?g="string":C&&(g="array"),!g)return!1;C&&(v=n.length),y&&(v=n.replace(f,"_").length),c?v!==t.len&&a.push(La(i.messages[g].len,t.fullField,t.len)):u&&!d&&v<t.min?a.push(La(i.messages[g].min,t.fullField,t.min)):d&&!u&&v>t.max?a.push(La(i.messages[g].max,t.fullField,t.max)):u&&d&&(v<t.min||v>t.max)&&a.push(La(i.messages[g].range,t.fullField,t.min,t.max))},dN=function(t,n,r,a,i,c){t.required&&(!r.hasOwnProperty(t.field)||Vr(n,c||t.type))&&a.push(La(i.messages.required,t.fullField))},am;const OB=(function(){if(am)return am;var e="[a-fA-F\\d:]",t=function(N){return N&&N.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}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(a.join("|"),")").concat(i),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),d=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(c,"$")),v=function(N){return N&&N.exact?u:new RegExp("(?:".concat(t(N)).concat(n).concat(t(N),")|(?:").concat(t(N)).concat(c).concat(t(N),")"),"g")};v.v4=function(O){return O&&O.exact?d:new RegExp("".concat(t(O)).concat(n).concat(t(O)),"g")},v.v6=function(O){return O&&O.exact?f:new RegExp("".concat(t(O)).concat(c).concat(t(O)),"g")};var g="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",y=v.v4().source,C=v.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',E="(?:".concat(g,"|www\\.)").concat(p,"(?:localhost|").concat(y,"|").concat(C,"|").concat(S).concat(b).concat(x,")").concat($).concat(w);return am=new RegExp("(?:^".concat(E,"$)"),"i"),am});var Yh={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},Vu={integer:function(t){return Vu.number(t)&&parseInt(t,10)===t},float:function(t){return Vu.number(t)&&!Vu.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 $t(t)==="object"&&!Vu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Yh.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Yh.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(OB())},hex:function(t){return typeof t=="string"&&!!t.match(Yh.hex)}},RB=function(t,n,r,a,i){if(t.required&&n===void 0){dN(t,n,r,a,i);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;c.indexOf(u)>-1?Vu[u](n)||a.push(La(i.messages.types[u],t.fullField,t.type)):u&&$t(n)!==t.type&&a.push(La(i.messages.types[u],t.fullField,t.type))},IB=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(La(i.messages.whitespace,t.fullField))};const Nn={required:dN,whitespace:IB,type:RB,range:EB,enum:$B,pattern:wB};var NB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i)}r(c)},MB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Nn.required(t,n,a,c,i,"array"),n!=null&&(Nn.type(t,n,a,c,i),Nn.range(t,n,a,c,i))}r(c)},TB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),n!==void 0&&Nn.type(t,n,a,c,i)}r(c)},jB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n,"date")&&!t.required)return r();if(Nn.required(t,n,a,c,i),!Vr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),Nn.type(t,d,a,c,i),d&&Nn.range(t,d.getTime(),a,c,i)}}r(c)},PB="enum",DB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),n!==void 0&&Nn[PB](t,n,a,c,i)}r(c)},_B=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),n!==void 0&&(Nn.type(t,n,a,c,i),Nn.range(t,n,a,c,i))}r(c)},zB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),n!==void 0&&(Nn.type(t,n,a,c,i),Nn.range(t,n,a,c,i))}r(c)},AB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),n!==void 0&&Nn.type(t,n,a,c,i)}r(c)},BB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),n!==void 0&&(Nn.type(t,n,a,c,i),Nn.range(t,n,a,c,i))}r(c)},LB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),n!==void 0&&Nn.type(t,n,a,c,i)}r(c)},kB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n,"string")&&!t.required)return r();Nn.required(t,n,a,c,i),Vr(n,"string")||Nn.pattern(t,n,a,c,i)}r(c)},HB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n)&&!t.required)return r();Nn.required(t,n,a,c,i),Vr(n)||Nn.type(t,n,a,c,i)}r(c)},FB=function(t,n,r,a,i){var c=[],u=Array.isArray(n)?"array":$t(n);Nn.required(t,n,a,c,i,u),r(c)},VB=function(t,n,r,a,i){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Vr(n,"string")&&!t.required)return r();Nn.required(t,n,a,c,i,"string"),Vr(n,"string")||(Nn.type(t,n,a,c,i),Nn.range(t,n,a,c,i),Nn.pattern(t,n,a,c,i),t.whitespace===!0&&Nn.whitespace(t,n,a,c,i))}r(c)},om=function(t,n,r,a,i){var c=t.type,u=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(Vr(n,c)&&!t.required)return r();Nn.required(t,n,a,u,i,c),Vr(n,c)||Nn.type(t,n,a,u,i)}r(u)};const Ju={string:VB,method:AB,number:BB,boolean:TB,regexp:HB,integer:zB,float:_B,array:MB,object:LB,enum:DB,pattern:kB,date:jB,url:om,hex:om,email:om,tel:om,required:FB,any:NB};var Md=(function(){function e(t){or(this,e),J(this,"rules",null),J(this,"_messages",Mb),this.define(t)}return ir(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if($t(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var i=n[a];r.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=f2(Nb(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,u=a,d=i;if(typeof u=="function"&&(d=u,u={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,c),Promise.resolve(c);function f(C){var S=[],b={};function x(w){if(Array.isArray(w)){var E;S=(E=S).concat.apply(E,Te(w))}else S.push(w)}for(var $=0;$<C.length;$++)x(C[$]);S.length?(b=jb(S),d(S,b)):d(null,c)}if(u.messages){var v=this.messages();v===Mb&&(v=Nb()),f2(v,u.messages),u.messages=v}else u.messages=this.messages();var g={},p=u.keys||Object.keys(this.rules);p.forEach(function(C){var S=r.rules[C],b=c[C];S.forEach(function(x){var $=x;typeof $.transform=="function"&&(c===n&&(c=ae({},c)),b=c[C]=$.transform(b),b!=null&&($.type=$.type||(Array.isArray(b)?"array":$t(b)))),typeof $=="function"?$={validator:$}:$=ae({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=C,$.fullField=$.fullField||C,$.type=r.getType($),g[C]=g[C]||[],g[C].push({rule:$,value:b,source:c,field:C}))})});var y={};return CB(g,u,function(C,S){var b=C.rule,x=(b.type==="object"||b.type==="array")&&($t(b.fields)==="object"||$t(b.defaultField)==="object");x=x&&(b.required||!b.required&&C.value),b.field=C.field;function $(I,M){return ae(ae({},M),{},{fullField:"".concat(b.fullField,".").concat(I),fullFields:b.fullFields?[].concat(Te(b.fullFields),[I]):[I]})}function w(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(I)?I:[I];!u.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&b.message!==void 0&&b.message!==null&&(M=[].concat(b.message));var T=M.map(d2(b,c));if(u.first&&T.length)return y[b.field]=1,S(T);if(!x)S(T);else{if(b.required&&!C.value)return b.message!==void 0?T=[].concat(b.message).map(d2(b,c)):u.error&&(T=[u.error(b,La(u.messages.required,b.field))]),S(T);var j={};b.defaultField&&Object.keys(C.value).map(function(H){j[H]=b.defaultField}),j=ae(ae({},j),C.rule.fields);var _={};Object.keys(j).forEach(function(H){var A=j[H],F=Array.isArray(A)?A:[A];_[H]=F.map($.bind(null,H))});var B=new e(_);B.messages(u.messages),C.rule.options&&(C.rule.options.messages=u.messages,C.rule.options.error=u.error),B.validate(C.value,C.rule.options||u,function(H){var A=[];T&&T.length&&A.push.apply(A,Te(T)),H&&H.length&&A.push.apply(A,Te(H)),S(A.length?A:null)})}}var E;if(b.asyncValidator)E=b.asyncValidator(b,C.value,w,C.source,u);else if(b.validator){try{E=b.validator(b,C.value,w,C.source,u)}catch(I){var O,N;(O=(N=console).error)===null||O===void 0||O.call(N,I),u.suppressValidatorError||setTimeout(function(){throw I},0),w(I.message)}E===!0?w():E===!1?w(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):E instanceof Array?w(E):E instanceof Error&&w(E.message)}E&&E.then&&E.then(function(){return w()},function(I){return w(I)})},function(C){f(C)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ju.hasOwnProperty(n.type))throw new Error(La("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),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Ju.required:Ju[this.getType(n)]||void 0}}]),e})();J(Md,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ju[t]=n});J(Md,"warning",pB);J(Md,"messages",Mb);J(Md,"validators",Ju);var za="'${name}' is not a valid ${type}",fN={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:za,method:za,array:za,object:za,number:za,date:za,boolean:za,integer:za,float:za,regexp:za,email:za,url:za,hex:za},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}"}},m2=Md;function WB(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 v2="CODE_LOGIC_ERROR";function Pb(e,t,n,r,a){return Db.apply(this,arguments)}function Db(){return Db=pa(Bn().mark(function e(t,n,r,a,i){var c,u,d,f,v,g,p,y,C;return Bn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return c=ae({},r),delete c.ruleIndex,m2.warning=function(){},c.validator&&(u=c.validator,c.validator=function(){try{return u.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(v2)}}),d=null,c&&c.type==="array"&&c.defaultField&&(d=c.defaultField,delete c.defaultField),f=new m2(J({},t,[c])),v=ec(fN,a.validateMessages),f.messages(v),g=[],b.prev=10,b.next=13,Promise.resolve(f.validate(J({},t,n),ae({},a)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(g=b.t0.errors.map(function(x,$){var w=x.message,E=w===v2?v.default:w;return l.isValidElement(E)?l.cloneElement(E,{key:"error_".concat($)}):E}));case 18:if(!(!g.length&&d&&Array.isArray(n)&&n.length>0)){b.next=23;break}return b.next=21,Promise.all(n.map(function(x,$){return Pb("".concat(t,".").concat($),x,d,a,i)}));case 21:return p=b.sent,b.abrupt("return",p.reduce(function(x,$){return[].concat(Te(x),Te($))},[]));case 23:return y=ae(ae({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),C=g.map(function(x){return typeof x=="string"?WB(x,y):x}),b.abrupt("return",C);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Db.apply(this,arguments)}function KB(e,t,n,r,a,i){var c=e.join("."),u=n.map(function(v,g){var p=v.validator,y=ae(ae({},v),{},{ruleIndex:g});return p&&(y.validator=function(C,S,b){var x=!1,$=function(){for(var O=arguments.length,N=new Array(O),I=0;I<O;I++)N[I]=arguments[I];Promise.resolve().then(function(){Vn(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||b.apply(void 0,N)})},w=p(C,S,$);x=w&&typeof w.then=="function"&&typeof w.catch=="function",Vn(x,"`callback` is deprecated. Please return a promise instead."),x&&w.then(function(){b()}).catch(function(E){b(E||" ")})}),y}).sort(function(v,g){var p=v.warningOnly,y=v.ruleIndex,C=g.warningOnly,S=g.ruleIndex;return!!p==!!C?y-S:p?1:-1}),d;if(a===!0)d=new Promise((function(){var v=pa(Bn().mark(function g(p,y){var C,S,b;return Bn().wrap(function($){for(;;)switch($.prev=$.next){case 0:C=0;case 1:if(!(C<u.length)){$.next=12;break}return S=u[C],$.next=5,Pb(c,t,S,r,i);case 5:if(b=$.sent,!b.length){$.next=9;break}return y([{errors:b,rule:S}]),$.abrupt("return");case 9:C+=1,$.next=1;break;case 12:p([]);case 13:case"end":return $.stop()}},g)}));return function(g,p){return v.apply(this,arguments)}})());else{var f=u.map(function(v){return Pb(c,t,v,r,i).then(function(g){return{errors:g,rule:v}})});d=(a?qB(f):UB(f)).then(function(v){return Promise.reject(v)})}return d.catch(function(v){return v}),d}function UB(e){return _b.apply(this,arguments)}function _b(){return _b=pa(Bn().mark(function e(t){return Bn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var i,c=(i=[]).concat.apply(i,Te(a));return c}));case 1:case"end":return r.stop()}},e)})),_b.apply(this,arguments)}function qB(e){return zb.apply(this,arguments)}function zb(){return zb=pa(Bn().mark(function e(t){var n;return Bn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(i){t.forEach(function(c){c.then(function(u){u.errors.length&&i([u]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return a.stop()}},e)})),zb.apply(this,arguments)}function Rr(e){return Ib(e)}function g2(e,t){var n={};return t.forEach(function(r){var a=ga(e,r);n=to(n,r,a)}),n}function ic(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return mN(t,r,n)})}function mN(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,a){return e[a]===r})}function GB(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||$t(e)!=="object"||$t(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Te(a).every(function(i){var c=e[i],u=t[i];return typeof c=="function"&&typeof u=="function"?!0:c===u})}function XB(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&$t(t.target)==="object"&&e in t.target?t.target[e]:t}function p2(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],i=t-n;return i>0?[].concat(Te(e.slice(0,n)),[a],Te(e.slice(n,t)),Te(e.slice(t+1,r))):i<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[a],Te(e.slice(n+1,r))):e}var YB=["name"],Za=[];function Qh(e,t,n,r,a,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==a}var Xy=(function(e){Fa(n,e);var t=so(n);function n(r){var a;if(or(this,n),a=t.call(this,r),J(St(a),"state",{resetCount:0}),J(St(a),"cancelRegisterFunc",null),J(St(a),"mounted",!1),J(St(a),"touched",!1),J(St(a),"dirty",!1),J(St(a),"validatePromise",void 0),J(St(a),"prevValidating",void 0),J(St(a),"errors",Za),J(St(a),"warnings",Za),J(St(a),"cancelRegister",function(){var d=a.props,f=d.preserve,v=d.isListField,g=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(v,f,Rr(g)),a.cancelRegisterFunc=null}),J(St(a),"getNamePath",function(){var d=a.props,f=d.name,v=d.fieldContext,g=v.prefixName,p=g===void 0?[]:g;return f!==void 0?[].concat(Te(p),Te(f)):[]}),J(St(a),"getRules",function(){var d=a.props,f=d.rules,v=f===void 0?[]:f,g=d.fieldContext;return v.map(function(p){return typeof p=="function"?p(g):p})}),J(St(a),"refresh",function(){a.mounted&&a.setState(function(d){var f=d.resetCount;return{resetCount:f+1}})}),J(St(a),"metaCache",null),J(St(a),"triggerMetaEvent",function(d){var f=a.props.onMetaChange;if(f){var v=ae(ae({},a.getMeta()),{},{destroy:d});xo(a.metaCache,v)||f(v),a.metaCache=v}else a.metaCache=null}),J(St(a),"onStoreChange",function(d,f,v){var g=a.props,p=g.shouldUpdate,y=g.dependencies,C=y===void 0?[]:y,S=g.onReset,b=v.store,x=a.getNamePath(),$=a.getValue(d),w=a.getValue(b),E=f&&ic(f,x);switch(v.type==="valueUpdate"&&v.source==="external"&&!xo($,w)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Za,a.warnings=Za,a.triggerMetaEvent()),v.type){case"reset":if(!f||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Za,a.warnings=Za,a.triggerMetaEvent(),S==null||S(),a.refresh();return}break;case"remove":{if(p&&Qh(p,d,b,$,w,v)){a.reRender();return}break}case"setField":{var O=v.data;if(E){"touched"in O&&(a.touched=O.touched),"validating"in O&&!("originRCField"in O)&&(a.validatePromise=O.validating?Promise.resolve([]):null),"errors"in O&&(a.errors=O.errors||Za),"warnings"in O&&(a.warnings=O.warnings||Za),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in O&&ic(f,x,!0)){a.reRender();return}if(p&&!x.length&&Qh(p,d,b,$,w,v)){a.reRender();return}break}case"dependenciesUpdate":{var N=C.map(Rr);if(N.some(function(I){return ic(v.relatedFields,I)})){a.reRender();return}break}default:if(E||(!C.length||x.length||p)&&Qh(p,d,b,$,w,v)){a.reRender();return}break}p===!0&&a.reRender()}),J(St(a),"validateRules",function(d){var f=a.getNamePath(),v=a.getValue(),g=d||{},p=g.triggerName,y=g.validateOnly,C=y===void 0?!1:y,S=Promise.resolve().then(pa(Bn().mark(function b(){var x,$,w,E,O,N,I;return Bn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(a.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(x=a.props,$=x.validateFirst,w=$===void 0?!1:$,E=x.messageVariables,O=x.validateDebounce,N=a.getRules(),p&&(N=N.filter(function(j){return j}).filter(function(j){var _=j.validateTrigger;if(!_)return!0;var B=Ib(_);return B.includes(p)})),!(O&&p)){T.next=10;break}return T.next=8,new Promise(function(j){setTimeout(j,O)});case 8:if(a.validatePromise===S){T.next=10;break}return T.abrupt("return",[]);case 10:return I=KB(f,v,N,d,w,E),I.catch(function(j){return j}).then(function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Za;if(a.validatePromise===S){var _;a.validatePromise=null;var B=[],H=[];(_=j.forEach)===null||_===void 0||_.call(j,function(A){var F=A.rule.warningOnly,D=A.errors,L=D===void 0?Za:D;F?H.push.apply(H,Te(L)):B.push.apply(B,Te(L))}),a.errors=B,a.warnings=H,a.triggerMetaEvent(),a.reRender()}}),T.abrupt("return",I);case 13:case"end":return T.stop()}},b)})));return C||(a.validatePromise=S,a.dirty=!0,a.errors=Za,a.warnings=Za,a.triggerMetaEvent(),a.reRender()),S}),J(St(a),"isFieldValidating",function(){return!!a.validatePromise}),J(St(a),"isFieldTouched",function(){return a.touched}),J(St(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,f=d.getInternalHooks(Ll),v=f.getInitialValue;return v(a.getNamePath())!==void 0}),J(St(a),"getErrors",function(){return a.errors}),J(St(a),"getWarnings",function(){return a.warnings}),J(St(a),"isListField",function(){return a.props.isListField}),J(St(a),"isList",function(){return a.props.isList}),J(St(a),"isPreserve",function(){return a.props.preserve}),J(St(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var d={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return d}),J(St(a),"getOnlyChild",function(d){if(typeof d=="function"){var f=a.getMeta();return ae(ae({},a.getOnlyChild(d(a.getControlled(),f,a.props.fieldContext))),{},{isFunction:!0})}var v=Fr(d);return v.length!==1||!l.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}}),J(St(a),"getValue",function(d){var f=a.props.fieldContext.getFieldsValue,v=a.getNamePath();return ga(d||f(!0),v)}),J(St(a),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=a.props,v=f.name,g=f.trigger,p=f.validateTrigger,y=f.getValueFromEvent,C=f.normalize,S=f.valuePropName,b=f.getValueProps,x=f.fieldContext,$=p!==void 0?p:x.validateTrigger,w=a.getNamePath(),E=x.getInternalHooks,O=x.getFieldsValue,N=E(Ll),I=N.dispatch,M=a.getValue(),T=b||function(A){return J({},S,A)},j=d[g],_=v!==void 0?T(M):{},B=ae(ae({},d),_);B[g]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var A,F=arguments.length,D=new Array(F),L=0;L<F;L++)D[L]=arguments[L];y?A=y.apply(void 0,D):A=XB.apply(void 0,[S].concat(D)),C&&(A=C(A,M,O(!0))),A!==M&&I({type:"updateValue",namePath:w,value:A}),j&&j.apply(void 0,D)};var H=Ib($||[]);return H.forEach(function(A){var F=B[A];B[A]=function(){F&&F.apply(void 0,arguments);var D=a.props.rules;D&&D.length&&I({type:"validateField",namePath:w,triggerName:A})}}),B}),r.fieldContext){var i=r.fieldContext.getInternalHooks,c=i(Ll),u=c.initEntityValue;u(St(a))}return a}return ir(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,c=a.fieldContext;if(this.mounted=!0,c){var u=c.getInternalHooks,d=u(Ll),f=d.registerField;this.cancelRegisterFunc=f(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,i=this.props.children,c=this.getOnlyChild(i),u=c.child,d=c.isFunction,f;return d?f=u:l.isValidElement(u)?f=l.cloneElement(u,this.getControlled(u.props)):(Vn(!u,"`children` of Field is not validate ReactElement."),f=u),l.createElement(l.Fragment,{key:a},f)}}]),n})(l.Component);J(Xy,"contextType",Yl);J(Xy,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Yy(e){var t,n=e.name,r=At(e,YB),a=l.useContext(Yl),i=l.useContext(gd),c=n!==void 0?Rr(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!i,d="keep";return u||(d="_".concat((c||[]).join("_"))),l.createElement(Xy,xe({key:d,name:c,isListField:u},r,{fieldContext:a}))}function vN(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,i=e.validateTrigger,c=e.isListField,u=l.useContext(Yl),d=l.useContext(gd),f=l.useRef({keys:[],id:0}),v=f.current,g=l.useMemo(function(){var S=Rr(u.prefixName)||[];return[].concat(Te(S),Te(Rr(t)))},[u.prefixName,t]),p=l.useMemo(function(){return ae(ae({},u),{},{prefixName:g})},[u,g]),y=l.useMemo(function(){return{getKey:function(b){var x=g.length,$=b[x];return[v.keys[$],b.slice(x+1)]}}},[g]);if(typeof r!="function")return Vn(!1,"Form.List only accepts function as children."),null;var C=function(b,x,$){var w=$.source;return w==="internal"?!1:b!==x};return l.createElement(gd.Provider,{value:y},l.createElement(Yl.Provider,{value:p},l.createElement(Yy,{name:[],shouldUpdate:C,rules:a,validateTrigger:i,initialValue:n,isList:!0,isListField:c??!!d},function(S,b){var x=S.value,$=x===void 0?[]:x,w=S.onChange,E=u.getFieldValue,O=function(){var T=E(g||[]);return T||[]},N={add:function(T,j){var _=O();j>=0&&j<=_.length?(v.keys=[].concat(Te(v.keys.slice(0,j)),[v.id],Te(v.keys.slice(j))),w([].concat(Te(_.slice(0,j)),[T],Te(_.slice(j))))):(v.keys=[].concat(Te(v.keys),[v.id]),w([].concat(Te(_),[T]))),v.id+=1},remove:function(T){var j=O(),_=new Set(Array.isArray(T)?T:[T]);_.size<=0||(v.keys=v.keys.filter(function(B,H){return!_.has(H)}),w(j.filter(function(B,H){return!_.has(H)})))},move:function(T,j){if(T!==j){var _=O();T<0||T>=_.length||j<0||j>=_.length||(v.keys=p2(v.keys,T,j),w(p2(_,T,j)))}}},I=$||[];return Array.isArray(I)||(I=[]),r(I.map(function(M,T){var j=v.keys[T];return j===void 0&&(v.keys[T]=v.id,j=v.keys[T],v.id+=1),{name:T,key:j,isListField:!0}}),N,b)})))}function QB(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,i){e.forEach(function(c,u){c.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[u]=d,!(n>0)&&(t&&i(r),a(r))})})}):Promise.resolve([])}var gN="__@field_split__";function Zh(e){return e.map(function(t){return"".concat($t(t),":").concat(t)}).join(gN)}var Vs=(function(){function e(){or(this,e),J(this,"kvs",new Map)}return ir(e,[{key:"set",value:function(n,r){this.kvs.set(Zh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Zh(n))}},{key:"update",value:function(n,r){var a=this.get(n),i=r(a);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Zh(n))}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var a=me(r,2),i=a[0],c=a[1],u=i.split(gN);return n({key:u.map(function(d){var f=d.match(/^([^:]*):(.*)$/),v=me(f,3),g=v[1],p=v[2];return g==="number"?Number(p):p}),value:c})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,i=r.value;return n[a.join(".")]=i,null}),n}}]),e})(),ZB=["name"],JB=ir(function e(t){var n=this;or(this,e),J(this,"formHooked",!1),J(this,"forceRootUpdate",void 0),J(this,"subscribable",!0),J(this,"store",{}),J(this,"fieldEntities",[]),J(this,"initialValues",{}),J(this,"callbacks",{}),J(this,"validateMessages",null),J(this,"preserve",null),J(this,"lastValidatePromise",null),J(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),J(this,"getInternalHooks",function(r){return r===Ll?(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}):(Vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),J(this,"useSubscribe",function(r){n.subscribable=r}),J(this,"prevWithoutPreserves",null),J(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var i,c=ec(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(u){var d=u.key;c=to(c,d,ga(r,d))}),n.prevWithoutPreserves=null,n.updateStore(c)}}),J(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new Vs;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),J(this,"getInitialValue",function(r){var a=ga(n.initialValues,r);return r.length?ec(a):a}),J(this,"setCallbacks",function(r){n.callbacks=r}),J(this,"setValidateMessages",function(r){n.validateMessages=r}),J(this,"setPreserve",function(r){n.preserve=r}),J(this,"watchList",[]),J(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),J(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(c){c(a,i,r)})}}),J(this,"timeoutId",null),J(this,"warningUnhooked",function(){}),J(this,"updateStore",function(r){n.store=r}),J(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),J(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Vs;return n.getFieldEntities(r).forEach(function(i){var c=i.getNamePath();a.set(c,i)}),a}),J(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(i){var c=Rr(i);return a.get(c)||{INVALIDATE_NAME_PATH:Rr(i)}})}),J(this,"getFieldsValue",function(r,a){n.warningUnhooked();var i,c,u;if(r===!0||Array.isArray(r)?(i=r,c=a):r&&$t(r)==="object"&&(u=r.strict,c=r.filter),i===!0&&!c)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),f=[];return d.forEach(function(v){var g,p,y="INVALIDATE_NAME_PATH"in v?v.INVALIDATE_NAME_PATH:v.getNamePath();if(u){var C,S;if((C=(S=v).isList)!==null&&C!==void 0&&C.call(S))return}else if(!i&&(g=(p=v).isListField)!==null&&g!==void 0&&g.call(p))return;if(!c)f.push(y);else{var b="getMeta"in v?v.getMeta():null;c(b)&&f.push(y)}}),g2(n.store,f.map(Rr))}),J(this,"getFieldValue",function(r){n.warningUnhooked();var a=Rr(r);return ga(n.store,a)}),J(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(i,c){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Rr(r[c]),errors:[],warnings:[]}})}),J(this,"getFieldError",function(r){n.warningUnhooked();var a=Rr(r),i=n.getFieldsError([a])[0];return i.errors}),J(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Rr(r),i=n.getFieldsError([a])[0];return i.warnings}),J(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var c=a[0],u=a[1],d,f=!1;a.length===0?d=null:a.length===1?Array.isArray(c)?(d=c.map(Rr),f=!1):(d=null,f=c):(d=c.map(Rr),f=u);var v=n.getFieldEntities(!0),g=function(b){return b.isFieldTouched()};if(!d)return f?v.every(function(S){return g(S)||S.isList()}):v.some(g);var p=new Vs;d.forEach(function(S){p.set(S,[])}),v.forEach(function(S){var b=S.getNamePath();d.forEach(function(x){x.every(function($,w){return b[w]===$})&&p.update(x,function($){return[].concat(Te($),[S])})})});var y=function(b){return b.some(g)},C=p.map(function(S){var b=S.value;return b});return f?C.every(y):C.some(y)}),J(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),J(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(c){return c.isFieldValidating()});var i=r.map(Rr);return a.some(function(c){var u=c.getNamePath();return ic(i,u)&&c.isFieldValidating()})}),J(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),J(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Vs,i=n.getFieldEntities(!0);i.forEach(function(d){var f=d.props.initialValue,v=d.getNamePath();if(f!==void 0){var g=a.get(v)||new Set;g.add({entity:d,value:f}),a.set(v,g)}});var c=function(f){f.forEach(function(v){var g=v.props.initialValue;if(g!==void 0){var p=v.getNamePath(),y=n.getInitialValue(p);if(y!==void 0)Vn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var C=a.get(p);if(C&&C.size>1)Vn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var S=n.getFieldValue(p),b=v.isListField();!b&&(!r.skipExist||S===void 0)&&n.updateStore(to(n.store,p,Te(C)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(d){var f=a.get(d);if(f){var v;(v=u).push.apply(v,Te(Te(f).map(function(g){return g.entity})))}})):u=i,c(u)}),J(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(ec(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Rr);i.forEach(function(c){var u=n.getInitialValue(c);n.updateStore(to(n.store,c,u))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(a,i,{type:"reset"}),n.notifyWatch(i)}),J(this,"setFields",function(r){n.warningUnhooked();var a=n.store,i=[];r.forEach(function(c){var u=c.name,d=At(c,ZB),f=Rr(u);i.push(f),"value"in d&&n.updateStore(to(n.store,f,d.value)),n.notifyObservers(a,[f],{type:"setField",data:c})}),n.notifyWatch(i)}),J(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(i){var c=i.getNamePath(),u=i.getMeta(),d=ae(ae({},u),{},{name:c,value:n.getFieldValue(c)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),J(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var i=r.getNamePath(),c=ga(n.store,i);c===void 0&&n.updateStore(to(n.store,i,a))}}),J(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),J(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!c||d.length>1)){var f=c?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==f&&n.fieldEntities.every(function(g){return!mN(g.getNamePath(),a)})){var v=n.store;n.updateStore(to(v,a,f,!0)),n.notifyObservers(v,[a],{type:"remove"}),n.triggerDependenciesUpdate(v,a)}}n.notifyWatch([a])}}),J(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,i=r.value;n.updateValue(a,i);break}case"validateField":{var c=r.namePath,u=r.triggerName;n.validateFields([c],{triggerName:u});break}}}),J(this,"notifyObservers",function(r,a,i){if(n.subscribable){var c=ae(ae({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,a,c)})}else n.forceRootUpdate()}),J(this,"triggerDependenciesUpdate",function(r,a){var i=n.getDependencyChildrenFields(a);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[a].concat(Te(i))}),i}),J(this,"updateValue",function(r,a){var i=Rr(r),c=n.store;n.updateStore(to(n.store,i,a)),n.notifyObservers(c,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var u=n.triggerDependenciesUpdate(c,i),d=n.callbacks.onValuesChange;if(d){var f=g2(n.store,[i]);d(f,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Te(u)))}),J(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var i=ec(n.store,r);n.updateStore(i)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),J(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),J(this,"getDependencyChildrenFields",function(r){var a=new Set,i=[],c=new Vs;n.getFieldEntities().forEach(function(d){var f=d.props.dependencies;(f||[]).forEach(function(v){var g=Rr(v);c.update(g,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(d),p})})});var u=function d(f){var v=c.get(f)||new Set;v.forEach(function(g){if(!a.has(g)){a.add(g);var p=g.getNamePath();g.isFieldDirty()&&p.length&&(i.push(p),d(p))}})};return u(r),i}),J(this,"triggerOnFieldsChange",function(r,a){var i=n.callbacks.onFieldsChange;if(i){var c=n.getFields();if(a){var u=new Vs;a.forEach(function(f){var v=f.name,g=f.errors;u.set(v,g)}),c.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var d=c.filter(function(f){var v=f.name;return ic(r,v)});d.length&&i(d,c)}}),J(this,"validateFields",function(r,a){n.warningUnhooked();var i,c;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(i=r,c=a):c=r;var u=!!i,d=u?i.map(Rr):[],f=[],v=String(Date.now()),g=new Set,p=c||{},y=p.recursive,C=p.dirty;n.getFieldEntities(!0).forEach(function($){if(u||d.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(C&&!$.isFieldDirty())){var w=$.getNamePath();if(g.add(w.join(v)),!u||ic(d,w,y)){var E=$.validateRules(ae({validateMessages:ae(ae({},fN),n.validateMessages)},c));f.push(E.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(O){var N,I=[],M=[];return(N=O.forEach)===null||N===void 0||N.call(O,function(T){var j=T.rule.warningOnly,_=T.errors;j?M.push.apply(M,Te(_)):I.push.apply(I,Te(_))}),I.length?Promise.reject({name:w,errors:I,warnings:M}):{name:w,errors:I,warnings:M}}))}}});var S=QB(f);n.lastValidatePromise=S,S.catch(function($){return $}).then(function($){var w=$.map(function(E){var O=E.name;return O});n.notifyObservers(n.store,w,{type:"validateFinish"}),n.triggerOnFieldsChange(w,$)});var b=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function($){var w=$.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:w,outOfDate:n.lastValidatePromise!==S})});b.catch(function($){return $});var x=d.filter(function($){return g.has($.join(v))});return n.triggerOnFieldsChange(x),b}),J(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(i){console.error(i)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function Qy(e){var t=l.useRef(),n=l.useState({}),r=me(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},c=new JB(i);t.current=c.getForm()}return[t.current]}var Ab=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),pN=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,i=t.children,c=l.useContext(Ab),u=l.useRef({});return l.createElement(Ab.Provider,{value:ae(ae({},c),{},{validateMessages:ae(ae({},c.validateMessages),n),triggerFormChange:function(f,v){r&&r(f,{changedFields:v,forms:u.current}),c.triggerFormChange(f,v)},triggerFormFinish:function(f,v){a&&a(f,{values:v,forms:u.current}),c.triggerFormFinish(f,v)},registerForm:function(f,v){f&&(u.current=ae(ae({},u.current),{},J({},f,v))),c.registerForm(f,v)},unregisterForm:function(f){var v=ae({},u.current);delete v[f],u.current=v,c.unregisterForm(f)}})},i)},e7=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],t7=function(t,n){var r=t.name,a=t.initialValues,i=t.fields,c=t.form,u=t.preserve,d=t.children,f=t.component,v=f===void 0?"form":f,g=t.validateMessages,p=t.validateTrigger,y=p===void 0?"onChange":p,C=t.onValuesChange,S=t.onFieldsChange,b=t.onFinish,x=t.onFinishFailed,$=t.clearOnDestroy,w=At(t,e7),E=l.useRef(null),O=l.useContext(Ab),N=Qy(c),I=me(N,1),M=I[0],T=M.getInternalHooks(Ll),j=T.useSubscribe,_=T.setInitialValues,B=T.setCallbacks,H=T.setValidateMessages,A=T.setPreserve,F=T.destroyForm;l.useImperativeHandle(n,function(){return ae(ae({},M),{},{nativeElement:E.current})}),l.useEffect(function(){return O.registerForm(r,M),function(){O.unregisterForm(r)}},[O,M,r]),H(ae(ae({},O.validateMessages),g)),B({onValuesChange:C,onFieldsChange:function(q){if(O.triggerFormChange(r,q),S){for(var Z=arguments.length,X=new Array(Z>1?Z-1:0),ee=1;ee<Z;ee++)X[ee-1]=arguments[ee];S.apply(void 0,[q].concat(X))}},onFinish:function(q){O.triggerFormFinish(r,q),b&&b(q)},onFinishFailed:x}),A(u);var D=l.useRef(null);_(a,!D.current),D.current||(D.current=!0),l.useEffect(function(){return function(){return F($)}},[]);var L,W=typeof d=="function";if(W){var G=M.getFieldsValue(!0);L=d(G,M)}else L=d;j(!W);var V=l.useRef();l.useEffect(function(){GB(V.current||[],i||[])||M.setFields(i||[]),V.current=i},[i,M]);var k=l.useMemo(function(){return ae(ae({},M),{},{validateTrigger:y})},[M,y]),U=l.createElement(gd.Provider,{value:null},l.createElement(Yl.Provider,{value:k},L));return v===!1?U:l.createElement(v,xe({},w,{ref:E,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),M.submit()},onReset:function(q){var Z;q.preventDefault(),M.resetFields(),(Z=w.onReset)===null||Z===void 0||Z.call(w,q)}}),U)};function h2(e){try{return JSON.stringify(e)}catch{return Math.random()}}function hN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],i=a===void 0?{}:a,c=fB(i)?{form:i}:i,u=c.form,d=l.useState(),f=me(d,2),v=f[0],g=f[1],p=l.useMemo(function(){return h2(v)},[v]),y=l.useRef(p);y.current=p;var C=l.useContext(Yl),S=u||C,b=S&&S._init,x=Rr(r),$=l.useRef(x);return $.current=x,l.useEffect(function(){if(b){var w=S.getFieldsValue,E=S.getInternalHooks,O=E(Ll),N=O.registerWatch,I=function(_,B){var H=c.preserve?B:_;return typeof r=="function"?r(H):ga(H,$.current)},M=N(function(j,_){var B=I(j,_),H=h2(B);y.current!==H&&(y.current=H,g(B))}),T=I(w(),w(!0));return v!==T&&g(T),M}},[b]),v}var n7=l.forwardRef(t7),Rc=n7;Rc.FormProvider=pN;Rc.Field=Yy;Rc.List=vN;Rc.useForm=Qy;Rc.useWatch=hN;const gi=l.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),bN=l.createContext(null),yN=e=>{const t=xn(e,["prefixCls"]);return l.createElement(pN,Object.assign({},t))},Zy=l.createContext({prefixCls:""}),zr=l.createContext({}),CN=({children:e,status:t,override:n})=>{const r=l.useContext(zr),a=l.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return l.createElement(zr.Provider,{value:a},e)},SN=l.createContext(void 0),Ko=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ve.createElement(CN,{override:!0,status:!0},a)),t&&(a=ve.createElement(h5,null,a)),a};var xN=function(t){if(Yr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},r7=function(t,n){if(!xN(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function Bb(e,t){return!Array.isArray(e)&&t!==void 0?r7(e,t):xN(e)}const a7=()=>Yr()&&window.document.documentElement,Uv=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:i}=e,c=ce({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=ce({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),d=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:ce(t,c,u,n),style:Object.assign(Object.assign({},d),r)})},o7=new Qt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),qv=e=>({height:e,lineHeight:re(e)}),lc=e=>Object.assign({width:e},qv(e)),i7=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:o7,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Jh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},qv(e)),l7=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},lc(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},lc(a)),[`${t}${t}-sm`]:Object.assign({},lc(i))}},s7=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:c,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},Jh(t,u)),[`${r}-lg`]:Object.assign({},Jh(a,u)),[`${r}-sm`]:Object.assign({},Jh(i,u))}},b2=e=>Object.assign({width:e},qv(e)),c7=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},b2(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},b2(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},e0=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},t0=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},qv(e)),u7=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:c,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},t0(r,u))},e0(e,r,n)),{[`${n}-lg`]:Object.assign({},t0(a,u))}),e0(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},t0(i,u))}),e0(e,i,`${n}-sm`))},d7=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:u,controlHeight:d,controlHeightLG:f,controlHeightSM:v,gradientFromColor:g,padding:p,marginSM:y,borderRadius:C,titleHeight:S,blockRadius:b,paragraphLiHeight:x,controlHeightXS:$,paragraphMarginTop:w}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},lc(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},lc(f)),[`${n}-sm`]:Object.assign({},lc(v))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:g,borderRadius:b,[`+ ${a}`]:{marginBlockStart:v}},[a]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:g,borderRadius:b,"+ li":{marginBlockStart:$}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${a}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},u7(e)),l7(e)),s7(e)),c7(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
223
|
+
${r},
|
|
224
|
+
${a} > li,
|
|
225
|
+
${n},
|
|
226
|
+
${i},
|
|
227
|
+
${c},
|
|
228
|
+
${u}
|
|
229
|
+
`]:Object.assign({},i7(e))}}},f7=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Ic=ln("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=rn(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 d7(r)},f7,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),m7=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:i="circle",size:c="default"}=e,{getPrefixCls:u}=l.useContext(Rt),d=u("skeleton",t),[f,v,g]=Ic(d),p=xn(e,["prefixCls","className"]),y=ce(d,`${d}-element`,{[`${d}-active`]:a},n,r,v,g);return f(l.createElement("div",{className:y},l.createElement(Uv,Object.assign({prefixCls:`${d}-avatar`,shape:i,size:c},p))))},v7=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i=!1,size:c="default"}=e,{getPrefixCls:u}=l.useContext(Rt),d=u("skeleton",t),[f,v,g]=Ic(d),p=xn(e,["prefixCls"]),y=ce(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:i},n,r,v,g);return f(l.createElement("div",{className:y},l.createElement(Uv,Object.assign({prefixCls:`${d}-button`,size:c},p))))},g7="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",p7=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i}=e,{getPrefixCls:c}=l.useContext(Rt),u=c("skeleton",t),[d,f,v]=Ic(u),g=ce(u,`${u}-element`,{[`${u}-active`]:i},n,r,f,v);return d(l.createElement("div",{className:g},l.createElement("div",{className:ce(`${u}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:g7,className:`${u}-image-path`})))))},h7=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i,size:c="default"}=e,{getPrefixCls:u}=l.useContext(Rt),d=u("skeleton",t),[f,v,g]=Ic(d),p=xn(e,["prefixCls"]),y=ce(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:i},n,r,v,g);return f(l.createElement("div",{className:y},l.createElement(Uv,Object.assign({prefixCls:`${d}-input`,size:c},p))))},b7=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i,children:c}=e,{getPrefixCls:u}=l.useContext(Rt),d=u("skeleton",t),[f,v,g]=Ic(d),p=ce(d,`${d}-element`,{[`${d}-active`]:i},v,n,r,g);return f(l.createElement("div",{className:p},l.createElement("div",{className:ce(`${d}-image`,n),style:a},c)))},y7=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},C7=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,i=Array.from({length:a}).map((c,u)=>l.createElement("li",{key:u,style:{width:y7(u,e)}}));return l.createElement("ul",{className:ce(t,n),style:r},i)},S7=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:ce(e,t),style:Object.assign({width:n},r)});function n0(e){return e&&typeof e=="object"?e:{}}function x7(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function $7(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function w7(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ul=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:i,children:c,avatar:u=!1,title:d=!0,paragraph:f=!0,active:v,round:g}=e,{getPrefixCls:p,direction:y,className:C,style:S}=ur("skeleton"),b=p("skeleton",t),[x,$,w]=Ic(b);if(n||!("loading"in e)){const E=!!u,O=!!d,N=!!f;let I;if(E){const j=Object.assign(Object.assign({prefixCls:`${b}-avatar`},x7(O,N)),n0(u));I=l.createElement("div",{className:`${b}-header`},l.createElement(Uv,Object.assign({},j)))}let M;if(O||N){let j;if(O){const B=Object.assign(Object.assign({prefixCls:`${b}-title`},$7(E,N)),n0(d));j=l.createElement(S7,Object.assign({},B))}let _;if(N){const B=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},w7(E,O)),n0(f));_=l.createElement(C7,Object.assign({},B))}M=l.createElement("div",{className:`${b}-content`},j,_)}const T=ce(b,{[`${b}-with-avatar`]:E,[`${b}-active`]:v,[`${b}-rtl`]:y==="rtl",[`${b}-round`]:g},C,r,a,$,w);return x(l.createElement("div",{className:T,style:Object.assign(Object.assign({},S),i)},I,M))}return c??null};ul.Button=v7;ul.Avatar=m7;ul.Input=h7;ul.Image=p7;ul.Node=b7;function y2(){}const E7=l.createContext({add:y2,remove:y2});function O7(e){const t=l.useContext(E7),n=l.useRef(null);return qt(a=>{if(a){const i=e?a.querySelector(e):a;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}const C2=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(Nd);return ve.createElement(Pt,Object.assign({onClick:n},e),t)},S2=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(Nd);return ve.createElement(Pt,Object.assign({},Fy(n),{loading:e,onClick:a},t),r)};function $N(e,t){return ve.createElement("span",{className:`${e}-close-x`},t||ve.createElement(Ro,{className:`${e}-close-icon`}))}const wN=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:i,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:f}=e,[v]=Ra("Modal",eI()),g=t||(v==null?void 0:v.okText),p=r||(v==null?void 0:v.cancelText),y=ve.useMemo(()=>({confirmLoading:a,okButtonProps:u,cancelButtonProps:d,okTextLocale:g,cancelTextLocale:p,okType:n,onOk:i,onCancel:c}),[a,u,d,g,p,n,i,c]);let C;return typeof f=="function"||typeof f>"u"?(C=ve.createElement(ve.Fragment,null,ve.createElement(C2,null),ve.createElement(S2,null)),typeof f=="function"&&(C=f(C,{OkBtn:S2,CancelBtn:C2})),C=ve.createElement(aN,{value:y},C)):C=f,ve.createElement(jy,{disabled:!1},C)},R7=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"}}}},I7=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},N7=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,i={};for(let c=a;c>=0;c--)c===0?(i[`${r}${t}-${c}`]={display:"none"},i[`${r}-push-${c}`]={insetInlineStart:"auto"},i[`${r}-pull-${c}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${c}`]={marginInlineStart:0},i[`${r}${t}-order-${c}`]={order:0}):(i[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/a*100}%`,maxWidth:`${c/a*100}%`}],i[`${r}${t}-push-${c}`]={insetInlineStart:`${c/a*100}%`},i[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/a*100}%`},i[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/a*100}%`},i[`${r}${t}-order-${c}`]={order:c});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Lb=(e,t)=>N7(e,t),M7=(e,t,n)=>({[`@media (min-width: ${re(t)})`]:Object.assign({},Lb(e,n))}),T7=()=>({}),j7=()=>({}),P7=ln("Grid",R7,T7),EN=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),D7=ln("Grid",e=>{const t=rn(e,{gridColumns:24}),n=EN(t);return delete n.xs,[I7(t),Lb(t,""),Lb(t,"-xs"),Object.keys(n).map(r=>M7(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},j7);function x2(e){return{position:e,inset:0}}const _7=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({},x2("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},x2("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Wy(e)}]},z7=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:`${re(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},fn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${re(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:re(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},lo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${re(e.borderRadiusLG)} ${re(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:`${re(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,
|
|
230
|
+
${t}-body,
|
|
231
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},A7=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},B7=e=>{const{componentCls:t}=e,n=EN(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,i=Object.keys(r).map(c=>({[`@media (min-width: ${re(r[c])})`]:{width:`var(${a}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Te(Object.keys(n).map((c,u)=>{const d=Object.keys(n)[u-1];return d?{[`${a}${c}-width`]:`var(${a}${d}-width)`}:null})),[{width:`var(${a}xs-width)`}],Te(i))}}},ON=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return rn(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()})},RN=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${re(e.padding)} ${re(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${re(e.paddingXS)} ${re(e.padding)}`:0,footerBorderTop:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${re(e.padding*2)} ${re(e.padding*2)} ${re(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),IN=ln("Modal",e=>{const t=ON(e);return[z7(t),A7(t),_7(t),Id(t,"zoom"),B7(t)]},RN,{unitless:{titleLineHeight:!0}});var L7=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let kb;const k7=e=>{kb={x:e.pageX,y:e.pageY},setTimeout(()=>{kb=null},100)};a7()&&document.documentElement.addEventListener("click",k7,!0);const NN=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:i,centered:c,getContainer:u,focusTriggerAfterClose:d=!0,style:f,visible:v,width:g=520,footer:p,classNames:y,styles:C,children:S,loading:b,confirmLoading:x,zIndex:$,mousePosition:w,onOk:E,onCancel:O,destroyOnHidden:N,destroyOnClose:I,panelRef:M=null,modalRender:T}=e,j=L7(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:_,getPrefixCls:B,direction:H,modal:A}=l.useContext(Rt),F=he=>{x||O==null||O(he)},D=he=>{E==null||E(he)},L=B("modal",t),W=B(),G=ar(L),[V,k,U]=IN(L,G),K=ce(i,{[`${L}-centered`]:c??(A==null?void 0:A.centered),[`${L}-wrap-rtl`]:H==="rtl"}),q=p!==null&&!b?l.createElement(wN,Object.assign({},e,{onOk:D,onCancel:F})):null,[Z,X,ee,te]=HI(Jm(e),Jm(A),{closable:!0,closeIcon:l.createElement(Ro,{className:`${L}-close-icon`}),closeIconRender:he=>$N(L,he)}),oe=T?he=>l.createElement("div",{className:`${L}-render`},T(he)):void 0,le=`.${L}-${T?"render":"content"}`,ne=O7(le),Q=Ar(M,ne),[ie,ue]=Io("Modal",$),[de,se]=l.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ge=l.useMemo(()=>{const he={};return se&&Object.keys(se).forEach(Oe=>{const Re=se[Oe];Re!==void 0&&(he[`--${L}-${Oe}-width`]=typeof Re=="number"?`${Re}px`:Re)}),he},[L,se]);return V(l.createElement(Ko,{form:!0,space:!0},l.createElement(Tv.Provider,{value:ue},l.createElement(uN,Object.assign({width:de},j,{zIndex:ie,getContainer:u===void 0?_:u,prefixCls:L,rootClassName:ce(k,r,U,G),footer:q,visible:a??v,mousePosition:w??kb,onClose:F,closable:Z&&Object.assign({disabled:ee,closeIcon:X},te),closeIcon:X,focusTriggerAfterClose:d,transitionName:Fo(W,"zoom",e.transitionName),maskTransitionName:Fo(W,"fade",e.maskTransitionName),className:ce(k,n,A==null?void 0:A.className),style:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),f),ge),classNames:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.classNames),y),{wrapper:ce(K,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},A==null?void 0:A.styles),C),panelRef:Q,destroyOnClose:N??I,modalRender:oe}),b?l.createElement(ul,{active:!0,title:!1,paragraph:{rows:4},className:`${L}-body-skeleton`}):S))))},H7=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:i,lineHeight:c,modalTitleHeight:u,fontHeight:d,confirmBodyPadding:f}=e,v=`${t}-confirm`;return{[v]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${v}-body-wrapper`]:Object.assign({},ko()),[`&${t} ${t}-body`]:{padding:f},[`${v}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(d).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(a).equal()).div(2).equal()}},[`${v}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${re(e.marginSM)})`},[`${e.iconCls} + ${v}-paragraph`]:{maxWidth:`calc(100% - ${re(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${v}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${v}-content`]:{color:e.colorText,fontSize:i,lineHeight:c},[`${v}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${v}-error ${v}-body > ${e.iconCls}`]:{color:e.colorError},[`${v}-warning ${v}-body > ${e.iconCls},
|
|
232
|
+
${v}-confirm ${v}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${v}-info ${v}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${v}-success ${v}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},F7=$c(["Modal","confirm"],e=>{const t=ON(e);return H7(t)},RN,{order:-1e3});var V7=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const MN=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:i,type:c,okCancel:u,footer:d,locale:f}=e,v=V7(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(c){case"info":g=l.createElement(Mv,null);break;case"success":g=l.createElement(Ec,null);break;case"error":g=l.createElement(cl,null);break;default:g=l.createElement(ns,null)}const p=u??c==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[C]=Ra("Modal"),S=f||C,b=r||(p?S==null?void 0:S.okText:S==null?void 0:S.justOkText),x=a||(S==null?void 0:S.cancelText),$=l.useMemo(()=>Object.assign({autoFocusButton:y,cancelTextLocale:x,okTextLocale:b,mergedOkCancel:p},v),[y,x,b,p,v]),w=l.createElement(l.Fragment,null,l.createElement(Jw,null),l.createElement(e2,null)),E=e.title!==void 0&&e.title!==null,O=`${i}-body`;return l.createElement("div",{className:`${i}-body-wrapper`},l.createElement("div",{className:ce(O,{[`${O}-has-title`]:E})},g,l.createElement("div",{className:`${i}-paragraph`},E&&l.createElement("span",{className:`${i}-title`},e.title),l.createElement("div",{className:`${i}-content`},e.content))),d===void 0||typeof d=="function"?l.createElement(aN,{value:$},l.createElement("div",{className:`${i}-btns`},typeof d=="function"?d(w,{OkBtn:e2,CancelBtn:Jw}):w)):d,l.createElement(F7,{prefixCls:t}))},W7=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:i,wrapClassName:c,rootPrefixCls:u,bodyStyle:d,closable:f=!1,onConfirm:v,styles:g,title:p}=e,y=`${i}-confirm`,C=e.width||416,S=e.style||{},b=e.mask===void 0?!0:e.mask,x=e.maskClosable===void 0?!1:e.maskClosable,$=ce(y,`${y}-${e.type}`,{[`${y}-rtl`]:a==="rtl"},e.className),[,w]=Zr(),E=l.useMemo(()=>n!==void 0?n:w.zIndexPopupBase+By,[n,w]);return l.createElement(NN,Object.assign({},e,{className:$,wrapClassName:ce({[`${y}-centered`]:!!e.centered},c),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},title:p,footer:null,transitionName:Fo(u||"","zoom",e.transitionName),maskTransitionName:Fo(u||"","fade",e.maskTransitionName),mask:b,maskClosable:x,style:S,styles:Object.assign({body:d,mask:r},g),width:C,zIndex:E,closable:f}),l.createElement(MN,Object.assign({},e,{confirmPrefixCls:y})))},TN=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(Oo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(W7,Object.assign({},e)))},kl=[];let jN="";function PN(){return jN}const K7=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:i}=e,c=eI(),u=l.useContext(Rt),d=PN()||u.getPrefixCls(),f=r||`${d}-modal`;let v=a;return v===!1&&(v=void 0),ve.createElement(TN,Object.assign({},e,{rootPrefixCls:d,prefixCls:f,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:i??u.direction,locale:(n=(t=u.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:c,getContainer:v}))};function Td(e){const t=RI(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),a,i;function c(...v){var g;if(v.some(C=>C==null?void 0:C.triggerCancel)){var y;(g=e.onCancel)===null||g===void 0||(y=g).call.apply(y,[e,()=>{}].concat(Te(v.slice(1))))}for(let C=0;C<kl.length;C++)if(kl[C]===d){kl.splice(C,1);break}i()}const u=v=>{clearTimeout(a),a=setTimeout(()=>{const g=t.getPrefixCls(void 0,PN()),p=t.getIconPrefixCls(),y=t.getTheme(),C=ve.createElement(K7,Object.assign({},v));i=Hy()(ve.createElement(Oo,{prefixCls:g,iconPrefixCls:p,theme:y},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...v){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),c.apply(this,v)}}),r.visible&&delete r.visible,u(r)}function f(v){typeof v=="function"?r=v(r):r=Object.assign(Object.assign({},r),v),u(r)}return u(r),kl.push(d),{destroy:d,update:f}}function DN(e){return Object.assign(Object.assign({},e),{type:"warning"})}function _N(e){return Object.assign(Object.assign({},e),{type:"info"})}function zN(e){return Object.assign(Object.assign({},e),{type:"success"})}function AN(e){return Object.assign(Object.assign({},e),{type:"error"})}function BN(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function U7({rootPrefixCls:e}){jN=e}var q7=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const G7=(e,t)=>{var n,{afterClose:r,config:a}=e,i=q7(e,["afterClose","config"]);const[c,u]=l.useState(!0),[d,f]=l.useState(a),{direction:v,getPrefixCls:g}=l.useContext(Rt),p=g("modal"),y=g(),C=()=>{var $;r(),($=d.afterClose)===null||$===void 0||$.call(d)},S=(...$)=>{var w;if(u(!1),$.some(N=>N==null?void 0:N.triggerCancel)){var O;(w=d.onCancel)===null||w===void 0||(O=w).call.apply(O,[d,()=>{}].concat(Te($.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:S,update:$=>{f(w=>{const E=typeof $=="function"?$(w):$;return Object.assign(Object.assign({},w),E)})}}));const b=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[x]=Ra("Modal",oo.Modal);return l.createElement(TN,Object.assign({prefixCls:p,rootPrefixCls:y},d,{close:S,open:c,afterClose:C,okText:d.okText||(b?x==null?void 0:x.okText:x==null?void 0:x.justOkText),direction:d.direction||v,cancelText:d.cancelText||(x==null?void 0:x.cancelText)},i))},X7=l.forwardRef(G7);let $2=0;const Y7=l.memo(l.forwardRef((e,t)=>{const[n,r]=Nz();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function LN(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(Te(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(i=>function(u){var d;$2+=1;const f=l.createRef();let v;const g=new Promise(b=>{v=b});let p=!1,y;const C=l.createElement(X7,{key:`modal-${$2}`,config:i(u),ref:f,afterClose:()=>{y==null||y()},isSilent:()=>p,onConfirm:b=>{v(b)}});return y=(d=e.current)===null||d===void 0?void 0:d.patchElement(C),y&&kl.push(y),{destroy:()=>{function b(){var x;(x=f.current)===null||x===void 0||x.destroy()}f.current?b():n(x=>[].concat(Te(x),[b]))},update:b=>{function x(){var $;($=f.current)===null||$===void 0||$.update(b)}f.current?x():n($=>[].concat(Te($),[x]))},then:b=>(p=!0,g.then(b))}},[]);return[l.useMemo(()=>({info:r(_N),success:r(zN),error:r(AN),warning:r(DN),confirm:r(BN)}),[r]),l.createElement(Y7,{key:"modal-holder",ref:e})]}const Q7=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,i=new Qt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),c=new Qt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),u=new Qt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),d=new Qt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:d}}}}},Z7=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],J7={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},eL=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[J7[t]]:{value:0,_skip_check_:!0}}}}},tL=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},nL=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},rL=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},tL(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},nL(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Z7.map(n=>eL(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},aL=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:i,borderRadiusLG:c,colorSuccess:u,colorInfo:d,colorWarning:f,colorError:v,colorTextHeading:g,notificationBg:p,notificationPadding:y,notificationMarginEdge:C,notificationProgressBg:S,notificationProgressHeight:b,fontSize:x,lineHeight:$,width:w,notificationIconSize:E,colorText:O,colorSuccessBg:N,colorErrorBg:I,colorInfoBg:M,colorWarningBg:T}=e,j=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:c,boxShadow:r,[j]:{padding:y,width:w,maxWidth:`calc(100vw - ${re(e.calc(C).mul(2).equal())})`,lineHeight:$,wordWrap:"break-word",borderRadius:c,overflow:"hidden","&-success":N?{background:N}:{},"&-error":I?{background:I}:{},"&-info":M?{background:M}:{},"&-warning":T?{background:T}:{}},[`${j}-message`]:{color:g,fontSize:a,lineHeight:e.lineHeightLG},[`${j}-description`]:{fontSize:x,color:O,marginTop:e.marginXS},[`${j}-closable ${j}-message`]:{paddingInlineEnd:e.paddingLG},[`${j}-with-icon ${j}-message`]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:a},[`${j}-with-icon ${j}-description`]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:x},[`${j}-icon`]:{position:"absolute",fontSize:E,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:d},[`&-warning${t}`]:{color:f},[`&-error${t}`]:{color:v}},[`${j}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},lo(e)),[`${j}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${re(c)} * 2)`,left:{_skip_check_:!0,value:c},right:{_skip_check_:!0,value:c},bottom:0,blockSize:b,border:0,"&, &::-webkit-progress-bar":{borderRadius:c,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:S},"&::-webkit-progress-value":{borderRadius:c,background:S}},[`${j}-actions`]:{float:"right",marginTop:e.marginSM}}},oL=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:i}=e,c=`${t}-notice`,u=new Qt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},fn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${c}-actions`]:{float:"left"}}})},{[t]:{[`${c}-wrapper`]:aL(e)}}]},iL=e=>({zIndexPopup:e.zIndexPopupBase+By+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),lL=e=>{const t=e.paddingMD,n=e.paddingLG;return rn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},sL=ln("Notification",e=>{const t=lL(e);return[oL(t),Q7(t),rL(t)]},iL);function kN(e,t){return t===null||t===!1?null:t||l.createElement(Ro,{className:`${e}-close-icon`})}const cL={success:Ec,info:Mv,error:cl,warning:ns},uL=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:i,actions:c,role:u="alert"}=e;let d=null;return n?d=l.createElement("span",{className:`${t}-icon`},n):r&&(d=l.createElement(cL[r]||null,{className:ce(`${t}-icon`,`${t}-icon-${r}`)})),l.createElement("div",{className:ce({[`${t}-with-icon`]:d}),role:u},d,l.createElement("div",{className:`${t}-message`},a),i&&l.createElement("div",{className:`${t}-description`},i),c&&l.createElement("div",{className:`${t}-actions`},c))};function dL(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function fL(e){return{motionName:`${e}-fade`}}function mL(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var vL=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const w2=24,gL=4.5,pL="topRight",hL=({children:e,prefixCls:t})=>{const n=ar(t),[r,a,i]=sL(t,n);return r(ve.createElement(LI,{classNames:{list:ce(a,i,n)}},e))},bL=(e,{prefixCls:t,key:n})=>ve.createElement(hL,{prefixCls:t,key:n},e),yL=ve.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:i,maxCount:c,rtl:u,onAllRemoved:d,stack:f,duration:v,pauseOnHover:g=!0,showProgress:p}=e,{getPrefixCls:y,getPopupContainer:C,notification:S,direction:b}=l.useContext(Rt),[,x]=Zr(),$=a||y("notification"),w=M=>dL(M,n??w2,r??w2),E=()=>ce({[`${$}-rtl`]:u??b==="rtl"}),O=()=>fL($),[N,I]=kI({prefixCls:$,style:w,className:E,motion:O,closable:!0,closeIcon:kN($),duration:v??gL,getContainer:()=>(i==null?void 0:i())||(C==null?void 0:C())||document.body,maxCount:c,pauseOnHover:g,showProgress:p,onAllRemoved:d,renderNotifications:bL,stack:f===!1?!1:{threshold:typeof f=="object"?f==null?void 0:f.threshold:void 0,offset:8,gap:x.margin}});return ve.useImperativeHandle(t,()=>Object.assign(Object.assign({},N),{prefixCls:$,notification:S})),I});function CL(e){const t=ve.useRef(null);return Uo(),[ve.useMemo(()=>{const r=u=>{var d;if(!t.current)return;const{open:f,prefixCls:v,notification:g}=t.current,p=`${v}-notice`,{message:y,description:C,icon:S,type:b,btn:x,actions:$,className:w,style:E,role:O="alert",closeIcon:N,closable:I}=u,M=vL(u,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),T=$??x,j=kN(p,mL(N,e,g));return f(Object.assign(Object.assign({placement:(d=e==null?void 0:e.placement)!==null&&d!==void 0?d:pL},M),{content:ve.createElement(uL,{prefixCls:p,icon:S,type:b,message:y,description:C,actions:T,role:O}),className:ce(b&&`${p}-${b}`,w,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),E),closeIcon:j,closable:I??!!j}))},i={open:r,destroy:u=>{var d,f;u!==void 0?(d=t.current)===null||d===void 0||d.close(u):(f=t.current)===null||f===void 0||f.destroy()}};return["success","info","warning","error"].forEach(u=>{i[u]=d=>r(Object.assign(Object.assign({},d),{type:u}))}),i},[]),ve.createElement(yL,Object.assign({key:"notification-holder"},e,{ref:t}))]}function SL(e){return CL(e)}const Hb=ve.createContext({}),HN=ve.createContext({message:{},notification:{},modal:{}}),xL=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},$L=()=>({}),wL=ln("App",xL,$L),EL=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:i,notification:c,style:u,component:d="div"}=e,{direction:f,getPrefixCls:v}=l.useContext(Rt),g=v("app",t),[p,y,C]=wL(g),S=ce(y,g,r,a,C,{[`${g}-rtl`]:f==="rtl"}),b=l.useContext(Hb),x=ve.useMemo(()=>({message:Object.assign(Object.assign({},b.message),i),notification:Object.assign(Object.assign({},b.notification),c)}),[i,c,b.message,b.notification]),[$,w]=qI(x.message),[E,O]=SL(x.notification),[N,I]=LN(),M=ve.useMemo(()=>({message:$,notification:E,modal:N}),[$,E,N]);Uo()(!(C&&d===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const T=d===!1?ve.Fragment:d,j={className:S,style:u};return p(ve.createElement(HN.Provider,{value:M},ve.createElement(Hb.Provider,{value:x},ve.createElement(T,Object.assign({},d===!1?void 0:j),I,w,O,n))))},OL=()=>ve.useContext(HN),Mo=EL;Mo.useApp=OL;function FN(e){return t=>l.createElement(Oo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const Nc=(e,t,n,r,a)=>FN(c=>{const{prefixCls:u,style:d}=c,f=l.useRef(null),[v,g]=l.useState(0),[p,y]=l.useState(0),[C,S]=bn(!1,{value:c.open}),{getPrefixCls:b}=l.useContext(Rt),x=b(r||"select",u);l.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(N=>{const I=N[0].target;g(I.offsetHeight+8),y(I.offsetWidth)}),O=setInterval(()=>{var N;const I=a?`.${a(x)}`:`.${x}-dropdown`,M=(N=f.current)===null||N===void 0?void 0:N.querySelector(I);M&&(clearInterval(O),E.observe(M))},10);return()=>{clearInterval(O),E.disconnect()}}},[x]);let $=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},d),{margin:0}),open:C,visible:C,getPopupContainer:()=>f.current});n&&($=n($)),t&&Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:v,position:"relative",minWidth:p};return l.createElement("div",{ref:f,style:w},l.createElement(e,Object.assign({},$)))}),Gv=(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 Xv=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,i=t.children,c=t.onMouseDown,u=t.onClick,d=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(v){v.preventDefault(),c==null||c(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},d!==void 0?d:l.createElement("span",{className:ce(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},i))},RL=function(t,n,r,a,i){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=ve.useMemo(function(){if($t(a)==="object")return a.clearIcon;if(i)return i},[a,i]),v=ve.useMemo(function(){return!!(!c&&a&&(r.length||u)&&!(d==="combobox"&&u===""))},[a,c,r.length,u,d]);return{allowClear:v,clearIcon:ve.createElement(Xv,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},VN=l.createContext(null);function WN(){return l.useContext(VN)}function IL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=me(t,2),r=n[0],a=n[1],i=l.useRef(null),c=function(){window.clearTimeout(i.current)};l.useEffect(function(){return c},[]);var u=function(f,v){c(),i.current=window.setTimeout(function(){a(f),v&&v()},e)};return[r,u,c]}function KN(){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(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function NL(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function i(c){var u;if(!((u=a.current)!==null&&u!==void 0&&u.customizedTrigger)){var d=c.target;d.shadowRoot&&c.composed&&(d=c.composedPath()[0]||d),a.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(d)&&f!==d})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function ML(e){return e&&![at.ESC,at.SHIFT,at.BACKSPACE,at.TAB,at.WIN_KEY,at.ALT,at.META,at.WIN_KEY_RIGHT,at.CTRL,at.SEMICOLON,at.EQUALS,at.CAPS_LOCK,at.CONTEXT_MENU,at.F1,at.F2,at.F3,at.F4,at.F5,at.F6,at.F7,at.F8,at.F9,at.F10,at.F11,at.F12].includes(e)}var TL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ws=void 0;function jL(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,i=e.renderItem,c=e.responsive,u=e.responsiveDisabled,d=e.registerSize,f=e.itemKey,v=e.className,g=e.style,p=e.children,y=e.display,C=e.order,S=e.component,b=S===void 0?"div":S,x=At(e,TL),$=c&&!y;function w(M){d(f,M)}l.useEffect(function(){return function(){w(null)}},[]);var E=i&&a!==Ws?i(a,{index:C}):p,O;r||(O={opacity:$?0:1,height:$?0:Ws,overflowY:$?"hidden":Ws,order:c?C:Ws,pointerEvents:$?"none":Ws,position:$?"absolute":Ws});var N={};$&&(N["aria-hidden"]=!0);var I=l.createElement(b,xe({className:ce(!r&&n,v),style:ae(ae({},O),g)},N,x,{ref:t}),E);return c&&(I=l.createElement(la,{onResize:function(T){var j=T.offsetWidth;w(j)},disabled:u},I)),I}var rc=l.forwardRef(jL);rc.displayName="Item";function PL(e){if(typeof MessageChannel>"u")Gt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function DL(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],PL(function(){ro.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Ks(e,t){var n=l.useState(t),r=me(n,2),a=r[0],i=r[1],c=qt(function(u){e(function(){i(u)})});return[a,c]}var rv=ve.createContext(null),_L=["component"],zL=["className"],AL=["className"],BL=function(t,n){var r=l.useContext(rv);if(!r){var a=t.component,i=a===void 0?"div":a,c=At(t,_L);return l.createElement(i,xe({},c,{ref:n}))}var u=r.className,d=At(r,zL),f=t.className,v=At(t,AL);return l.createElement(rv.Provider,{value:null},l.createElement(rc,xe({ref:n,className:ce(u,f)},d,v)))},UN=l.forwardRef(BL);UN.displayName="RawItem";var LL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],qN="responsive",GN="invalidate";function kL(e){return"+ ".concat(e.length," ...")}function HL(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,i=a===void 0?[]:a,c=e.renderItem,u=e.renderRawItem,d=e.itemKey,f=e.itemWidth,v=f===void 0?10:f,g=e.ssr,p=e.style,y=e.className,C=e.maxCount,S=e.renderRest,b=e.renderRawRest,x=e.prefix,$=e.suffix,w=e.component,E=w===void 0?"div":w,O=e.itemComponent,N=e.onVisibleChange,I=At(e,LL),M=g==="full",T=DL(),j=Ks(T,null),_=me(j,2),B=_[0],H=_[1],A=B||0,F=Ks(T,new Map),D=me(F,2),L=D[0],W=D[1],G=Ks(T,0),V=me(G,2),k=V[0],U=V[1],K=Ks(T,0),q=me(K,2),Z=q[0],X=q[1],ee=Ks(T,0),te=me(ee,2),oe=te[0],le=te[1],ne=Ks(T,0),Q=me(ne,2),ie=Q[0],ue=Q[1],de=l.useState(null),se=me(de,2),ge=se[0],he=se[1],Oe=l.useState(null),Re=me(Oe,2),pe=Re[0],Ie=Re[1],we=l.useMemo(function(){return pe===null&&M?Number.MAX_SAFE_INTEGER:pe||0},[pe,B]),ye=l.useState(!1),ze=me(ye,2),Ae=ze[0],Ye=ze[1],Ke="".concat(r,"-item"),Fe=Math.max(k,Z),Ge=C===qN,je=i.length&&Ge,$e=C===GN,_e=je||typeof C=="number"&&i.length>C,Ee=l.useMemo(function(){var Ve=i;return je?B===null&&M?Ve=i:Ve=i.slice(0,Math.min(i.length,A/v)):typeof C=="number"&&(Ve=i.slice(0,C)),Ve},[i,v,B,C,je]),Pe=l.useMemo(function(){return je?i.slice(we+1):i.slice(Ee.length)},[i,Ee,je,we]),be=l.useCallback(function(Ve,Ue){var ft;return typeof d=="function"?d(Ve):(ft=d&&(Ve==null?void 0:Ve[d]))!==null&&ft!==void 0?ft:Ue},[d]),Se=l.useCallback(c||function(Ve){return Ve},[c]);function Me(Ve,Ue,ft){pe===Ve&&(Ue===void 0||Ue===ge)||(Ie(Ve),ft||(Ye(Ve<i.length-1),N==null||N(Ve)),Ue!==void 0&&he(Ue))}function ke(Ve,Ue){H(Ue.clientWidth)}function et(Ve,Ue){W(function(ft){var It=new Map(ft);return Ue===null?It.delete(Ve):It.set(Ve,Ue),It})}function ht(Ve,Ue){X(Ue),U(Z)}function We(Ve,Ue){le(Ue)}function tt(Ve,Ue){ue(Ue)}function ut(Ve){return L.get(be(Ee[Ve],Ve))}nn(function(){if(A&&typeof Fe=="number"&&Ee){var Ve=oe+ie,Ue=Ee.length,ft=Ue-1;if(!Ue){Me(0,null);return}for(var It=0;It<Ue;It+=1){var Et=ut(It);if(M&&(Et=Et||0),Et===void 0){Me(It-1,void 0,!0);break}if(Ve+=Et,ft===0&&Ve<=A||It===ft-1&&Ve+ut(ft)<=A){Me(ft,null);break}else if(Ve+Fe>A){Me(It-1,Ve-Et-ie+Z);break}}$&&ut(0)+ie>A&&he(null)}},[A,L,Z,oe,ie,be,Ee]);var rt=Ae&&!!Pe.length,gt={};ge!==null&&je&&(gt={position:"absolute",left:ge,top:0});var Mt={prefixCls:Ke,responsive:je,component:O,invalidate:$e},xt=u?function(Ve,Ue){var ft=be(Ve,Ue);return l.createElement(rv.Provider,{key:ft,value:ae(ae({},Mt),{},{order:Ue,item:Ve,itemKey:ft,registerSize:et,display:Ue<=we})},u(Ve,Ue))}:function(Ve,Ue){var ft=be(Ve,Ue);return l.createElement(rc,xe({},Mt,{order:Ue,key:ft,item:Ve,renderItem:Se,itemKey:ft,registerSize:et,display:Ue<=we}))},st={order:rt?we:Number.MAX_SAFE_INTEGER,className:"".concat(Ke,"-rest"),registerSize:ht,display:rt},Ct=S||kL,bt=b?l.createElement(rv.Provider,{value:ae(ae({},Mt),st)},b(Pe)):l.createElement(rc,xe({},Mt,st),typeof Ct=="function"?Ct(Pe):Ct),Je=l.createElement(E,xe({className:ce(!$e&&r,y),style:p,ref:t},I),x&&l.createElement(rc,xe({},Mt,{responsive:Ge,responsiveDisabled:!je,order:-1,className:"".concat(Ke,"-prefix"),registerSize:We,display:!0}),x),Ee.map(xt),_e?bt:null,$&&l.createElement(rc,xe({},Mt,{responsive:Ge,responsiveDisabled:!je,order:we,className:"".concat(Ke,"-suffix"),registerSize:tt,display:!0,style:gt}),$));return Ge?l.createElement(la,{onResize:ke,disabled:!je},Je):Je}var bo=l.forwardRef(HL);bo.displayName="Overflow";bo.Item=UN;bo.RESPONSIVE=qN;bo.INVALIDATE=GN;function FL(e,t,n){var r=ae(ae({},e),t);return Object.keys(t).forEach(function(a){var i=t[a];typeof i=="function"&&(r[a]=function(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return i.apply(void 0,d),(c=e[a])===null||c===void 0?void 0:c.call.apply(c,[e].concat(d))})}),r}var VL=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],WL=function(t,n){var r=t.prefixCls,a=t.id,i=t.inputElement,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,v=t.value,g=t.open,p=t.attrs,y=At(t,VL),C=i||l.createElement("input",null),S=C,b=S.ref,x=S.props;return"maxLength"in C.props,C=l.cloneElement(C,ae(ae(ae({type:"search"},FL(y,x)),{},{id:a,ref:Ar(n,b),autoComplete:u||"off",autoFocus:c,className:ce("".concat(r,"-selection-search-input"),x==null?void 0:x.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":g?f:void 0},p),{},{value:d?v:"",readOnly:!d,unselectable:d?null:"on",style:ae(ae({},x.style),{},{opacity:d?null:0})})),C},XN=l.forwardRef(WL);function YN(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var KL=typeof window<"u"&&window.document&&window.document.documentElement,UL=KL;function qL(e){return e!=null}function GL(e){return!e&&e!==0}function E2(e){return["string","number"].includes($t(e))}function QN(e){var t=void 0;return e&&(E2(e.title)?t=e.title.toString():E2(e.label)&&(t=e.label.toString())),t}function XL(e,t){UL?l.useLayoutEffect(e,t):l.useEffect(e,t)}function YL(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var O2=function(t){t.preventDefault(),t.stopPropagation()},QL=function(t){var n=t.id,r=t.prefixCls,a=t.values,i=t.open,c=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,f=t.placeholder,v=t.disabled,g=t.mode,p=t.showSearch,y=t.autoFocus,C=t.autoComplete,S=t.activeDescendantId,b=t.tabIndex,x=t.removeIcon,$=t.maxTagCount,w=t.maxTagTextLength,E=t.maxTagPlaceholder,O=E===void 0?function(ue){return"+ ".concat(ue.length," ...")}:E,N=t.tagRender,I=t.onToggleOpen,M=t.onRemove,T=t.onInputChange,j=t.onInputPaste,_=t.onInputKeyDown,B=t.onInputMouseDown,H=t.onInputCompositionStart,A=t.onInputCompositionEnd,F=t.onInputBlur,D=l.useRef(null),L=l.useState(0),W=me(L,2),G=W[0],V=W[1],k=l.useState(!1),U=me(k,2),K=U[0],q=U[1],Z="".concat(r,"-selection"),X=i||g==="multiple"&&u===!1||g==="tags"?c:"",ee=g==="tags"||g==="multiple"&&u===!1||p&&(i||K);XL(function(){V(D.current.scrollWidth)},[X]);var te=function(de,se,ge,he,Oe){return l.createElement("span",{title:QN(de),className:ce("".concat(Z,"-item"),J({},"".concat(Z,"-item-disabled"),ge))},l.createElement("span",{className:"".concat(Z,"-item-content")},se),he&&l.createElement(Xv,{className:"".concat(Z,"-item-remove"),onMouseDown:O2,onClick:Oe,customizeIcon:x},"×"))},oe=function(de,se,ge,he,Oe,Re){var pe=function(we){O2(we),I(!i)};return l.createElement("span",{onMouseDown:pe},N({label:se,value:de,disabled:ge,closable:he,onClose:Oe,isMaxTag:!!Re}))},le=function(de){var se=de.disabled,ge=de.label,he=de.value,Oe=!v&&!se,Re=ge;if(typeof w=="number"&&(typeof ge=="string"||typeof ge=="number")){var pe=String(Re);pe.length>w&&(Re="".concat(pe.slice(0,w),"..."))}var Ie=function(ye){ye&&ye.stopPropagation(),M(de)};return typeof N=="function"?oe(he,Re,se,Oe,Ie):te(de,Re,se,Oe,Ie)},ne=function(de){if(!a.length)return null;var se=typeof O=="function"?O(de):O;return typeof N=="function"?oe(void 0,se,!1,!1,void 0,!0):te({title:se},se,!1)},Q=l.createElement("div",{className:"".concat(Z,"-search"),style:{width:G},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},l.createElement(XN,{ref:d,open:i,prefixCls:r,id:n,inputElement:null,disabled:v,autoFocus:y,autoComplete:C,editable:ee,activeDescendantId:S,value:X,onKeyDown:_,onMouseDown:B,onChange:T,onPaste:j,onCompositionStart:H,onCompositionEnd:A,onBlur:F,tabIndex:b,attrs:Sr(t,!0)}),l.createElement("span",{ref:D,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},X," ")),ie=l.createElement(bo,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:le,renderRest:ne,suffix:Q,itemKey:YL,maxCount:$});return l.createElement("span",{className:"".concat(Z,"-wrap")},ie,!a.length&&!X&&l.createElement("span",{className:"".concat(Z,"-placeholder")},f))},ZL=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,i=t.inputRef,c=t.disabled,u=t.autoFocus,d=t.autoComplete,f=t.activeDescendantId,v=t.mode,g=t.open,p=t.values,y=t.placeholder,C=t.tabIndex,S=t.showSearch,b=t.searchValue,x=t.activeValue,$=t.maxLength,w=t.onInputKeyDown,E=t.onInputMouseDown,O=t.onInputChange,N=t.onInputPaste,I=t.onInputCompositionStart,M=t.onInputCompositionEnd,T=t.onInputBlur,j=t.title,_=l.useState(!1),B=me(_,2),H=B[0],A=B[1],F=v==="combobox",D=F||S,L=p[0],W=b||"";F&&x&&!H&&(W=x),l.useEffect(function(){F&&A(!1)},[F,x]);var G=v!=="combobox"&&!g&&!S?!1:!!W,V=j===void 0?QN(L):j,k=l.useMemo(function(){return L?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},y)},[L,G,y,r]);return l.createElement("span",{className:"".concat(r,"-selection-wrap")},l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(XN,{ref:i,prefixCls:r,id:a,open:g,inputElement:n,disabled:c,autoFocus:u,autoComplete:d,editable:D,activeDescendantId:f,value:W,onKeyDown:w,onMouseDown:E,onChange:function(K){A(!0),O(K)},onPaste:N,onCompositionStart:I,onCompositionEnd:M,onBlur:T,tabIndex:C,attrs:Sr(t,!0),maxLength:F?$:void 0})),!F&&L?l.createElement("span",{className:"".concat(r,"-selection-item"),title:V,style:G?{visibility:"hidden"}:void 0},L.label):null,k)},JL=function(t,n){var r=l.useRef(null),a=l.useRef(!1),i=t.prefixCls,c=t.open,u=t.mode,d=t.showSearch,f=t.tokenWithEnter,v=t.disabled,g=t.prefix,p=t.autoClearSearchValue,y=t.onSearch,C=t.onSearchSubmit,S=t.onToggleOpen,b=t.onInputKeyDown,x=t.onInputBlur,$=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(V){r.current.focus(V)},blur:function(){r.current.blur()}}});var w=KN(0),E=me(w,2),O=E[0],N=E[1],I=function(V){var k=V.which,U=r.current instanceof HTMLTextAreaElement;!U&&c&&(k===at.UP||k===at.DOWN)&&V.preventDefault(),b&&b(V),k===at.ENTER&&u==="tags"&&!a.current&&!c&&(C==null||C(V.target.value)),!(U&&!c&&~[at.UP,at.DOWN,at.LEFT,at.RIGHT].indexOf(k))&&ML(k)&&S(!0)},M=function(){N(!0)},T=l.useRef(null),j=function(V){y(V,!0,a.current)!==!1&&S(!0)},_=function(){a.current=!0},B=function(V){a.current=!1,u!=="combobox"&&j(V.target.value)},H=function(V){var k=V.target.value;if(f&&T.current&&/[\r\n]/.test(T.current)){var U=T.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");k=k.replace(U,T.current)}T.current=null,j(k)},A=function(V){var k=V.clipboardData,U=k==null?void 0:k.getData("text");T.current=U||""},F=function(V){var k=V.target;if(k!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},D=function(V){var k=O();V.target!==r.current&&!k&&!(u==="combobox"&&v)&&V.preventDefault(),(u!=="combobox"&&(!d||!k)||!c)&&(c&&p!==!1&&y("",!0,!1),S())},L={inputRef:r,onInputKeyDown:I,onInputMouseDown:M,onInputChange:H,onInputPaste:A,onInputCompositionStart:_,onInputCompositionEnd:B,onInputBlur:x},W=u==="multiple"||u==="tags"?l.createElement(QL,xe({},t,L)):l.createElement(ZL,xe({},t,L));return l.createElement("div",{ref:$,className:"".concat(i,"-selector"),onClick:F,onMouseDown:D},g&&l.createElement("div",{className:"".concat(i,"-prefix")},g),W)},ek=l.forwardRef(JL);function tk(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,i=r||{},c=i.className,u=i.content,d=a.x,f=d===void 0?0:d,v=a.y,g=v===void 0?0:v,p=l.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var C=n.points[0],S=n.points[1],b=C[0],x=C[1],$=S[0],w=S[1];b===$||!["t","b"].includes(b)?y.top=g:b==="t"?y.top=0:y.bottom=0,x===w||!["l","r"].includes(x)?y.left=f:x==="l"?y.left=0:y.right=0}return l.createElement("div",{ref:p,className:ce("".concat(t,"-arrow"),c),style:y},u)}function nk(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,i=e.motion;return a?l.createElement(Jr,xe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var u=c.className;return l.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),u)})}):null}var rk=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),ak=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,i=e.style,c=e.target,u=e.onVisibleChanged,d=e.open,f=e.keepDom,v=e.fresh,g=e.onClick,p=e.mask,y=e.arrow,C=e.arrowPos,S=e.align,b=e.motion,x=e.maskMotion,$=e.forceRender,w=e.getPopupContainer,E=e.autoDestroy,O=e.portal,N=e.zIndex,I=e.onMouseEnter,M=e.onMouseLeave,T=e.onPointerEnter,j=e.onPointerDownCapture,_=e.ready,B=e.offsetX,H=e.offsetY,A=e.offsetR,F=e.offsetB,D=e.onAlign,L=e.onPrepare,W=e.stretch,G=e.targetWidth,V=e.targetHeight,k=typeof n=="function"?n():n,U=d||f,K=(w==null?void 0:w.length)>0,q=l.useState(!w||!K),Z=me(q,2),X=Z[0],ee=Z[1];if(nn(function(){!X&&K&&c&&ee(!0)},[X,K,c]),!X)return null;var te="auto",oe={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(_||!d){var le,ne=S.points,Q=S.dynamicInset||((le=S._experimental)===null||le===void 0?void 0:le.dynamicInset),ie=Q&&ne[0][1]==="r",ue=Q&&ne[0][0]==="b";ie?(oe.right=A,oe.left=te):(oe.left=B,oe.right=te),ue?(oe.bottom=F,oe.top=te):(oe.top=H,oe.bottom=te)}var de={};return W&&(W.includes("height")&&V?de.height=V:W.includes("minHeight")&&V&&(de.minHeight=V),W.includes("width")&&G?de.width=G:W.includes("minWidth")&&G&&(de.minWidth=G)),d||(de.pointerEvents="none"),l.createElement(O,{open:$||U,getContainer:w&&function(){return w(c)},autoDestroy:E},l.createElement(nk,{prefixCls:a,open:d,zIndex:N,mask:p,motion:x}),l.createElement(la,{onResize:D,disabled:!d},function(se){return l.createElement(Jr,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:L,onEnterPrepare:L,visible:d,onVisibleChanged:function(he){var Oe;b==null||(Oe=b.onVisibleChanged)===null||Oe===void 0||Oe.call(b,he),u(he)}}),function(ge,he){var Oe=ge.className,Re=ge.style,pe=ce(a,Oe,r);return l.createElement("div",{ref:Ar(se,t,he),className:pe,style:ae(ae(ae(ae({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},oe),de),Re),{},{boxSizing:"border-box",zIndex:N},i),onMouseEnter:I,onMouseLeave:M,onPointerEnter:T,onClick:g,onPointerDownCapture:j},y&&l.createElement(tk,{prefixCls:a,arrow:y,arrowPos:C,align:S}),l.createElement(rk,{cache:!d&&!v},k))})}))}),ok=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=So(n),i=l.useCallback(function(u){id(t,r?r(u):u)},[r]),c=bi(i,sl(n));return a?l.cloneElement(n,{ref:c}):n}),R2=l.createContext(null);function I2(e){return e?Array.isArray(e)?e:[e]:[]}function ik(e,t,n,r){return l.useMemo(function(){var a=I2(n??t),i=I2(r??t),c=new Set(a),u=new Set(i);return e&&(c.has("hover")&&(c.delete("hover"),c.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[c,u]},[e,t,n,r])}function lk(){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 sk(e,t,n,r){for(var a=n.points,i=Object.keys(e),c=0;c<i.length;c+=1){var u,d=i[c];if(lk((u=e[d])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(d)}return""}function N2(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function jd(e){return e.ownerDocument.defaultView}function Fb(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=jd(n).getComputedStyle(n),i=a.overflowX,c=a.overflowY,u=a.overflow;[i,c,u].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function pd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ju(e){return pd(parseFloat(e),0)}function M2(e,t){var n=ae({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=jd(r).getComputedStyle(r),i=a.overflow,c=a.overflowClipMargin,u=a.borderTopWidth,d=a.borderBottomWidth,f=a.borderLeftWidth,v=a.borderRightWidth,g=r.getBoundingClientRect(),p=r.offsetHeight,y=r.clientHeight,C=r.offsetWidth,S=r.clientWidth,b=ju(u),x=ju(d),$=ju(f),w=ju(v),E=pd(Math.round(g.width/C*1e3)/1e3),O=pd(Math.round(g.height/p*1e3)/1e3),N=(C-S-$-w)*E,I=(p-y-b-x)*O,M=b*O,T=x*O,j=$*E,_=w*E,B=0,H=0;if(i==="clip"){var A=ju(c);B=A*E,H=A*O}var F=g.x+j-B,D=g.y+M-H,L=F+g.width+2*B-j-_-N,W=D+g.height+2*H-M-T-I;n.left=Math.max(n.left,F),n.top=Math.max(n.top,D),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,W)}}),n}function T2(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 j2(e,t){var n=t||[],r=me(n,2),a=r[0],i=r[1];return[T2(e.width,a),T2(e.height,i)]}function P2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Us(e,t){var n=t[0],r=t[1],a,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:i}}function Wi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function ck(e,t,n,r,a,i,c){var u=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),d=me(u,2),f=d[0],v=d[1],g=l.useRef(0),p=l.useMemo(function(){return t?Fb(t):[]},[t]),y=l.useRef({}),C=function(){y.current={}};e||C();var S=qt(function(){if(t&&n&&e){let kn=function(Kr,wr){var ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ze,vl=U.x+Kr,yi=U.y+wr,ds=vl+ue,Lt=yi+ie,Yt=Math.max(vl,ta.left),Qn=Math.max(yi,ta.top),nr=Math.min(ds,ta.right),_n=Math.min(Lt,ta.bottom);return Math.max(0,(nr-Yt)*(_n-Qn))},Lr=function(){en=U.y+Ct,Xt=en+ie,vn=U.x+st,Kt=vn+ue};var Tn=kn,Un=Lr,$,w,E,O,N=t,I=N.ownerDocument,M=jd(N),T=M.getComputedStyle(N),j=T.position,_=N.style.left,B=N.style.top,H=N.style.right,A=N.style.bottom,F=N.style.overflow,D=ae(ae({},a[r]),i),L=I.createElement("div");($=N.parentElement)===null||$===void 0||$.appendChild(L),L.style.left="".concat(N.offsetLeft,"px"),L.style.top="".concat(N.offsetTop,"px"),L.style.position=j,L.style.height="".concat(N.offsetHeight,"px"),L.style.width="".concat(N.offsetWidth,"px"),N.style.left="0",N.style.top="0",N.style.right="auto",N.style.bottom="auto",N.style.overflow="hidden";var W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var G,V,k=n.getBoundingClientRect();k.x=(G=k.x)!==null&&G!==void 0?G:k.left,k.y=(V=k.y)!==null&&V!==void 0?V:k.top,W={x:k.x,y:k.y,width:k.width,height:k.height}}var U=N.getBoundingClientRect(),K=M.getComputedStyle(N),q=K.height,Z=K.width;U.x=(w=U.x)!==null&&w!==void 0?w:U.left,U.y=(E=U.y)!==null&&E!==void 0?E:U.top;var X=I.documentElement,ee=X.clientWidth,te=X.clientHeight,oe=X.scrollWidth,le=X.scrollHeight,ne=X.scrollTop,Q=X.scrollLeft,ie=U.height,ue=U.width,de=W.height,se=W.width,ge={left:0,top:0,right:ee,bottom:te},he={left:-Q,top:-ne,right:oe-Q,bottom:le-ne},Oe=D.htmlRegion,Re="visible",pe="visibleFirst";Oe!=="scroll"&&Oe!==pe&&(Oe=Re);var Ie=Oe===pe,we=M2(he,p),ye=M2(ge,p),ze=Oe===Re?ye:we,Ae=Ie?ye:ze;N.style.left="auto",N.style.top="auto",N.style.right="0",N.style.bottom="0";var Ye=N.getBoundingClientRect();N.style.left=_,N.style.top=B,N.style.right=H,N.style.bottom=A,N.style.overflow=F,(O=N.parentElement)===null||O===void 0||O.removeChild(L);var Ke=pd(Math.round(ue/parseFloat(Z)*1e3)/1e3),Fe=pd(Math.round(ie/parseFloat(q)*1e3)/1e3);if(Ke===0||Fe===0||od(n)&&!Oc(n))return;var Ge=D.offset,je=D.targetOffset,$e=j2(U,Ge),_e=me($e,2),Ee=_e[0],Pe=_e[1],be=j2(W,je),Se=me(be,2),Me=Se[0],ke=Se[1];W.x-=Me,W.y-=ke;var et=D.points||[],ht=me(et,2),We=ht[0],tt=ht[1],ut=P2(tt),rt=P2(We),gt=Us(W,ut),Mt=Us(U,rt),xt=ae({},D),st=gt.x-Mt.x+Ee,Ct=gt.y-Mt.y+Pe,bt=kn(st,Ct),Je=kn(st,Ct,ye),Ve=Us(W,["t","l"]),Ue=Us(U,["t","l"]),ft=Us(W,["b","r"]),It=Us(U,["b","r"]),Et=D.overflow||{},Ht=Et.adjustX,dt=Et.adjustY,it=Et.shiftX,Dt=Et.shiftY,Wt=function(wr){return typeof wr=="boolean"?wr:wr>=0},en,Xt,vn,Kt;Lr();var sn=Wt(dt),lt=rt[0]===ut[0];if(sn&&rt[0]==="t"&&(Xt>Ae.bottom||y.current.bt)){var yt=Ct;lt?yt-=ie-de:yt=Ve.y-It.y-Pe;var pt=kn(st,yt),Xe=kn(st,yt,ye);pt>bt||pt===bt&&(!Ie||Xe>=Je)?(y.current.bt=!0,Ct=yt,Pe=-Pe,xt.points=[Wi(rt,0),Wi(ut,0)]):y.current.bt=!1}if(sn&&rt[0]==="b"&&(en<Ae.top||y.current.tb)){var Qe=Ct;lt?Qe+=ie-de:Qe=ft.y-Ue.y-Pe;var ct=kn(st,Qe),Tt=kn(st,Qe,ye);ct>bt||ct===bt&&(!Ie||Tt>=Je)?(y.current.tb=!0,Ct=Qe,Pe=-Pe,xt.points=[Wi(rt,0),Wi(ut,0)]):y.current.tb=!1}var Vt=Wt(Ht),mt=rt[1]===ut[1];if(Vt&&rt[1]==="l"&&(Kt>Ae.right||y.current.rl)){var Ot=st;mt?Ot-=ue-se:Ot=Ve.x-It.x-Ee;var kt=kn(Ot,Ct),Sn=kn(Ot,Ct,ye);kt>bt||kt===bt&&(!Ie||Sn>=Je)?(y.current.rl=!0,st=Ot,Ee=-Ee,xt.points=[Wi(rt,1),Wi(ut,1)]):y.current.rl=!1}if(Vt&&rt[1]==="r"&&(vn<Ae.left||y.current.lr)){var Pn=st;mt?Pn+=ue-se:Pn=ft.x-Ue.x-Ee;var Mn=kn(Pn,Ct),Ln=kn(Pn,Ct,ye);Mn>bt||Mn===bt&&(!Ie||Ln>=Je)?(y.current.lr=!0,st=Pn,Ee=-Ee,xt.points=[Wi(rt,1),Wi(ut,1)]):y.current.lr=!1}Lr();var En=it===!0?0:it;typeof En=="number"&&(vn<ye.left&&(st-=vn-ye.left-Ee,W.x+se<ye.left+En&&(st+=W.x-ye.left+se-En)),Kt>ye.right&&(st-=Kt-ye.right-Ee,W.x>ye.right-En&&(st+=W.x-ye.right+En)));var Dn=Dt===!0?0:Dt;typeof Dn=="number"&&(en<ye.top&&(Ct-=en-ye.top-Pe,W.y+de<ye.top+Dn&&(Ct+=W.y-ye.top+de-Dn)),Xt>ye.bottom&&(Ct-=Xt-ye.bottom-Pe,W.y>ye.bottom-Dn&&(Ct+=W.y-ye.bottom+Dn)));var mr=U.x+st,$r=mr+ue,dr=U.y+Ct,yn=dr+ie,_t=W.x,zt=_t+se,tn=W.y,Nt=tn+de,jt=Math.max(mr,_t),un=Math.min($r,zt),On=(jt+un)/2,Wn=On-mr,vr=Math.max(dr,tn),Kn=Math.min(yn,Nt),pr=(vr+Kn)/2,on=pr-dr;c==null||c(t,xt);var vt=Ye.right-U.x-(st+U.width),wt=Ye.bottom-U.y-(Ct+U.height);Ke===1&&(st=Math.floor(st),vt=Math.floor(vt)),Fe===1&&(Ct=Math.floor(Ct),wt=Math.floor(wt));var cn={ready:!0,offsetX:st/Ke,offsetY:Ct/Fe,offsetR:vt/Ke,offsetB:wt/Fe,arrowX:Wn/Ke,arrowY:on/Fe,scaleX:Ke,scaleY:Fe,align:xt};v(cn)}}),b=function(){g.current+=1;var w=g.current;Promise.resolve().then(function(){g.current===w&&S()})},x=function(){v(function(w){return ae(ae({},w),{},{ready:!1})})};return nn(x,[r]),nn(function(){e||x()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function uk(e,t,n,r,a){nn(function(){if(e&&t&&n){let p=function(){r(),a()};var g=p,i=t,c=n,u=Fb(i),d=Fb(c),f=jd(c),v=new Set([f].concat(Te(u),Te(d)));return v.forEach(function(y){y.addEventListener("scroll",p,{passive:!0})}),f.addEventListener("resize",p,{passive:!0}),r(),function(){v.forEach(function(y){y.removeEventListener("scroll",p),f.removeEventListener("resize",p)})}}},[e,t,n])}function dk(e,t,n,r,a,i,c,u){var d=l.useRef(e);d.current=e;var f=l.useRef(!1);l.useEffect(function(){if(t&&r&&(!a||i)){var g=function(){f.current=!1},p=function(b){var x;d.current&&!c(((x=b.composedPath)===null||x===void 0||(x=x.call(b))===null||x===void 0?void 0:x[0])||b.target)&&!f.current&&u(!1)},y=jd(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",p,!0),y.addEventListener("contextmenu",p,!0);var C=Qm(n);return C&&(C.addEventListener("mousedown",p,!0),C.addEventListener("contextmenu",p,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",p,!0),y.removeEventListener("contextmenu",p,!0),C&&(C.removeEventListener("mousedown",p,!0),C.removeEventListener("contextmenu",p,!0))}}},[t,n,r,a,i]);function v(){f.current=!0}return v}var fk=["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 mk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gy,t=l.forwardRef(function(n,r){var a=n.prefixCls,i=a===void 0?"rc-trigger-popup":a,c=n.children,u=n.action,d=u===void 0?"hover":u,f=n.showAction,v=n.hideAction,g=n.popupVisible,p=n.defaultPopupVisible,y=n.onPopupVisibleChange,C=n.afterPopupVisibleChange,S=n.mouseEnterDelay,b=n.mouseLeaveDelay,x=b===void 0?.1:b,$=n.focusDelay,w=n.blurDelay,E=n.mask,O=n.maskClosable,N=O===void 0?!0:O,I=n.getPopupContainer,M=n.forceRender,T=n.autoDestroy,j=n.destroyPopupOnHide,_=n.popup,B=n.popupClassName,H=n.popupStyle,A=n.popupPlacement,F=n.builtinPlacements,D=F===void 0?{}:F,L=n.popupAlign,W=n.zIndex,G=n.stretch,V=n.getPopupClassNameFromAlign,k=n.fresh,U=n.alignPoint,K=n.onPopupClick,q=n.onPopupAlign,Z=n.arrow,X=n.popupMotion,ee=n.maskMotion,te=n.popupTransitionName,oe=n.popupAnimation,le=n.maskTransitionName,ne=n.maskAnimation,Q=n.className,ie=n.getTriggerDOMNode,ue=At(n,fk),de=T||j||!1,se=l.useState(!1),ge=me(se,2),he=ge[0],Oe=ge[1];nn(function(){Oe(Gv())},[]);var Re=l.useRef({}),pe=l.useContext(R2),Ie=l.useMemo(function(){return{registerSubPopup:function(Yt,Qn){Re.current[Yt]=Qn,pe==null||pe.registerSubPopup(Yt,Qn)}}},[pe]),we=Kv(),ye=l.useState(null),ze=me(ye,2),Ae=ze[0],Ye=ze[1],Ke=l.useRef(null),Fe=qt(function(Lt){Ke.current=Lt,od(Lt)&&Ae!==Lt&&Ye(Lt),pe==null||pe.registerSubPopup(we,Lt)}),Ge=l.useState(null),je=me(Ge,2),$e=je[0],_e=je[1],Ee=l.useRef(null),Pe=qt(function(Lt){od(Lt)&&$e!==Lt&&(_e(Lt),Ee.current=Lt)}),be=l.Children.only(c),Se=(be==null?void 0:be.props)||{},Me={},ke=qt(function(Lt){var Yt,Qn,nr=$e;return(nr==null?void 0:nr.contains(Lt))||((Yt=Qm(nr))===null||Yt===void 0?void 0:Yt.host)===Lt||Lt===nr||(Ae==null?void 0:Ae.contains(Lt))||((Qn=Qm(Ae))===null||Qn===void 0?void 0:Qn.host)===Lt||Lt===Ae||Object.values(Re.current).some(function(_n){return(_n==null?void 0:_n.contains(Lt))||Lt===_n})}),et=N2(i,X,oe,te),ht=N2(i,ee,ne,le),We=l.useState(p||!1),tt=me(We,2),ut=tt[0],rt=tt[1],gt=g??ut,Mt=qt(function(Lt){g===void 0&&rt(Lt)});nn(function(){rt(g||!1)},[g]);var xt=l.useRef(gt);xt.current=gt;var st=l.useRef([]);st.current=[];var Ct=qt(function(Lt){var Yt;Mt(Lt),((Yt=st.current[st.current.length-1])!==null&&Yt!==void 0?Yt:gt)!==Lt&&(st.current.push(Lt),y==null||y(Lt))}),bt=l.useRef(),Je=function(){clearTimeout(bt.current)},Ve=function(Yt){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Je(),Qn===0?Ct(Yt):bt.current=setTimeout(function(){Ct(Yt)},Qn*1e3)};l.useEffect(function(){return Je},[]);var Ue=l.useState(!1),ft=me(Ue,2),It=ft[0],Et=ft[1];nn(function(Lt){(!Lt||gt)&&Et(!0)},[gt]);var Ht=l.useState(null),dt=me(Ht,2),it=dt[0],Dt=dt[1],Wt=l.useState(null),en=me(Wt,2),Xt=en[0],vn=en[1],Kt=function(Yt){vn([Yt.clientX,Yt.clientY])},sn=ck(gt,Ae,U&&Xt!==null?Xt:$e,A,D,L,q),lt=me(sn,11),yt=lt[0],pt=lt[1],Xe=lt[2],Qe=lt[3],ct=lt[4],Tt=lt[5],Vt=lt[6],mt=lt[7],Ot=lt[8],kt=lt[9],Sn=lt[10],Pn=ik(he,d,f,v),Mn=me(Pn,2),Ln=Mn[0],En=Mn[1],Dn=Ln.has("click"),mr=En.has("click")||En.has("contextMenu"),$r=qt(function(){It||Sn()}),dr=function(){xt.current&&U&&mr&&Ve(!1)};uk(gt,$e,Ae,$r,dr),nn(function(){$r()},[Xt,A]),nn(function(){gt&&!(D!=null&&D[A])&&$r()},[JSON.stringify(L)]);var yn=l.useMemo(function(){var Lt=sk(D,i,kt,U);return ce(Lt,V==null?void 0:V(kt))},[kt,V,D,i,U]);l.useImperativeHandle(r,function(){return{nativeElement:Ee.current,popupElement:Ke.current,forceAlign:$r}});var _t=l.useState(0),zt=me(_t,2),tn=zt[0],Nt=zt[1],jt=l.useState(0),un=me(jt,2),On=un[0],Wn=un[1],vr=function(){if(G&&$e){var Yt=$e.getBoundingClientRect();Nt(Yt.width),Wn(Yt.height)}},Kn=function(){vr(),$r()},pr=function(Yt){Et(!1),Sn(),C==null||C(Yt)},on=function(){return new Promise(function(Yt){vr(),Dt(function(){return Yt})})};nn(function(){it&&(Sn(),it(),Dt(null))},[it]);function vt(Lt,Yt,Qn,nr){Me[Lt]=function(_n){var Ci;nr==null||nr(_n),Ve(Yt,Qn);for(var Si=arguments.length,Fc=new Array(Si>1?Si-1:0),qo=1;qo<Si;qo++)Fc[qo-1]=arguments[qo];(Ci=Se[Lt])===null||Ci===void 0||Ci.call.apply(Ci,[Se,_n].concat(Fc))}}(Dn||mr)&&(Me.onClick=function(Lt){var Yt;xt.current&&mr?Ve(!1):!xt.current&&Dn&&(Kt(Lt),Ve(!0));for(var Qn=arguments.length,nr=new Array(Qn>1?Qn-1:0),_n=1;_n<Qn;_n++)nr[_n-1]=arguments[_n];(Yt=Se.onClick)===null||Yt===void 0||Yt.call.apply(Yt,[Se,Lt].concat(nr))});var wt=dk(gt,mr,$e,Ae,E,N,ke,Ve),cn=Ln.has("hover"),Tn=En.has("hover"),Un,kn;cn&&(vt("onMouseEnter",!0,S,function(Lt){Kt(Lt)}),vt("onPointerEnter",!0,S,function(Lt){Kt(Lt)}),Un=function(Yt){(gt||It)&&Ae!==null&&Ae!==void 0&&Ae.contains(Yt.target)&&Ve(!0,S)},U&&(Me.onMouseMove=function(Lt){var Yt;(Yt=Se.onMouseMove)===null||Yt===void 0||Yt.call(Se,Lt)})),Tn&&(vt("onMouseLeave",!1,x),vt("onPointerLeave",!1,x),kn=function(){Ve(!1,x)}),Ln.has("focus")&&vt("onFocus",!0,$),En.has("focus")&&vt("onBlur",!1,w),Ln.has("contextMenu")&&(Me.onContextMenu=function(Lt){var Yt;xt.current&&En.has("contextMenu")?Ve(!1):(Kt(Lt),Ve(!0)),Lt.preventDefault();for(var Qn=arguments.length,nr=new Array(Qn>1?Qn-1:0),_n=1;_n<Qn;_n++)nr[_n-1]=arguments[_n];(Yt=Se.onContextMenu)===null||Yt===void 0||Yt.call.apply(Yt,[Se,Lt].concat(nr))}),Q&&(Me.className=ce(Se.className,Q));var Lr=l.useRef(!1);Lr.current||(Lr.current=M||gt||It);var Kr=ae(ae({},Se),Me),wr={},ta=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ta.forEach(function(Lt){ue[Lt]&&(wr[Lt]=function(){for(var Yt,Qn=arguments.length,nr=new Array(Qn),_n=0;_n<Qn;_n++)nr[_n]=arguments[_n];(Yt=Kr[Lt])===null||Yt===void 0||Yt.call.apply(Yt,[Kr].concat(nr)),ue[Lt].apply(ue,nr)})});var vl=l.cloneElement(be,ae(ae({},Kr),wr)),yi={x:Tt,y:Vt},ds=Z?ae({},Z!==!0?Z:{}):null;return l.createElement(l.Fragment,null,l.createElement(la,{disabled:!gt,ref:Pe,onResize:Kn},l.createElement(ok,{getTriggerDOMNode:ie},vl)),Lr.current&&l.createElement(R2.Provider,{value:Ie},l.createElement(ak,{portal:e,ref:Fe,prefixCls:i,popup:_,className:ce(B,yn),style:H,target:$e,onMouseEnter:Un,onMouseLeave:kn,onPointerEnter:Un,zIndex:W,open:gt,keepDom:It,fresh:k,onClick:K,onPointerDownCapture:wt,mask:E,motion:et,maskMotion:ht,onVisibleChanged:pr,onPrepare:on,forceRender:M,autoDestroy:de,getPopupContainer:I,align:kt,arrow:ds,arrowPos:yi,ready:yt,offsetX:pt,offsetY:Xe,offsetR:Qe,offsetB:ct,onAlign:$r,stretch:G,targetWidth:tn/mt,targetHeight:On/Ot})))});return t}const Pd=mk(Gy);var vk=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],gk=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"}}},pk=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,i=t.children,c=t.popupElement,u=t.animation,d=t.transitionName,f=t.dropdownStyle,v=t.dropdownClassName,g=t.direction,p=g===void 0?"ltr":g,y=t.placement,C=t.builtinPlacements,S=t.dropdownMatchSelectWidth,b=t.dropdownRender,x=t.dropdownAlign,$=t.getPopupContainer,w=t.empty,E=t.getTriggerDOMNode,O=t.onPopupVisibleChange,N=t.onPopupMouseEnter,I=At(t,vk),M="".concat(r,"-dropdown"),T=c;b&&(T=b(c));var j=l.useMemo(function(){return C||gk(S)},[C,S]),_=u?"".concat(M,"-").concat(u):d,B=typeof S=="number",H=l.useMemo(function(){return B?null:S===!1?"minWidth":"width"},[S,B]),A=f;B&&(A=ae(ae({},A),{},{width:S}));var F=l.useRef(null);return l.useImperativeHandle(n,function(){return{getPopupElement:function(){var L;return(L=F.current)===null||L===void 0?void 0:L.popupElement}}}),l.createElement(Pd,xe({},I,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:y||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:M,popupTransitionName:_,popup:l.createElement("div",{onMouseEnter:N},T),ref:F,stretch:H,popupAlign:x,popupVisible:a,getPopupContainer:$,popupClassName:ce(v,J({},"".concat(M,"-empty"),w)),popupStyle:A,getTriggerDOMNode:E,onPopupVisibleChange:O}),i)},hk=l.forwardRef(pk);function D2(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 Vb(e){return typeof e<"u"&&!Number.isNaN(e)}function ZN(e,t){var n=e||{},r=n.label,a=n.value,i=n.options,c=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:a||"value",options:i||"options",groupLabel:c||u}}function bk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],i=ZN(n,!1),c=i.label,u=i.value,d=i.options,f=i.groupLabel;function v(g,p){Array.isArray(g)&&g.forEach(function(y){if(p||!(d in y)){var C=y[u];a.push({key:D2(y,a.length),groupOption:p,data:y,label:y[c],value:C})}else{var S=y[f];S===void 0&&r&&(S=y.label),a.push({key:D2(y,a.length),group:!0,data:y,label:S}),v(y[d],!0)}})}return v(e,!1),a}function Wb(e){var t=ae({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var yk=function(t,n,r){if(!n||!n.length)return null;var a=!1,i=function u(d,f){var v=XR(f),g=v[0],p=v.slice(1);if(!g)return[d];var y=d.split(g);return a=a||y.length>1,y.reduce(function(C,S){return[].concat(Te(C),Te(u(S,p)))},[]).filter(Boolean)},c=i(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},Jy=l.createContext(null);function Ck(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(a){var i=a.label,c=a.value;return["number","string"].includes($t(i))?i:c}).join(", ")),n.length>r?", ...":null)}var Sk=["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"],xk=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Kb=function(t){return t==="tags"||t==="multiple"},JN=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,i=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,f=e.omitDomProps,v=e.displayValues,g=e.onDisplayValuesChange,p=e.emptyOptions,y=e.notFoundContent,C=y===void 0?"Not Found":y,S=e.onClear,b=e.mode,x=e.disabled,$=e.loading,w=e.getInputElement,E=e.getRawInputElement,O=e.open,N=e.defaultOpen,I=e.onDropdownVisibleChange,M=e.activeValue,T=e.onActiveValueChange,j=e.activeDescendantId,_=e.searchValue,B=e.autoClearSearchValue,H=e.onSearch,A=e.onSearchSplit,F=e.tokenSeparators,D=e.allowClear,L=e.prefix,W=e.suffixIcon,G=e.clearIcon,V=e.OptionList,k=e.animation,U=e.transitionName,K=e.dropdownStyle,q=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,X=e.dropdownRender,ee=e.dropdownAlign,te=e.placement,oe=e.builtinPlacements,le=e.getPopupContainer,ne=e.showAction,Q=ne===void 0?[]:ne,ie=e.onFocus,ue=e.onBlur,de=e.onKeyUp,se=e.onKeyDown,ge=e.onMouseDown,he=At(e,Sk),Oe=Kb(b),Re=(c!==void 0?c:Oe)||b==="combobox",pe=ae({},he);xk.forEach(function(_t){delete pe[_t]}),f==null||f.forEach(function(_t){delete pe[_t]});var Ie=l.useState(!1),we=me(Ie,2),ye=we[0],ze=we[1];l.useEffect(function(){ze(Gv())},[]);var Ae=l.useRef(null),Ye=l.useRef(null),Ke=l.useRef(null),Fe=l.useRef(null),Ge=l.useRef(null),je=l.useRef(!1),$e=IL(),_e=me($e,3),Ee=_e[0],Pe=_e[1],be=_e[2];l.useImperativeHandle(t,function(){var _t,zt;return{focus:(_t=Fe.current)===null||_t===void 0?void 0:_t.focus,blur:(zt=Fe.current)===null||zt===void 0?void 0:zt.blur,scrollTo:function(Nt){var jt;return(jt=Ge.current)===null||jt===void 0?void 0:jt.scrollTo(Nt)},nativeElement:Ae.current||Ye.current}});var Se=l.useMemo(function(){var _t;if(b!=="combobox")return _;var zt=(_t=v[0])===null||_t===void 0?void 0:_t.value;return typeof zt=="string"||typeof zt=="number"?String(zt):""},[_,b,v]),Me=b==="combobox"&&typeof w=="function"&&w()||null,ke=typeof E=="function"&&E(),et=bi(Ye,ke==null||(n=ke.props)===null||n===void 0?void 0:n.ref),ht=l.useState(!1),We=me(ht,2),tt=We[0],ut=We[1];nn(function(){ut(!0)},[]);var rt=bn(!1,{defaultValue:N,value:O}),gt=me(rt,2),Mt=gt[0],xt=gt[1],st=tt?Mt:!1,Ct=!C&&p;(x||Ct&&st&&b==="combobox")&&(st=!1);var bt=Ct?!1:st,Je=l.useCallback(function(_t){var zt=_t!==void 0?_t:!st;x||(xt(zt),st!==zt&&(I==null||I(zt)))},[x,st,xt,I]),Ve=l.useMemo(function(){return(F||[]).some(function(_t){return[`
|
|
233
|
+
`,`\r
|
|
234
|
+
`].includes(_t)})},[F]),Ue=l.useContext(Jy)||{},ft=Ue.maxCount,It=Ue.rawValues,Et=function(zt,tn,Nt){if(!(Oe&&Vb(ft)&&(It==null?void 0:It.size)>=ft)){var jt=!0,un=zt;T==null||T(null);var On=yk(zt,F,Vb(ft)?ft-It.size:void 0),Wn=Nt?null:On;return b!=="combobox"&&Wn&&(un="",A==null||A(Wn),Je(!1),jt=!1),H&&Se!==un&&H(un,{source:tn?"typing":"effect"}),jt}},Ht=function(zt){!zt||!zt.trim()||H(zt,{source:"submit"})};l.useEffect(function(){!st&&!Oe&&b!=="combobox"&&Et("",!1,!1)},[st]),l.useEffect(function(){Mt&&x&&xt(!1),x&&!je.current&&Pe(!1)},[x]);var dt=KN(),it=me(dt,2),Dt=it[0],Wt=it[1],en=l.useRef(!1),Xt=function(zt){var tn=Dt(),Nt=zt.key,jt=Nt==="Enter";if(jt&&(b!=="combobox"&&zt.preventDefault(),st||Je(!0)),Wt(!!Se),Nt==="Backspace"&&!tn&&Oe&&!Se&&v.length){for(var un=Te(v),On=null,Wn=un.length-1;Wn>=0;Wn-=1){var vr=un[Wn];if(!vr.disabled){un.splice(Wn,1),On=vr;break}}On&&g(un,{type:"remove",values:[On]})}for(var Kn=arguments.length,pr=new Array(Kn>1?Kn-1:0),on=1;on<Kn;on++)pr[on-1]=arguments[on];if(st&&(!jt||!en.current)){var vt;jt&&(en.current=!0),(vt=Ge.current)===null||vt===void 0||vt.onKeyDown.apply(vt,[zt].concat(pr))}se==null||se.apply(void 0,[zt].concat(pr))},vn=function(zt){for(var tn=arguments.length,Nt=new Array(tn>1?tn-1:0),jt=1;jt<tn;jt++)Nt[jt-1]=arguments[jt];if(st){var un;(un=Ge.current)===null||un===void 0||un.onKeyUp.apply(un,[zt].concat(Nt))}zt.key==="Enter"&&(en.current=!1),de==null||de.apply(void 0,[zt].concat(Nt))},Kt=function(zt){var tn=v.filter(function(Nt){return Nt!==zt});g(tn,{type:"remove",values:[zt]})},sn=function(){en.current=!1},lt=l.useRef(!1),yt=function(){Pe(!0),x||(ie&&!lt.current&&ie.apply(void 0,arguments),Q.includes("focus")&&Je(!0)),lt.current=!0},pt=function(){je.current=!0,Pe(!1,function(){lt.current=!1,je.current=!1,Je(!1)}),!x&&(Se&&(b==="tags"?H(Se,{source:"submit"}):b==="multiple"&&H("",{source:"blur"})),ue&&ue.apply(void 0,arguments))},Xe=[];l.useEffect(function(){return function(){Xe.forEach(function(_t){return clearTimeout(_t)}),Xe.splice(0,Xe.length)}},[]);var Qe=function(zt){var tn,Nt=zt.target,jt=(tn=Ke.current)===null||tn===void 0?void 0:tn.getPopupElement();if(jt&&jt.contains(Nt)){var un=setTimeout(function(){var Kn=Xe.indexOf(un);if(Kn!==-1&&Xe.splice(Kn,1),be(),!ye&&!jt.contains(document.activeElement)){var pr;(pr=Fe.current)===null||pr===void 0||pr.focus()}});Xe.push(un)}for(var On=arguments.length,Wn=new Array(On>1?On-1:0),vr=1;vr<On;vr++)Wn[vr-1]=arguments[vr];ge==null||ge.apply(void 0,[zt].concat(Wn))},ct=l.useState({}),Tt=me(ct,2),Vt=Tt[1];function mt(){Vt({})}var Ot;ke&&(Ot=function(zt){Je(zt)}),NL(function(){var _t;return[Ae.current,(_t=Ke.current)===null||_t===void 0?void 0:_t.getPopupElement()]},bt,Je,!!ke);var kt=l.useMemo(function(){return ae(ae({},e),{},{notFoundContent:C,open:st,triggerOpen:bt,id:r,showSearch:Re,multiple:Oe,toggleOpen:Je})},[e,C,bt,st,r,Re,Oe,Je]),Sn=!!W||$,Pn;Sn&&(Pn=l.createElement(Xv,{className:ce("".concat(a,"-arrow"),J({},"".concat(a,"-arrow-loading"),$)),customizeIcon:W,customizeIconProps:{loading:$,searchValue:Se,open:st,focused:Ee,showSearch:Re}}));var Mn=function(){var zt;S==null||S(),(zt=Fe.current)===null||zt===void 0||zt.focus(),g([],{type:"clear",values:v}),Et("",!1,!1)},Ln=RL(a,Mn,v,D,G,x,Se,b),En=Ln.allowClear,Dn=Ln.clearIcon,mr=l.createElement(V,{ref:Ge}),$r=ce(a,i,J(J(J(J(J(J(J(J(J(J({},"".concat(a,"-focused"),Ee),"".concat(a,"-multiple"),Oe),"".concat(a,"-single"),!Oe),"".concat(a,"-allow-clear"),D),"".concat(a,"-show-arrow"),Sn),"".concat(a,"-disabled"),x),"".concat(a,"-loading"),$),"".concat(a,"-open"),st),"".concat(a,"-customize-input"),Me),"".concat(a,"-show-search"),Re)),dr=l.createElement(hk,{ref:Ke,disabled:x,prefixCls:a,visible:bt,popupElement:mr,animation:k,transitionName:U,dropdownStyle:K,dropdownClassName:q,direction:d,dropdownMatchSelectWidth:Z,dropdownRender:X,dropdownAlign:ee,placement:te,builtinPlacements:oe,getPopupContainer:le,empty:p,getTriggerDOMNode:function(zt){return Ye.current||zt},onPopupVisibleChange:Ot,onPopupMouseEnter:mt},ke?l.cloneElement(ke,{ref:et}):l.createElement(ek,xe({},e,{domRef:Ye,prefixCls:a,inputElement:Me,ref:Fe,id:r,prefix:L,showSearch:Re,autoClearSearchValue:B,mode:b,activeDescendantId:j,tagRender:u,values:v,open:st,onToggleOpen:Je,activeValue:M,searchValue:Se,onSearch:Et,onSearchSubmit:Ht,onRemove:Kt,tokenWithEnter:Ve,onInputBlur:sn}))),yn;return ke?yn=dr:yn=l.createElement("div",xe({className:$r},pe,{ref:Ae,onMouseDown:Qe,onKeyDown:Xt,onKeyUp:vn,onFocus:yt,onBlur:pt}),l.createElement(Ck,{visible:Ee&&!st,values:v}),dr,Pn,En&&Dn),l.createElement(VN.Provider,{value:kt},yn)}),eC=function(){return null};eC.isSelectOptGroup=!0;var tC=function(){return null};tC.isSelectOption=!0;var eM=l.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,i=e.children,c=e.prefixCls,u=e.onInnerResize,d=e.innerProps,f=e.rtl,v=e.extra,g={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},p=ae(ae({},p),{},J(J(J(J(J({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:g},l.createElement(la,{onResize:function(C){var S=C.offsetHeight;S&&u&&u()}},l.createElement("div",xe({style:p,className:ce(J({},"".concat(c,"-holder-inner"),c)),ref:t},d),i,v)))});eM.displayName="Filler";function $k(e){var t=e.children,n=e.setRef,r=l.useCallback(function(a){n(a)},[]);return l.cloneElement(t,{ref:r})}function wk(e,t,n,r,a,i,c,u){var d=u.getKey;return e.slice(t,n+1).map(function(f,v){var g=t+v,p=c(f,g,{style:{width:r},offsetX:a}),y=d(f);return l.createElement($k,{key:y,setRef:function(S){return i(f,S)}},p)})}function Ek(e,t,n){var r=e.length,a=t.length,i,c;if(r===0&&a===0)return null;r<a?(i=e,c=t):(i=t,c=e);var u={__EMPTY_ITEM__:!0};function d(C){return C!==void 0?n(C):u}for(var f=null,v=Math.abs(r-a)!==1,g=0;g<c.length;g+=1){var p=d(i[g]),y=d(c[g]);if(p!==y){f=g,v=v||p!==d(c[g+1]);break}}return f===null?null:{index:f,multiple:v}}function Ok(e,t,n){var r=l.useState(e),a=me(r,2),i=a[0],c=a[1],u=l.useState(null),d=me(u,2),f=d[0],v=d[1];return l.useEffect(function(){var g=Ek(i||[],e||[],t);(g==null?void 0:g.index)!==void 0&&v(e[g.index]),c(e)},[e]),[f]}var _2=(typeof navigator>"u"?"undefined":$t(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const tM=(function(e,t,n,r){var a=l.useRef(!1),i=l.useRef(null);function c(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var u=l.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(d,f){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=d?f<0&&u.current.left||f>0&&u.current.right:f<0&&u.current.top||f>0&&u.current.bottom;return v&&g?(clearTimeout(i.current),a.current=!1):(!g||a.current)&&c(),!a.current&&g}});function Rk(e,t,n,r,a,i,c){var u=l.useRef(0),d=l.useRef(null),f=l.useRef(null),v=l.useRef(!1),g=tM(t,n,r,a);function p($,w){if(Gt.cancel(d.current),!g(!1,w)){var E=$;if(!E._virtualHandled)E._virtualHandled=!0;else return;u.current+=w,f.current=w,_2||E.preventDefault(),d.current=Gt(function(){var O=v.current?10:1;c(u.current*O,!1),u.current=0})}}function y($,w){c(w,!0),_2||$.preventDefault()}var C=l.useRef(null),S=l.useRef(null);function b($){if(e){Gt.cancel(S.current),S.current=Gt(function(){C.current=null},2);var w=$.deltaX,E=$.deltaY,O=$.shiftKey,N=w,I=E;(C.current==="sx"||!C.current&&O&&E&&!w)&&(N=E,I=0,C.current="sx");var M=Math.abs(N),T=Math.abs(I);C.current===null&&(C.current=i&&M>T?"x":"y"),C.current==="y"?p($,I):y($,N)}}function x($){e&&(v.current=$.detail===f.current)}return[b,x]}function Ik(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=me(a,2),c=i[0],u=i[1],d=function(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,p=c.get(v),y=c.get(g);if(p===void 0||y===void 0)for(var C=e.length,S=u.length;S<C;S+=1){var b,x=e[S],$=t(x);c.set($,S);var w=(b=n.get($))!==null&&b!==void 0?b:r;if(u[S]=(u[S-1]||0)+w,$===v&&(p=S),$===g&&(y=S),p!==void 0&&y!==void 0)break}return{top:u[p-1]||0,bottom:u[y]}};return d}var Nk=(function(){function e(){or(this,e),J(this,"maps",void 0),J(this,"id",0),J(this,"diffRecords",new Map),this.maps=Object.create(null)}return ir(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 z2(e){var t=parseFloat(e);return isNaN(t)?0:t}function Mk(e,t,n){var r=l.useState(0),a=me(r,2),i=a[0],c=a[1],u=l.useRef(new Map),d=l.useRef(new Nk),f=l.useRef(0);function v(){f.current+=1}function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;v();var C=function(){var x=!1;u.current.forEach(function($,w){if($&&$.offsetParent){var E=$.offsetHeight,O=getComputedStyle($),N=O.marginTop,I=O.marginBottom,M=z2(N),T=z2(I),j=E+M+T;d.current.get(w)!==j&&(d.current.set(w,j),x=!0)}}),x&&c(function($){return $+1})};if(y)C();else{f.current+=1;var S=f.current;Promise.resolve().then(function(){S===f.current&&C()})}}function p(y,C){var S=e(y);u.current.get(S),C?(u.current.set(S,C),g()):u.current.delete(S)}return l.useEffect(function(){return v},[]),[p,g,d.current,i]}var A2=14/15;function Tk(e,t,n){var r=l.useRef(!1),a=l.useRef(0),i=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d,f=function(y){if(r.current){var C=Math.ceil(y.touches[0].pageX),S=Math.ceil(y.touches[0].pageY),b=a.current-C,x=i.current-S,$=Math.abs(b)>Math.abs(x);$?a.current=C:i.current=S;var w=n($,$?b:x,!1,y);w&&y.preventDefault(),clearInterval(u.current),w&&(u.current=setInterval(function(){$?b*=A2:x*=A2;var E=Math.floor($?b:x);(!n($,E,!0)||Math.abs(E)<=.1)&&clearInterval(u.current)},16))}},v=function(){r.current=!1,d()},g=function(y){d(),y.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(y.touches[0].pageX),i.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",f,{passive:!1}),c.current.addEventListener("touchend",v,{passive:!0}))};d=function(){c.current&&(c.current.removeEventListener("touchmove",f),c.current.removeEventListener("touchend",v))},nn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",g),d(),clearInterval(u.current)}},[e])}function B2(e){return Math.floor(Math.pow(e,.5))}function Ub(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function jk(e,t,n){l.useEffect(function(){var r=t.current;if(e&&r){var a=!1,i,c,u=function(){Gt.cancel(i)},d=function p(){u(),i=Gt(function(){n(c),p()})},f=function(){a=!1,u()},v=function(y){if(!(y.target.draggable||y.button!==0)){var C=y;C._virtualHandled||(C._virtualHandled=!0,a=!0)}},g=function(y){if(a){var C=Ub(y,!1),S=r.getBoundingClientRect(),b=S.top,x=S.bottom;if(C<=b){var $=b-C;c=-B2($),d()}else if(C>=x){var w=C-x;c=B2(w),d()}else u()}};return r.addEventListener("mousedown",v),r.ownerDocument.addEventListener("mouseup",f),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",f),function(){r.removeEventListener("mousedown",v),r.ownerDocument.removeEventListener("mouseup",f),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",f),u()}}},[e])}var Pk=10;function Dk(e,t,n,r,a,i,c,u){var d=l.useRef(),f=l.useState(null),v=me(f,2),g=v[0],p=v[1];return nn(function(){if(g&&g.times<Pk){if(!e.current){p(function(G){return ae({},G)});return}i();var y=g.targetAlign,C=g.originAlign,S=g.index,b=g.offset,x=e.current.clientHeight,$=!1,w=y,E=null;if(x){for(var O=y||C,N=0,I=0,M=0,T=Math.min(t.length-1,S),j=0;j<=T;j+=1){var _=a(t[j]);I=N;var B=n.get(_);M=I+(B===void 0?r:B),N=M}for(var H=O==="top"?b:x-b,A=T;A>=0;A-=1){var F=a(t[A]),D=n.get(F);if(D===void 0){$=!0;break}if(H-=D,H<=0)break}switch(O){case"top":E=I-b;break;case"bottom":E=M-x+b;break;default:{var L=e.current.scrollTop,W=L+x;I<L?w="top":M>W&&(w="bottom")}}E!==null&&c(E),E!==g.lastTop&&($=!0)}$&&p(ae(ae({},g),{},{times:g.times+1,targetAlign:w,lastTop:E}))}},[g,e.current]),function(y){if(y==null){u();return}if(Gt.cancel(d.current),typeof y=="number")c(y);else if(y&&$t(y)==="object"){var C,S=y.align;"index"in y?C=y.index:C=t.findIndex(function($){return a($)===y.key});var b=y.offset,x=b===void 0?0:b;p({times:0,index:C,offset:x,originAlign:S})}}}var L2=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,i=e.scrollRange,c=e.onStartMove,u=e.onStopMove,d=e.onScroll,f=e.horizontal,v=e.spinSize,g=e.containerSize,p=e.style,y=e.thumbStyle,C=e.showScrollBar,S=l.useState(!1),b=me(S,2),x=b[0],$=b[1],w=l.useState(null),E=me(w,2),O=E[0],N=E[1],I=l.useState(null),M=me(I,2),T=M[0],j=M[1],_=!r,B=l.useRef(),H=l.useRef(),A=l.useState(C),F=me(A,2),D=F[0],L=F[1],W=l.useRef(),G=function(){C===!0||C===!1||(clearTimeout(W.current),L(!0),W.current=setTimeout(function(){L(!1)},3e3))},V=i-g||0,k=g-v||0,U=l.useMemo(function(){if(a===0||V===0)return 0;var ne=a/V;return ne*k},[a,V,k]),K=function(Q){Q.stopPropagation(),Q.preventDefault()},q=l.useRef({top:U,dragging:x,pageY:O,startTop:T});q.current={top:U,dragging:x,pageY:O,startTop:T};var Z=function(Q){$(!0),N(Ub(Q,f)),j(q.current.top),c(),Q.stopPropagation(),Q.preventDefault()};l.useEffect(function(){var ne=function(de){de.preventDefault()},Q=B.current,ie=H.current;return Q.addEventListener("touchstart",ne,{passive:!1}),ie.addEventListener("touchstart",Z,{passive:!1}),function(){Q.removeEventListener("touchstart",ne),ie.removeEventListener("touchstart",Z)}},[]);var X=l.useRef();X.current=V;var ee=l.useRef();ee.current=k,l.useEffect(function(){if(x){var ne,Q=function(de){var se=q.current,ge=se.dragging,he=se.pageY,Oe=se.startTop;Gt.cancel(ne);var Re=B.current.getBoundingClientRect(),pe=g/(f?Re.width:Re.height);if(ge){var Ie=(Ub(de,f)-he)*pe,we=Oe;!_&&f?we-=Ie:we+=Ie;var ye=X.current,ze=ee.current,Ae=ze?we/ze:0,Ye=Math.ceil(Ae*ye);Ye=Math.max(Ye,0),Ye=Math.min(Ye,ye),ne=Gt(function(){d(Ye,f)})}},ie=function(){$(!1),u()};return window.addEventListener("mousemove",Q,{passive:!0}),window.addEventListener("touchmove",Q,{passive:!0}),window.addEventListener("mouseup",ie,{passive:!0}),window.addEventListener("touchend",ie,{passive:!0}),function(){window.removeEventListener("mousemove",Q),window.removeEventListener("touchmove",Q),window.removeEventListener("mouseup",ie),window.removeEventListener("touchend",ie),Gt.cancel(ne)}}},[x]),l.useEffect(function(){return G(),function(){clearTimeout(W.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:G}});var te="".concat(n,"-scrollbar"),oe={position:"absolute",visibility:D?null:"hidden"},le={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(oe,{height:8,left:0,right:0,bottom:0}),Object.assign(le,J({height:"100%",width:v},_?"left":"right",U))):(Object.assign(oe,J({width:8,top:0,bottom:0},_?"right":"left",0)),Object.assign(le,{width:"100%",height:v,top:U})),l.createElement("div",{ref:B,className:ce(te,J(J(J({},"".concat(te,"-horizontal"),f),"".concat(te,"-vertical"),!f),"".concat(te,"-visible"),D)),style:ae(ae({},oe),p),onMouseDown:K,onMouseMove:G},l.createElement("div",{ref:H,className:ce("".concat(te,"-thumb"),J({},"".concat(te,"-thumb-moving"),x)),style:ae(ae({},le),y),onMouseDown:Z}))}),_k=20;function k2(){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,_k),Math.floor(n)}var zk=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ak=[],Bk={overflowY:"auto",overflowAnchor:"none"};function Lk(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,i=e.height,c=e.itemHeight,u=e.fullHeight,d=u===void 0?!0:u,f=e.style,v=e.data,g=e.children,p=e.itemKey,y=e.virtual,C=e.direction,S=e.scrollWidth,b=e.component,x=b===void 0?"div":b,$=e.onScroll,w=e.onVirtualScroll,E=e.onVisibleChange,O=e.innerProps,N=e.extraRender,I=e.styles,M=e.showScrollBar,T=M===void 0?"optional":M,j=At(e,zk),_=l.useCallback(function(lt){return typeof p=="function"?p(lt):lt==null?void 0:lt[p]},[p]),B=Mk(_),H=me(B,4),A=H[0],F=H[1],D=H[2],L=H[3],W=!!(y!==!1&&i&&c),G=l.useMemo(function(){return Object.values(D.maps).reduce(function(lt,yt){return lt+yt},0)},[D.id,D.maps]),V=W&&v&&(Math.max(c*v.length,G)>i||!!S),k=C==="rtl",U=ce(r,J({},"".concat(r,"-rtl"),k),a),K=v||Ak,q=l.useRef(),Z=l.useRef(),X=l.useRef(),ee=l.useState(0),te=me(ee,2),oe=te[0],le=te[1],ne=l.useState(0),Q=me(ne,2),ie=Q[0],ue=Q[1],de=l.useState(!1),se=me(de,2),ge=se[0],he=se[1],Oe=function(){he(!0)},Re=function(){he(!1)},pe={getKey:_};function Ie(lt){le(function(yt){var pt;typeof lt=="function"?pt=lt(yt):pt=lt;var Xe=ut(pt);return q.current.scrollTop=Xe,Xe})}var we=l.useRef({start:0,end:K.length}),ye=l.useRef(),ze=Ok(K,_),Ae=me(ze,1),Ye=Ae[0];ye.current=Ye;var Ke=l.useMemo(function(){if(!W)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!V){var lt;return{scrollHeight:((lt=Z.current)===null||lt===void 0?void 0:lt.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var yt=0,pt,Xe,Qe,ct=K.length,Tt=0;Tt<ct;Tt+=1){var Vt=K[Tt],mt=_(Vt),Ot=D.get(mt),kt=yt+(Ot===void 0?c:Ot);kt>=oe&&pt===void 0&&(pt=Tt,Xe=yt),kt>oe+i&&Qe===void 0&&(Qe=Tt),yt=kt}return pt===void 0&&(pt=0,Xe=0,Qe=Math.ceil(i/c)),Qe===void 0&&(Qe=K.length-1),Qe=Math.min(Qe+1,K.length-1),{scrollHeight:yt,start:pt,end:Qe,offset:Xe}},[V,W,oe,K,L,i]),Fe=Ke.scrollHeight,Ge=Ke.start,je=Ke.end,$e=Ke.offset;we.current.start=Ge,we.current.end=je,l.useLayoutEffect(function(){var lt=D.getRecord();if(lt.size===1){var yt=Array.from(lt.keys())[0],pt=lt.get(yt),Xe=K[Ge];if(Xe&&pt===void 0){var Qe=_(Xe);if(Qe===yt){var ct=D.get(yt),Tt=ct-c;Ie(function(Vt){return Vt+Tt})}}}D.resetRecord()},[Fe]);var _e=l.useState({width:0,height:i}),Ee=me(_e,2),Pe=Ee[0],be=Ee[1],Se=function(yt){be({width:yt.offsetWidth,height:yt.offsetHeight})},Me=l.useRef(),ke=l.useRef(),et=l.useMemo(function(){return k2(Pe.width,S)},[Pe.width,S]),ht=l.useMemo(function(){return k2(Pe.height,Fe)},[Pe.height,Fe]),We=Fe-i,tt=l.useRef(We);tt.current=We;function ut(lt){var yt=lt;return Number.isNaN(tt.current)||(yt=Math.min(yt,tt.current)),yt=Math.max(yt,0),yt}var rt=oe<=0,gt=oe>=We,Mt=ie<=0,xt=ie>=S,st=tM(rt,gt,Mt,xt),Ct=function(){return{x:k?-ie:ie,y:oe}},bt=l.useRef(Ct()),Je=qt(function(lt){if(w){var yt=ae(ae({},Ct()),lt);(bt.current.x!==yt.x||bt.current.y!==yt.y)&&(w(yt),bt.current=yt)}});function Ve(lt,yt){var pt=lt;yt?(ro.flushSync(function(){ue(pt)}),Je()):Ie(pt)}function Ue(lt){var yt=lt.currentTarget.scrollTop;yt!==oe&&Ie(yt),$==null||$(lt),Je()}var ft=function(yt){var pt=yt,Xe=S?S-Pe.width:0;return pt=Math.max(pt,0),pt=Math.min(pt,Xe),pt},It=qt(function(lt,yt){yt?(ro.flushSync(function(){ue(function(pt){var Xe=pt+(k?-lt:lt);return ft(Xe)})}),Je()):Ie(function(pt){var Xe=pt+lt;return Xe})}),Et=Rk(W,rt,gt,Mt,xt,!!S,It),Ht=me(Et,2),dt=Ht[0],it=Ht[1];Tk(W,q,function(lt,yt,pt,Xe){var Qe=Xe;return st(lt,yt,pt)?!1:!Qe||!Qe._virtualHandled?(Qe&&(Qe._virtualHandled=!0),dt({preventDefault:function(){},deltaX:lt?yt:0,deltaY:lt?0:yt}),!0):!1}),jk(V,q,function(lt){Ie(function(yt){return yt+lt})}),nn(function(){function lt(pt){var Xe=rt&&pt.detail<0,Qe=gt&&pt.detail>0;W&&!Xe&&!Qe&&pt.preventDefault()}var yt=q.current;return yt.addEventListener("wheel",dt,{passive:!1}),yt.addEventListener("DOMMouseScroll",it,{passive:!0}),yt.addEventListener("MozMousePixelScroll",lt,{passive:!1}),function(){yt.removeEventListener("wheel",dt),yt.removeEventListener("DOMMouseScroll",it),yt.removeEventListener("MozMousePixelScroll",lt)}},[W,rt,gt]),nn(function(){if(S){var lt=ft(ie);ue(lt),Je({x:lt})}},[Pe.width,S]);var Dt=function(){var yt,pt;(yt=Me.current)===null||yt===void 0||yt.delayHidden(),(pt=ke.current)===null||pt===void 0||pt.delayHidden()},Wt=Dk(q,K,D,c,_,function(){return F(!0)},Ie,Dt);l.useImperativeHandle(t,function(){return{nativeElement:X.current,getScrollInfo:Ct,scrollTo:function(yt){function pt(Xe){return Xe&&$t(Xe)==="object"&&("left"in Xe||"top"in Xe)}pt(yt)?(yt.left!==void 0&&ue(ft(yt.left)),Wt(yt.top)):Wt(yt)}}}),nn(function(){if(E){var lt=K.slice(Ge,je+1);E(lt,K)}},[Ge,je,K]);var en=Ik(K,_,D,c),Xt=N==null?void 0:N({start:Ge,end:je,virtual:V,offsetX:ie,offsetY:$e,rtl:k,getSize:en}),vn=wk(K,Ge,je,S,ie,A,g,pe),Kt=null;i&&(Kt=ae(J({},d?"height":"maxHeight",i),Bk),W&&(Kt.overflowY="hidden",S&&(Kt.overflowX="hidden"),ge&&(Kt.pointerEvents="none")));var sn={};return k&&(sn.dir="rtl"),l.createElement("div",xe({ref:X,style:ae(ae({},f),{},{position:"relative"}),className:U},sn,j),l.createElement(la,{onResize:Se},l.createElement(x,{className:"".concat(r,"-holder"),style:Kt,ref:q,onScroll:Ue,onMouseEnter:Dt},l.createElement(eM,{prefixCls:r,height:Fe,offsetX:ie,offsetY:$e,scrollWidth:S,onInnerResize:F,ref:Z,innerProps:O,rtl:k,extra:Xt},vn))),V&&Fe>i&&l.createElement(L2,{ref:Me,prefixCls:r,scrollOffset:oe,scrollRange:Fe,rtl:k,onScroll:Ve,onStartMove:Oe,onStopMove:Re,spinSize:ht,containerSize:Pe.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb,showScrollBar:T}),V&&S>Pe.width&&l.createElement(L2,{ref:ke,prefixCls:r,scrollOffset:ie,scrollRange:S,rtl:k,onScroll:Ve,onStartMove:Oe,onStopMove:Re,spinSize:et,containerSize:Pe.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb,showScrollBar:T}))}var Yv=l.forwardRef(Lk);Yv.displayName="List";function kk(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Hk=["disabled","title","children","style","className"];function H2(e){return typeof e=="string"||typeof e=="number"}var Fk=function(t,n){var r=WN(),a=r.prefixCls,i=r.id,c=r.open,u=r.multiple,d=r.mode,f=r.searchValue,v=r.toggleOpen,g=r.notFoundContent,p=r.onPopupScroll,y=l.useContext(Jy),C=y.maxCount,S=y.flattenOptions,b=y.onActiveValue,x=y.defaultActiveFirstOption,$=y.onSelect,w=y.menuItemSelectedIcon,E=y.rawValues,O=y.fieldNames,N=y.virtual,I=y.direction,M=y.listHeight,T=y.listItemHeight,j=y.optionRender,_="".concat(a,"-item"),B=es(function(){return S},[c,S],function(ne,Q){return Q[0]&&ne[1]!==Q[1]}),H=l.useRef(null),A=l.useMemo(function(){return u&&Vb(C)&&(E==null?void 0:E.size)>=C},[u,C,E==null?void 0:E.size]),F=function(Q){Q.preventDefault()},D=function(Q){var ie;(ie=H.current)===null||ie===void 0||ie.scrollTo(typeof Q=="number"?{index:Q}:Q)},L=l.useCallback(function(ne){return d==="combobox"?!1:E.has(ne)},[d,Te(E).toString(),E.size]),W=function(Q){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=B.length,de=0;de<ue;de+=1){var se=(Q+de*ie+ue)%ue,ge=B[se]||{},he=ge.group,Oe=ge.data;if(!he&&!(Oe!=null&&Oe.disabled)&&(L(Oe.value)||!A))return se}return-1},G=l.useState(function(){return W(0)}),V=me(G,2),k=V[0],U=V[1],K=function(Q){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;U(Q);var ue={source:ie?"keyboard":"mouse"},de=B[Q];if(!de){b(null,-1,ue);return}b(de.value,Q,ue)};l.useEffect(function(){K(x!==!1?W(0):-1)},[B.length,f]);var q=l.useCallback(function(ne){return d==="combobox"?String(ne).toLowerCase()===f.toLowerCase():E.has(ne)},[d,f,Te(E).toString(),E.size]);l.useEffect(function(){var ne=setTimeout(function(){if(!u&&c&&E.size===1){var ie=Array.from(E)[0],ue=B.findIndex(function(de){var se=de.data;return f?String(se.value).startsWith(f):se.value===ie});ue!==-1&&(K(ue),D(ue))}});if(c){var Q;(Q=H.current)===null||Q===void 0||Q.scrollTo(void 0)}return function(){return clearTimeout(ne)}},[c,f]);var Z=function(Q){Q!==void 0&&$(Q,{selected:!E.has(Q)}),u||v(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(Q){var ie=Q.which,ue=Q.ctrlKey;switch(ie){case at.N:case at.P:case at.UP:case at.DOWN:{var de=0;if(ie===at.UP?de=-1:ie===at.DOWN?de=1:kk()&&ue&&(ie===at.N?de=1:ie===at.P&&(de=-1)),de!==0){var se=W(k+de,de);D(se),K(se,!0)}break}case at.TAB:case at.ENTER:{var ge,he=B[k];he&&!(he!=null&&(ge=he.data)!==null&&ge!==void 0&&ge.disabled)&&!A?Z(he.value):Z(void 0),c&&Q.preventDefault();break}case at.ESC:v(!1),c&&Q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Q){D(Q)}}}),B.length===0)return l.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:F},g);var X=Object.keys(O).map(function(ne){return O[ne]}),ee=function(Q){return Q.label};function te(ne,Q){var ie=ne.group;return{role:ie?"presentation":"option",id:"".concat(i,"_list_").concat(Q)}}var oe=function(Q){var ie=B[Q];if(!ie)return null;var ue=ie.data||{},de=ue.value,se=ie.group,ge=Sr(ue,!0),he=ee(ie);return ie?l.createElement("div",xe({"aria-label":typeof he=="string"&&!se?he:null},ge,{key:Q},te(ie,Q),{"aria-selected":q(de)}),de):null},le={role:"listbox",id:"".concat(i,"_list")};return l.createElement(l.Fragment,null,N&&l.createElement("div",xe({},le,{style:{height:0,width:0,overflow:"hidden"}}),oe(k-1),oe(k),oe(k+1)),l.createElement(Yv,{itemKey:"key",ref:H,data:B,height:M,itemHeight:T,fullHeight:!1,onMouseDown:F,onScroll:p,virtual:N,direction:I,innerProps:N?null:le},function(ne,Q){var ie=ne.group,ue=ne.groupOption,de=ne.data,se=ne.label,ge=ne.value,he=de.key;if(ie){var Oe,Re=(Oe=de.title)!==null&&Oe!==void 0?Oe:H2(se)?se.toString():void 0;return l.createElement("div",{className:ce(_,"".concat(_,"-group"),de.className),title:Re},se!==void 0?se:he)}var pe=de.disabled,Ie=de.title;de.children;var we=de.style,ye=de.className,ze=At(de,Hk),Ae=xn(ze,X),Ye=L(ge),Ke=pe||!Ye&&A,Fe="".concat(_,"-option"),Ge=ce(_,Fe,ye,J(J(J(J({},"".concat(Fe,"-grouped"),ue),"".concat(Fe,"-active"),k===Q&&!Ke),"".concat(Fe,"-disabled"),Ke),"".concat(Fe,"-selected"),Ye)),je=ee(ne),$e=!w||typeof w=="function"||Ye,_e=typeof je=="number"?je:je||ge,Ee=H2(_e)?_e.toString():void 0;return Ie!==void 0&&(Ee=Ie),l.createElement("div",xe({},Sr(Ae),N?{}:te(ne,Q),{"aria-selected":q(ge),className:Ge,title:Ee,onMouseMove:function(){k===Q||Ke||K(Q)},onClick:function(){Ke||Z(ge)},style:we}),l.createElement("div",{className:"".concat(Fe,"-content")},typeof j=="function"?j(ne,{index:Q}):_e),l.isValidElement(w)||Ye,$e&&l.createElement(Xv,{className:"".concat(_,"-option-state"),customizeIcon:w,customizeIconProps:{value:ge,disabled:Ke,isSelected:Ye}},Ye?"✓":null))}))},Vk=l.forwardRef(Fk);const Wk=(function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var i=n.current,c=i.values,u=i.options,d=e.map(function(g){if(g.label===void 0){var p;return ae(ae({},g),{},{label:(p=c.get(g.value))===null||p===void 0?void 0:p.label})}return g}),f=new Map,v=new Map;return d.forEach(function(g){f.set(g.value,g),v.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=f,n.current.options=v,d},[e,t]),a=l.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,a]});function r0(e,t){return YN(e).join("").toUpperCase().includes(t)}const Kk=(function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var i=t.options,c=t.label,u=t.value,d=[],f=typeof r=="function",v=n.toUpperCase(),g=f?r:function(y,C){return a?r0(C[a],v):C[i]?r0(C[c!=="children"?c:"label"],v):r0(C[u],v)},p=f?function(y){return Wb(y)}:function(y){return y};return e.forEach(function(y){if(y[i]){var C=g(n,p(y));if(C)d.push(y);else{var S=y[i].filter(function(b){return g(n,p(b))});S.length&&d.push(ae(ae({},y),{},J({},i,S)))}return}g(n,p(y))&&d.push(y)}),d},[e,r,a,n,t])});var F2=0,Uk=Yr();function qk(){var e;return Uk?(e=F2,F2+=1):e="TEST_OR_SSR",e}function nM(e){var t=l.useState(),n=me(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(qk()))},[]),e||r}var Gk=["children","value"],Xk=["children"];function Yk(e){var t=e,n=t.key,r=t.props,a=r.children,i=r.value,c=At(r,Gk);return ae({key:n,value:i!==void 0?i:n,children:a},c)}function rM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Fr(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,i=a.type.isSelectOptGroup,c=a.key,u=a.props,d=u.children,f=At(u,Xk);return t||!i?Yk(n):ae(ae({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},f),{},{options:rM(d)})}).filter(function(n){return n})}var Qk=function(t,n,r,a,i){return l.useMemo(function(){var c=t,u=!t;u&&(c=rM(n));var d=new Map,f=new Map,v=function(y,C,S){S&&typeof S=="string"&&y.set(C[S],C)},g=function p(y){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<y.length;S+=1){var b=y[S];!b[r.options]||C?(d.set(b[r.value],b),v(f,b,r.label),v(f,b,a),v(f,b,i)):p(b[r.options],!0)}};return g(c),{options:c,valueOptions:d,labelOptions:f}},[t,n,r,a,i])};function V2(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Zk=["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"],Jk=["inputValue"];function eH(e){return!e||$t(e)!=="object"}var tH=l.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,i=a===void 0?"rc-select":a,c=e.backfill,u=e.fieldNames,d=e.inputValue,f=e.searchValue,v=e.onSearch,g=e.autoClearSearchValue,p=g===void 0?!0:g,y=e.onSelect,C=e.onDeselect,S=e.dropdownMatchSelectWidth,b=S===void 0?!0:S,x=e.filterOption,$=e.filterSort,w=e.optionFilterProp,E=e.optionLabelProp,O=e.options,N=e.optionRender,I=e.children,M=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,j=e.virtual,_=e.direction,B=e.listHeight,H=B===void 0?200:B,A=e.listItemHeight,F=A===void 0?20:A,D=e.labelRender,L=e.value,W=e.defaultValue,G=e.labelInValue,V=e.onChange,k=e.maxCount,U=At(e,Zk),K=nM(n),q=Kb(r),Z=!!(!O&&I),X=l.useMemo(function(){return x===void 0&&r==="combobox"?!1:x},[x,r]),ee=l.useMemo(function(){return ZN(u,Z)},[JSON.stringify(u),Z]),te=bn("",{value:f!==void 0?f:d,postState:function(Ve){return Ve||""}}),oe=me(te,2),le=oe[0],ne=oe[1],Q=Qk(O,I,ee,w,E),ie=Q.valueOptions,ue=Q.labelOptions,de=Q.options,se=l.useCallback(function(Je){var Ve=YN(Je);return Ve.map(function(Ue){var ft,It,Et,Ht,dt;if(eH(Ue))ft=Ue;else{var it;Et=Ue.key,It=Ue.label,ft=(it=Ue.value)!==null&&it!==void 0?it:Et}var Dt=ie.get(ft);if(Dt){var Wt;It===void 0&&(It=Dt==null?void 0:Dt[E||ee.label]),Et===void 0&&(Et=(Wt=Dt==null?void 0:Dt.key)!==null&&Wt!==void 0?Wt:ft),Ht=Dt==null?void 0:Dt.disabled,dt=Dt==null?void 0:Dt.title}return{label:It,value:ft,key:Et,disabled:Ht,title:dt}})},[ee,E,ie]),ge=bn(W,{value:L}),he=me(ge,2),Oe=he[0],Re=he[1],pe=l.useMemo(function(){var Je,Ve=q&&Oe===null?[]:Oe,Ue=se(Ve);return r==="combobox"&&GL((Je=Ue[0])===null||Je===void 0?void 0:Je.value)?[]:Ue},[Oe,se,r,q]),Ie=Wk(pe,ie),we=me(Ie,2),ye=we[0],ze=we[1],Ae=l.useMemo(function(){if(!r&&ye.length===1){var Je=ye[0];if(Je.value===null&&(Je.label===null||Je.label===void 0))return[]}return ye.map(function(Ve){var Ue;return ae(ae({},Ve),{},{label:(Ue=typeof D=="function"?D(Ve):Ve.label)!==null&&Ue!==void 0?Ue:Ve.value})})},[r,ye,D]),Ye=l.useMemo(function(){return new Set(ye.map(function(Je){return Je.value}))},[ye]);l.useEffect(function(){if(r==="combobox"){var Je,Ve=(Je=ye[0])===null||Je===void 0?void 0:Je.value;ne(qL(Ve)?String(Ve):"")}},[ye]);var Ke=V2(function(Je,Ve){var Ue=Ve??Je;return J(J({},ee.value,Je),ee.label,Ue)}),Fe=l.useMemo(function(){if(r!=="tags")return de;var Je=Te(de),Ve=function(ft){return ie.has(ft)};return Te(ye).sort(function(Ue,ft){return Ue.value<ft.value?-1:1}).forEach(function(Ue){var ft=Ue.value;Ve(ft)||Je.push(Ke(ft,Ue.label))}),Je},[Ke,de,ie,ye,r]),Ge=Kk(Fe,ee,le,X,w),je=l.useMemo(function(){return r!=="tags"||!le||Ge.some(function(Je){return Je[w||"value"]===le})||Ge.some(function(Je){return Je[ee.value]===le})?Ge:[Ke(le)].concat(Te(Ge))},[Ke,w,r,Ge,le,ee]),$e=function Je(Ve){var Ue=Te(Ve).sort(function(ft,It){return $(ft,It,{searchValue:le})});return Ue.map(function(ft){return Array.isArray(ft.options)?ae(ae({},ft),{},{options:ft.options.length>0?Je(ft.options):ft.options}):ft})},_e=l.useMemo(function(){return $?$e(je):je},[je,$,le]),Ee=l.useMemo(function(){return bk(_e,{fieldNames:ee,childrenAsData:Z})},[_e,ee,Z]),Pe=function(Ve){var Ue=se(Ve);if(Re(Ue),V&&(Ue.length!==ye.length||Ue.some(function(Et,Ht){var dt;return((dt=ye[Ht])===null||dt===void 0?void 0:dt.value)!==(Et==null?void 0:Et.value)}))){var ft=G?Ue:Ue.map(function(Et){return Et.value}),It=Ue.map(function(Et){return Wb(ze(Et.value))});V(q?ft:ft[0],q?It:It[0])}},be=l.useState(null),Se=me(be,2),Me=Se[0],ke=Se[1],et=l.useState(0),ht=me(et,2),We=ht[0],tt=ht[1],ut=M!==void 0?M:r!=="combobox",rt=l.useCallback(function(Je,Ve){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ft=Ue.source,It=ft===void 0?"keyboard":ft;tt(Ve),c&&r==="combobox"&&Je!==null&&It==="keyboard"&&ke(String(Je))},[c,r]),gt=function(Ve,Ue,ft){var It=function(){var Kt,sn=ze(Ve);return[G?{label:sn==null?void 0:sn[ee.label],value:Ve,key:(Kt=sn==null?void 0:sn.key)!==null&&Kt!==void 0?Kt:Ve}:Ve,Wb(sn)]};if(Ue&&y){var Et=It(),Ht=me(Et,2),dt=Ht[0],it=Ht[1];y(dt,it)}else if(!Ue&&C&&ft!=="clear"){var Dt=It(),Wt=me(Dt,2),en=Wt[0],Xt=Wt[1];C(en,Xt)}},Mt=V2(function(Je,Ve){var Ue,ft=q?Ve.selected:!0;ft?Ue=q?[].concat(Te(ye),[Je]):[Je]:Ue=ye.filter(function(It){return It.value!==Je}),Pe(Ue),gt(Je,ft),r==="combobox"?ke(""):(!Kb||p)&&(ne(""),ke(""))}),xt=function(Ve,Ue){Pe(Ve);var ft=Ue.type,It=Ue.values;(ft==="remove"||ft==="clear")&&It.forEach(function(Et){gt(Et.value,!1,ft)})},st=function(Ve,Ue){if(ne(Ve),ke(null),Ue.source==="submit"){var ft=(Ve||"").trim();if(ft){var It=Array.from(new Set([].concat(Te(Ye),[ft])));Pe(It),gt(ft,!0),ne("")}return}Ue.source!=="blur"&&(r==="combobox"&&Pe(Ve),v==null||v(Ve))},Ct=function(Ve){var Ue=Ve;r!=="tags"&&(Ue=Ve.map(function(It){var Et=ue.get(It);return Et==null?void 0:Et.value}).filter(function(It){return It!==void 0}));var ft=Array.from(new Set([].concat(Te(Ye),Te(Ue))));Pe(ft),ft.forEach(function(It){gt(It,!0)})},bt=l.useMemo(function(){var Je=j!==!1&&b!==!1;return ae(ae({},Q),{},{flattenOptions:Ee,onActiveValue:rt,defaultActiveFirstOption:ut,onSelect:Mt,menuItemSelectedIcon:T,rawValues:Ye,fieldNames:ee,virtual:Je,direction:_,listHeight:H,listItemHeight:F,childrenAsData:Z,maxCount:k,optionRender:N})},[k,Q,Ee,rt,ut,Mt,T,Ye,ee,j,b,_,H,F,Z,N]);return l.createElement(Jy.Provider,{value:bt},l.createElement(JN,xe({},U,{id:K,prefixCls:i,ref:t,omitDomProps:Jk,mode:r,displayValues:Ae,onDisplayValuesChange:xt,direction:_,searchValue:le,onSearch:st,autoClearSearchValue:p,onSearchSplit:Ct,dropdownMatchSelectWidth:b,OptionList:Vk,emptyOptions:!Ee.length,activeValue:Me,activeDescendantId:"".concat(K,"_list_").concat(We)})))}),nC=tH;nC.Option=tC;nC.OptGroup=eC;function pi(e,t,n){return ce({[`${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 dl=(e,t)=>t||e,nH=()=>{const[,e]=Zr(),[t]=Ra("Empty"),r=new pn(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"}))))},rH=()=>{const[,e]=Zr(),[t]=Ra("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:c,shadowColor:u,contentColor:d}=l.useMemo(()=>({borderColor:new pn(n).onBackground(i).toHexString(),shadowColor:new pn(r).onBackground(i).toHexString(),contentColor:new pn(a).onBackground(i).toHexString()}),[n,r,a,i]);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:u,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:c},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:d}))))},aH=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:i,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:c,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:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},oH=ln("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=rn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return aH(a)});var iH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const aM=l.createElement(nH,null),oM=l.createElement(rH,null),cr=e=>{var t;const{className:n,rootClassName:r,prefixCls:a,image:i,description:c,children:u,imageStyle:d,style:f,classNames:v,styles:g}=e,p=iH(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:C,className:S,style:b,classNames:x,styles:$,image:w}=ur("empty"),E=y("empty",a),[O,N,I]=oH(E),[M]=Ra("Empty"),T=typeof c<"u"?c:M==null?void 0:M.description,j=typeof T=="string"?T:"empty",_=(t=i??w)!==null&&t!==void 0?t:aM;let B=null;return typeof _=="string"?B=l.createElement("img",{draggable:!1,alt:j,src:_}):B=_,O(l.createElement("div",Object.assign({className:ce(N,I,E,S,{[`${E}-normal`]:_===oM,[`${E}-rtl`]:C==="rtl"},n,r,x.root,v==null?void 0:v.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),b),g==null?void 0:g.root),f)},p),l.createElement("div",{className:ce(`${E}-image`,x.image,v==null?void 0:v.image),style:Object.assign(Object.assign(Object.assign({},d),$.image),g==null?void 0:g.image)},B),T&&l.createElement("div",{className:ce(`${E}-description`,x.description,v==null?void 0:v.description),style:Object.assign(Object.assign({},$.description),g==null?void 0:g.description)},T),u&&l.createElement("div",{className:ce(`${E}-footer`,x.footer,v==null?void 0:v.footer),style:Object.assign(Object.assign({},$.footer),g==null?void 0:g.footer)},u)))};cr.PRESENTED_IMAGE_DEFAULT=aM;cr.PRESENTED_IMAGE_SIMPLE=oM;const Qv=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(Rt),r=n("empty");switch(t){case"Table":case"List":return ve.createElement(cr,{image:cr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ve.createElement(cr,{image:cr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ve.createElement(cr,null)}},fl=(e,t,n)=>{var r,a;const{variant:i,[e]:c}=l.useContext(Rt),u=l.useContext(SN),d=c==null?void 0:c.variant;let f;typeof t<"u"?f=t:n===!1?f="borderless":f=(a=(r=u??d)!==null&&r!==void 0?r:i)!==null&&a!==void 0?a:"outlined";const v=E8.includes(f);return[f,v]},lH=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 iM(e,t){return e||lH(t)}const W2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},sH=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},fn(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,[`
|
|
235
|
+
${a}${u}bottomLeft,
|
|
236
|
+
${i}${u}bottomLeft
|
|
237
|
+
`]:{animationName:_v},[`
|
|
238
|
+
${a}${u}topLeft,
|
|
239
|
+
${i}${u}topLeft,
|
|
240
|
+
${a}${u}topRight,
|
|
241
|
+
${i}${u}topRight
|
|
242
|
+
`]:{animationName:Av},[`${c}${u}bottomLeft`]:{animationName:zv},[`
|
|
243
|
+
${c}${u}topLeft,
|
|
244
|
+
${c}${u}topRight
|
|
245
|
+
`]:{animationName:Bv},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},W2(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"},io),"&-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({},W2(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Vo(e,"slide-up"),Vo(e,"slide-down"),pc(e,"move-up"),pc(e,"move-down")]},lM=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,i=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:c,itemHeight:re(t),itemLineHeight:re(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},cH=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},sM=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:u,colorIcon:d,colorIconHover:f,INTERNAL_FIXED_ITEM_MARGIN:v}=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:v,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(v).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ts()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f}})}}}},uH=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,c=cH(e),u=t?`${n}-${t}`:"",d=lM(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},sM(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${re(r)} 0`,lineHeight:re(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:re(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:re(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${a}-item + ${a}-item,
|
|
246
|
+
${n}-prefix + ${n}-selection-wrap
|
|
247
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:re(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function a0(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
248
|
+
&${n}-show-arrow ${n}-selector,
|
|
249
|
+
&${n}-allow-clear ${n}-selector
|
|
250
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[uH(e,t),a]}const dH=e=>{const{componentCls:t}=e,n=rn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=rn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[a0(e),a0(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},a0(r,"lg")]};function o0(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},fn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:re(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
251
|
+
${n}-selection-item,
|
|
252
|
+
${n}-selection-placeholder
|
|
253
|
+
`]:{display:"block",padding:0,lineHeight:re(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
254
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
255
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
256
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
257
|
+
`]:{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 ${re(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:re(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${re(r)}`,"&:after":{display:"none"}}}}}}}function fH(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[o0(e),o0(rn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${re(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
258
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
259
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
260
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},o0(rn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const mH=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:i,controlHeightLG:c,paddingXXS:u,controlPaddingHorizontal:d,zIndexPopupBase:f,colorText:v,fontWeightStrong:g,controlItemBgActive:p,controlItemBgHover:y,colorBgContainer:C,colorFillSecondary:S,colorBgContainerDisabled:b,colorTextDisabled:x,colorPrimaryHover:$,colorPrimary:w,controlOutline:E}=e,O=u*2,N=r*2,I=Math.min(a-O,a-N),M=Math.min(i-O,i-N),T=Math.min(c-O,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:f+50,optionSelectedColor:v,optionSelectedFontWeight:g,optionSelectedBg:p,optionActiveBg:y,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:C,clearBg:C,singleItemHeightLG:c,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:I,multipleItemHeightSM:M,multipleItemHeightLG:T,multipleSelectorBgDisabled:b,multipleItemColorDisabled:x,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:w,activeOutlineColor:E,selectAffixPadding:u}},cM=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${re(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 ${re(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},K2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},cM(e,t))}),vH=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},cM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),K2(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),K2(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:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),uM=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${re(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}}}},U2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},uM(e,t))}),gH=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},uM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),U2(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),U2(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),pH=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${re(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:`${re(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}}}}),dM=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${re(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}}}},q2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dM(e,t))}),hH=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},dM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),q2(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),q2(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:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bH=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},vH(e)),gH(e)),pH(e)),hH(e))}),yH=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"}}}},CH=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"}}}},SH=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yH(e)),CH(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},io),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},io),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ts()),{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`,[a]:{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)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},xH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},SH(e),fH(e),dH(e),sH(e),{[`${t}-rtl`]:{direction:"rtl"}},rs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},fM=ln("Select",(e,{rootPrefixCls:t})=>{const n=rn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[xH(n),bH(n)]},mH,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var $H={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"},wH=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:$H}))},Mc=l.forwardRef(wH),EH={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"},OH=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:EH}))},rC=l.forwardRef(OH),RH={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"},IH=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:RH}))},Dd=l.forwardRef(IH);function aC({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:i,hasFeedback:c,prefixCls:u,showSuffixIcon:d,feedbackIcon:f,showArrow:v,componentName:g}){const p=t??l.createElement(cl,null),y=x=>e===null&&!c&&!v?null:l.createElement(l.Fragment,null,d!==!1&&x,c&&f);let C=null;if(e!==void 0)C=y(e);else if(a)C=y(l.createElement($o,{spin:!0}));else{const x=`${u}-suffix`;C=({open:$,showSearch:w})=>y($&&w?l.createElement(Dd,{className:x}):l.createElement(rC,{className:x}))}let S=null;n!==void 0?S=n:i?S=l.createElement(Mc,null):S=null;let b=null;return r!==void 0?b=r:b=l.createElement(Ro,null),{clearIcon:p,suffixIcon:C,itemIcon:S,removeIcon:b}}function mM(e){return ve.useMemo(()=>{if(e)return(...t)=>ve.createElement(Ko,{space:!0},e.apply(void 0,t))},[e])}function vM(e,t){return t!==void 0?t:e!==null}var NH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gM="SECRET_COMBOBOX_MODE_DO_NOT_USE",MH=(e,t)=>{var n,r,a,i,c;const{prefixCls:u,bordered:d,className:f,rootClassName:v,getPopupContainer:g,popupClassName:p,dropdownClassName:y,listHeight:C=256,placement:S,listItemHeight:b,size:x,disabled:$,notFoundContent:w,status:E,builtinPlacements:O,dropdownMatchSelectWidth:N,popupMatchSelectWidth:I,direction:M,style:T,allowClear:j,variant:_,dropdownStyle:B,transitionName:H,tagRender:A,maxCount:F,prefix:D,dropdownRender:L,popupRender:W,onDropdownVisibleChange:G,onOpenChange:V,styles:k,classNames:U}=e,K=NH(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:q,getPrefixCls:Z,renderEmpty:X,direction:ee,virtual:te,popupMatchSelectWidth:oe,popupOverflow:le}=l.useContext(Rt),{showSearch:ne,style:Q,styles:ie,className:ue,classNames:de}=ur("select"),[,se]=Zr(),ge=b??(se==null?void 0:se.controlHeight),he=Z("select",u),Oe=Z(),Re=M??ee,{compactSize:pe,compactItemClassnames:Ie}=No(he,Re),[we,ye]=fl("select",_,d),ze=ar(he),[Ae,Ye,Ke]=fM(he,ze),Fe=l.useMemo(()=>{const{mode:ft}=e;if(ft!=="combobox")return ft===gM?"combobox":ft},[e.mode]),Ge=Fe==="multiple"||Fe==="tags",je=vM(e.suffixIcon,e.showArrow),$e=(n=I??N)!==null&&n!==void 0?n:oe,_e=((r=k==null?void 0:k.popup)===null||r===void 0?void 0:r.root)||((a=ie.popup)===null||a===void 0?void 0:a.root)||B,Ee=mM(W||L),Pe=V||G,{status:be,hasFeedback:Se,isFormItemInput:Me,feedbackIcon:ke}=l.useContext(zr),et=dl(be,E);let ht;w!==void 0?ht=w:Fe==="combobox"?ht=null:ht=(X==null?void 0:X("Select"))||l.createElement(Qv,{componentName:"Select"});const{suffixIcon:We,itemIcon:tt,removeIcon:ut,clearIcon:rt}=aC(Object.assign(Object.assign({},K),{multiple:Ge,hasFeedback:Se,feedbackIcon:ke,showSuffixIcon:je,prefixCls:he,componentName:"Select"})),gt=j===!0?{clearIcon:rt}:j,Mt=xn(K,["suffixIcon","itemIcon"]),xt=ce(((i=U==null?void 0:U.popup)===null||i===void 0?void 0:i.root)||((c=de==null?void 0:de.popup)===null||c===void 0?void 0:c.root)||p||y,{[`${he}-dropdown-${Re}`]:Re==="rtl"},v,de.root,U==null?void 0:U.root,Ke,ze,Ye),st=Br(ft=>{var It;return(It=x??pe)!==null&&It!==void 0?It:ft}),Ct=l.useContext(_r),bt=$??Ct,Je=ce({[`${he}-lg`]:st==="large",[`${he}-sm`]:st==="small",[`${he}-rtl`]:Re==="rtl",[`${he}-${we}`]:ye,[`${he}-in-form-item`]:Me},pi(he,et,Se),Ie,ue,f,de.root,U==null?void 0:U.root,v,Ke,ze,Ye),Ve=l.useMemo(()=>S!==void 0?S:Re==="rtl"?"bottomRight":"bottomLeft",[S,Re]),[Ue]=Io("SelectLike",_e==null?void 0:_e.zIndex);return Ae(l.createElement(nC,Object.assign({ref:t,virtual:te,showSearch:ne},Mt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie.root),k==null?void 0:k.root),Q),T),dropdownMatchSelectWidth:$e,transitionName:Fo(Oe,"slide-up",H),builtinPlacements:iM(O,le),listHeight:C,listItemHeight:ge,mode:Fe,prefixCls:he,placement:Ve,direction:Re,prefix:D,suffixIcon:We,menuItemSelectedIcon:tt,removeIcon:ut,allowClear:gt,notFoundContent:ht,className:Je,getPopupContainer:g||q,dropdownClassName:xt,disabled:bt,dropdownStyle:Object.assign(Object.assign({},_e),{zIndex:Ue}),maxCount:Ge?F:void 0,tagRender:Ge?A:void 0,dropdownRender:Ee,onDropdownVisibleChange:Pe})))},Ir=l.forwardRef(MH),TH=Nc(Ir,"dropdownAlign");Ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=gM;Ir.Option=tC;Ir.OptGroup=eC;Ir._InternalPanelDoNotUseOrYouWillBeFired=TH;const{Option:G2}=Ir;function X2(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const jH=(e,t)=>{var n,r;const{prefixCls:a,className:i,popupClassName:c,dropdownClassName:u,children:d,dataSource:f,dropdownStyle:v,dropdownRender:g,popupRender:p,onDropdownVisibleChange:y,onOpenChange:C,styles:S,classNames:b}=e,x=Fr(d),$=((n=S==null?void 0:S.popup)===null||n===void 0?void 0:n.root)||v,w=((r=b==null?void 0:b.popup)===null||r===void 0?void 0:r.root)||c||u,E=p||g,O=C||y;let N;x.length===1&&l.isValidElement(x[0])&&!X2(x[0])&&([N]=x);const I=N?()=>N:void 0;let M;x.length&&X2(x[0])?M=d:M=f?f.map(B=>{if(l.isValidElement(B))return B;switch(typeof B){case"string":return l.createElement(G2,{key:B,value:B},B);case"object":{const{value:H}=B;return l.createElement(G2,{key:H,value:H},B.text)}default:return}}):[];const{getPrefixCls:T}=l.useContext(Rt),j=T("select",a),[_]=Io("SelectLike",$==null?void 0:$.zIndex);return l.createElement(Ir,Object.assign({ref:t,suffixIcon:null},xn(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:j,classNames:{popup:{root:w},root:b==null?void 0:b.root},styles:{popup:{root:Object.assign(Object.assign({},$),{zIndex:_})},root:S==null?void 0:S.root},className:ce(`${j}-auto-complete`,i),mode:Ir.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:E,onOpenChange:O,getInputElement:I}),M)},pM=l.forwardRef(jH),{Option:PH}=Ir,DH=Nc(pM,"dropdownAlign",e=>xn(e,["visible"])),av=pM;av.Option=PH;av._InternalPanelDoNotUseOrYouWillBeFired=DH;const hM=(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)},bM=(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)},hd=["xxl","xl","lg","md","sm","xs"],_H=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)`}),zH=e=>{const t=e,n=[].concat(hd).reverse();return n.forEach((r,a)=>{const i=r.toUpperCase(),c=`screen${i}Min`,u=`screen${i}`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`);if(a<n.length-1){const d=`screen${i}Max`;if(!(t[u]<=t[d]))throw new Error(`${u}<=${d} fails : !(${t[u]}<=${t[d]})`);const v=`screen${n[a+1].toUpperCase()}Min`;if(!(t[d]<=t[v]))throw new Error(`${d}<=${v} fails : !(${t[d]}<=${t[v]})`)}}),e},AH=()=>{const[,e]=Zr(),t=_H(zH(e));return ve.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return a=i,n.forEach(c=>c(a)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(a),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,c])=>{const u=({matches:f})=>{this.dispatch(Object.assign(Object.assign({},a),{[i]:f}))},d=window.matchMedia(c);hM(d,u),this.matchHandlers[c]={mql:d,listener:u},u(d)})},unregister(){Object.values(t).forEach(i=>{const c=this.matchHandlers[i];bM(c==null?void 0:c.mql,c==null?void 0:c.listener)}),n.clear()}}},[t])};function oC(e=!0,t={}){const n=l.useRef(t),[,r]=Ay(),a=AH();return nn(()=>{const i=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(i)},[]),n.current}const hc=e=>e?typeof e=="function"?e():e:null;function iC(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,i=e.bodyClassName,c=e.className,u=e.style;return l.createElement("div",{className:ce("".concat(n,"-content"),c),style:u},l.createElement("div",{className:ce("".concat(n,"-inner"),i),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var qs={shiftX:64,adjustY:1},Gs={adjustX:1,shiftY:!0},Ja=[0,0],BH={left:{points:["cr","cl"],overflow:Gs,offset:[-4,0],targetOffset:Ja},right:{points:["cl","cr"],overflow:Gs,offset:[4,0],targetOffset:Ja},top:{points:["bc","tc"],overflow:qs,offset:[0,-4],targetOffset:Ja},bottom:{points:["tc","bc"],overflow:qs,offset:[0,4],targetOffset:Ja},topLeft:{points:["bl","tl"],overflow:qs,offset:[0,-4],targetOffset:Ja},leftTop:{points:["tr","tl"],overflow:Gs,offset:[-4,0],targetOffset:Ja},topRight:{points:["br","tr"],overflow:qs,offset:[0,-4],targetOffset:Ja},rightTop:{points:["tl","tr"],overflow:Gs,offset:[4,0],targetOffset:Ja},bottomRight:{points:["tr","br"],overflow:qs,offset:[0,4],targetOffset:Ja},rightBottom:{points:["bl","br"],overflow:Gs,offset:[4,0],targetOffset:Ja},bottomLeft:{points:["tl","bl"],overflow:qs,offset:[0,4],targetOffset:Ja},leftBottom:{points:["br","bl"],overflow:Gs,offset:[-4,0],targetOffset:Ja}},LH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],kH=function(t,n){var r=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,c=t.mouseEnterDelay,u=c===void 0?0:c,d=t.mouseLeaveDelay,f=d===void 0?.1:d,v=t.overlayStyle,g=t.prefixCls,p=g===void 0?"rc-tooltip":g,y=t.children,C=t.onVisibleChange,S=t.afterVisibleChange,b=t.transitionName,x=t.animation,$=t.motion,w=t.placement,E=w===void 0?"right":w,O=t.align,N=O===void 0?{}:O,I=t.destroyTooltipOnHide,M=I===void 0?!1:I,T=t.defaultVisible,j=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var B=t.overlay,H=t.id,A=t.showArrow,F=A===void 0?!0:A,D=t.classNames,L=t.styles,W=At(t,LH),G=Kv(H),V=l.useRef(null);l.useImperativeHandle(n,function(){return V.current});var k=ae({},W);"visible"in t&&(k.popupVisible=t.visible);var U=function(){return l.createElement(iC,{key:"content",prefixCls:p,id:G,bodyClassName:D==null?void 0:D.body,overlayInnerStyle:ae(ae({},_),L==null?void 0:L.body)},B)},K=function(){var Z=l.Children.only(y),X=(Z==null?void 0:Z.props)||{},ee=ae(ae({},X),{},{"aria-describedby":B?G:null});return l.cloneElement(y,ee)};return l.createElement(Pd,xe({popupClassName:ce(r,D==null?void 0:D.root),prefixCls:p,popup:U,action:i,builtinPlacements:BH,popupPlacement:E,ref:V,popupAlign:N,getPopupContainer:j,onPopupVisibleChange:C,afterPopupVisibleChange:S,popupTransitionName:b,popupAnimation:x,popupMotion:$,defaultPopupVisible:T,autoDestroy:M,mouseLeaveDelay:f,popupStyle:ae(ae({},v),L==null?void 0:L.root),mouseEnterDelay:u,arrow:F},k),K())};const HH=l.forwardRef(kH);function Zv(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,i=0,c=a,u=r*1/Math.sqrt(2),d=a-r*(1-1/Math.sqrt(2)),f=a-n*(1/Math.sqrt(2)),v=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*a-f,p=v,y=2*a-u,C=d,S=2*a-i,b=c,x=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),w=`polygon(${$}px 100%, 50% ${$}px, ${2*a-$}px 100%, ${$}px 100%)`,E=`path('M ${i} ${c} A ${r} ${r} 0 0 0 ${u} ${d} L ${f} ${v} A ${n} ${n} 0 0 1 ${g} ${p} L ${y} ${C} A ${r} ${r} 0 0 0 ${S} ${b} Z')`;return{arrowShadowWidth:x,arrowPath:E,arrowPolygon:w}}const yM=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:i,arrowShadowWidth:c,borderRadiusXS:u,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${re(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},CM=8;function Jv(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?CM:r}}function im(e,t){return e?t:{}}function lC(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:i,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:d={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"},yM(e,t,a)),{"&:before":{background:t}})]},im(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,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":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${re(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),im(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${re(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),im(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),im(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function FH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const c=Object.assign(Object.assign({},i),a);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const Y2={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"]}},VH={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"]}},WH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function SM(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:i,visibleFirst:c}=e,u=t/2,d={},f=Jv({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Y2).forEach(v=>{const g=r&&VH[v]||Y2[v],p=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[v]=p,WH.has(v)&&(p.autoArrow=!1),v){case"top":case"topLeft":case"topRight":p.offset[1]=-u-a;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=u+a;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-u-a;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=u+a;break}if(r)switch(v){case"topLeft":case"bottomLeft":p.offset[0]=-f.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":p.offset[0]=f.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":p.offset[1]=-f.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":p.offset[1]=f.arrowOffsetHorizontal*2-u;break}p.overflow=FH(v,f,t,n),c&&(p.htmlRegion="visibleFirst")}),d}const KH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:i,tooltipBorderRadius:c,zIndexPopup:u,controlHeight:d,boxShadowSecondary:f,paddingSM:v,paddingXS:g,arrowOffsetHorizontal:p,sizePopupArrow:y}=e,C=t(c).add(y).add(p).equal(),S=t(c).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:S,minHeight:d,padding:`${re(e.calc(v).div(2).equal())} ${re(g)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:c,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:C},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,CM)}},[`${n}-content`]:{position:"relative"}}),Nv(e,(b,{darkColor:x})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}}))),{"&-rtl":{direction:"rtl"}})},lC(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},UH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Jv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Zv(rn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),xM=(e,t=!0)=>ln("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:c}=r,u=rn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:c});return[KH(u),Id(r,"zoom-big-fast")]},UH,{resetStyle:!1,injectStyle:t})(e),qH=al.map(e=>`${e}-inverse`),GH=["success","processing","error","default","warning"];function eg(e,t=!0){return t?[].concat(Te(qH),Te(al)).includes(e):al.includes(e)}function XH(e){return GH.includes(e)}function $M(e,t){const n=eg(t),r=ce({[`${e}-${t}`]:t&&n}),a={},i={},c=$A(t).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=d,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:i}}const YH=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:i,overlayInnerStyle:c}=e,{getPrefixCls:u}=l.useContext(Rt),d=u("tooltip",t),[f,v,g]=xM(d),p=$M(d,i),y=p.arrowStyle,C=Object.assign(Object.assign({},c),p.overlayStyle),S=ce(v,g,d,`${d}-pure`,`${d}-placement-${r}`,n,p.className);return f(l.createElement("div",{className:S,style:y},l.createElement("div",{className:`${d}-arrow`}),l.createElement(iC,Object.assign({},e,{className:v,prefixCls:d,overlayInnerStyle:C}),a)))};var QH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZH=l.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:i,getTooltipContainer:c,color:u,overlayInnerStyle:d,children:f,afterOpenChange:v,afterVisibleChange:g,destroyTooltipOnHide:p,destroyOnHidden:y,arrow:C=!0,title:S,overlay:b,builtinPlacements:x,arrowPointAtCenter:$=!1,autoAdjustOverflow:w=!0,motion:E,getPopupContainer:O,placement:N="top",mouseEnterDelay:I=.1,mouseLeaveDelay:M=.1,overlayStyle:T,rootClassName:j,overlayClassName:_,styles:B,classNames:H}=e,A=QH(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"]),F=!!C,[,D]=Zr(),{getPopupContainer:L,getPrefixCls:W,direction:G,className:V,style:k,classNames:U,styles:K}=ur("tooltip"),q=Uo(),Z=l.useRef(null),X=()=>{var je;(je=Z.current)===null||je===void 0||je.forceAlign()};l.useImperativeHandle(t,()=>{var je,$e;return{forceAlign:X,forcePopupAlign:()=>{q.deprecated(!1,"forcePopupAlign","forceAlign"),X()},nativeElement:(je=Z.current)===null||je===void 0?void 0:je.nativeElement,popupElement:($e=Z.current)===null||$e===void 0?void 0:$e.popupElement}});const[ee,te]=bn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),oe=!S&&!b&&S!==0,le=je=>{var $e,_e;te(oe?!1:je),oe||(($e=e.onOpenChange)===null||$e===void 0||$e.call(e,je),(_e=e.onVisibleChange)===null||_e===void 0||_e.call(e,je))},ne=l.useMemo(()=>{var je,$e;let _e=$;return typeof C=="object"&&(_e=($e=(je=C.pointAtCenter)!==null&&je!==void 0?je:C.arrowPointAtCenter)!==null&&$e!==void 0?$e:$),x||SM({arrowPointAtCenter:_e,autoAdjustOverflow:w,arrowWidth:F?D.sizePopupArrow:0,borderRadius:D.borderRadius,offset:D.marginXXS,visibleFirst:!0})},[$,C,x,D]),Q=l.useMemo(()=>S===0?S:b||S||"",[b,S]),ie=l.createElement(Ko,{space:!0},typeof Q=="function"?Q():Q),ue=W("tooltip",a),de=W(),se=e["data-popover-inject"];let ge=ee;!("open"in e)&&!("visible"in e)&&oe&&(ge=!1);const he=l.isValidElement(f)&&!jI(f)?f:l.createElement("span",null,f),Oe=he.props,Re=!Oe.className||typeof Oe.className=="string"?ce(Oe.className,i||`${ue}-open`):Oe.className,[pe,Ie,we]=xM(ue,!se),ye=$M(ue,u),ze=ye.arrowStyle,Ae=ce(_,{[`${ue}-rtl`]:G==="rtl"},ye.className,j,Ie,we,V,U.root,H==null?void 0:H.root),Ye=ce(U.body,H==null?void 0:H.body),[Ke,Fe]=Io("Tooltip",A.zIndex),Ge=l.createElement(HH,Object.assign({},A,{zIndex:Ke,showArrow:F,placement:N,mouseEnterDelay:I,mouseLeaveDelay:M,prefixCls:ue,classNames:{root:Ae,body:Ye},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ze),K.root),k),T),B==null?void 0:B.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},K.body),d),B==null?void 0:B.body),ye.overlayStyle)},getTooltipContainer:O||c||L,ref:Z,builtinPlacements:ne,overlay:ie,visible:ge,onVisibleChange:le,afterVisibleChange:v??g,arrowContent:l.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:Fo(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!p}),ge?xr(he,{className:Re}):he);return pe(l.createElement(Tv.Provider,{value:Fe},Ge))}),Cr=ZH;Cr._InternalPanelDoNotUseOrYouWillBeFired=YH;const JH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:i,boxShadowSecondary:c,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:f,titleMarginBottom:v,colorBgElevated:g,popoverBg:p,titleBorderBottom:y,innerContentPadding:C,titlePadding:S}=e;return[{[t]:Object.assign(Object.assign({},fn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,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":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:v,color:u,fontWeight:a,borderBottom:y,padding:S},[`${t}-inner-content`]:{color:n,padding:C}})},lC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},e9=e=>{const{componentCls:t}=e;return{[t]:al.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},t9=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:i,zIndexPopupBase:c,borderRadiusLG:u,marginXS:d,lineType:f,colorSplit:v,paddingSM:g}=e,p=n-r,y=p/2,C=p/2-t,S=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:c+30},Zv(e)),Jv({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:d,titlePadding:i?`${y}px ${S}px ${C}px`:0,titleBorderBottom:i?`${t}px ${f} ${v}`:"none",innerContentPadding:i?`${g}px ${S}px`:0})},wM=ln("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=rn(e,{popoverBg:t,popoverColor:n});return[JH(r),e9(r),Id(r,"zoom-big")]},t9,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var n9=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const EM=({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)),r9=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:i="top",title:c,content:u,children:d}=e,f=hc(c),v=hc(u),g=ce(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return l.createElement("div",{className:g,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(iC,Object.assign({},e,{className:t,prefixCls:n}),d||l.createElement(EM,{prefixCls:n,title:f,content:v})))},OM=e=>{const{prefixCls:t,className:n}=e,r=n9(e,["prefixCls","className"]),{getPrefixCls:a}=l.useContext(Rt),i=a("popover",t),[c,u,d]=wM(i);return c(l.createElement(r9,Object.assign({},r,{prefixCls:i,hashId:u,className:ce(n,d)})))};var a9=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const o9=l.forwardRef((e,t)=>{var n,r;const{prefixCls:a,title:i,content:c,overlayClassName:u,placement:d="top",trigger:f="hover",children:v,mouseEnterDelay:g=.1,mouseLeaveDelay:p=.1,onOpenChange:y,overlayStyle:C={},styles:S,classNames:b}=e,x=a9(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:$,className:w,style:E,classNames:O,styles:N}=ur("popover"),I=$("popover",a),[M,T,j]=wM(I),_=$(),B=ce(u,T,j,w,O.root,b==null?void 0:b.root),H=ce(O.body,b==null?void 0:b.body),[A,F]=bn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=(k,U)=>{F(k,!0),y==null||y(k,U)},L=k=>{k.keyCode===at.ESC&&D(!1,k)},W=k=>{D(k)},G=hc(i),V=hc(c);return M(l.createElement(Cr,Object.assign({placement:d,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:p},x,{prefixCls:I,classNames:{root:B,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},N.root),E),C),S==null?void 0:S.root),body:Object.assign(Object.assign({},N.body),S==null?void 0:S.body)},ref:t,open:A,onOpenChange:W,overlay:G||V?l.createElement(EM,{prefixCls:I,title:G,content:V}):null,transitionName:Fo(_,"zoom-big",x.transitionName),"data-popover-inject":!0}),xr(v,{onKeyDown:k=>{var U,K;l.isValidElement(v)&&((K=v==null?void 0:(U=v.props).onKeyDown)===null||K===void 0||K.call(U,k)),L(k)}})))}),sC=o9;sC._InternalPanelDoNotUseOrYouWillBeFired=OM;var i9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},l9=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:i9}))},s9=l.forwardRef(l9);const c9=new Qt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),u9=new Qt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),d9=new Qt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),f9=new Qt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),m9=new Qt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),v9=new Qt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),g9=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:i,textFontSizeSM:c,statusSize:u,dotSize:d,textFontWeight:f,indicatorHeight:v,indicatorHeightSM:g,marginXS:p,calc:y}=e,C=`${r}-scroll-number`,S=Nv(e,(b,{darkColor:x})=>({[`&${t} ${t}-color-${b}`]:{background:x,[`&:not(${t}-count)`]:{color:x},"a:hover &":{background:x}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:v,height:v,color:e.badgeTextColor,fontWeight:f,fontSize:i,lineHeight:re(v),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(v).div(2).equal(),boxShadow:`0 0 0 ${re(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:g,height:g,fontSize:c,lineHeight:re(g),borderRadius:y(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${re(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:d,minWidth:d,height:d,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${re(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:v9,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:c9,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),S),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:u9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:d9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:f9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:m9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[C]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${C}-only`]:{position:"relative",display:"inline-block",height:v,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:v,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},RM=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,i=t,c=n,u=e.colorTextLightSolid,d=e.colorError,f=e.colorErrorHover;return rn(e,{badgeFontHeight:i,badgeShadowSize:c,badgeTextColor:u,badgeColor:d,badgeColorHover:f,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},IM=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},p9=ln("Badge",e=>{const t=RM(e);return g9(t)},IM),h9=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:i}=e,c=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,d=Nv(e,(f,{darkColor:v})=>({[`&${c}-color-${f}`]:{background:v,color:v}}));return{[u]:{position:"relative"},[c]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"absolute",top:r,padding:`0 ${re(e.paddingXS)}`,color:e.colorPrimary,lineHeight:re(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${re(i(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),d),{[`&${c}-placement-end`]:{insetInlineEnd:i(a).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:i(a).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},b9=ln(["Badge","Ribbon"],e=>{const t=RM(e);return h9(t)},IM),y9=e=>{const{className:t,prefixCls:n,style:r,color:a,children:i,text:c,placement:u="end",rootClassName:d}=e,{getPrefixCls:f,direction:v}=l.useContext(Rt),g=f("ribbon",n),p=`${g}-wrapper`,[y,C,S]=b9(g,p),b=eg(a,!1),x=ce(g,`${g}-placement-${u}`,{[`${g}-rtl`]:v==="rtl",[`${g}-color-${a}`]:b},t),$={},w={};return a&&!b&&($.background=a,w.color=a),y(l.createElement("div",{className:ce(p,d,C,S)},i,l.createElement("div",{className:ce(x,C),style:Object.assign(Object.assign({},$),r)},l.createElement("span",{className:`${g}-text`},c),l.createElement("div",{className:`${g}-corner`,style:w}))))},Q2=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let i;return a&&(i={position:"absolute",top:`${a}00%`,left:0}),l.createElement("span",{style:i,className:ce(`${t}-only-unit`,{current:r})},n)};function C9(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const S9=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),i=Math.abs(n),[c,u]=l.useState(a),[d,f]=l.useState(i),v=()=>{u(a),f(i)};l.useEffect(()=>{const y=setTimeout(v,1e3);return()=>clearTimeout(y)},[a]);let g,p;if(c===a||Number.isNaN(a)||Number.isNaN(c))g=[l.createElement(Q2,Object.assign({},e,{key:a,current:!0}))],p={transition:"none"};else{g=[];const y=a+10,C=[];for(let $=a;$<=y;$+=1)C.push($);const S=d<i?1:-1,b=C.findIndex($=>$%10===c);g=(S<0?C.slice(0,b+1):C.slice(b)).map(($,w)=>{const E=$%10;return l.createElement(Q2,Object.assign({},e,{key:$,value:E,offset:S<0?w-b:w,current:w===b}))}),p={transform:`translateY(${-C9(c,a,S)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:v},g)};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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $9=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:a,motionClassName:i,style:c,title:u,show:d,component:f="sup",children:v}=e,g=x9(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=l.useContext(Rt),y=p("scroll-number",n),C=Object.assign(Object.assign({},g),{"data-show":d,style:c,className:ce(y,a,i),title:u});let S=r;if(r&&Number(r)%1===0){const b=String(r).split("");S=l.createElement("bdi",null,b.map((x,$)=>l.createElement(S9,{prefixCls:y,count:Number(r),value:x,key:b.length-$})))}return c!=null&&c.borderColor&&(C.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),v?xr(v,b=>({className:ce(`${y}-custom-component`,b==null?void 0:b.className,i)})):l.createElement(f,Object.assign({},C,{ref:t}),S)});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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const E9=l.forwardRef((e,t)=>{var n,r,a,i,c;const{prefixCls:u,scrollNumberPrefixCls:d,children:f,status:v,text:g,color:p,count:y=null,overflowCount:C=99,dot:S=!1,size:b="default",title:x,offset:$,style:w,className:E,rootClassName:O,classNames:N,styles:I,showZero:M=!1}=e,T=w9(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:j,direction:_,badge:B}=l.useContext(Rt),H=j("badge",u),[A,F,D]=p9(H),L=y>C?`${C}+`:y,W=L==="0"||L===0||g==="0"||g===0,G=y===null||W&&!M,V=(v!=null||p!=null)&&G,k=v!=null||!W,U=S&&!W,K=U?"":L,q=l.useMemo(()=>((K==null||K==="")&&(g==null||g==="")||W&&!M)&&!U,[K,W,M,U,g]),Z=l.useRef(y);q||(Z.current=y);const X=Z.current,ee=l.useRef(K);q||(ee.current=K);const te=ee.current,oe=l.useRef(U);q||(oe.current=U);const le=l.useMemo(()=>{if(!$)return Object.assign(Object.assign({},B==null?void 0:B.style),w);const Oe={marginTop:$[1]};return _==="rtl"?Oe.left=Number.parseInt($[0],10):Oe.right=-Number.parseInt($[0],10),Object.assign(Object.assign(Object.assign({},Oe),B==null?void 0:B.style),w)},[_,$,w,B==null?void 0:B.style]),ne=x??(typeof X=="string"||typeof X=="number"?X:void 0),Q=!q&&(g===0?M:!!g&&g!==!0),ie=Q?l.createElement("span",{className:`${H}-status-text`},g):null,ue=!X||typeof X!="object"?void 0:xr(X,Oe=>({style:Object.assign(Object.assign({},le),Oe.style)})),de=eg(p,!1),se=ce(N==null?void 0:N.indicator,(n=B==null?void 0:B.classNames)===null||n===void 0?void 0:n.indicator,{[`${H}-status-dot`]:V,[`${H}-status-${v}`]:!!v,[`${H}-color-${p}`]:de}),ge={};p&&!de&&(ge.color=p,ge.background=p);const he=ce(H,{[`${H}-status`]:V,[`${H}-not-a-wrapper`]:!f,[`${H}-rtl`]:_==="rtl"},E,O,B==null?void 0:B.className,(r=B==null?void 0:B.classNames)===null||r===void 0?void 0:r.root,N==null?void 0:N.root,F,D);if(!f&&V&&(g||k||!G)){const Oe=le.color;return A(l.createElement("span",Object.assign({},T,{className:he,style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.root),(a=B==null?void 0:B.styles)===null||a===void 0?void 0:a.root),le)}),l.createElement("span",{className:se,style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.indicator),(i=B==null?void 0:B.styles)===null||i===void 0?void 0:i.indicator),ge)}),Q&&l.createElement("span",{style:{color:Oe},className:`${H}-status-text`},g)))}return A(l.createElement("span",Object.assign({ref:t},T,{className:he,style:Object.assign(Object.assign({},(c=B==null?void 0:B.styles)===null||c===void 0?void 0:c.root),I==null?void 0:I.root)}),f,l.createElement(Jr,{visible:!q,motionName:`${H}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Oe})=>{var Re,pe;const Ie=j("scroll-number",d),we=oe.current,ye=ce(N==null?void 0:N.indicator,(Re=B==null?void 0:B.classNames)===null||Re===void 0?void 0:Re.indicator,{[`${H}-dot`]:we,[`${H}-count`]:!we,[`${H}-count-sm`]:b==="small",[`${H}-multiple-words`]:!we&&te&&te.toString().length>1,[`${H}-status-${v}`]:!!v,[`${H}-color-${p}`]:de});let ze=Object.assign(Object.assign(Object.assign({},I==null?void 0:I.indicator),(pe=B==null?void 0:B.styles)===null||pe===void 0?void 0:pe.indicator),le);return p&&!de&&(ze=ze||{},ze.background=p),l.createElement($9,{prefixCls:Ie,show:!q,motionClassName:Oe,className:ye,count:te,title:ne,style:ze,key:"scrollNumber"},ue)}),ie))}),fi=E9;fi.Ribbon=y9;var O9={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"},R9=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:O9}))},bc=l.forwardRef(R9),I9=at.ESC,N9=at.TAB;function M9(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,i=e.overlayRef,c=l.useRef(!1),u=function(){if(t){var g,p;(g=n.current)===null||g===void 0||(p=g.focus)===null||p===void 0||p.call(g),r==null||r(!1)}},d=function(){var g;return(g=i.current)!==null&&g!==void 0&&g.focus?(i.current.focus(),c.current=!0,!0):!1},f=function(g){switch(g.keyCode){case I9:u();break;case N9:{var p=!1;c.current||(p=d()),p?g.preventDefault():u();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",f),a&&Gt(d,3),function(){window.removeEventListener("keydown",f),c.current=!1}):function(){c.current=!1}},[t])}var T9=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,i=l.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),c=Ar(t,sl(i));return ve.createElement(ve.Fragment,null,r&&ve.createElement("div",{className:"".concat(a,"-arrow")}),ve.cloneElement(i,{ref:So(i)?c:void 0}))}),Xs={adjustX:1,adjustY:1},Ys=[0,0],j9={topLeft:{points:["bl","tl"],overflow:Xs,offset:[0,-4],targetOffset:Ys},top:{points:["bc","tc"],overflow:Xs,offset:[0,-4],targetOffset:Ys},topRight:{points:["br","tr"],overflow:Xs,offset:[0,-4],targetOffset:Ys},bottomLeft:{points:["tl","bl"],overflow:Xs,offset:[0,4],targetOffset:Ys},bottom:{points:["tc","bc"],overflow:Xs,offset:[0,4],targetOffset:Ys},bottomRight:{points:["tr","br"],overflow:Xs,offset:[0,4],targetOffset:Ys}},P9=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function D9(e,t){var n,r=e.arrow,a=r===void 0?!1:r,i=e.prefixCls,c=i===void 0?"rc-dropdown":i,u=e.transitionName,d=e.animation,f=e.align,v=e.placement,g=v===void 0?"bottomLeft":v,p=e.placements,y=p===void 0?j9:p,C=e.getPopupContainer,S=e.showAction,b=e.hideAction,x=e.overlayClassName,$=e.overlayStyle,w=e.visible,E=e.trigger,O=E===void 0?["hover"]:E,N=e.autoFocus,I=e.overlay,M=e.children,T=e.onVisibleChange,j=At(e,P9),_=ve.useState(),B=me(_,2),H=B[0],A=B[1],F="visible"in e?w:H,D=ve.useRef(null),L=ve.useRef(null),W=ve.useRef(null);ve.useImperativeHandle(t,function(){return D.current});var G=function(te){A(te),T==null||T(te)};M9({visible:F,triggerRef:W,onVisibleChange:G,autoFocus:N,overlayRef:L});var V=function(te){var oe=e.onOverlayClick;A(!1),oe&&oe(te)},k=function(){return ve.createElement(T9,{ref:L,overlay:I,prefixCls:c,arrow:a})},U=function(){return typeof I=="function"?k:k()},K=function(){var te=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!oe},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(c,"-open")},Z=ve.cloneElement(M,{className:ce((n=M.props)===null||n===void 0?void 0:n.className,F&&q()),ref:So(M)?Ar(W,sl(M)):void 0}),X=b;return!X&&O.indexOf("contextMenu")!==-1&&(X=["click"]),ve.createElement(Pd,xe({builtinPlacements:y},j,{prefixCls:c,ref:D,popupClassName:ce(x,J({},"".concat(c,"-show-arrow"),a)),popupStyle:$,action:O,showAction:S,hideAction:X,popupPlacement:g,popupAlign:f,popupTransitionName:u,popupAnimation:d,popupVisible:F,stretch:K()?"minWidth":"",popup:U(),onPopupVisibleChange:G,onPopupClick:V,getPopupContainer:C}),Z)}const NM=ve.forwardRef(D9),_9=e=>typeof e!="object"&&typeof e!="function"||e===null;var MM=l.createContext(null);function TM(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function jM(e){var t=l.useContext(MM);return TM(t,e)}var z9=["children","locked"],wo=l.createContext(null);function A9(e,t){var n=ae({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function bd(e){var t=e.children,n=e.locked,r=At(e,z9),a=l.useContext(wo),i=es(function(){return A9(a,r)},[a,r],function(c,u){return!n&&(c[0]!==u[0]||!xo(c[1],u[1],!0))});return l.createElement(wo.Provider,{value:i},t)}var B9=[],PM=l.createContext(null);function tg(){return l.useContext(PM)}var DM=l.createContext(B9);function Tc(e){var t=l.useContext(DM);return l.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var _M=l.createContext(null),cC=l.createContext({});function Z2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Oc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),c=null;return a&&!Number.isNaN(i)?c=i:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function L9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return Z2(r,t)});return Z2(e,t)&&n.unshift(e),n}var qb=at.LEFT,Gb=at.RIGHT,Xb=at.UP,Pm=at.DOWN,Dm=at.ENTER,zM=at.ESC,Pu=at.HOME,Du=at.END,J2=[Xb,Pm,qb,Gb];function k9(e,t,n,r){var a,i="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Dm)return{inlineTrigger:!0};var f=J(J({},Xb,i),Pm,c),v=J(J(J(J({},qb,n?c:i),Gb,n?i:c),Pm,u),Dm,u),g=J(J(J(J(J(J({},Xb,i),Pm,c),Dm,u),zM,d),qb,n?u:d),Gb,n?d:u),p={inline:f,horizontal:v,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},y=(a=p["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(y){case i:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function H9(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function F9(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function uC(e,t){var n=L9(e,!0);return n.filter(function(r){return t.has(r)})}function eE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=uC(e,t),i=a.length,c=a.findIndex(function(u){return n===u});return r<0?c===-1?c=i-1:c-=1:r>0&&(c+=1),c=(c+i)%i,a[c]}var Yb=function(t,n){var r=new Set,a=new Map,i=new Map;return t.forEach(function(c){var u=document.querySelector("[data-menu-id='".concat(TM(n,c),"']"));u&&(r.add(u),i.set(u,c),a.set(c,u))}),{elements:r,key2element:a,element2key:i}};function V9(e,t,n,r,a,i,c,u,d,f){var v=l.useRef(),g=l.useRef();g.current=t;var p=function(){Gt.cancel(v.current)};return l.useEffect(function(){return function(){p()}},[]),function(y){var C=y.which;if([].concat(J2,[Dm,zM,Pu,Du]).includes(C)){var S=i(),b=Yb(S,r),x=b,$=x.elements,w=x.key2element,E=x.element2key,O=w.get(t),N=F9(O,$),I=E.get(N),M=k9(e,c(I,!0).length===1,n,C);if(!M&&C!==Pu&&C!==Du)return;(J2.includes(C)||[Pu,Du].includes(C))&&y.preventDefault();var T=function(L){if(L){var W=L,G=L.querySelector("a");G!=null&&G.getAttribute("href")&&(W=G);var V=E.get(L);u(V),p(),v.current=Gt(function(){g.current===V&&W.focus()})}};if([Pu,Du].includes(C)||M.sibling||!N){var j;!N||e==="inline"?j=a.current:j=H9(N);var _,B=uC(j,$);C===Pu?_=B[0]:C===Du?_=B[B.length-1]:_=eE(j,$,N,M.offset),T(_)}else if(M.inlineTrigger)d(I);else if(M.offset>0)d(I,!0),p(),v.current=Gt(function(){b=Yb(S,r);var D=N.getAttribute("aria-controls"),L=document.getElementById(D),W=eE(L,b.elements);T(W)},5);else if(M.offset<0){var H=c(I,!0),A=H[H.length-2],F=w.get(A);d(A,!1),T(F)}}f==null||f(y)}}function W9(e){Promise.resolve().then(e)}var dC="__RC_UTIL_PATH_SPLIT__",tE=function(t){return t.join(dC)},K9=function(t){return t.split(dC)},Qb="rc-menu-more";function U9(){var e=l.useState({}),t=me(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),i=l.useState([]),c=me(i,2),u=c[0],d=c[1],f=l.useRef(0),v=l.useRef(!1),g=function(){v.current||n({})},p=l.useCallback(function(w,E){var O=tE(E);a.current.set(O,w),r.current.set(w,O),f.current+=1;var N=f.current;W9(function(){N===f.current&&g()})},[]),y=l.useCallback(function(w,E){var O=tE(E);a.current.delete(O),r.current.delete(w)},[]),C=l.useCallback(function(w){d(w)},[]),S=l.useCallback(function(w,E){var O=r.current.get(w)||"",N=K9(O);return E&&u.includes(N[0])&&N.unshift(Qb),N},[u]),b=l.useCallback(function(w,E){return w.filter(function(O){return O!==void 0}).some(function(O){var N=S(O,!0);return N.includes(E)})},[S]),x=function(){var E=Te(r.current.keys());return u.length&&E.push(Qb),E},$=l.useCallback(function(w){var E="".concat(r.current.get(w)).concat(dC),O=new Set;return Te(a.current.keys()).forEach(function(N){N.startsWith(E)&&O.add(a.current.get(N))}),O},[]);return l.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:p,unregisterPath:y,refreshOverflowKeys:C,isSubPathKey:b,getKeyPath:S,getKeys:x,getSubPathKeys:$}}function Wu(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var q9=Math.random().toFixed(5).toString().slice(2),nE=0;function G9(e){var t=bn(e,{value:e}),n=me(t,2),r=n[0],a=n[1];return l.useEffect(function(){nE+=1;var i="".concat(q9,"-").concat(nE);a("rc-menu-uuid-".concat(i))},[]),r}function AM(e,t,n,r){var a=l.useContext(wo),i=a.activeKey,c=a.onActive,u=a.onInactive,d={active:i===e};return t||(d.onMouseEnter=function(f){n==null||n({key:e,domEvent:f}),c(e)},d.onMouseLeave=function(f){r==null||r({key:e,domEvent:f}),u(e)}),d}function BM(e){var t=l.useContext(wo),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*a}:{paddingLeft:i*a}}function LM(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=l.createElement(t,ae({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var X9=["item"];function ov(e){var t=e.item,n=At(e,X9);return Object.defineProperty(n,"item",{get:function(){return Vn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Y9=["title","attribute","elementRef"],Q9=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Z9=["active"],J9=(function(e){Fa(n,e);var t=so(n);function n(){return or(this,n),t.apply(this,arguments)}return ir(n,[{key:"render",value:function(){var a=this.props,i=a.title,c=a.attribute,u=a.elementRef,d=At(a,Y9),f=xn(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Vn(!c,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(bo.Item,xe({},c,{title:typeof i=="string"?i:void 0},f,{ref:u}))}}]),n})(l.Component),eF=l.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,c=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,p=e.onKeyDown,y=e.onFocus,C=At(e,Q9),S=jM(a),b=l.useContext(wo),x=b.prefixCls,$=b.onItemClick,w=b.disabled,E=b.overflowDisabled,O=b.itemIcon,N=b.selectedKeys,I=b.onActive,M=l.useContext(cC),T=M._internalRenderMenuItem,j="".concat(x,"-item"),_=l.useRef(),B=l.useRef(),H=w||i,A=bi(t,B),F=Tc(a),D=function(oe){return{key:a,keyPath:Te(F).reverse(),item:_.current,domEvent:oe}},L=c||O,W=AM(a,H,f,v),G=W.active,V=At(W,Z9),k=N.includes(a),U=BM(F.length),K=function(oe){if(!H){var le=D(oe);g==null||g(ov(le)),$(le)}},q=function(oe){if(p==null||p(oe),oe.which===at.ENTER){var le=D(oe);g==null||g(ov(le)),$(le)}},Z=function(oe){I(a),y==null||y(oe)},X={};e.role==="option"&&(X["aria-selected"]=k);var ee=l.createElement(J9,xe({ref:_,elementRef:A,role:d===null?"none":d||"menuitem",tabIndex:i?null:-1,"data-menu-id":E&&S?null:S},xn(C,["extra"]),V,X,{component:"li","aria-disabled":i,style:ae(ae({},U),n),className:ce(j,J(J(J({},"".concat(j,"-active"),G),"".concat(j,"-selected"),k),"".concat(j,"-disabled"),H),r),onClick:K,onKeyDown:q,onFocus:Z}),u,l.createElement(LM,{props:ae(ae({},e),{},{isSelected:k}),icon:L}));return T&&(ee=T(ee,e,{selected:k})),ee});function tF(e,t){var n=e.eventKey,r=tg(),a=Tc(n);return l.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:l.createElement(eF,xe({},e,{ref:t}))}const _d=l.forwardRef(tF);var nF=["className","children"],rF=function(t,n){var r=t.className,a=t.children,i=At(t,nF),c=l.useContext(wo),u=c.prefixCls,d=c.mode,f=c.rtl;return l.createElement("ul",xe({className:ce(u,f&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),a)},fC=l.forwardRef(rF);fC.displayName="SubMenuList";function mC(e,t){return Fr(e).map(function(n,r){if(l.isValidElement(n)){var a,i,c=n.key,u=(a=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&a!==void 0?a:c,d=u==null;d&&(u="tmp_key-".concat([].concat(Te(t),[r]).join("-")));var f={key:u,eventKey:u};return l.cloneElement(n,f)}return n})}var ua={adjustX:1,adjustY:1},aF={topLeft:{points:["bl","tl"],overflow:ua},topRight:{points:["br","tr"],overflow:ua},bottomLeft:{points:["tl","bl"],overflow:ua},bottomRight:{points:["tr","br"],overflow:ua},leftTop:{points:["tr","tl"],overflow:ua},leftBottom:{points:["br","bl"],overflow:ua},rightTop:{points:["tl","tr"],overflow:ua},rightBottom:{points:["bl","br"],overflow:ua}},oF={topLeft:{points:["bl","tl"],overflow:ua},topRight:{points:["br","tr"],overflow:ua},bottomLeft:{points:["tl","bl"],overflow:ua},bottomRight:{points:["tr","br"],overflow:ua},rightTop:{points:["tr","tl"],overflow:ua},rightBottom:{points:["br","bl"],overflow:ua},leftTop:{points:["tl","tr"],overflow:ua},leftBottom:{points:["bl","br"],overflow:ua}};function kM(e,t,n){if(t)return t;if(n)return n[e]||n.other}var iF={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function lF(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,i=e.popupStyle,c=e.popupClassName,u=e.popupOffset,d=e.disabled,f=e.mode,v=e.onVisibleChange,g=l.useContext(wo),p=g.getPopupContainer,y=g.rtl,C=g.subMenuOpenDelay,S=g.subMenuCloseDelay,b=g.builtinPlacements,x=g.triggerSubMenuAction,$=g.forceSubMenuRender,w=g.rootClassName,E=g.motion,O=g.defaultMotions,N=l.useState(!1),I=me(N,2),M=I[0],T=I[1],j=ae(y?ae({},oF):ae({},aF),b),_=iF[f],B=kM(f,E,O),H=l.useRef(B);f!=="inline"&&(H.current=B);var A=ae(ae({},H.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=l.useRef();return l.useEffect(function(){return F.current=Gt(function(){T(n)}),function(){Gt.cancel(F.current)}},[n]),l.createElement(Pd,{prefixCls:t,popupClassName:ce("".concat(t,"-popup"),J({},"".concat(t,"-rtl"),y),c,w),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:j,popupPlacement:_,popupVisible:M,popup:a,popupStyle:i,popupAlign:u&&{offset:u},action:d?[]:[x],mouseEnterDelay:C,mouseLeaveDelay:S,onPopupVisibleChange:v,forceRender:$,popupMotion:A,fresh:!0},r)}function sF(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,i="inline",c=l.useContext(wo),u=c.prefixCls,d=c.forceSubMenuRender,f=c.motion,v=c.defaultMotions,g=c.mode,p=l.useRef(!1);p.current=g===i;var y=l.useState(!p.current),C=me(y,2),S=C[0],b=C[1],x=p.current?n:!1;l.useEffect(function(){p.current&&b(!1)},[g]);var $=ae({},kM(i,f,v));r.length>1&&($.motionAppear=!1);var w=$.onVisibleChanged;return $.onVisibleChanged=function(E){return!p.current&&!E&&b(!0),w==null?void 0:w(E)},S?null:l.createElement(bd,{mode:i,locked:!p.current},l.createElement(Jr,xe({visible:x},$,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(E){var O=E.className,N=E.style;return l.createElement(fC,{id:t,className:O,style:N},a)}))}var cF=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],uF=["active"],dF=l.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,i=e.eventKey;e.warnKey;var c=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,g=e.popupClassName,p=e.popupOffset,y=e.popupStyle,C=e.onClick,S=e.onMouseEnter,b=e.onMouseLeave,x=e.onTitleClick,$=e.onTitleMouseEnter,w=e.onTitleMouseLeave,E=At(e,cF),O=jM(i),N=l.useContext(wo),I=N.prefixCls,M=N.mode,T=N.openKeys,j=N.disabled,_=N.overflowDisabled,B=N.activeKey,H=N.selectedKeys,A=N.itemIcon,F=N.expandIcon,D=N.onItemClick,L=N.onOpenChange,W=N.onActive,G=l.useContext(cC),V=G._internalRenderSubMenuItem,k=l.useContext(_M),U=k.isSubPathKey,K=Tc(),q="".concat(I,"-submenu"),Z=j||c,X=l.useRef(),ee=l.useRef(),te=f??A,oe=v??F,le=T.includes(i),ne=!_&&le,Q=U(H,i),ie=AM(i,Z,$,w),ue=ie.active,de=At(ie,uF),se=l.useState(!1),ge=me(se,2),he=ge[0],Oe=ge[1],Re=function(be){Z||Oe(be)},pe=function(be){Re(!0),S==null||S({key:i,domEvent:be})},Ie=function(be){Re(!1),b==null||b({key:i,domEvent:be})},we=l.useMemo(function(){return ue||(M!=="inline"?he||U([B],i):!1)},[M,ue,B,he,i,U]),ye=BM(K.length),ze=function(be){Z||(x==null||x({key:i,domEvent:be}),M==="inline"&&L(i,!le))},Ae=Wu(function(Pe){C==null||C(ov(Pe)),D(Pe)}),Ye=function(be){M!=="inline"&&L(i,be)},Ke=function(){W(i)},Fe=O&&"".concat(O,"-popup"),Ge=l.useMemo(function(){return l.createElement(LM,{icon:M!=="horizontal"?oe:void 0,props:ae(ae({},e),{},{isOpen:ne,isSubMenu:!0})},l.createElement("i",{className:"".concat(q,"-arrow")}))},[M,oe,e,ne,q]),je=l.createElement("div",xe({role:"menuitem",style:ye,className:"".concat(q,"-title"),tabIndex:Z?null:-1,ref:X,title:typeof a=="string"?a:null,"data-menu-id":_&&O?null:O,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":Fe,"aria-disabled":Z,onClick:ze,onFocus:Ke},de),a,Ge),$e=l.useRef(M);if(M!=="inline"&&K.length>1?$e.current="vertical":$e.current=M,!_){var _e=$e.current;je=l.createElement(lF,{mode:_e,prefixCls:q,visible:!u&&ne&&M!=="inline",popupClassName:g,popupOffset:p,popupStyle:y,popup:l.createElement(bd,{mode:_e==="horizontal"?"vertical":_e},l.createElement(fC,{id:Fe,ref:ee},d)),disabled:Z,onVisibleChange:Ye},je)}var Ee=l.createElement(bo.Item,xe({ref:t,role:"none"},E,{component:"li",style:n,className:ce(q,"".concat(q,"-").concat(M),r,J(J(J(J({},"".concat(q,"-open"),ne),"".concat(q,"-active"),we),"".concat(q,"-selected"),Q),"".concat(q,"-disabled"),Z)),onMouseEnter:pe,onMouseLeave:Ie}),je,!_&&l.createElement(sF,{id:Fe,open:ne,keyPath:K},d));return V&&(Ee=V(Ee,e,{selected:Q,active:we,open:ne,disabled:Z})),l.createElement(bd,{onItemClick:Ae,mode:M==="horizontal"?"vertical":M,itemIcon:te,expandIcon:oe},Ee)}),ng=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Tc(n),i=mC(r,a),c=tg();l.useEffect(function(){if(c)return c.registerPath(n,a),function(){c.unregisterPath(n,a)}},[a]);var u;return c?u=i:u=l.createElement(dF,xe({ref:t},e),i),l.createElement(DM.Provider,{value:a},u)});function vC(e){var t=e.className,n=e.style,r=l.useContext(wo),a=r.prefixCls,i=tg();return i?null:l.createElement("li",{role:"separator",className:ce("".concat(a,"-item-divider"),t),style:n})}var fF=["className","title","eventKey","children"],mF=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,i=At(e,fF),c=l.useContext(wo),u=c.prefixCls,d="".concat(u,"-item-group");return l.createElement("li",xe({ref:t,role:"presentation"},i,{onClick:function(v){return v.stopPropagation()},className:ce(d,n)}),l.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(d,"-list")},a))}),gC=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Tc(n),i=mC(r,a),c=tg();return c?i:l.createElement(mF,xe({ref:t},xn(e,["warnKey"])),i)}),vF=["label","children","key","type","extra"];function Zb(e,t,n){var r=t.item,a=t.group,i=t.submenu,c=t.divider;return(e||[]).map(function(u,d){if(u&&$t(u)==="object"){var f=u,v=f.label,g=f.children,p=f.key,y=f.type,C=f.extra,S=At(f,vF),b=p??"tmp-".concat(d);return g||y==="group"?y==="group"?l.createElement(a,xe({key:b},S,{title:v}),Zb(g,t,n)):l.createElement(i,xe({key:b},S,{title:v}),Zb(g,t,n)):y==="divider"?l.createElement(c,xe({key:b},S)):l.createElement(r,xe({key:b},S,{extra:C}),v,(!!C||C===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},C))}return null}).filter(function(u){return u})}function rE(e,t,n,r,a){var i=e,c=ae({divider:vC,item:_d,group:gC,submenu:ng},r);return t&&(i=Zb(t,c,a)),mC(i,n)}var gF=["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"],Tl=[],pF=l.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,i=a===void 0?"rc-menu":a,c=r.rootClassName,u=r.style,d=r.className,f=r.tabIndex,v=f===void 0?0:f,g=r.items,p=r.children,y=r.direction,C=r.id,S=r.mode,b=S===void 0?"vertical":S,x=r.inlineCollapsed,$=r.disabled,w=r.disabledOverflow,E=r.subMenuOpenDelay,O=E===void 0?.1:E,N=r.subMenuCloseDelay,I=N===void 0?.1:N,M=r.forceSubMenuRender,T=r.defaultOpenKeys,j=r.openKeys,_=r.activeKey,B=r.defaultActiveFirst,H=r.selectable,A=H===void 0?!0:H,F=r.multiple,D=F===void 0?!1:F,L=r.defaultSelectedKeys,W=r.selectedKeys,G=r.onSelect,V=r.onDeselect,k=r.inlineIndent,U=k===void 0?24:k,K=r.motion,q=r.defaultMotions,Z=r.triggerSubMenuAction,X=Z===void 0?"hover":Z,ee=r.builtinPlacements,te=r.itemIcon,oe=r.expandIcon,le=r.overflowedIndicator,ne=le===void 0?"...":le,Q=r.overflowedIndicatorPopupClassName,ie=r.getPopupContainer,ue=r.onClick,de=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var ge=r._internalRenderMenuItem,he=r._internalRenderSubMenuItem,Oe=r._internalComponents,Re=At(r,gF),pe=l.useMemo(function(){return[rE(p,g,Tl,Oe,i),rE(p,g,Tl,{},i)]},[p,g,Oe]),Ie=me(pe,2),we=Ie[0],ye=Ie[1],ze=l.useState(!1),Ae=me(ze,2),Ye=Ae[0],Ke=Ae[1],Fe=l.useRef(),Ge=G9(C),je=y==="rtl",$e=bn(T,{value:j,postState:function(_t){return _t||Tl}}),_e=me($e,2),Ee=_e[0],Pe=_e[1],be=function(_t){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function tn(){Pe(_t),de==null||de(_t)}zt?ro.flushSync(tn):tn()},Se=l.useState(Ee),Me=me(Se,2),ke=Me[0],et=Me[1],ht=l.useRef(!1),We=l.useMemo(function(){return(b==="inline"||b==="vertical")&&x?["vertical",x]:[b,!1]},[b,x]),tt=me(We,2),ut=tt[0],rt=tt[1],gt=ut==="inline",Mt=l.useState(ut),xt=me(Mt,2),st=xt[0],Ct=xt[1],bt=l.useState(rt),Je=me(bt,2),Ve=Je[0],Ue=Je[1];l.useEffect(function(){Ct(ut),Ue(rt),ht.current&&(gt?Pe(ke):be(Tl))},[ut,rt]);var ft=l.useState(0),It=me(ft,2),Et=It[0],Ht=It[1],dt=Et>=we.length-1||st!=="horizontal"||w;l.useEffect(function(){gt&&et(Ee)},[Ee]),l.useEffect(function(){return ht.current=!0,function(){ht.current=!1}},[]);var it=U9(),Dt=it.registerPath,Wt=it.unregisterPath,en=it.refreshOverflowKeys,Xt=it.isSubPathKey,vn=it.getKeyPath,Kt=it.getKeys,sn=it.getSubPathKeys,lt=l.useMemo(function(){return{registerPath:Dt,unregisterPath:Wt}},[Dt,Wt]),yt=l.useMemo(function(){return{isSubPathKey:Xt}},[Xt]);l.useEffect(function(){en(dt?Tl:we.slice(Et+1).map(function(yn){return yn.key}))},[Et,dt]);var pt=bn(_||B&&((n=we[0])===null||n===void 0?void 0:n.key),{value:_}),Xe=me(pt,2),Qe=Xe[0],ct=Xe[1],Tt=Wu(function(yn){ct(yn)}),Vt=Wu(function(){ct(void 0)});l.useImperativeHandle(t,function(){return{list:Fe.current,focus:function(_t){var zt,tn=Kt(),Nt=Yb(tn,Ge),jt=Nt.elements,un=Nt.key2element,On=Nt.element2key,Wn=uC(Fe.current,jt),vr=Qe??(Wn[0]?On.get(Wn[0]):(zt=we.find(function(on){return!on.props.disabled}))===null||zt===void 0?void 0:zt.key),Kn=un.get(vr);if(vr&&Kn){var pr;Kn==null||(pr=Kn.focus)===null||pr===void 0||pr.call(Kn,_t)}}}});var mt=bn(L||[],{value:W,postState:function(_t){return Array.isArray(_t)?_t:_t==null?Tl:[_t]}}),Ot=me(mt,2),kt=Ot[0],Sn=Ot[1],Pn=function(_t){if(A){var zt=_t.key,tn=kt.includes(zt),Nt;D?tn?Nt=kt.filter(function(un){return un!==zt}):Nt=[].concat(Te(kt),[zt]):Nt=[zt],Sn(Nt);var jt=ae(ae({},_t),{},{selectedKeys:Nt});tn?V==null||V(jt):G==null||G(jt)}!D&&Ee.length&&st!=="inline"&&be(Tl)},Mn=Wu(function(yn){ue==null||ue(ov(yn)),Pn(yn)}),Ln=Wu(function(yn,_t){var zt=Ee.filter(function(Nt){return Nt!==yn});if(_t)zt.push(yn);else if(st!=="inline"){var tn=sn(yn);zt=zt.filter(function(Nt){return!tn.has(Nt)})}xo(Ee,zt,!0)||be(zt,!0)}),En=function(_t,zt){var tn=zt??!Ee.includes(_t);Ln(_t,tn)},Dn=V9(st,Qe,je,Ge,Fe,Kt,vn,ct,En,se);l.useEffect(function(){Ke(!0)},[]);var mr=l.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:he}},[ge,he]),$r=st!=="horizontal"||w?we:we.map(function(yn,_t){return l.createElement(bd,{key:yn.key,overflowDisabled:_t>Et},yn)}),dr=l.createElement(bo,xe({id:C,ref:Fe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:_d,className:ce(i,"".concat(i,"-root"),"".concat(i,"-").concat(st),d,J(J({},"".concat(i,"-inline-collapsed"),Ve),"".concat(i,"-rtl"),je),c),dir:y,style:u,role:"menu",tabIndex:v,data:$r,renderRawItem:function(_t){return _t},renderRawRest:function(_t){var zt=_t.length,tn=zt?we.slice(-zt):null;return l.createElement(ng,{eventKey:Qb,title:ne,disabled:dt,internalPopupClose:zt===0,popupClassName:Q},tn)},maxCount:st!=="horizontal"||w?bo.INVALIDATE:bo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(_t){Ht(_t)},onKeyDown:Dn},Re));return l.createElement(cC.Provider,{value:mr},l.createElement(MM.Provider,{value:Ge},l.createElement(bd,{prefixCls:i,rootClassName:c,mode:st,openKeys:Ee,rtl:je,disabled:$,motion:Ye?K:null,defaultMotions:Ye?q:null,activeKey:Qe,onActive:Tt,onInactive:Vt,selectedKeys:kt,inlineIndent:U,subMenuOpenDelay:O,subMenuCloseDelay:I,forceSubMenuRender:M,builtinPlacements:ee,triggerSubMenuAction:X,getPopupContainer:ie,itemIcon:te,expandIcon:oe,onItemClick:Mn,onOpenChange:Ln},l.createElement(_M.Provider,{value:yt},dr),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(PM.Provider,{value:lt},ye)))))}),jc=pF;jc.Item=_d;jc.SubMenu=ng;jc.ItemGroup=gC;jc.Divider=vC;var hF={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"},bF=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:hF}))},yF=l.forwardRef(bF);const HM=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),CF=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:i,headerPadding:c,headerColor:u,footerPadding:d,fontSize:f,bodyBg:v,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{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:i,padding:c,color:u,lineHeight:re(i),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:f,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},FM=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:i,marginXXS:c,colorTextLightSolid:u,colorBgContainer:d}=e,f=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${f}px`,headerColor:a,footerPadding:`${i}px ${f}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:a}},VM=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],WM=ln("Layout",CF,FM,{deprecatedTokens:VM}),SF=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:i,triggerHeight:c,triggerColor:u,triggerBg:d,headerHeight:f,zeroTriggerWidth:v,zeroTriggerHeight:g,borderRadiusLG:p,lightSiderBg:y,lightTriggerColor:C,lightTriggerBg:S,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:u,lineHeight:re(c),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:f,insetInlineEnd:e.calc(v).mul(-1).equal(),zIndex:1,width:v,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${re(p)} ${re(p)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(v).mul(-1).equal(),borderRadius:`${re(p)} 0 0 ${re(p)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:C,background:S},[`${t}-zero-width-trigger`]:{color:C,background:S,border:`1px solid ${b}`,borderInlineStart:0}}}}},xF=ln(["Layout","Sider"],SF,FM,{deprecatedTokens:VM});var $F=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const aE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},wF=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),rg=l.createContext({}),EF=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),KM=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:c=!1,theme:u="dark",style:d={},collapsible:f=!1,reverseArrow:v=!1,width:g=200,collapsedWidth:p=80,zeroWidthTriggerStyle:y,breakpoint:C,onCollapse:S,onBreakpoint:b}=e,x=$F(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=l.useContext(HM),[w,E]=l.useState("collapsed"in e?e.collapsed:c),[O,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const I=(te,oe)=>{"collapsed"in e||E(te),S==null||S(te,oe)},{getPrefixCls:M,direction:T}=l.useContext(Rt),j=M("layout-sider",n),[_,B,H]=xF(j),A=l.useRef(null);A.current=te=>{N(te.matches),b==null||b(te.matches),w!==te.matches&&I(te.matches,"responsive")},l.useEffect(()=>{function te(le){var ne;return(ne=A.current)===null||ne===void 0?void 0:ne.call(A,le)}let oe;return typeof(window==null?void 0:window.matchMedia)<"u"&&C&&C in aE&&(oe=window.matchMedia(`screen and (max-width: ${aE[C]})`),hM(oe,te),te(oe)),()=>{bM(oe,te)}},[C]),l.useEffect(()=>{const te=EF("ant-sider-");return $.addSider(te),()=>$.removeSider(te)},[]);const F=()=>{I(!w,"clickTrigger")},D=xn(x,["collapsed"]),L=w?p:g,W=wF(L)?`${L}px`:String(L),G=Number.parseFloat(String(p||0))===0?l.createElement("span",{onClick:F,className:ce(`${j}-zero-width-trigger`,`${j}-zero-width-trigger-${v?"right":"left"}`),style:y},a||l.createElement(yF,null)):null,V=T==="rtl"==!v,K={expanded:V?l.createElement(Xl,null):l.createElement(bc,null),collapsed:V?l.createElement(bc,null):l.createElement(Xl,null)}[w?"collapsed":"expanded"],q=a!==null?G||l.createElement("div",{className:`${j}-trigger`,onClick:F,style:{width:W}},a||K):null,Z=Object.assign(Object.assign({},d),{flex:`0 0 ${W}`,maxWidth:W,minWidth:W,width:W}),X=ce(j,`${j}-${u}`,{[`${j}-collapsed`]:!!w,[`${j}-has-trigger`]:f&&a!==null&&!G,[`${j}-below`]:!!O,[`${j}-zero-width`]:Number.parseFloat(W)===0},r,B,H),ee=l.useMemo(()=>({siderCollapsed:w}),[w]);return _(l.createElement(rg.Provider,{value:ee},l.createElement("aside",Object.assign({className:X},D,{style:Z,ref:t}),l.createElement("div",{className:`${j}-children`},i),f||O&&G?q:null)))});var OF={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"},RF=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:OF}))},pC=l.forwardRef(RF);const iv=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var IF=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const UM=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=IF(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=l.useContext(Rt),c=i("menu",t),u=ce({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(vC,Object.assign({className:u},a))},qM=e=>{var t;const{className:n,children:r,icon:a,title:i,danger:c,extra:u}=e,{prefixCls:d,firstLevel:f,direction:v,disableMenuItemTitleTooltip:g,inlineCollapsed:p}=l.useContext(iv),y=w=>{const E=r==null?void 0:r[0],O=l.createElement("span",{className:ce(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&w&&f&&typeof E=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},E.charAt(0)):O},{siderCollapsed:C}=l.useContext(rg);let S=i;typeof i>"u"?S=f?r:"":i===!1&&(S="");const b={title:S};!C&&!p&&(b.title=null,b.open=!1);const x=Fr(r).length;let $=l.createElement(_d,Object.assign({},xn(e,["title","icon","danger"]),{className:ce({[`${d}-item-danger`]:c,[`${d}-item-only-child`]:(a?x+1:x)===1},n),title:typeof i=="string"?i:void 0}),xr(a,{className:ce(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),y(p));return g||($=l.createElement(Cr,Object.assign({},b,{placement:v==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),$)),$};var NF=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const lv=l.createContext(null),GM=l.forwardRef((e,t)=>{const{children:n}=e,r=NF(e,["children"]),a=l.useContext(lv),i=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=x6(n),u=bi(t,c?sl(n):null);return l.createElement(lv.Provider,{value:i},l.createElement(Ko,{space:!0},c?l.cloneElement(n,{ref:u}):n))}),MF=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:i,lineType:c,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${re(i)} ${c} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
|
|
261
|
+
> ${t}-item-active,
|
|
262
|
+
> ${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"}}}},TF=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
263
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${re(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${re(t)})`}}}}),oE=e=>Ho(e),iE=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:i,groupTitleColor:c,itemBg:u,subMenuItemBg:d,itemSelectedBg:f,activeBarHeight:v,activeBarWidth:g,activeBarBorderWidth:p,motionDurationSlow:y,motionEaseInOut:C,motionEaseOut:S,itemPaddingInline:b,motionDurationMid:x,itemHoverColor:$,lineType:w,colorSplit:E,itemDisabledColor:O,dangerItemColor:N,dangerItemHoverColor:I,dangerItemSelectedColor:M,dangerItemActiveBg:T,dangerItemSelectedBg:j,popupBg:_,itemHoverBg:B,itemActiveBg:H,menuSubMenuBg:A,horizontalItemSelectedColor:F,horizontalItemSelectedBg:D,horizontalItemBorderRadius:L,horizontalItemHoverBg:W}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},oE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},oE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:$}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:H}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:H}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:I}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:M},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:f,[`&${n}-item-danger`]:{backgroundColor:j}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${re(v)} solid transparent`,transition:`border-color ${y} ${C}`,content:'""'},"&:hover, &-active, &-open":{background:W,"&::after":{borderBottomWidth:v,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:v,borderBottomColor:F}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${re(p)} ${w} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${re(g)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${S}`,`opacity ${x} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${C}`,`opacity ${x} ${C}`].join(",")}}}}}},lE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:i,marginXS:c,itemMarginBlock:u,itemWidth:d,itemPaddingInline:f}=e,v=e.calc(i).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:re(n),paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:d},[`> ${t}-item,
|
|
264
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:re(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
265
|
+
${t}-submenu-title`]:{paddingInlineEnd:v}}},jF=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:i,controlHeightLG:c,motionEaseOut:u,paddingXL:d,itemMarginInline:f,fontSizeLG:v,motionDurationFast:g,motionDurationSlow:p,paddingXS:y,boxShadowSecondary:C,collapsedWidth:S,collapsedIconSize:b}=e,x={height:r,lineHeight:re(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},lE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},lE(e)),{boxShadow:C})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${re(e.calc(c).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 ${p}`,`background ${p}`,`padding ${g} ${u}`].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`]:x,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:x}},{[`${t}-inline-collapsed`]:{width:S,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:v,textAlign:"center"}}},[`> ${t}-item,
|
|
266
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
267
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
268
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${re(e.calc(b).div(2).equal())} - ${re(f)})`,textOverflow:"clip",[`
|
|
269
|
+
${t}-submenu-arrow,
|
|
270
|
+
${t}-submenu-expand-icon
|
|
271
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:b,lineHeight:re(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:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},io),{paddingInline:y})}}]},sE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:i,iconCls:c,iconSize:u,iconMarginInlineEnd:d}=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) ${a}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${i}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ts()),[`&${t}-item-only-child`]:{[`> ${c}, > ${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"}}}},cE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:i,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${re(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${re(c)})`}}}}},PF=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:c,paddingXS:u,padding:d,colorSplit:f,lineWidth:v,zIndexPopup:g,borderRadiusLG:p,subMenuItemBorderRadius:y,menuArrowSize:C,menuArrowOffset:S,lineType:b,groupTitleLineHeight:x,groupTitleFontSize:$}=e;return[{"":{[n]:Object.assign(Object.assign({},ko()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),ko()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} 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:`${re(u)} ${re(d)}`,fontSize:$,lineHeight:x,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`,`padding ${i} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${c}`,`padding ${a} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-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:f,borderStyle:b,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),sE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${re(e.calc(r).mul(2).equal())} ${re(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:p,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:p},sE(e)),cE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${c}`}})},"\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}}}),cE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
272
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${re(S)})`},"&::after":{transform:`rotate(45deg) translateX(${re(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${re(e.calc(C).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${re(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${re(S)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},DF=e=>{var t,n,r;const{colorPrimary:a,colorError:i,colorTextDisabled:c,colorErrorBg:u,colorText:d,colorTextDescription:f,colorBgContainer:v,colorFillAlter:g,colorFillContent:p,lineWidth:y,lineWidthBold:C,controlItemBgActive:S,colorBgTextHover:b,controlHeightLG:x,lineHeight:$,colorBgElevated:w,marginXXS:E,padding:O,fontSize:N,controlHeightSM:I,fontSizeLG:M,colorTextLightSolid:T,colorErrorHover:j}=e,_=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,B=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,H=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new pn(T).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:f,groupTitleColor:f,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:v,itemBg:v,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:p,itemActiveBg:S,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:C,activeBarHeight:C,colorActiveBarBorderSize:y,activeBarBorderWidth:B,colorItemTextDisabled:c,itemDisabledColor:c,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:H,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:x,groupTitleLineHeight:$,collapsedWidth:x*2,popupBg:w,itemMarginBlock:E,itemPaddingInline:O,horizontalLineHeight:`${x*1.15}px`,iconSize:N,iconMarginInlineEnd:I-N,collapsedIconSize:M,groupTitleFontSize:N,darkItemDisabledColor:new pn(T).setA(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:a,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:T,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:i,itemWidth:_?`calc(100% + ${B}px)`:`calc(100% - ${H*2}px)`}},_F=(e,t=e,n=!0)=>ln("Menu",a=>{const{colorBgElevated:i,controlHeightLG:c,fontSize:u,darkItemColor:d,darkDangerItemColor:f,darkItemBg:v,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:y,darkDangerItemSelectedBg:C,darkItemHoverBg:S,darkGroupTitleColor:b,darkItemHoverColor:x,darkItemDisabledColor:$,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:O,popupBg:N,darkPopupBg:I}=a,M=a.calc(u).div(7).mul(5).equal(),T=rn(a,{menuArrowSize:M,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(M).mul(.25).equal(),menuSubMenuBg:i,calc:a.calc,popupBg:N}),j=rn(T,{itemColor:d,itemHoverColor:x,groupTitleColor:b,itemSelectedColor:p,subMenuItemSelectedColor:p,itemBg:v,popupBg:I,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:$,dangerItemColor:f,dangerItemHoverColor:w,dangerItemSelectedColor:E,dangerItemActiveBg:O,dangerItemSelectedBg:C,menuSubMenuBg:g,horizontalItemSelectedColor:p,horizontalItemSelectedBg:y});return[PF(T),MF(T),jF(T),iE(T,"light"),iE(j,"dark"),TF(T),Rd(T),Vo(T,"slide-up"),Vo(T,"slide-down"),Id(T,"zoom-big")]},DF,{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),XM=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:i}=e,c=l.useContext(iv),{prefixCls:u,inlineCollapsed:d,theme:f}=c,v=Tc();let g;if(!r)g=d&&!v.length&&a&&typeof a=="string"?l.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${u}-title-content`},a);else{const C=l.isValidElement(a)&&a.type==="span";g=l.createElement(l.Fragment,null,xr(r,{className:ce(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),C?a:l.createElement("span",{className:`${u}-title-content`},a))}const p=l.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[y]=Io("Menu");return l.createElement(iv.Provider,{value:p},l.createElement(ng,Object.assign({},xn(e,["icon"]),{title:g,popupClassName:ce(u,n,`${u}-${i||f}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var zF=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function i0(e){return e===null||e===!1}const AF={item:qM,submenu:XM,divider:UM},BF=l.forwardRef((e,t)=>{var n;const r=l.useContext(lv),a=r||{},{getPrefixCls:i,getPopupContainer:c,direction:u,menu:d}=l.useContext(Rt),f=i(),{prefixCls:v,className:g,style:p,theme:y="light",expandIcon:C,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:b,siderCollapsed:x,rootClassName:$,mode:w,selectable:E,onClick:O,overflowedIndicatorPopupClassName:N}=e,I=zF(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),M=xn(I,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:w});const T=qt((...U)=>{var K;O==null||O.apply(void 0,U),(K=a.onClick)===null||K===void 0||K.call(a)}),j=a.mode||w,_=E??a.selectable,B=b??x,H={horizontal:{motionName:`${f}-slide-up`},inline:gc(f),other:{motionName:`${f}-zoom-big`}},A=i("menu",v||a.prefixCls),F=ar(A),[D,L,W]=_F(A,F,!r),G=ce(`${A}-${y}`,d==null?void 0:d.className,g),V=l.useMemo(()=>{var U,K;if(typeof C=="function"||i0(C))return C||null;if(typeof a.expandIcon=="function"||i0(a.expandIcon))return a.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||i0(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const q=(U=C??(a==null?void 0:a.expandIcon))!==null&&U!==void 0?U:d==null?void 0:d.expandIcon;return xr(q,{className:ce(`${A}-submenu-expand-icon`,l.isValidElement(q)?(K=q.props)===null||K===void 0?void 0:K.className:void 0)})},[C,a==null?void 0:a.expandIcon,d==null?void 0:d.expandIcon,A]),k=l.useMemo(()=>({prefixCls:A,inlineCollapsed:B||!1,direction:u,firstLevel:!0,theme:y,mode:j,disableMenuItemTitleTooltip:S}),[A,B,u,S,y]);return D(l.createElement(lv.Provider,{value:null},l.createElement(iv.Provider,{value:k},l.createElement(jc,Object.assign({getPopupContainer:c,overflowedIndicator:l.createElement(pC,null),overflowedIndicatorPopupClassName:ce(A,`${A}-${y}`,N),mode:j,selectable:_,onClick:T},M,{inlineCollapsed:B,style:Object.assign(Object.assign({},d==null?void 0:d.style),p),className:G,prefixCls:A,direction:u,defaultMotions:H,expandIcon:V,ref:t,rootClassName:ce($,L,a.rootClassName,W,F),_internalComponents:AF})))))}),ol=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(rg);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var i;(i=n.current)===null||i===void 0||i.focus(a)}})),l.createElement(BF,Object.assign({ref:n},e,r))});ol.Item=qM;ol.SubMenu=XM;ol.Divider=UM;ol.ItemGroup=gC;const LF=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},kF=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:i,antCls:c,iconCls:u,motionDurationMid:d,paddingBlock:f,fontSize:v,dropdownEdgeChildPadding:g,colorTextDisabled:p,fontSizeIcon:y,controlPaddingHorizontal:C,colorBgElevated:S}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${u}-down, & > ${c}-btn-icon > ${u}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${u}-down`]:{fontSize:y},[`${u}-down::before`]:{transition:`transform ${d}`}},[`${t}-wrap-open`]:{[`${u}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
273
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
274
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
|
|
275
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
|
|
276
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
|
|
277
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:_v},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
|
|
278
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
|
|
279
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
|
|
280
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
|
|
281
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
|
|
282
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Av},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
283
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
|
|
284
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:zv},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
|
|
285
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
|
|
286
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Bv}}},lC(e,S,{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({},fn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},lo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${re(f)} ${re(C)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:v,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 ${d}`,"&: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:`${re(f)} ${re(C)}`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},lo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${re(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:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${re(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(C).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Vo(e,"slide-up"),Vo(e,"slide-down"),pc(e,"move-up"),pc(e,"move-down"),Id(e,"zoom-big")]]},HF=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Jv({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Zv(e)),FF=ln("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,i=rn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[kF(i),LF(i)]},HF,{resetStyle:!1}),ag=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:i,trigger:c,disabled:u,dropdownRender:d,popupRender:f,getPopupContainer:v,overlayClassName:g,rootClassName:p,overlayStyle:y,open:C,onOpenChange:S,visible:b,onVisibleChange:x,mouseEnterDelay:$=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:E=!0,placement:O="",overlay:N,transitionName:I,destroyOnHidden:M,destroyPopupOnHide:T}=e,{getPopupContainer:j,getPrefixCls:_,direction:B,dropdown:H}=l.useContext(Rt),A=f||d;Uo();const F=l.useMemo(()=>{const ge=_();return I!==void 0?I:O.includes("top")?`${ge}-slide-down`:`${ge}-slide-up`},[_,O,I]),D=l.useMemo(()=>O?O.includes("Center")?O.slice(0,O.indexOf("Center")):O:B==="rtl"?"bottomRight":"bottomLeft",[O,B]),L=_("dropdown",a),W=ar(L),[G,V,k]=FF(L,W),[,U]=Zr(),K=l.Children.only(_9(i)?l.createElement("span",null,i):i),q=xr(K,{className:ce(`${L}-trigger`,{[`${L}-rtl`]:B==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:u}),Z=u?[]:c,X=!!(Z!=null&&Z.includes("contextMenu")),[ee,te]=bn(!1,{value:C??b}),oe=qt(ge=>{S==null||S(ge,{source:"trigger"}),x==null||x(ge),te(ge)}),le=ce(g,p,V,k,W,H==null?void 0:H.className,{[`${L}-rtl`]:B==="rtl"}),ne=SM({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:U.marginXXS,arrowWidth:r?U.sizePopupArrow:0,borderRadius:U.borderRadius}),Q=qt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),te(!1))}),ie=()=>{let ge;return n!=null&&n.items?ge=l.createElement(ol,Object.assign({},n)):typeof N=="function"?ge=N():ge=N,A&&(ge=A(ge)),ge=l.Children.only(typeof ge=="string"?l.createElement("span",null,ge):ge),l.createElement(GM,{prefixCls:`${L}-menu`,rootClassName:ce(k,W),expandIcon:l.createElement("span",{className:`${L}-menu-submenu-arrow`},B==="rtl"?l.createElement(bc,{className:`${L}-menu-submenu-arrow-icon`}):l.createElement(Xl,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:({mode:he})=>{}},ge)},[ue,de]=Io("Dropdown",y==null?void 0:y.zIndex);let se=l.createElement(NM,Object.assign({alignPoint:X},xn(e,["rootClassName"]),{mouseEnterDelay:$,mouseLeaveDelay:w,visible:ee,builtinPlacements:ne,arrow:!!r,overlayClassName:le,prefixCls:L,getPopupContainer:v||j,transitionName:F,trigger:Z,overlay:ie,placement:D,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},H==null?void 0:H.style),y),{zIndex:ue}),autoDestroy:M??T}),q);return ue&&(se=l.createElement(Tv.Provider,{value:de},se)),G(se)},VF=Nc(ag,"align",void 0,"dropdown",e=>e),WF=e=>l.createElement(VF,Object.assign({},e),l.createElement("span",null));ag._InternalPanelDoNotUseOrYouWillBeFired=WF;var _m={exports:{}},KF=_m.exports,uE;function UF(){return uE||(uE=1,(function(e,t){(function(n,r){e.exports=r()})(KF,(function(){var n=1e3,r=6e4,a=36e5,i="millisecond",c="second",u="minute",d="hour",f="day",v="week",g="month",p="quarter",y="year",C="date",S="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var F=["th","st","nd","rd"],D=A%100;return"["+A+(F[(D-20)%10]||F[D]||F[0])+"]"}},w=function(A,F,D){var L=String(A);return!L||L.length>=F?A:""+Array(F+1-L.length).join(D)+A},E={s:w,z:function(A){var F=-A.utcOffset(),D=Math.abs(F),L=Math.floor(D/60),W=D%60;return(F<=0?"+":"-")+w(L,2,"0")+":"+w(W,2,"0")},m:function A(F,D){if(F.date()<D.date())return-A(D,F);var L=12*(D.year()-F.year())+(D.month()-F.month()),W=F.clone().add(L,g),G=D-W<0,V=F.clone().add(L+(G?-1:1),g);return+(-(L+(D-W)/(G?W-V:V-W))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y,w:v,d:f,D:C,h:d,m:u,s:c,ms:i,Q:p}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},O="en",N={};N[O]=$;var I="$isDayjsObject",M=function(A){return A instanceof B||!(!A||!A[I])},T=function A(F,D,L){var W;if(!F)return O;if(typeof F=="string"){var G=F.toLowerCase();N[G]&&(W=G),D&&(N[G]=D,W=G);var V=F.split("-");if(!W&&V.length>1)return A(V[0])}else{var k=F.name;N[k]=F,W=k}return!L&&W&&(O=W),W||!L&&O},j=function(A,F){if(M(A))return A.clone();var D=typeof F=="object"?F:{};return D.date=A,D.args=arguments,new B(D)},_=E;_.l=T,_.i=M,_.w=function(A,F){return j(A,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var B=(function(){function A(D){this.$L=T(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[I]=!0}var F=A.prototype;return F.parse=function(D){this.$d=(function(L){var W=L.date,G=L.utc;if(W===null)return new Date(NaN);if(_.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var V=W.match(b);if(V){var k=V[2]-1||0,U=(V[7]||"0").substring(0,3);return G?new Date(Date.UTC(V[1],k,V[3]||1,V[4]||0,V[5]||0,V[6]||0,U)):new Date(V[1],k,V[3]||1,V[4]||0,V[5]||0,V[6]||0,U)}}return new Date(W)})(D),this.init()},F.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},F.$utils=function(){return _},F.isValid=function(){return this.$d.toString()!==S},F.isSame=function(D,L){var W=j(D);return this.startOf(L)<=W&&W<=this.endOf(L)},F.isAfter=function(D,L){return j(D)<this.startOf(L)},F.isBefore=function(D,L){return this.endOf(L)<j(D)},F.$g=function(D,L,W){return _.u(D)?this[L]:this.set(W,D)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(D,L){var W=this,G=!!_.u(L)||L,V=_.p(D),k=function(oe,le){var ne=_.w(W.$u?Date.UTC(W.$y,le,oe):new Date(W.$y,le,oe),W);return G?ne:ne.endOf(f)},U=function(oe,le){return _.w(W.toDate()[oe].apply(W.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(le)),W)},K=this.$W,q=this.$M,Z=this.$D,X="set"+(this.$u?"UTC":"");switch(V){case y:return G?k(1,0):k(31,11);case g:return G?k(1,q):k(0,q+1);case v:var ee=this.$locale().weekStart||0,te=(K<ee?K+7:K)-ee;return k(G?Z-te:Z+(6-te),q);case f:case C:return U(X+"Hours",0);case d:return U(X+"Minutes",1);case u:return U(X+"Seconds",2);case c:return U(X+"Milliseconds",3);default:return this.clone()}},F.endOf=function(D){return this.startOf(D,!1)},F.$set=function(D,L){var W,G=_.p(D),V="set"+(this.$u?"UTC":""),k=(W={},W[f]=V+"Date",W[C]=V+"Date",W[g]=V+"Month",W[y]=V+"FullYear",W[d]=V+"Hours",W[u]=V+"Minutes",W[c]=V+"Seconds",W[i]=V+"Milliseconds",W)[G],U=G===f?this.$D+(L-this.$W):L;if(G===g||G===y){var K=this.clone().set(C,1);K.$d[k](U),K.init(),this.$d=K.set(C,Math.min(this.$D,K.daysInMonth())).$d}else k&&this.$d[k](U);return this.init(),this},F.set=function(D,L){return this.clone().$set(D,L)},F.get=function(D){return this[_.p(D)]()},F.add=function(D,L){var W,G=this;D=Number(D);var V=_.p(L),k=function(q){var Z=j(G);return _.w(Z.date(Z.date()+Math.round(q*D)),G)};if(V===g)return this.set(g,this.$M+D);if(V===y)return this.set(y,this.$y+D);if(V===f)return k(1);if(V===v)return k(7);var U=(W={},W[u]=r,W[d]=a,W[c]=n,W)[V]||1,K=this.$d.getTime()+D*U;return _.w(K,this)},F.subtract=function(D,L){return this.add(-1*D,L)},F.format=function(D){var L=this,W=this.$locale();if(!this.isValid())return W.invalidDate||S;var G=D||"YYYY-MM-DDTHH:mm:ssZ",V=_.z(this),k=this.$H,U=this.$m,K=this.$M,q=W.weekdays,Z=W.months,X=W.meridiem,ee=function(le,ne,Q,ie){return le&&(le[ne]||le(L,G))||Q[ne].slice(0,ie)},te=function(le){return _.s(k%12||12,le,"0")},oe=X||function(le,ne,Q){var ie=le<12?"AM":"PM";return Q?ie.toLowerCase():ie};return G.replace(x,(function(le,ne){return ne||(function(Q){switch(Q){case"YY":return String(L.$y).slice(-2);case"YYYY":return _.s(L.$y,4,"0");case"M":return K+1;case"MM":return _.s(K+1,2,"0");case"MMM":return ee(W.monthsShort,K,Z,3);case"MMMM":return ee(Z,K);case"D":return L.$D;case"DD":return _.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return ee(W.weekdaysMin,L.$W,q,2);case"ddd":return ee(W.weekdaysShort,L.$W,q,3);case"dddd":return q[L.$W];case"H":return String(k);case"HH":return _.s(k,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return oe(k,U,!0);case"A":return oe(k,U,!1);case"m":return String(U);case"mm":return _.s(U,2,"0");case"s":return String(L.$s);case"ss":return _.s(L.$s,2,"0");case"SSS":return _.s(L.$ms,3,"0");case"Z":return V}return null})(le)||V.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(D,L,W){var G,V=this,k=_.p(L),U=j(D),K=(U.utcOffset()-this.utcOffset())*r,q=this-U,Z=function(){return _.m(V,U)};switch(k){case y:G=Z()/12;break;case g:G=Z();break;case p:G=Z()/3;break;case v:G=(q-K)/6048e5;break;case f:G=(q-K)/864e5;break;case d:G=q/a;break;case u:G=q/r;break;case c:G=q/n;break;default:G=q}return W?G:_.a(G)},F.daysInMonth=function(){return this.endOf(g).$D},F.$locale=function(){return N[this.$L]},F.locale=function(D,L){if(!D)return this.$L;var W=this.clone(),G=T(D,L,!0);return G&&(W.$L=G),W},F.clone=function(){return _.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},A})(),H=B.prototype;return j.prototype=H,[["$ms",i],["$s",c],["$m",u],["$H",d],["$W",f],["$M",g],["$y",y],["$D",C]].forEach((function(A){H[A[1]]=function(F){return this.$g(F,A[0],A[1])}})),j.extend=function(A,F){return A.$i||(A(F,B,j),A.$i=!0),j},j.locale=T,j.isDayjs=M,j.unix=function(A){return j(1e3*A)},j.en=N[O],j.Ls=N,j.p={},j}))})(_m)),_m.exports}var qF=UF();const ia=Eo(qF);var zm={exports:{}},GF=zm.exports,dE;function XF(){return dE||(dE=1,(function(e,t){(function(n,r){e.exports=r()})(GF,(function(){return function(n,r){r.prototype.weekday=function(a){var i=this.$locale().weekStart||0,c=this.$W,u=(c<i?c+7:c)-i;return this.$utils().u(a)?u:this.subtract(u,"day").add(a,"day")}}}))})(zm)),zm.exports}var YF=XF();const QF=Eo(YF);var Am={exports:{}},ZF=Am.exports,fE;function JF(){return fE||(fE=1,(function(e,t){(function(n,r){e.exports=r()})(ZF,(function(){return function(n,r,a){var i=r.prototype,c=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,y,C,S){var b=g.name?g:g.$locale(),x=c(b[p]),$=c(b[y]),w=x||$.map((function(O){return O.slice(0,C)}));if(!S)return w;var E=b.weekStart;return w.map((function(O,N){return w[(N+(E||0))%7]}))},d=function(){return a.Ls[a.locale()]},f=function(g,p){return g.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,S,b){return S||b.slice(1)}))})(g.formats[p.toUpperCase()])},v=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return f(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return v.bind(this)()},a.localeData=function(){var g=d();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return f(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return u(d(),"months")},a.monthsShort=function(){return u(d(),"monthsShort","months",3)},a.weekdays=function(g){return u(d(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return u(d(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return u(d(),"weekdaysMin","weekdays",2,g)}}}))})(Am)),Am.exports}var eV=JF();const tV=Eo(eV);var Bm={exports:{}},nV=Bm.exports,mE;function rV(){return mE||(mE=1,(function(e,t){(function(n,r){e.exports=r()})(nV,(function(){var n="week",r="year";return function(a,i,c){var u=i.prototype;u.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var v=c(this).startOf(r).add(1,r).date(f),g=c(this).endOf(n);if(v.isBefore(g))return 1}var p=c(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),y=this.diff(p,n,!0);return y<0?c(this).startOf("week").week():Math.ceil(y)},u.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}}))})(Bm)),Bm.exports}var aV=rV();const oV=Eo(aV);var Lm={exports:{}},iV=Lm.exports,vE;function lV(){return vE||(vE=1,(function(e,t){(function(n,r){e.exports=r()})(iV,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),c=this.year();return i===1&&a===11?c+1:a===0&&i>=52?c-1:c}}}))})(Lm)),Lm.exports}var sV=lV();const cV=Eo(sV);var km={exports:{}},uV=km.exports,gE;function dV(){return gE||(gE=1,(function(e,t){(function(n,r){e.exports=r()})(uV,(function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(c){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(c);var f=this.$utils(),v=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}}));return i.bind(this)(v)}}}))})(km)),km.exports}var fV=dV();const mV=Eo(fV);var Hm={exports:{}},vV=Hm.exports,pE;function gV(){return pE||(pE=1,(function(e,t){(function(n,r){e.exports=r()})(vV,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,c=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,d={},f=function(b){return(b=+b)+(b>68?1900:2e3)},v=function(b){return function(x){this[b]=+x}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var $=x.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w})(b)}],p=function(b){var x=d[b];return x&&(x.indexOf?x:x.s.concat(x.f))},y=function(b,x){var $,w=d.meridiem;if(w){for(var E=1;E<=24;E+=1)if(b.indexOf(w(E,0,x))>-1){$=E>12;break}}else $=b===(x?"pm":"PM");return $},C={A:[u,function(b){this.afternoon=y(b,!1)}],a:[u,function(b){this.afternoon=y(b,!0)}],Q:[a,function(b){this.month=3*(b-1)+1}],S:[a,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[c,v("seconds")],ss:[c,v("seconds")],m:[c,v("minutes")],mm:[c,v("minutes")],H:[c,v("hours")],h:[c,v("hours")],HH:[c,v("hours")],hh:[c,v("hours")],D:[c,v("day")],DD:[i,v("day")],Do:[u,function(b){var x=d.ordinal,$=b.match(/\d+/);if(this.day=$[0],x)for(var w=1;w<=31;w+=1)x(w).replace(/\[|\]/g,"")===b&&(this.day=w)}],w:[c,v("week")],ww:[i,v("week")],M:[c,v("month")],MM:[i,v("month")],MMM:[u,function(b){var x=p("months"),$=(p("monthsShort")||x.map((function(w){return w.slice(0,3)}))).indexOf(b)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[u,function(b){var x=p("months").indexOf(b)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,v("year")],YY:[i,function(b){this.year=f(b)}],YYYY:[/\d{4}/,v("year")],Z:g,ZZ:g};function S(b){var x,$;x=b,$=d&&d.formats;for(var w=(b=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(j,_,B){var H=B&&B.toUpperCase();return _||$[B]||n[B]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,F,D){return F||D.slice(1)}))}))).match(r),E=w.length,O=0;O<E;O+=1){var N=w[O],I=C[N],M=I&&I[0],T=I&&I[1];w[O]=T?{regex:M,parser:T}:N.replace(/^\[|\]$/g,"")}return function(j){for(var _={},B=0,H=0;B<E;B+=1){var A=w[B];if(typeof A=="string")H+=A.length;else{var F=A.regex,D=A.parser,L=j.slice(H),W=F.exec(L)[0];D.call(_,W),j=j.replace(W,"")}}return(function(G){var V=G.afternoon;if(V!==void 0){var k=G.hours;V?k<12&&(G.hours+=12):k===12&&(G.hours=0),delete G.afternoon}})(_),_}}return function(b,x,$){$.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(f=b.parseTwoDigitYear);var w=x.prototype,E=w.parse;w.parse=function(O){var N=O.date,I=O.utc,M=O.args;this.$u=I;var T=M[1];if(typeof T=="string"){var j=M[2]===!0,_=M[3]===!0,B=j||_,H=M[2];_&&(H=M[2]),d=this.$locale(),!j&&H&&(d=$.Ls[H]),this.$d=(function(L,W,G,V){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*L);var k=S(W)(L),U=k.year,K=k.month,q=k.day,Z=k.hours,X=k.minutes,ee=k.seconds,te=k.milliseconds,oe=k.zone,le=k.week,ne=new Date,Q=q||(U||K?1:ne.getDate()),ie=U||ne.getFullYear(),ue=0;U&&!K||(ue=K>0?K-1:ne.getMonth());var de,se=Z||0,ge=X||0,he=ee||0,Oe=te||0;return oe?new Date(Date.UTC(ie,ue,Q,se,ge,he,Oe+60*oe.offset*1e3)):G?new Date(Date.UTC(ie,ue,Q,se,ge,he,Oe)):(de=new Date(ie,ue,Q,se,ge,he,Oe),le&&(de=V(de).week(le).toDate()),de)}catch{return new Date("")}})(N,T,I,$),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),B&&N!=this.format(T)&&(this.$d=new Date("")),d={}}else if(T instanceof Array)for(var A=T.length,F=1;F<=A;F+=1){M[1]=T[F-1];var D=$.apply(this,M);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}F===A&&(this.$d=new Date(""))}else E.call(this,O)}}}))})(Hm)),Hm.exports}var pV=gV();const hV=Eo(pV);ia.extend(hV);ia.extend(mV);ia.extend(QF);ia.extend(tV);ia.extend(oV);ia.extend(cV);ia.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var c=(i||"").replace("Wo","wo");return r.bind(this)(c)}});var bV={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},jl=function(t){var n=bV[t];return n||t.split("_")[0]},yV={getNow:function(){var t=ia();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return ia(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return ia().locale(jl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(jl(t)).weekday(0)},getWeek:function(t,n){return n.locale(jl(t)).week()},getShortWeekDays:function(t){return ia().locale(jl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ia().locale(jl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(jl(t)).format(r)},parse:function(t,n,r){for(var a=jl(t),i=0;i<r.length;i+=1){var c=r[i],u=n;if(c.includes("wo")||c.includes("Wo")){for(var d=u.split("-")[0],f=u.split("-")[1],v=ia(d,"YYYY").startOf("year").locale(a),g=0;g<=52;g+=1){var p=v.add(g,"week");if(p.format("Wo")===f)return p}return null}var y=ia(u,c,!0).locale(a);if(y.isValid())return y}return null}}};function CV(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var To=l.createContext(null),SV={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function YM(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,i=e.transitionName,c=e.getPopupContainer,u=e.children,d=e.range,f=e.placement,v=e.builtinPlacements,g=v===void 0?SV:v,p=e.direction,y=e.visible,C=e.onClose,S=l.useContext(To),b=S.prefixCls,x="".concat(b,"-dropdown"),$=CV(f,p==="rtl");return l.createElement(Pd,{showAction:[],hideAction:["click"],popupPlacement:$,builtinPlacements:g,prefixCls:x,popupTransitionName:i,popup:t,popupAlign:a,popupVisible:y,popupClassName:ce(r,J(J({},"".concat(x,"-range"),d),"".concat(x,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(E){E||C()}},u)}function hC(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function as(e){return e==null?[]:Array.isArray(e)?e:[e]}function ed(e,t,n){var r=Te(e);return r[t]=n,r}function og(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function QM(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function ZM(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(i){return e[i]});return r!==a?e[a]:void 0}function JM(e){return og(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function bC(e,t,n,r){var a=l.useMemo(function(){return e||function(c,u){var d=c;return t&&u.type==="date"?t(d,u.today):n&&u.type==="month"?n(d,u.locale):u.originNode}},[e,n,t]),i=l.useCallback(function(c,u){return a(c,ae(ae({},u),{},{range:r}))},[a,r]);return i}function e4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=me(r,2),i=a[0],c=a[1],u=function(v,g){c(function(p){return ed(p,g,v)})},d=l.useMemo(function(){return i.map(function(f,v){if(f)return!0;var g=e[v];return g?!!(!n[v]&&!g||g&&t(g,{activeIndex:v})):!1})},[e,i,t,n]);return[d,u]}function t4(e,t,n,r,a){var i="",c=[];return e&&c.push(a?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),i=c.join(":"),r&&(i+=".SSS"),a&&(i+=" A"),i}function xV(e,t,n,r,a,i){var c=e.fieldDateTimeFormat,u=e.fieldDateFormat,d=e.fieldTimeFormat,f=e.fieldMonthFormat,v=e.fieldYearFormat,g=e.fieldWeekFormat,p=e.fieldQuarterFormat,y=e.yearFormat,C=e.cellYearFormat,S=e.cellQuarterFormat,b=e.dayFormat,x=e.cellDateFormat,$=t4(t,n,r,a,i);return ae(ae({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat($),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:d||$,fieldMonthFormat:f||"YYYY-MM",fieldYearFormat:v||"YYYY",fieldWeekFormat:g||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:y||"YYYY",cellYearFormat:C||"YYYY",cellQuarterFormat:S||"[Q]Q",cellDateFormat:x||b||"D"})}function n4(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,i=t.showMillisecond,c=t.use12Hours;return ve.useMemo(function(){return xV(e,n,r,a,i,c)},[e,n,r,a,i,c])}function _u(e,t,n){return n??t.some(function(r){return e.includes(r)})}var $V=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function wV(e){var t=og(e,$V),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=$t(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function EV(e){return e&&typeof e=="string"}function r4(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function a4(e,t,n,r,a){var i=t,c=n,u=r;if(!e&&!i&&!c&&!u&&!a)i=!0,c=!0,u=!0;else if(e){var d,f,v,g=[i,c,u].some(function(C){return C===!1}),p=[i,c,u].some(function(C){return C===!0}),y=g?!0:!p;i=(d=i)!==null&&d!==void 0?d:y,c=(f=c)!==null&&f!==void 0?f:y,u=(v=u)!==null&&v!==void 0?v:y}return[i,c,u,a]}function o4(e){var t=e.showTime,n=wV(e),r=me(n,2),a=r[0],i=r[1],c=t&&$t(t)==="object"?t:{},u=ae(ae({defaultOpenValue:c.defaultOpenValue||c.defaultValue},a),c),d=u.showMillisecond,f=u.showHour,v=u.showMinute,g=u.showSecond,p=r4(f,v,g,d),y=a4(p,f,v,g,d),C=me(y,3);return f=C[0],v=C[1],g=C[2],[u,ae(ae({},u),{},{showHour:f,showMinute:v,showSecond:g,showMillisecond:d}),u.format,i]}function i4(e,t,n,r,a){var i=e==="time";if(e==="datetime"||i){for(var c=r,u=QM(e,a,null),d=u,f=[t,n],v=0;v<f.length;v+=1){var g=as(f[v])[0];if(EV(g)){d=g;break}}var p=c.showHour,y=c.showMinute,C=c.showSecond,S=c.showMillisecond,b=c.use12Hours,x=_u(d,["a","A","LT","LLL","LTS"],b),$=r4(p,y,C,S);$||(p=_u(d,["H","h","k","LT","LLL"]),y=_u(d,["m","LT","LLL"]),C=_u(d,["s","LTS"]),S=_u(d,["SSS"]));var w=a4($,p,y,C,S),E=me(w,3);p=E[0],y=E[1],C=E[2];var O=t||t4(p,y,C,S,x);return ae(ae({},c),{},{format:O,showHour:p,showMinute:y,showSecond:C,showMillisecond:S,use12Hours:x})}return null}function OV(e,t,n){if(t===!1)return null;var r=t&&$t(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var l0=7;function ml(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Jb(e,t,n){return ml(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function Ql(e,t,n){return ml(t,n,function(){return e.getYear(t)===e.getYear(n)})}function hE(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function RV(e,t,n){return ml(t,n,function(){return Ql(e,t,n)&&hE(e,t)===hE(e,n)})}function yC(e,t,n){return ml(t,n,function(){return Ql(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function CC(e,t,n){return ml(t,n,function(){return Ql(e,t,n)&&yC(e,t,n)&&e.getDate(t)===e.getDate(n)})}function l4(e,t,n){return ml(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function s4(e,t,n){return ml(t,n,function(){return CC(e,t,n)&&l4(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Ku(e,t,n,r){return ml(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return Ql(e,a,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function da(e,t,n,r,a){switch(a){case"date":return CC(e,n,r);case"week":return Ku(e,t.locale,n,r);case"month":return yC(e,n,r);case"quarter":return RV(e,n,r);case"year":return Ql(e,n,r);case"decade":return Jb(e,n,r);case"time":return l4(e,n,r);default:return s4(e,n,r)}}function ig(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function lm(e,t,n,r,a){return da(e,t,n,r,a)?!0:e.isAfter(n,r)}function IV(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),i=t.getWeekDay(a),c=t.addDate(a,r-i);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function Hr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function sv(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(c,u){n?r=e[c](r,e[a[u]](n)):r=e[c](r,0)}),r}function NV(e,t,n,r,a){var i=qt(function(c,u){return!!(n&&n(c,u)||r&&e.isAfter(r,c)&&!da(e,t,r,c,u.type)||a&&e.isAfter(c,a)&&!da(e,t,a,c,u.type))});return i}function MV(e,t,n){return l.useMemo(function(){var r=QM(e,t,n),a=as(r),i=a[0],c=$t(i)==="object"&&i.type==="mask"?i.format:null;return[a.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),c]},[e,t,n])}function TV(e,t,n){return typeof e[0]=="function"||n?!0:t}function jV(e,t,n,r){var a=qt(function(i,c){var u=ae({type:t},c);if(delete u.activeIndex,!e.isValidate(i)||n&&n(i,u))return!0;if((t==="date"||t==="time")&&r){var d,f=c&&c.activeIndex===1?"end":"start",v=((d=r.disabledTime)===null||d===void 0?void 0:d.call(r,i,f,{from:u.from}))||{},g=v.disabledHours,p=v.disabledMinutes,y=v.disabledSeconds,C=v.disabledMilliseconds,S=r.disabledHours,b=r.disabledMinutes,x=r.disabledSeconds,$=g||S,w=p||b,E=y||x,O=e.getHour(i),N=e.getMinute(i),I=e.getSecond(i),M=e.getMillisecond(i);if($&&$().includes(O)||w&&w(O).includes(N)||E&&E(O,N).includes(I)||C&&C(O,N,I).includes(M))return!0}return!1});return a}function sm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&as(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function c4(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,i=a===void 0?"date":a,c=e.prefixCls,u=c===void 0?"rc-picker":c,d=e.styles,f=d===void 0?{}:d,v=e.classNames,g=v===void 0?{}:v,p=e.order,y=p===void 0?!0:p,C=e.components,S=C===void 0?{}:C,b=e.inputRender,x=e.allowClear,$=e.clearIcon,w=e.needConfirm,E=e.multiple,O=e.format,N=e.inputReadOnly,I=e.disabledDate,M=e.minDate,T=e.maxDate,j=e.showTime,_=e.value,B=e.defaultValue,H=e.pickerValue,A=e.defaultPickerValue,F=sm(_),D=sm(B),L=sm(H),W=sm(A),G=i==="date"&&j?"datetime":i,V=G==="time"||G==="datetime",k=V||E,U=w??V,K=o4(e),q=me(K,4),Z=q[0],X=q[1],ee=q[2],te=q[3],oe=n4(r,X),le=l.useMemo(function(){return i4(G,ee,te,Z,oe)},[G,ee,te,Z,oe]),ne=l.useMemo(function(){return ae(ae({},e),{},{prefixCls:u,locale:oe,picker:i,styles:f,classNames:g,order:y,components:ae({input:b},S),clearIcon:OV(u,x,$),showTime:le,value:F,defaultValue:D,pickerValue:L,defaultPickerValue:W},t==null?void 0:t())},[e]),Q=MV(G,oe,O),ie=me(Q,2),ue=ie[0],de=ie[1],se=TV(ue,N,E),ge=NV(n,r,I,M,T),he=jV(n,i,ge,le),Oe=l.useMemo(function(){return ae(ae({},ne),{},{needConfirm:U,inputReadOnly:se,disabledDate:ge})},[ne,U,se,ge]);return[Oe,G,k,ue,de,he]}function PV(e,t,n){var r=bn(t,{value:e}),a=me(r,2),i=a[0],c=a[1],u=ve.useRef(e),d=ve.useRef(),f=function(){Gt.cancel(d.current)},v=qt(function(){c(u.current),n&&i!==u.current&&n(u.current)}),g=qt(function(p,y){f(),u.current=p,p||y?v():d.current=Gt(v)});return ve.useEffect(function(){return f},[]),[i,g]}function u4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(v){return v})?!1:e,i=PV(a,t||!1,r),c=me(i,2),u=c[0],d=c[1];function f(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!g.inherit||u)&&d(v,g.force)}return[u,f]}function d4(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var i;(i=t.current)===null||i===void 0||i.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function f4(e,t){return l.useMemo(function(){return e||(t?(Vn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=me(n,2),a=r[0],i=r[1];return{label:a,value:i}})):[])},[e,t])}function SC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,Vl(function(){if(e)r.current(e);else{var a=Gt(function(){r.current(e)},n);return function(){Gt.cancel(a)}}},[e])}function m4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=me(r,2),i=a[0],c=a[1],u=l.useState(!1),d=me(u,2),f=d[0],v=d[1],g=l.useRef([]),p=l.useRef(null),y=l.useRef(null),C=function(E){p.current=E},S=function(E){return p.current===E},b=function(E){v(E)},x=function(E){return E&&(y.current=E),y.current},$=function(E){var O=g.current,N=new Set(O.filter(function(M){return E[M]||t[M]})),I=O[O.length-1]===0?1:0;return N.size>=2||e[I]?null:I};return SC(f||n,function(){f||(g.current=[],C(null))}),l.useEffect(function(){f&&g.current.push(i)},[f,i]),[f,b,x,i,c,$,g.current,C,S]}function DV(e,t,n,r,a,i){var c=n[n.length-1],u=function(f,v){var g=me(e,2),p=g[0],y=g[1],C=ae(ae({},v),{},{from:ZM(e,n)});return c===1&&t[0]&&p&&!da(r,a,p,f,C.type)&&r.isAfter(p,f)||c===0&&t[1]&&y&&!da(r,a,y,f,C.type)&&r.isAfter(f,y)?!0:i==null?void 0:i(f,C)};return u}function Uu(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var s0=[];function v4(e,t,n,r,a,i,c,u){var d=arguments.length>8&&arguments[8]!==void 0?arguments[8]:s0,f=arguments.length>9&&arguments[9]!==void 0?arguments[9]:s0,v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:s0,g=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,y=arguments.length>13?arguments[13]:void 0,C=c==="time",S=i||0,b=function(L){var W=e.getNow();return C&&(W=sv(e,W)),d[L]||n[L]||W},x=me(f,2),$=x[0],w=x[1],E=bn(function(){return b(0)},{value:$}),O=me(E,2),N=O[0],I=O[1],M=bn(function(){return b(1)},{value:w}),T=me(M,2),j=T[0],_=T[1],B=l.useMemo(function(){var D=[N,j][S];return C?D:sv(e,D,v[S])},[C,N,j,S,e,v]),H=function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",G=[I,_][S];G(L);var V=[N,j];V[S]=L,g&&(!da(e,t,N,V[0],c)||!da(e,t,j,V[1],c))&&g(V,{source:W,range:S===1?"end":"start",mode:r})},A=function(L,W){if(u){var G={date:"month",week:"month",month:"year",quarter:"year"},V=G[c];if(V&&!da(e,t,L,W,V))return Uu(e,c,W,-1);if(c==="year"&&L){var k=Math.floor(e.getYear(L)/10),U=Math.floor(e.getYear(W)/10);if(k!==U)return Uu(e,c,W,-1)}}return W},F=l.useRef(null);return nn(function(){if(a&&!d[S]){var D=C?null:e.getNow();if(F.current!==null&&F.current!==S?D=[N,j][S^1]:n[S]?D=S===0?n[0]:A(n[0],n[1]):n[S^1]&&(D=n[S^1]),D){p&&e.isAfter(p,D)&&(D=p);var L=u?Uu(e,c,D,1):D;y&&e.isAfter(L,y)&&(D=u?Uu(e,c,y,-1):y),H(D,"reset")}}},[a,S,n[S]]),l.useEffect(function(){a?F.current=S:F.current=null},[a,S]),nn(function(){a&&d&&d[S]&&H(d[S],"reset")},[a,S]),[B,H]}function g4(e,t){var n=l.useRef(e),r=l.useState({}),a=me(r,2),i=a[1],c=function(f){return f&&t!==void 0?t:n.current},u=function(f){n.current=f,i({})};return[c,u,c(!0)]}var _V=[];function p4(e,t,n){var r=function(c){return c.map(function(u){return Hr(u,{generateConfig:e,locale:t,format:n[0]})})},a=function(c,u){for(var d=Math.max(c.length,u.length),f=-1,v=0;v<d;v+=1){var g=c[v]||null,p=u[v]||null;if(g!==p&&!s4(e,g,p)){f=v;break}}return[f<0,f!==0]};return[r,a]}function h4(e,t){return Te(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function zV(e){var t=g4(e),n=me(t,2),r=n[0],a=n[1],i=qt(function(){a(e)});return l.useEffect(function(){i()},[e]),[r,a]}function b4(e,t,n,r,a,i,c,u,d){var f=bn(i,{value:c}),v=me(f,2),g=v[0],p=v[1],y=g||_V,C=zV(y),S=me(C,2),b=S[0],x=S[1],$=p4(e,t,n),w=me($,2),E=w[0],O=w[1],N=qt(function(M){var T=Te(M);if(r)for(var j=0;j<2;j+=1)T[j]=T[j]||null;else a&&(T=h4(T.filter(function(D){return D}),e));var _=O(b(),T),B=me(_,2),H=B[0],A=B[1];if(!H&&(x(T),u)){var F=E(T);u(T,F,{range:A?"end":"start"})}}),I=function(){d&&d(b())};return[y,p,b,N,I]}function y4(e,t,n,r,a,i,c,u,d,f){var v=e.generateConfig,g=e.locale,p=e.picker,y=e.onChange,C=e.allowEmpty,S=e.order,b=i.some(function(H){return H})?!1:S,x=p4(v,g,c),$=me(x,2),w=$[0],E=$[1],O=g4(t),N=me(O,2),I=N[0],M=N[1],T=qt(function(){M(t)});l.useEffect(function(){T()},[t]);var j=qt(function(H){var A=H===null,F=Te(H||I());if(A)for(var D=Math.max(i.length,F.length),L=0;L<D;L+=1)i[L]||(F[L]=null);b&&F[0]&&F[1]&&(F=h4(F,v)),a(F);var W=F,G=me(W,2),V=G[0],k=G[1],U=!V,K=!k,q=C?(!U||C[0])&&(!K||C[1]):!0,Z=!S||U||K||da(v,g,V,k,p)||v.isAfter(k,V),X=(i[0]||!V||!f(V,{activeIndex:0}))&&(i[1]||!k||!f(k,{from:V,activeIndex:1})),ee=A||q&&Z&&X;if(ee){n(F);var te=E(F,t),oe=me(te,1),le=oe[0];y&&!le&&y(A&&F.every(function(ne){return!ne})?null:F,w(F))}return ee}),_=qt(function(H,A){var F=ed(I(),H,r()[H]);M(F),A&&j()}),B=!u&&!d;return SC(!B,function(){B&&(j(),a(t),T())},2),[_,j]}function C4(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function AV(e,t,n,r,a,i){var c=e;function u(g,p,y){var C=i[g](c),S=y.find(function(w){return w.value===C});if(!S||S.disabled){var b=y.filter(function(w){return!w.disabled}),x=Te(b).reverse(),$=x.find(function(w){return w.value<=C})||b[0];$&&(C=$.value,c=i[p](c,C))}return C}var d=u("getHour","setHour",t()),f=u("getMinute","setMinute",n(d)),v=u("getSecond","setSecond",r(d,f));return u("getMillisecond","setMillisecond",a(d,f,v)),c}function cm(){return[]}function um(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,c=[],u=n>=1?n|0:1,d=e;d<=t;d+=u){var f=a.includes(d);(!f||!r)&&c.push({label:hC(d,i),value:d,disabled:f})}return c}function xC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,i=r.hourStep,c=i===void 0?1:i,u=r.minuteStep,d=u===void 0?1:u,f=r.secondStep,v=f===void 0?1:f,g=r.millisecondStep,p=g===void 0?100:g,y=r.hideDisabledOptions,C=r.disabledTime,S=r.disabledHours,b=r.disabledMinutes,x=r.disabledSeconds,$=l.useMemo(function(){return n||e.getNow()},[n,e]),w=l.useCallback(function(W){var G=(C==null?void 0:C(W))||{};return[G.disabledHours||S||cm,G.disabledMinutes||b||cm,G.disabledSeconds||x||cm,G.disabledMilliseconds||cm]},[C,S,b,x]),E=l.useMemo(function(){return w($)},[$,w]),O=me(E,4),N=O[0],I=O[1],M=O[2],T=O[3],j=l.useCallback(function(W,G,V,k){var U=um(0,23,c,y,W()),K=a?U.map(function(ee){return ae(ae({},ee),{},{label:hC(ee.value%12||12,2)})}):U,q=function(te){return um(0,59,d,y,G(te))},Z=function(te,oe){return um(0,59,v,y,V(te,oe))},X=function(te,oe,le){return um(0,999,p,y,k(te,oe,le),3)};return[K,q,Z,X]},[y,c,a,p,d,v]),_=l.useMemo(function(){return j(N,I,M,T)},[j,N,I,M,T]),B=me(_,4),H=B[0],A=B[1],F=B[2],D=B[3],L=function(G,V){var k=function(){return H},U=A,K=F,q=D;if(V){var Z=w(V),X=me(Z,4),ee=X[0],te=X[1],oe=X[2],le=X[3],ne=j(ee,te,oe,le),Q=me(ne,4),ie=Q[0],ue=Q[1],de=Q[2],se=Q[3];k=function(){return ie},U=ue,K=de,q=se}var ge=AV(G,k,U,K,q,e);return ge};return[L,H,A,F,D]}function BV(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,i=e.showTime,c=e.onSubmit,u=e.onNow,d=e.invalid,f=e.needConfirm,v=e.generateConfig,g=e.disabledDate,p=l.useContext(To),y=p.prefixCls,C=p.locale,S=p.button,b=S===void 0?"button":S,x=v.getNow(),$=xC(v,i,x),w=me($,1),E=w[0],O=r==null?void 0:r(t),N=g(x,{type:t}),I=function(){if(!N){var A=E(x);u(A)}},M="".concat(y,"-now"),T="".concat(M,"-btn"),j=a&&l.createElement("li",{className:M},l.createElement("a",{className:ce(T,N&&"".concat(T,"-disabled")),"aria-disabled":N,onClick:I},n==="date"?C.today:C.now)),_=f&&l.createElement("li",{className:"".concat(y,"-ok")},l.createElement(b,{disabled:d,onClick:c},C.ok)),B=(j||_)&&l.createElement("ul",{className:"".concat(y,"-ranges")},j,_);return!O&&!B?null:l.createElement("div",{className:"".concat(y,"-footer")},O&&l.createElement("div",{className:"".concat(y,"-footer-extra")},O),B)}function S4(e,t,n){function r(a,i){var c=a.findIndex(function(d){return da(e,t,d,i,n)});if(c===-1)return[].concat(Te(a),[i]);var u=Te(a);return u.splice(c,1),u}return r}var os=l.createContext(null);function lg(){return l.useContext(os)}function Pc(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,i=e.disabledDate,c=e.minDate,u=e.maxDate,d=e.cellRender,f=e.hoverValue,v=e.hoverRangeValue,g=e.onHover,p=e.values,y=e.pickerValue,C=e.onSelect,S=e.prevIcon,b=e.nextIcon,x=e.superPrevIcon,$=e.superNextIcon,w=r.getNow(),E={now:w,values:p,pickerValue:y,prefixCls:n,disabledDate:i,minDate:c,maxDate:u,cellRender:d,hoverValue:f,hoverRangeValue:v,onHover:g,locale:a,generateConfig:r,onSelect:C,panelType:t,prevIcon:S,nextIcon:b,superPrevIcon:x,superNextIcon:$};return[E,w]}var nl=l.createContext({});function zd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,i=e.prefixColumn,c=e.rowClassName,u=e.titleFormat,d=e.getCellText,f=e.getCellClassName,v=e.headerCells,g=e.cellSelection,p=g===void 0?!0:g,y=e.disabledDate,C=lg(),S=C.prefixCls,b=C.panelType,x=C.now,$=C.disabledDate,w=C.cellRender,E=C.onHover,O=C.hoverValue,N=C.hoverRangeValue,I=C.generateConfig,M=C.values,T=C.locale,j=C.onSelect,_=y||$,B="".concat(S,"-cell"),H=l.useContext(nl),A=H.onCellDblClick,F=function(K){return M.some(function(q){return q&&da(I,T,K,q,b)})},D=[],L=0;L<t;L+=1){for(var W=[],G=void 0,V=function(){var K=L*n+k,q=a(r,K),Z=_==null?void 0:_(q,{type:b});k===0&&(G=q,i&&W.push(i(G)));var X=!1,ee=!1,te=!1;if(p&&N){var oe=me(N,2),le=oe[0],ne=oe[1];X=ig(I,le,ne,q),ee=da(I,T,q,le,b),te=da(I,T,q,ne,b)}var Q=u?Hr(q,{locale:T,format:u,generateConfig:I}):void 0,ie=l.createElement("div",{className:"".concat(B,"-inner")},d(q));W.push(l.createElement("td",{key:k,title:Q,className:ce(B,ae(J(J(J(J(J(J({},"".concat(B,"-disabled"),Z),"".concat(B,"-hover"),(O||[]).some(function(ue){return da(I,T,q,ue,b)})),"".concat(B,"-in-range"),X&&!ee&&!te),"".concat(B,"-range-start"),ee),"".concat(B,"-range-end"),te),"".concat(S,"-cell-selected"),!N&&b!=="week"&&F(q)),f(q))),onClick:function(){Z||j(q)},onDoubleClick:function(){!Z&&A&&A()},onMouseEnter:function(){Z||E==null||E(q)},onMouseLeave:function(){Z||E==null||E(null)}},w?w(q,{prefixCls:S,originNode:ie,today:x,type:b,locale:T}):ie))},k=0;k<n;k+=1)V();D.push(l.createElement("tr",{key:L,className:c==null?void 0:c(G)},W))}return l.createElement("div",{className:"".concat(S,"-body")},l.createElement("table",{className:"".concat(S,"-content")},v&&l.createElement("thead",null,l.createElement("tr",null,v)),l.createElement("tbody",null,D)))}var dm={visibility:"hidden"};function Dc(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,i=e.getEnd,c=e.children,u=lg(),d=u.prefixCls,f=u.prevIcon,v=f===void 0?"‹":f,g=u.nextIcon,p=g===void 0?"›":g,y=u.superPrevIcon,C=y===void 0?"«":y,S=u.superNextIcon,b=S===void 0?"»":S,x=u.minDate,$=u.maxDate,w=u.generateConfig,E=u.locale,O=u.pickerValue,N=u.panelType,I="".concat(d,"-header"),M=l.useContext(nl),T=M.hidePrev,j=M.hideNext,_=M.hideHeader,B=l.useMemo(function(){if(!x||!t||!i)return!1;var U=i(t(-1,O));return!lm(w,E,U,x,N)},[x,t,O,i,w,E,N]),H=l.useMemo(function(){if(!x||!n||!i)return!1;var U=i(n(-1,O));return!lm(w,E,U,x,N)},[x,n,O,i,w,E,N]),A=l.useMemo(function(){if(!$||!t||!a)return!1;var U=a(t(1,O));return!lm(w,E,$,U,N)},[$,t,O,a,w,E,N]),F=l.useMemo(function(){if(!$||!n||!a)return!1;var U=a(n(1,O));return!lm(w,E,$,U,N)},[$,n,O,a,w,E,N]),D=function(K){t&&r(t(K,O))},L=function(K){n&&r(n(K,O))};if(_)return null;var W="".concat(I,"-prev-btn"),G="".concat(I,"-next-btn"),V="".concat(I,"-super-prev-btn"),k="".concat(I,"-super-next-btn");return l.createElement("div",{className:I},n&&l.createElement("button",{type:"button","aria-label":E.previousYear,onClick:function(){return L(-1)},tabIndex:-1,className:ce(V,H&&"".concat(V,"-disabled")),disabled:H,style:T?dm:{}},C),t&&l.createElement("button",{type:"button","aria-label":E.previousMonth,onClick:function(){return D(-1)},tabIndex:-1,className:ce(W,B&&"".concat(W,"-disabled")),disabled:B,style:T?dm:{}},v),l.createElement("div",{className:"".concat(I,"-view")},c),t&&l.createElement("button",{type:"button","aria-label":E.nextMonth,onClick:function(){return D(1)},tabIndex:-1,className:ce(G,A&&"".concat(G,"-disabled")),disabled:A,style:j?dm:{}},p),n&&l.createElement("button",{type:"button","aria-label":E.nextYear,onClick:function(){return L(1)},tabIndex:-1,className:ce(k,F&&"".concat(k,"-disabled")),disabled:F,style:j?dm:{}},b))}function sg(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,i=e.generateConfig,c=e.pickerValue,u=e.onPickerValueChange,d=e.onModeChange,f=e.mode,v=f===void 0?"date":f,g=e.disabledDate,p=e.onSelect,y=e.onHover,C=e.showWeek,S="".concat(t,"-").concat(r,"-panel"),b="".concat(t,"-cell"),x=v==="week",$=Pc(e,v),w=me($,2),E=w[0],O=w[1],N=i.locale.getWeekFirstDay(a.locale),I=i.setDate(c,1),M=IV(a.locale,i,I),T=i.getMonth(c),j=C===void 0?x:C,_=j?function(U){var K=g==null?void 0:g(U,{type:"week"});return l.createElement("td",{key:"week",className:ce(b,"".concat(b,"-week"),J({},"".concat(b,"-disabled"),K)),onClick:function(){K||p(U)},onMouseEnter:function(){K||y==null||y(U)},onMouseLeave:function(){K||y==null||y(null)}},l.createElement("div",{className:"".concat(b,"-inner")},i.locale.getWeek(a.locale,U)))}:null,B=[],H=a.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(a.locale):[]);_&&B.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var A=0;A<l0;A+=1)B.push(l.createElement("th",{key:A},H[(A+N)%l0]));var F=function(K,q){return i.addDate(K,q)},D=function(K){return Hr(K,{locale:a,format:a.cellDateFormat,generateConfig:i})},L=function(K){var q=J(J({},"".concat(t,"-cell-in-view"),yC(i,K,c)),"".concat(t,"-cell-today"),CC(i,K,O));return q},W=a.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(a.locale):[]),G=l.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){d("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},Hr(c,{locale:a,format:a.yearFormat,generateConfig:i})),V=l.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){d("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?Hr(c,{locale:a,format:a.monthFormat,generateConfig:i}):W[T]),k=a.monthBeforeYear?[V,G]:[G,V];return l.createElement(os.Provider,{value:E},l.createElement("div",{className:ce(S,C&&"".concat(S,"-show-week"))},l.createElement(Dc,{offset:function(K){return i.addMonth(c,K)},superOffset:function(K){return i.addYear(c,K)},onChange:u,getStart:function(K){return i.setDate(K,1)},getEnd:function(K){var q=i.setDate(K,1);return q=i.addMonth(q,1),i.addDate(q,-1)}},k),l.createElement(zd,xe({titleFormat:a.fieldDateFormat},e,{colNum:l0,rowNum:6,baseDate:M,headerCells:B,getCellDate:F,getCellText:D,getCellClassName:L,prefixColumn:_,cellSelection:!x}))))}var LV=1/3;function kV(e,t){var n=l.useRef(!1),r=l.useRef(null),a=l.useRef(null),i=function(){return n.current},c=function(){Gt.cancel(r.current),n.current=!1},u=l.useRef(),d=function(){var g=e.current;if(a.current=null,u.current=0,g){var p=g.querySelector('[data-value="'.concat(t,'"]')),y=g.querySelector("li"),C=function S(){c(),n.current=!0,u.current+=1;var b=g.scrollTop,x=y.offsetTop,$=p.offsetTop,w=$-x;if($===0&&p!==y||!Oc(g)){u.current<=5&&(r.current=Gt(S));return}var E=b+(w-b)*LV,O=Math.abs(w-E);if(a.current!==null&&a.current<O){c();return}if(a.current=O,O<=1){g.scrollTop=w,c();return}g.scrollTop=E,r.current=Gt(S)};p&&y&&C()}},f=qt(d);return[f,c,i]}var HV=300;function FV(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function zu(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,i=e.onChange,c=e.onHover,u=e.onDblClick,d=e.changeOnScroll,f=lg(),v=f.prefixCls,g=f.cellRender,p=f.now,y=f.locale,C="".concat(v,"-time-panel"),S="".concat(v,"-time-panel-cell"),b=l.useRef(null),x=l.useRef(),$=function(){clearTimeout(x.current)},w=kV(b,n??r),E=me(w,3),O=E[0],N=E[1],I=E[2];nn(function(){return O(),$(),function(){N(),$()}},[n,r,FV(t)]);var M=function(_){$();var B=_.target;!I()&&d&&(x.current=setTimeout(function(){var H=b.current,A=H.querySelector("li").offsetTop,F=Array.from(H.querySelectorAll("li")),D=F.map(function(k){return k.offsetTop-A}),L=D.map(function(k,U){return t[U].disabled?Number.MAX_SAFE_INTEGER:Math.abs(k-B.scrollTop)}),W=Math.min.apply(Math,Te(L)),G=L.findIndex(function(k){return k===W}),V=t[G];V&&!V.disabled&&i(V.value)},HV))},T="".concat(C,"-column");return l.createElement("ul",{className:T,ref:b,"data-type":a,onScroll:M},t.map(function(j){var _=j.label,B=j.value,H=j.disabled,A=l.createElement("div",{className:"".concat(S,"-inner")},_);return l.createElement("li",{key:B,className:ce(S,J(J({},"".concat(S,"-selected"),n===B),"".concat(S,"-disabled"),H)),onClick:function(){H||i(B)},onDoubleClick:function(){!H&&u&&u()},onMouseEnter:function(){c(B)},onMouseLeave:function(){c(null)},"data-value":B},g?g(B,{prefixCls:v,originNode:A,today:p,type:"time",subType:a,locale:y}):A)}))}function Ki(e){return e<12}function VV(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,i=e.use12Hours,c=e.changeOnScroll,u=lg(),d=u.prefixCls,f=u.values,v=u.generateConfig,g=u.locale,p=u.onSelect,y=u.onHover,C=y===void 0?function(){}:y,S=u.pickerValue,b=(f==null?void 0:f[0])||null,x=l.useContext(nl),$=x.onCellDblClick,w=xC(v,e,b),E=me(w,5),O=E[0],N=E[1],I=E[2],M=E[3],T=E[4],j=function(Me){var ke=b&&v[Me](b),et=S&&v[Me](S);return[ke,et]},_=j("getHour"),B=me(_,2),H=B[0],A=B[1],F=j("getMinute"),D=me(F,2),L=D[0],W=D[1],G=j("getSecond"),V=me(G,2),k=V[0],U=V[1],K=j("getMillisecond"),q=me(K,2),Z=q[0],X=q[1],ee=H===null?null:Ki(H)?"am":"pm",te=l.useMemo(function(){return i?Ki(H)?N.filter(function(Se){return Ki(Se.value)}):N.filter(function(Se){return!Ki(Se.value)}):N},[H,N,i]),oe=function(Me,ke){var et,ht=Me.filter(function(We){return!We.disabled});return ke??(ht==null||(et=ht[0])===null||et===void 0?void 0:et.value)},le=oe(N,H),ne=l.useMemo(function(){return I(le)},[I,le]),Q=oe(ne,L),ie=l.useMemo(function(){return M(le,Q)},[M,le,Q]),ue=oe(ie,k),de=l.useMemo(function(){return T(le,Q,ue)},[T,le,Q,ue]),se=oe(de,Z),ge=l.useMemo(function(){if(!i)return[];var Se=v.getNow(),Me=v.setHour(Se,6),ke=v.setHour(Se,18),et=function(We,tt){var ut=g.cellMeridiemFormat;return ut?Hr(We,{generateConfig:v,locale:g,format:ut}):tt};return[{label:et(Me,"AM"),value:"am",disabled:N.every(function(ht){return ht.disabled||!Ki(ht.value)})},{label:et(ke,"PM"),value:"pm",disabled:N.every(function(ht){return ht.disabled||Ki(ht.value)})}]},[N,i,v,g]),he=function(Me){var ke=O(Me);p(ke)},Oe=l.useMemo(function(){var Se=b||S||v.getNow(),Me=function(et){return et!=null};return Me(H)?(Se=v.setHour(Se,H),Se=v.setMinute(Se,L),Se=v.setSecond(Se,k),Se=v.setMillisecond(Se,Z)):Me(A)?(Se=v.setHour(Se,A),Se=v.setMinute(Se,W),Se=v.setSecond(Se,U),Se=v.setMillisecond(Se,X)):Me(le)&&(Se=v.setHour(Se,le),Se=v.setMinute(Se,Q),Se=v.setSecond(Se,ue),Se=v.setMillisecond(Se,se)),Se},[b,S,H,L,k,Z,le,Q,ue,se,A,W,U,X,v]),Re=function(Me,ke){return Me===null?null:v[ke](Oe,Me)},pe=function(Me){return Re(Me,"setHour")},Ie=function(Me){return Re(Me,"setMinute")},we=function(Me){return Re(Me,"setSecond")},ye=function(Me){return Re(Me,"setMillisecond")},ze=function(Me){return Me===null?null:Me==="am"&&!Ki(H)?v.setHour(Oe,H-12):Me==="pm"&&Ki(H)?v.setHour(Oe,H+12):Oe},Ae=function(Me){he(pe(Me))},Ye=function(Me){he(Ie(Me))},Ke=function(Me){he(we(Me))},Fe=function(Me){he(ye(Me))},Ge=function(Me){he(ze(Me))},je=function(Me){C(pe(Me))},$e=function(Me){C(Ie(Me))},_e=function(Me){C(we(Me))},Ee=function(Me){C(ye(Me))},Pe=function(Me){C(ze(Me))},be={onDblClick:$,changeOnScroll:c};return l.createElement("div",{className:"".concat(d,"-content")},t&&l.createElement(zu,xe({units:te,value:H,optionalValue:A,type:"hour",onChange:Ae,onHover:je},be)),n&&l.createElement(zu,xe({units:ne,value:L,optionalValue:W,type:"minute",onChange:Ye,onHover:$e},be)),r&&l.createElement(zu,xe({units:ie,value:k,optionalValue:U,type:"second",onChange:Ke,onHover:_e},be)),a&&l.createElement(zu,xe({units:de,value:Z,optionalValue:X,type:"millisecond",onChange:Fe,onHover:Ee},be)),i&&l.createElement(zu,xe({units:ge,value:ee,type:"meridiem",onChange:Ge,onHover:Pe},be)))}function x4(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,i=e.showTime,c=i||{},u=c.format,d="".concat(t,"-time-panel"),f=Pc(e,"time"),v=me(f,1),g=v[0];return l.createElement(os.Provider,{value:g},l.createElement("div",{className:ce(d)},l.createElement(Dc,null,n?Hr(n,{locale:r,format:u,generateConfig:a}):" "),l.createElement(VV,i)))}function WV(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,i=e.value,c=e.pickerValue,u=e.onHover,d="".concat(t,"-datetime-panel"),f=xC(n,r),v=me(f,1),g=v[0],p=function(b){return i?sv(n,b,i):sv(n,b,c)},y=function(b){u==null||u(b&&p(b))},C=function(b){var x=p(b);a(g(x,x))};return l.createElement("div",{className:d},l.createElement(sg,xe({},e,{onSelect:C,onHover:y})),l.createElement(x4,e))}function KV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,i=e.disabledDate,c=e.onPickerValueChange,u="".concat(t,"-decade-panel"),d=Pc(e,"decade"),f=me(d,1),v=f[0],g=function(N){var I=Math.floor(r.getYear(N)/100)*100;return r.setYear(N,I)},p=function(N){var I=g(N);return r.addYear(I,99)},y=g(a),C=p(a),S=r.addYear(y,-10),b=function(N,I){return r.addYear(N,I*10)},x=function(N){var I=n.cellYearFormat,M=Hr(N,{locale:n,format:I,generateConfig:r}),T=Hr(r.addYear(N,9),{locale:n,format:I,generateConfig:r});return"".concat(M,"-").concat(T)},$=function(N){return J({},"".concat(t,"-cell-in-view"),Jb(r,N,y)||Jb(r,N,C)||ig(r,y,C,N))},w=i?function(O,N){var I=r.setDate(O,1),M=r.setMonth(I,0),T=r.setYear(M,Math.floor(r.getYear(M)/10)*10),j=r.addYear(T,10),_=r.addDate(j,-1);return i(T,N)&&i(_,N)}:null,E="".concat(Hr(y,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Hr(C,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(os.Provider,{value:v},l.createElement("div",{className:u},l.createElement(Dc,{superOffset:function(N){return r.addYear(a,N*100)},onChange:c,getStart:g,getEnd:p},E),l.createElement(zd,xe({},e,{disabledDate:w,colNum:3,rowNum:4,baseDate:S,getCellDate:b,getCellText:x,getCellClassName:$}))))}function UV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,i=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,d="".concat(t,"-month-panel"),f=Pc(e,"month"),v=me(f,1),g=v[0],p=r.setMonth(a,0),y=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),C=function(E,O){return r.addMonth(E,O)},S=function(E){var O=r.getMonth(E);return n.monthFormat?Hr(E,{locale:n,format:n.monthFormat,generateConfig:r}):y[O]},b=function(){return J({},"".concat(t,"-cell-in-view"),!0)},x=i?function(w,E){var O=r.setDate(w,1),N=r.setMonth(O,r.getMonth(O)+1),I=r.addDate(N,-1);return i(O,E)&&i(I,E)}:null,$=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Hr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(os.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Dc,{superOffset:function(E){return r.addYear(a,E)},onChange:c,getStart:function(E){return r.setMonth(E,0)},getEnd:function(E){return r.setMonth(E,11)}},$),l.createElement(zd,xe({},e,{disabledDate:x,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:C,getCellText:S,getCellClassName:b}))))}function qV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,i=e.onPickerValueChange,c=e.onModeChange,u="".concat(t,"-quarter-panel"),d=Pc(e,"quarter"),f=me(d,1),v=f[0],g=r.setMonth(a,0),p=function(x,$){return r.addMonth(x,$*3)},y=function(x){return Hr(x,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},C=function(){return J({},"".concat(t,"-cell-in-view"),!0)},S=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Hr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(os.Provider,{value:v},l.createElement("div",{className:u},l.createElement(Dc,{superOffset:function(x){return r.addYear(a,x)},onChange:i,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},S),l.createElement(zd,xe({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:g,getCellDate:p,getCellText:y,getCellClassName:C}))))}function GV(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,i=e.hoverValue,c=e.hoverRangeValue,u=r.locale,d="".concat(t,"-week-panel-row"),f=function(g){var p={};if(c){var y=me(c,2),C=y[0],S=y[1],b=Ku(n,u,C,g),x=Ku(n,u,S,g);p["".concat(d,"-range-start")]=b,p["".concat(d,"-range-end")]=x,p["".concat(d,"-range-hover")]=!b&&!x&&ig(n,C,S,g)}return i&&(p["".concat(d,"-hover")]=i.some(function($){return Ku(n,u,g,$)})),ce(d,J({},"".concat(d,"-selected"),!c&&Ku(n,u,a,g)),p)};return l.createElement(sg,xe({},e,{mode:"week",panelName:"week",rowClassName:f}))}function XV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,i=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,d="".concat(t,"-year-panel"),f=Pc(e,"year"),v=me(f,1),g=v[0],p=function(I){var M=Math.floor(r.getYear(I)/10)*10;return r.setYear(I,M)},y=function(I){var M=p(I);return r.addYear(M,9)},C=p(a),S=y(a),b=r.addYear(C,-1),x=function(I,M){return r.addYear(I,M)},$=function(I){return Hr(I,{locale:n,format:n.cellYearFormat,generateConfig:r})},w=function(I){return J({},"".concat(t,"-cell-in-view"),Ql(r,I,C)||Ql(r,I,S)||ig(r,C,S,I))},E=i?function(N,I){var M=r.setMonth(N,0),T=r.setDate(M,1),j=r.addYear(T,1),_=r.addDate(j,-1);return i(T,I)&&i(_,I)}:null,O=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){u("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Hr(C,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Hr(S,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(os.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Dc,{superOffset:function(I){return r.addYear(a,I*10)},onChange:c,getStart:p,getEnd:y},O),l.createElement(zd,xe({},e,{disabledDate:E,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:b,getCellDate:x,getCellText:$,getCellClassName:w}))))}var YV={date:sg,datetime:WV,week:GV,month:UV,quarter:qV,year:XV,decade:KV,time:x4};function QV(e,t){var n,r=e.locale,a=e.generateConfig,i=e.direction,c=e.prefixCls,u=e.tabIndex,d=u===void 0?0:u,f=e.multiple,v=e.defaultValue,g=e.value,p=e.onChange,y=e.onSelect,C=e.defaultPickerValue,S=e.pickerValue,b=e.onPickerValueChange,x=e.mode,$=e.onPanelChange,w=e.picker,E=w===void 0?"date":w,O=e.showTime,N=e.hoverValue,I=e.hoverRangeValue,M=e.cellRender,T=e.dateRender,j=e.monthCellRender,_=e.components,B=_===void 0?{}:_,H=e.hideHeader,A=((n=l.useContext(To))===null||n===void 0?void 0:n.prefixCls)||c||"rc-picker",F=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:F.current}});var D=o4(e),L=me(D,4),W=L[0],G=L[1],V=L[2],k=L[3],U=n4(r,G),K=E==="date"&&O?"datetime":E,q=l.useMemo(function(){return i4(K,V,k,W,U)},[K,V,k,W,U]),Z=a.getNow(),X=bn(E,{value:x,postState:function(Pe){return Pe||"date"}}),ee=me(X,2),te=ee[0],oe=ee[1],le=te==="date"&&q?"datetime":te,ne=S4(a,r,K),Q=bn(v,{value:g}),ie=me(Q,2),ue=ie[0],de=ie[1],se=l.useMemo(function(){var Ee=as(ue).filter(function(Pe){return Pe});return f?Ee:Ee.slice(0,1)},[ue,f]),ge=qt(function(Ee){de(Ee),p&&(Ee===null||se.length!==Ee.length||se.some(function(Pe,be){return!da(a,r,Pe,Ee[be],K)}))&&(p==null||p(f?Ee:Ee[0]))}),he=qt(function(Ee){if(y==null||y(Ee),te===E){var Pe=f?ne(se,Ee):[Ee];ge(Pe)}}),Oe=bn(C||se[0]||Z,{value:S}),Re=me(Oe,2),pe=Re[0],Ie=Re[1];l.useEffect(function(){se[0]&&!S&&Ie(se[0])},[se[0]]);var we=function(Pe,be){$==null||$(Pe||S,be||te)},ye=function(Pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ie(Pe),b==null||b(Pe),be&&we(Pe)},ze=function(Pe,be){oe(Pe),be&&ye(be),we(be,Pe)},Ae=function(Pe){if(he(Pe),ye(Pe),te!==E){var be=["decade","year"],Se=[].concat(be,["month"]),Me={quarter:[].concat(be,["quarter"]),week:[].concat(Te(Se),["week"]),date:[].concat(Te(Se),["date"])},ke=Me[E]||Se,et=ke.indexOf(te),ht=ke[et+1];ht&&ze(ht,Pe)}},Ye=l.useMemo(function(){var Ee,Pe;if(Array.isArray(I)){var be=me(I,2);Ee=be[0],Pe=be[1]}else Ee=I;return!Ee&&!Pe?null:(Ee=Ee||Pe,Pe=Pe||Ee,a.isAfter(Ee,Pe)?[Pe,Ee]:[Ee,Pe])},[I,a]),Ke=bC(M,T,j),Fe=B[le]||YV[le]||sg,Ge=l.useContext(nl),je=l.useMemo(function(){return ae(ae({},Ge),{},{hideHeader:H})},[Ge,H]),$e="".concat(A,"-panel"),_e=og(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(nl.Provider,{value:je},l.createElement("div",{ref:F,tabIndex:d,className:ce($e,J({},"".concat($e,"-rtl"),i==="rtl"))},l.createElement(Fe,xe({},_e,{showTime:q,prefixCls:A,locale:U,generateConfig:a,onModeChange:ze,pickerValue:pe,onPickerValueChange:function(Pe){ye(Pe,!0)},value:se[0],onSelect:Ae,values:se,cellRender:Ke,hoverRangeValue:Ye,hoverValue:N}))))}var c0=l.memo(l.forwardRef(QV));function ZV(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,c=e.onSubmit,u=e.range,d=e.hoverValue,f=l.useContext(To),v=f.prefixCls,g=f.generateConfig,p=l.useCallback(function($,w){return Uu(g,t,$,w)},[g,t]),y=l.useMemo(function(){return p(r,1)},[r,p]),C=function(w){a(p(w,-1))},S={onCellDblClick:function(){i&&c()}},b=t==="time",x=ae(ae({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return u?x.hoverRangeValue=d:x.hoverValue=d,n?l.createElement("div",{className:"".concat(v,"-panels")},l.createElement(nl.Provider,{value:ae(ae({},S),{},{hideNext:!0})},l.createElement(c0,x)),l.createElement(nl.Provider,{value:ae(ae({},S),{},{hidePrev:!0})},l.createElement(c0,xe({},x,{pickerValue:y,onPickerValueChange:C})))):l.createElement(nl.Provider,{value:ae({},S)},l.createElement(c0,x))}function bE(e){return typeof e=="function"?e():e}function JV(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(i,c){var u=i.label,d=i.value;return l.createElement("li",{key:c,onClick:function(){r(bE(d))},onMouseEnter:function(){a(bE(d))},onMouseLeave:function(){a(null)}},u)}))):null}function $4(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,i=e.range,c=e.multiple,u=e.activeInfo,d=u===void 0?[0,0,0]:u,f=e.presets,v=e.onPresetHover,g=e.onPresetSubmit,p=e.onFocus,y=e.onBlur,C=e.onPanelMouseDown,S=e.direction,b=e.value,x=e.onSelect,$=e.isInvalid,w=e.defaultOpenValue,E=e.onOk,O=e.onSubmit,N=l.useContext(To),I=N.prefixCls,M="".concat(I,"-panel"),T=S==="rtl",j=l.useRef(null),_=l.useRef(null),B=l.useState(0),H=me(B,2),A=H[0],F=H[1],D=l.useState(0),L=me(D,2),W=L[0],G=L[1],V=l.useState(0),k=me(V,2),U=k[0],K=k[1],q=function(Ae){Ae.width&&F(Ae.width)},Z=me(d,3),X=Z[0],ee=Z[1],te=Z[2],oe=l.useState(0),le=me(oe,2),ne=le[0],Q=le[1];l.useEffect(function(){Q(10)},[X]),l.useEffect(function(){if(i&&_.current){var ze,Ae=((ze=j.current)===null||ze===void 0?void 0:ze.offsetWidth)||0,Ye=_.current.getBoundingClientRect();if(!Ye.height||Ye.right<0){Q(function(je){return Math.max(0,je-1)});return}var Ke=(T?ee-Ae:X)-Ye.left;if(K(Ke),A&&A<te){var Fe=T?Ye.right-(ee-Ae+A):X+Ae-Ye.left-A,Ge=Math.max(0,Fe);G(Ge)}else G(0)}},[ne,T,A,X,ee,te,i]);function ie(ze){return ze.filter(function(Ae){return Ae})}var ue=l.useMemo(function(){return ie(as(b))},[b]),de=r==="time"&&!ue.length,se=l.useMemo(function(){return de?ie([w]):ue},[de,ue,w]),ge=de?w:ue,he=l.useMemo(function(){return se.length?se.some(function(ze){return $(ze)}):!0},[se,$]),Oe=function(){de&&x(w),E(),O()},Re=l.createElement("div",{className:"".concat(I,"-panel-layout")},l.createElement(JV,{prefixCls:I,presets:f,onClick:g,onHover:v}),l.createElement("div",null,l.createElement(ZV,xe({},e,{value:ge})),l.createElement(BV,xe({},e,{showNow:c?!1:a,invalid:he,onSubmit:Oe}))));t&&(Re=t(Re));var pe="".concat(M,"-container"),Ie="marginLeft",we="marginRight",ye=l.createElement("div",{onMouseDown:C,tabIndex:-1,className:ce(pe,"".concat(I,"-").concat(n,"-panel-container")),style:J(J({},T?we:Ie,W),T?Ie:we,"auto"),onFocus:p,onBlur:y},Re);return i&&(ye=l.createElement("div",{onMouseDown:C,ref:_,className:ce("".concat(I,"-range-wrapper"),"".concat(I,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:j,className:"".concat(I,"-range-arrow"),style:{left:U}}),l.createElement(la,{onResize:q},ye))),ye}function w4(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,i=e.locale,c=e.preserveInvalidOnBlur,u=e.inputReadOnly,d=e.required,f=e["aria-required"],v=e.onSubmit,g=e.onFocus,p=e.onBlur,y=e.onInputChange,C=e.onInvalid,S=e.open,b=e.onOpenChange,x=e.onKeyDown,$=e.onChange,w=e.activeHelp,E=e.name,O=e.autoComplete,N=e.id,I=e.value,M=e.invalid,T=e.placeholder,j=e.disabled,_=e.activeIndex,B=e.allHelp,H=e.picker,A=function(U,K){var q=a.locale.parse(i.locale,U,[K]);return q&&a.isValidate(q)?q:null},F=n[0],D=l.useCallback(function(k){return Hr(k,{locale:i,format:F,generateConfig:a})},[i,a,F]),L=l.useMemo(function(){return I.map(D)},[I,D]),W=l.useMemo(function(){var k=H==="time"?8:10,U=typeof F=="function"?F(a.getNow()).length:F.length;return Math.max(k,U)+2},[F,H,a]),G=function(U){for(var K=0;K<n.length;K+=1){var q=n[K];if(typeof q=="string"){var Z=A(U,q);if(Z)return Z}}return!1},V=function(U){function K(X){return U!==void 0?X[U]:X}var q=Sr(e,{aria:!0,data:!0}),Z=ae(ae({},q),{},{format:r,validateFormat:function(ee){return!!G(ee)},preserveInvalidOnBlur:c,readOnly:u,required:d,"aria-required":f,name:E,autoComplete:O,size:W,id:K(N),value:K(L)||"",invalid:K(M),placeholder:K(T),active:_===U,helped:B||w&&_===U,disabled:K(j),onFocus:function(ee){g(ee,U)},onBlur:function(ee){p(ee,U)},onSubmit:v,onChange:function(ee){y();var te=G(ee);if(te){C(!1,U),$(te,U);return}C(!!ee,U)},onHelp:function(){b(!0,{index:U})},onKeyDown:function(ee){var te=!1;if(x==null||x(ee,function(){te=!0}),!ee.defaultPrevented&&!te)switch(ee.key){case"Escape":b(!1,{index:U});break;case"Enter":S||b(!0);break}}},t==null?void 0:t({valueTexts:L}));return Object.keys(Z).forEach(function(X){Z[X]===void 0&&delete Z[X]}),Z};return[V,D]}var eW=["onMouseEnter","onMouseLeave"];function E4(e){return l.useMemo(function(){return og(e,eW)},[e])}var tW=["icon","type"],nW=["onClear"];function cg(e){var t=e.icon,n=e.type,r=At(e,tW),a=l.useContext(To),i=a.prefixCls;return t?l.createElement("span",xe({className:"".concat(i,"-").concat(n)},r),t):null}function ey(e){var t=e.onClear,n=At(e,nW);return l.createElement(cg,xe({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var u0=["YYYY","MM","DD","HH","mm","ss","SSS"],yE="顧",rW=(function(){function e(t){or(this,e),J(this,"format",void 0),J(this,"maskFormat",void 0),J(this,"cells",void 0),J(this,"maskCells",void 0),this.format=t;var n=u0.map(function(u){return"(".concat(u,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(u){return yE.repeat(u.length)});var a=new RegExp("(".concat(u0.join("|"),")")),i=(t.split(a)||[]).filter(function(u){return u}),c=0;this.cells=i.map(function(u){var d=u0.includes(u),f=c,v=c+u.length;return c=v,{text:u,mask:d,start:f,end:v}}),this.maskCells=this.cells.filter(function(u){return u.mask})}return ir(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,i=r.end;return[a||0,i||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],i=n[r];if(!i||a!==yE&&a!==i)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,a=0,i=0;i<this.maskCells.length;i+=1){var c=this.maskCells[i],u=c.start,d=c.end;if(n>=u&&n<=d)return i;var f=Math.min(Math.abs(n-u),Math.abs(n-d));f<r&&(r=f,a=i)}return a}}]),e})();function aW(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var oW=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],ty=l.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,i=e.suffixIcon,c=e.format,u=e.validateFormat,d=e.onChange;e.onInput;var f=e.helped,v=e.onHelp,g=e.onSubmit,p=e.onKeyDown,y=e.preserveInvalidOnBlur,C=y===void 0?!1:y,S=e.invalid,b=e.clearIcon,x=At(e,oW),$=e.value,w=e.onFocus,E=e.onBlur,O=e.onMouseUp,N=l.useContext(To),I=N.prefixCls,M=N.input,T=M===void 0?"input":M,j="".concat(I,"-input"),_=l.useState(!1),B=me(_,2),H=B[0],A=B[1],F=l.useState($),D=me(F,2),L=D[0],W=D[1],G=l.useState(""),V=me(G,2),k=V[0],U=V[1],K=l.useState(null),q=me(K,2),Z=q[0],X=q[1],ee=l.useState(null),te=me(ee,2),oe=te[0],le=te[1],ne=L||"";l.useEffect(function(){W($)},[$]);var Q=l.useRef(),ie=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Q.current,inputElement:ie.current,focus:function(Ee){ie.current.focus(Ee)},blur:function(){ie.current.blur()}}});var ue=l.useMemo(function(){return new rW(c||"")},[c]),de=l.useMemo(function(){return f?[0,0]:ue.getSelection(Z)},[ue,Z,f]),se=me(de,2),ge=se[0],he=se[1],Oe=function(Ee){Ee&&Ee!==c&&Ee!==$&&v()},Re=qt(function(_e){u(_e)&&d(_e),W(_e),Oe(_e)}),pe=function(Ee){if(!c){var Pe=Ee.target.value;Oe(Pe),W(Pe),d(Pe)}},Ie=function(Ee){var Pe=Ee.clipboardData.getData("text");u(Pe)&&Re(Pe)},we=l.useRef(!1),ye=function(){we.current=!0},ze=function(Ee){var Pe=Ee.target,be=Pe.selectionStart,Se=ue.getMaskCellIndex(be);X(Se),le({}),O==null||O(Ee),we.current=!1},Ae=function(Ee){A(!0),X(0),U(""),w(Ee)},Ye=function(Ee){E(Ee)},Ke=function(Ee){A(!1),Ye(Ee)};SC(n,function(){!n&&!C&&W($)});var Fe=function(Ee){Ee.key==="Enter"&&u(ne)&&g(),p==null||p(Ee)},Ge=function(Ee){Fe(Ee);var Pe=Ee.key,be=null,Se=null,Me=he-ge,ke=c.slice(ge,he),et=function(ut){X(function(rt){var gt=rt+ut;return gt=Math.max(gt,0),gt=Math.min(gt,ue.size()-1),gt})},ht=function(ut){var rt=aW(ke),gt=me(rt,3),Mt=gt[0],xt=gt[1],st=gt[2],Ct=ne.slice(ge,he),bt=Number(Ct);if(isNaN(bt))return String(st||(ut>0?Mt:xt));var Je=bt+ut,Ve=xt-Mt+1;return String(Mt+(Ve+Je-Mt)%Ve)};switch(Pe){case"Backspace":case"Delete":be="",Se=ke;break;case"ArrowLeft":be="",et(-1);break;case"ArrowRight":be="",et(1);break;case"ArrowUp":be="",Se=ht(1);break;case"ArrowDown":be="",Se=ht(-1);break;default:isNaN(Number(Pe))||(be=k+Pe,Se=be);break}if(be!==null&&(U(be),be.length>=Me&&(et(1),U(""))),Se!==null){var We=ne.slice(0,ge)+hC(Se,Me)+ne.slice(he);Re(We.slice(0,c.length))}le({})},je=l.useRef();nn(function(){if(!(!H||!c||we.current)){if(!ue.match(ne)){Re(c);return}return ie.current.setSelectionRange(ge,he),je.current=Gt(function(){ie.current.setSelectionRange(ge,he)}),function(){Gt.cancel(je.current)}}},[ue,c,H,ne,Z,ge,he,oe,Re]);var $e=c?{onFocus:Ae,onBlur:Ke,onKeyDown:Ge,onMouseDown:ye,onMouseUp:ze,onPaste:Ie}:{};return l.createElement("div",{ref:Q,className:ce(j,J(J({},"".concat(j,"-active"),n&&a),"".concat(j,"-placeholder"),f))},l.createElement(T,xe({ref:ie,"aria-invalid":S,autoComplete:"off"},x,{onKeyDown:Fe,onBlur:Ye},$e,{value:ne,onChange:pe})),l.createElement(cg,{type:"suffix",icon:i}),b)}),iW=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],lW=["index"];function sW(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,i=e.suffixIcon,c=e.separator,u=c===void 0?"~":c,d=e.activeIndex;e.activeHelp,e.allHelp;var f=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var v=e.placeholder,g=e.className,p=e.style,y=e.onClick,C=e.onClear,S=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,x=e.invalid;e.inputReadOnly;var $=e.direction;e.onOpenChange;var w=e.onActiveInfo;e.placement;var E=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,N=e.tabIndex,I=At(e,iW),M=$==="rtl",T=l.useContext(To),j=T.prefixCls,_=l.useMemo(function(){if(typeof n=="string")return[n];var oe=n||{};return[oe.start,oe.end]},[n]),B=l.useRef(),H=l.useRef(),A=l.useRef(),F=function(le){var ne;return(ne=[H,A][le])===null||ne===void 0?void 0:ne.current};l.useImperativeHandle(t,function(){return{nativeElement:B.current,focus:function(le){if($t(le)==="object"){var ne,Q=le||{},ie=Q.index,ue=ie===void 0?0:ie,de=At(Q,lW);(ne=F(ue))===null||ne===void 0||ne.focus(de)}else{var se;(se=F(le??0))===null||se===void 0||se.focus()}},blur:function(){var le,ne;(le=F(0))===null||le===void 0||le.blur(),(ne=F(1))===null||ne===void 0||ne.blur()}}});var D=E4(I),L=l.useMemo(function(){return Array.isArray(v)?v:[v,v]},[v]),W=w4(ae(ae({},e),{},{id:_,placeholder:L})),G=me(W,1),V=G[0],k=l.useState({position:"absolute",width:0}),U=me(k,2),K=U[0],q=U[1],Z=qt(function(){var oe=F(d);if(oe){var le=oe.nativeElement.getBoundingClientRect(),ne=B.current.getBoundingClientRect(),Q=le.left-ne.left;q(function(ie){return ae(ae({},ie),{},{width:le.width,left:Q})}),w([le.left,le.right,ne.width])}});l.useEffect(function(){Z()},[d]);var X=a&&(S[0]&&!b[0]||S[1]&&!b[1]),ee=O&&!b[0],te=O&&!ee&&!b[1];return l.createElement(la,{onResize:Z},l.createElement("div",xe({},D,{className:ce(j,"".concat(j,"-range"),J(J(J(J({},"".concat(j,"-focused"),f),"".concat(j,"-disabled"),b.every(function(oe){return oe})),"".concat(j,"-invalid"),x.some(function(oe){return oe})),"".concat(j,"-rtl"),M),g),style:p,ref:B,onClick:y,onMouseDown:function(le){var ne=le.target;ne!==H.current.inputElement&&ne!==A.current.inputElement&&le.preventDefault(),E==null||E(le)}}),r&&l.createElement("div",{className:"".concat(j,"-prefix")},r),l.createElement(ty,xe({ref:H},V(0),{autoFocus:ee,tabIndex:N,"date-range":"start"})),l.createElement("div",{className:"".concat(j,"-range-separator")},u),l.createElement(ty,xe({ref:A},V(1),{autoFocus:te,tabIndex:N,"date-range":"end"})),l.createElement("div",{className:"".concat(j,"-active-bar"),style:K}),l.createElement(cg,{type:"suffix",icon:i}),X&&l.createElement(ey,{icon:a,onClear:C})))}var cW=l.forwardRef(sW);function CE(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function fm(e){return e===1?"end":"start"}function uW(e,t){var n=c4(e,function(){var on=e.disabled,vt=e.allowEmpty,wt=CE(on,!1),cn=CE(vt,!1);return{disabled:wt,allowEmpty:cn}}),r=me(n,6),a=r[0],i=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=a.prefixCls,g=a.styles,p=a.classNames,y=a.defaultValue,C=a.value,S=a.needConfirm,b=a.onKeyDown,x=a.disabled,$=a.allowEmpty,w=a.disabledDate,E=a.minDate,O=a.maxDate,N=a.defaultOpen,I=a.open,M=a.onOpenChange,T=a.locale,j=a.generateConfig,_=a.picker,B=a.showNow,H=a.showToday,A=a.showTime,F=a.mode,D=a.onPanelChange,L=a.onCalendarChange,W=a.onOk,G=a.defaultPickerValue,V=a.pickerValue,k=a.onPickerValueChange,U=a.inputReadOnly,K=a.suffixIcon,q=a.onFocus,Z=a.onBlur,X=a.presets,ee=a.ranges,te=a.components,oe=a.cellRender,le=a.dateRender,ne=a.monthCellRender,Q=a.onClick,ie=d4(t),ue=u4(I,N,x,M),de=me(ue,2),se=de[0],ge=de[1],he=function(vt,wt){(x.some(function(cn){return!cn})||!vt)&&ge(vt,wt)},Oe=b4(j,T,u,!0,!1,y,C,L,W),Re=me(Oe,5),pe=Re[0],Ie=Re[1],we=Re[2],ye=Re[3],ze=Re[4],Ae=we(),Ye=m4(x,$,se),Ke=me(Ye,9),Fe=Ke[0],Ge=Ke[1],je=Ke[2],$e=Ke[3],_e=Ke[4],Ee=Ke[5],Pe=Ke[6],be=Ke[7],Se=Ke[8],Me=function(vt,wt){Ge(!0),q==null||q(vt,{range:fm(wt??$e)})},ke=function(vt,wt){Ge(!1),Z==null||Z(vt,{range:fm(wt??$e)})},et=l.useMemo(function(){if(!A)return null;var on=A.disabledTime,vt=on?function(wt){var cn=fm($e),Tn=ZM(Ae,Pe,$e);return on(wt,cn,{from:Tn})}:void 0;return ae(ae({},A),{},{disabledTime:vt})},[A,$e,Ae,Pe]),ht=bn([_,_],{value:F}),We=me(ht,2),tt=We[0],ut=We[1],rt=tt[$e]||_,gt=rt==="date"&&et?"datetime":rt,Mt=gt===_&>!=="time",xt=C4(_,rt,B,H,!0),st=y4(a,pe,Ie,we,ye,x,u,Fe,se,f),Ct=me(st,2),bt=Ct[0],Je=Ct[1],Ve=DV(Ae,x,Pe,j,T,w),Ue=e4(Ae,f,$),ft=me(Ue,2),It=ft[0],Et=ft[1],Ht=v4(j,T,Ae,tt,se,$e,i,Mt,G,V,et==null?void 0:et.defaultOpenValue,k,E,O),dt=me(Ht,2),it=dt[0],Dt=dt[1],Wt=qt(function(on,vt,wt){var cn=ed(tt,$e,vt);if((cn[0]!==tt[0]||cn[1]!==tt[1])&&ut(cn),D&&wt!==!1){var Tn=Te(Ae);on&&(Tn[$e]=on),D(Tn,cn)}}),en=function(vt,wt){return ed(Ae,wt,vt)},Xt=function(vt,wt){var cn=Ae;vt&&(cn=en(vt,$e)),be($e);var Tn=Ee(cn);ye(cn),bt($e,Tn===null),Tn===null?he(!1,{force:!0}):wt||ie.current.focus({index:Tn})},vn=function(vt){var wt,cn=vt.target.getRootNode();if(!ie.current.nativeElement.contains((wt=cn.activeElement)!==null&&wt!==void 0?wt:document.activeElement)){var Tn=x.findIndex(function(Un){return!Un});Tn>=0&&ie.current.focus({index:Tn})}he(!0),Q==null||Q(vt)},Kt=function(){Je(null),he(!1,{force:!0})},sn=l.useState(null),lt=me(sn,2),yt=lt[0],pt=lt[1],Xe=l.useState(null),Qe=me(Xe,2),ct=Qe[0],Tt=Qe[1],Vt=l.useMemo(function(){return ct||Ae},[Ae,ct]);l.useEffect(function(){se||Tt(null)},[se]);var mt=l.useState([0,0,0]),Ot=me(mt,2),kt=Ot[0],Sn=Ot[1],Pn=f4(X,ee),Mn=function(vt){Tt(vt),pt("preset")},Ln=function(vt){var wt=Je(vt);wt&&he(!1,{force:!0})},En=function(vt){Xt(vt)},Dn=function(vt){Tt(vt?en(vt,$e):null),pt("cell")},mr=function(vt){he(!0),Me(vt)},$r=function(){je("panel")},dr=function(vt){var wt=ed(Ae,$e,vt);ye(wt),!S&&!c&&i===gt&&Xt(vt)},yn=function(){he(!1)},_t=bC(oe,le,ne,fm($e)),zt=Ae[$e]||null,tn=qt(function(on){return f(on,{activeIndex:$e})}),Nt=l.useMemo(function(){var on=Sr(a,!1),vt=xn(a,[].concat(Te(Object.keys(on)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return vt},[a]),jt=l.createElement($4,xe({},Nt,{showNow:xt,showTime:et,range:!0,multiplePanel:Mt,activeInfo:kt,disabledDate:Ve,onFocus:mr,onBlur:ke,onPanelMouseDown:$r,picker:_,mode:rt,internalMode:gt,onPanelChange:Wt,format:d,value:zt,isInvalid:tn,onChange:null,onSelect:dr,pickerValue:it,defaultOpenValue:as(A==null?void 0:A.defaultOpenValue)[$e],onPickerValueChange:Dt,hoverValue:Vt,onHover:Dn,needConfirm:S,onSubmit:Xt,onOk:ze,presets:Pn,onPresetHover:Mn,onPresetSubmit:Ln,onNow:En,cellRender:_t})),un=function(vt,wt){var cn=en(vt,wt);ye(cn)},On=function(){je("input")},Wn=function(vt,wt){var cn=Pe.length,Tn=Pe[cn-1];if(cn&&Tn!==wt&&S&&!$[Tn]&&!Se(Tn)&&Ae[Tn]){ie.current.focus({index:Tn});return}je("input"),he(!0,{inherit:!0}),$e!==wt&&se&&!S&&c&&Xt(null,!0),_e(wt),Me(vt,wt)},vr=function(vt,wt){if(he(!1),!S&&je()==="input"){var cn=Ee(Ae);bt($e,cn===null)}ke(vt,wt)},Kn=function(vt,wt){vt.key==="Tab"&&Xt(null,!0),b==null||b(vt,wt)},pr=l.useMemo(function(){return{prefixCls:v,locale:T,generateConfig:j,button:te.button,input:te.input}},[v,T,j,te.button,te.input]);return nn(function(){se&&$e!==void 0&&Wt(null,_,!1)},[se,$e,_]),nn(function(){var on=je();!se&&on==="input"&&(he(!1),Xt(null,!0)),!se&&c&&!S&&on==="panel"&&(he(!0),Xt())},[se]),l.createElement(To.Provider,{value:pr},l.createElement(YM,xe({},JM(a),{popupElement:jt,popupStyle:g.popup,popupClassName:p.popup,visible:se,onClose:yn,range:!0}),l.createElement(cW,xe({},a,{ref:ie,suffixIcon:K,activeIndex:Fe||se?$e:null,activeHelp:!!ct,allHelp:!!ct&&yt==="preset",focused:Fe,onFocus:Wn,onBlur:vr,onKeyDown:Kn,onSubmit:Xt,value:Vt,maskFormat:d,onChange:un,onInputChange:On,format:u,inputReadOnly:U,disabled:x,open:se,onOpenChange:he,onClick:vn,onClear:Kt,invalid:It,onInvalid:Et,onActiveInfo:Sn}))))}var dW=l.forwardRef(uW);function fW(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,i=a===void 0?"×":a,c=e.formatDate,u=e.disabled,d=e.maxTagCount,f=e.placeholder,v="".concat(t,"-selector"),g="".concat(t,"-selection"),p="".concat(g,"-overflow");function y(b,x){return l.createElement("span",{className:ce("".concat(g,"-item")),title:typeof b=="string"?b:null},l.createElement("span",{className:"".concat(g,"-item-content")},b),!u&&x&&l.createElement("span",{onMouseDown:function(w){w.preventDefault()},onClick:x,className:"".concat(g,"-item-remove")},i))}function C(b){var x=c(b),$=function(E){E&&E.stopPropagation(),r(b)};return y(x,$)}function S(b){var x="+ ".concat(b.length," ...");return y(x)}return l.createElement("div",{className:v},l.createElement(bo,{prefixCls:p,data:n,renderItem:C,renderRest:S,itemKey:function(x){return c(x)},maxCount:d}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},f))}var mW=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function vW(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,d=e.generateConfig,f=e.placeholder,v=e.className,g=e.style,p=e.onClick,y=e.onClear,C=e.internalPicker,S=e.value,b=e.onChange,x=e.onSubmit;e.onInputChange;var $=e.multiple,w=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,O=e.invalid;e.inputReadOnly;var N=e.direction;e.onOpenChange;var I=e.onMouseDown;e.required,e["aria-required"];var M=e.autoFocus,T=e.tabIndex,j=e.removeIcon,_=At(e,mW),B=N==="rtl",H=l.useContext(To),A=H.prefixCls,F=l.useRef(),D=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(ee){var te;(te=D.current)===null||te===void 0||te.focus(ee)},blur:function(){var ee;(ee=D.current)===null||ee===void 0||ee.blur()}}});var L=E4(_),W=function(ee){b([ee])},G=function(ee){var te=S.filter(function(oe){return oe&&!da(d,u,oe,ee,C)});b(te),n||x()},V=w4(ae(ae({},e),{},{onChange:W}),function(X){var ee=X.valueTexts;return{value:ee[0]||"",active:c}}),k=me(V,2),U=k[0],K=k[1],q=!!(a&&S.length&&!E),Z=$?l.createElement(l.Fragment,null,l.createElement(fW,{prefixCls:A,value:S,onRemove:G,formatDate:K,maxTagCount:w,disabled:E,removeIcon:j,placeholder:f}),l.createElement("input",{className:"".concat(A,"-multiple-input"),value:S.map(K).join(","),ref:D,readOnly:!0,autoFocus:M,tabIndex:T}),l.createElement(cg,{type:"suffix",icon:i}),q&&l.createElement(ey,{icon:a,onClear:y})):l.createElement(ty,xe({ref:D},U(),{autoFocus:M,tabIndex:T,suffixIcon:i,clearIcon:q&&l.createElement(ey,{icon:a,onClear:y}),showActiveCls:!1}));return l.createElement("div",xe({},L,{className:ce(A,J(J(J(J(J({},"".concat(A,"-multiple"),$),"".concat(A,"-focused"),c),"".concat(A,"-disabled"),E),"".concat(A,"-invalid"),O),"".concat(A,"-rtl"),B),v),style:g,ref:F,onClick:p,onMouseDown:function(ee){var te,oe=ee.target;oe!==((te=D.current)===null||te===void 0?void 0:te.inputElement)&&ee.preventDefault(),I==null||I(ee)}}),r&&l.createElement("div",{className:"".concat(A,"-prefix")},r),Z)}var gW=l.forwardRef(vW);function pW(e,t){var n=c4(e),r=me(n,6),a=r[0],i=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=a,g=v.prefixCls,p=v.styles,y=v.classNames,C=v.order,S=v.defaultValue,b=v.value,x=v.needConfirm,$=v.onChange,w=v.onKeyDown,E=v.disabled,O=v.disabledDate,N=v.minDate,I=v.maxDate,M=v.defaultOpen,T=v.open,j=v.onOpenChange,_=v.locale,B=v.generateConfig,H=v.picker,A=v.showNow,F=v.showToday,D=v.showTime,L=v.mode,W=v.onPanelChange,G=v.onCalendarChange,V=v.onOk,k=v.multiple,U=v.defaultPickerValue,K=v.pickerValue,q=v.onPickerValueChange,Z=v.inputReadOnly,X=v.suffixIcon,ee=v.removeIcon,te=v.onFocus,oe=v.onBlur,le=v.presets,ne=v.components,Q=v.cellRender,ie=v.dateRender,ue=v.monthCellRender,de=v.onClick,se=d4(t);function ge(Nt){return Nt===null?null:k?Nt:Nt[0]}var he=S4(B,_,i),Oe=u4(T,M,[E],j),Re=me(Oe,2),pe=Re[0],Ie=Re[1],we=function(jt,un,On){if(G){var Wn=ae({},On);delete Wn.range,G(ge(jt),ge(un),Wn)}},ye=function(jt){V==null||V(ge(jt))},ze=b4(B,_,u,!1,C,S,b,we,ye),Ae=me(ze,5),Ye=Ae[0],Ke=Ae[1],Fe=Ae[2],Ge=Ae[3],je=Ae[4],$e=Fe(),_e=m4([E]),Ee=me(_e,4),Pe=Ee[0],be=Ee[1],Se=Ee[2],Me=Ee[3],ke=function(jt){be(!0),te==null||te(jt,{})},et=function(jt){be(!1),oe==null||oe(jt,{})},ht=bn(H,{value:L}),We=me(ht,2),tt=We[0],ut=We[1],rt=tt==="date"&&D?"datetime":tt,gt=C4(H,tt,A,F),Mt=$&&function(Nt,jt){$(ge(Nt),ge(jt))},xt=y4(ae(ae({},a),{},{onChange:Mt}),Ye,Ke,Fe,Ge,[],u,Pe,pe,f),st=me(xt,2),Ct=st[1],bt=e4($e,f),Je=me(bt,2),Ve=Je[0],Ue=Je[1],ft=l.useMemo(function(){return Ve.some(function(Nt){return Nt})},[Ve]),It=function(jt,un){if(q){var On=ae(ae({},un),{},{mode:un.mode[0]});delete On.range,q(jt[0],On)}},Et=v4(B,_,$e,[tt],pe,Me,i,!1,U,K,as(D==null?void 0:D.defaultOpenValue),It,N,I),Ht=me(Et,2),dt=Ht[0],it=Ht[1],Dt=qt(function(Nt,jt,un){if(ut(jt),W&&un!==!1){var On=Nt||$e[$e.length-1];W(On,jt)}}),Wt=function(){Ct(Fe()),Ie(!1,{force:!0})},en=function(jt){!E&&!se.current.nativeElement.contains(document.activeElement)&&se.current.focus(),Ie(!0),de==null||de(jt)},Xt=function(){Ct(null),Ie(!1,{force:!0})},vn=l.useState(null),Kt=me(vn,2),sn=Kt[0],lt=Kt[1],yt=l.useState(null),pt=me(yt,2),Xe=pt[0],Qe=pt[1],ct=l.useMemo(function(){var Nt=[Xe].concat(Te($e)).filter(function(jt){return jt});return k?Nt:Nt.slice(0,1)},[$e,Xe,k]),Tt=l.useMemo(function(){return!k&&Xe?[Xe]:$e.filter(function(Nt){return Nt})},[$e,Xe,k]);l.useEffect(function(){pe||Qe(null)},[pe]);var Vt=f4(le),mt=function(jt){Qe(jt),lt("preset")},Ot=function(jt){var un=k?he(Fe(),jt):[jt],On=Ct(un);On&&!k&&Ie(!1,{force:!0})},kt=function(jt){Ot(jt)},Sn=function(jt){Qe(jt),lt("cell")},Pn=function(jt){Ie(!0),ke(jt)},Mn=function(jt){if(Se("panel"),!(k&&rt!==H)){var un=k?he(Fe(),jt):[jt];Ge(un),!x&&!c&&i===rt&&Wt()}},Ln=function(){Ie(!1)},En=bC(Q,ie,ue),Dn=l.useMemo(function(){var Nt=Sr(a,!1),jt=xn(a,[].concat(Te(Object.keys(Nt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ae(ae({},jt),{},{multiple:a.multiple})},[a]),mr=l.createElement($4,xe({},Dn,{showNow:gt,showTime:D,disabledDate:O,onFocus:Pn,onBlur:et,picker:H,mode:tt,internalMode:rt,onPanelChange:Dt,format:d,value:$e,isInvalid:f,onChange:null,onSelect:Mn,pickerValue:dt,defaultOpenValue:D==null?void 0:D.defaultOpenValue,onPickerValueChange:it,hoverValue:ct,onHover:Sn,needConfirm:x,onSubmit:Wt,onOk:je,presets:Vt,onPresetHover:mt,onPresetSubmit:Ot,onNow:kt,cellRender:En})),$r=function(jt){Ge(jt)},dr=function(){Se("input")},yn=function(jt){Se("input"),Ie(!0,{inherit:!0}),ke(jt)},_t=function(jt){Ie(!1),et(jt)},zt=function(jt,un){jt.key==="Tab"&&Wt(),w==null||w(jt,un)},tn=l.useMemo(function(){return{prefixCls:g,locale:_,generateConfig:B,button:ne.button,input:ne.input}},[g,_,B,ne.button,ne.input]);return nn(function(){pe&&Me!==void 0&&Dt(null,H,!1)},[pe,Me,H]),nn(function(){var Nt=Se();!pe&&Nt==="input"&&(Ie(!1),Wt()),!pe&&c&&!x&&Nt==="panel"&&Wt()},[pe]),l.createElement(To.Provider,{value:tn},l.createElement(YM,xe({},JM(a),{popupElement:mr,popupStyle:p.popup,popupClassName:y.popup,visible:pe,onClose:Ln}),l.createElement(gW,xe({},a,{ref:se,suffixIcon:X,removeIcon:ee,activeHelp:!!Xe,allHelp:!!Xe&&sn==="preset",focused:Pe,onFocus:yn,onBlur:_t,onKeyDown:zt,onSubmit:Wt,value:Tt,maskFormat:d,onChange:$r,onInputChange:dr,internalPicker:i,format:u,inputReadOnly:Z,disabled:E,open:pe,onOpenChange:Ie,onClick:en,onClear:Xt,invalid:ft,onInvalid:function(jt){Ue(jt,0)}}))))}var hW=l.forwardRef(pW);const O4=l.createContext(null),bW=O4.Provider,R4=l.createContext(null),yW=R4.Provider;var CW=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],I4=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,i=e.style,c=e.checked,u=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,v=e.type,g=v===void 0?"checkbox":v,p=e.title,y=e.onChange,C=At(e,CW),S=l.useRef(null),b=l.useRef(null),x=bn(f,{value:c}),$=me(x,2),w=$[0],E=$[1];l.useImperativeHandle(t,function(){return{focus:function(M){var T;(T=S.current)===null||T===void 0||T.focus(M)},blur:function(){var M;(M=S.current)===null||M===void 0||M.blur()},input:S.current,nativeElement:b.current}});var O=ce(r,a,J(J({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),u)),N=function(M){u||("checked"in e||E(M.target.checked),y==null||y({target:ae(ae({},e),{},{type:g,checked:M.target.checked}),stopPropagation:function(){M.stopPropagation()},preventDefault:function(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return l.createElement("span",{className:O,title:p,style:i,ref:b},l.createElement("input",xe({},C,{className:"".concat(r,"-input"),ref:S,onChange:N,disabled:u,checked:!!w,type:g})),l.createElement("span",{className:"".concat(r,"-inner")}))});function N4(e){const t=ve.useRef(null),n=()=>{Gt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Gt(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const SW=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},fn(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"}})}},xW=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:i,motionDurationMid:c,motionEaseInOutCirc:u,colorBgContainer:d,colorBorder:f,lineWidth:v,colorBgContainerDisabled:g,colorTextDisabled:p,paddingXS:y,dotColorDisabled:C,lineType:S,radioColor:b,radioBgColor:x,calc:$}=e,w=`${t}-inner`,O=$(a).sub($(4).mul(2)),N=$(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},fn(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:`${re(v)} ${S} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
287
|
+
&:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Ho(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:N,height:N,marginBlockStart:$(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:$(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:b,borderBlockStart:0,borderInlineStart:0,borderRadius:N,transform:"scale(0)",opacity:0,transition:`all ${i} ${u}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:N,height:N,backgroundColor:d,borderColor:f,borderStyle:"solid",borderWidth:v,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:x,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${i} ${u}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:g,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:C}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${$(O).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}})}},$W=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:i,colorBorder:c,motionDurationMid:u,buttonPaddingInline:d,fontSize:f,buttonBg:v,fontSizeLG:g,controlHeightLG:p,controlHeightSM:y,paddingXS:C,borderRadius:S,borderRadiusSM:b,borderRadiusLG:x,buttonCheckedBg:$,buttonSolidCheckedColor:w,colorTextDisabled:E,colorBgContainerDisabled:O,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:I,colorPrimary:M,colorPrimaryHover:T,colorPrimaryActive:j,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:B,buttonSolidCheckedActiveBg:H,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:re(A(n).sub(A(a).mul(2)).equal()),background:v,border:`${re(a)} ${i} ${c}`,borderBlockStartWidth:A(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${u}`,`background ${u}`,`box-shadow ${u}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:A(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${re(a)} ${i} ${c}`,borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S},"&:first-child:last-child":{borderRadius:S},[`${r}-group-large &`]:{height:p,fontSize:g,lineHeight:re(A(p).sub(A(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:y,paddingInline:A(C).sub(a).equal(),paddingBlock:0,lineHeight:re(A(y).sub(A(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":Ho(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:M,background:$,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:j,borderColor:j,"&::before":{backgroundColor:j}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:_,borderColor:_,"&:hover":{color:w,background:B,borderColor:B},"&:active":{color:w,background:H,borderColor:H}},"&-disabled":{color:E,backgroundColor:O,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:O,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:N,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},wW=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:i,colorText:c,colorBgContainer:u,colorTextDisabled:d,controlItemBgActiveDisabled:f,colorTextLightSolid:v,colorPrimary:g,colorPrimaryHover:p,colorPrimaryActive:y,colorWhite:C}=e,S=4,b=i,x=t?b-S*2:b-(S+a)*2;return{radioSize:b,dotSize:x,dotColorDisabled:d,buttonSolidCheckedColor:v,buttonSolidCheckedBg:g,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:y,buttonBg:u,buttonCheckedBg:u,buttonColor:c,buttonCheckedBgDisabled:f,buttonCheckedColorDisabled:d,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?g:C,radioBgColor:t?u:g}},M4=ln("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${re(n)} ${t}`,i=rn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[SW(i),xW(i),$W(i)]},wW,{unitless:{radioSize:!0,dotSize:!0}});var EW=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const OW=(e,t)=>{var n,r;const a=l.useContext(O4),i=l.useContext(R4),{getPrefixCls:c,direction:u,radio:d}=l.useContext(Rt),f=l.useRef(null),v=Ar(t,f),{isFormItemInput:g}=l.useContext(zr),p=D=>{var L,W;(L=e.onChange)===null||L===void 0||L.call(e,D),(W=a==null?void 0:a.onChange)===null||W===void 0||W.call(a,D)},{prefixCls:y,className:C,rootClassName:S,children:b,style:x,title:$}=e,w=EW(e,["prefixCls","className","rootClassName","children","style","title"]),E=c("radio",y),O=((a==null?void 0:a.optionType)||i)==="button",N=O?`${E}-button`:E,I=ar(E),[M,T,j]=M4(E,I),_=Object.assign({},w),B=l.useContext(_r);a&&(_.name=a.name,_.onChange=p,_.checked=e.value===a.value,_.disabled=(n=_.disabled)!==null&&n!==void 0?n:a.disabled),_.disabled=(r=_.disabled)!==null&&r!==void 0?r:B;const H=ce(`${N}-wrapper`,{[`${N}-wrapper-checked`]:_.checked,[`${N}-wrapper-disabled`]:_.disabled,[`${N}-wrapper-rtl`]:u==="rtl",[`${N}-wrapper-in-form-item`]:g,[`${N}-wrapper-block`]:!!(a!=null&&a.block)},d==null?void 0:d.className,C,S,T,j,I),[A,F]=N4(_.onClick);return M(l.createElement(Od,{component:"Radio",disabled:_.disabled},l.createElement("label",{className:H,style:Object.assign(Object.assign({},d==null?void 0:d.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:$,onClick:A},l.createElement(I4,Object.assign({},_,{className:ce(_.className,{[Pv]:!O}),type:"radio",prefixCls:N,ref:v,onClick:F})),b!==void 0?l.createElement("span",{className:`${N}-label`},b):null)))},cv=l.forwardRef(OW),RW=["parentNode"],IW="form_item";function td(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function T4(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:RW.includes(n)?`${IW}_${n}`:n}function j4(e,t,n,r,a,i){let c=r;return i!==void 0?c=i:n.validating?c="validating":e.length?c="error":t.length?c="warning":(n.touched||a&&n.validated)&&(c="success"),c}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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ny(e){return td(e).join("_")}function SE(e,t){const n=t.getFieldInstance(e),r=$d(n);if(r)return r;const a=T4(td(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function P4(e){const[t]=Qy(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>i=>{const c=ny(a);i?n.current[c]=i:delete n.current[c]}},scrollToField:(a,i={})=>{const{focus:c}=i,u=NW(i,["focus"]),d=SE(a,r);d&&(mz(d,Object.assign({scrollMode:"if-needed",block:"nearest"},u)),c&&r.focusField(a))},focusField:a=>{var i,c;const u=r.getFieldInstance(a);typeof(u==null?void 0:u.focus)=="function"?u.focus():(c=(i=SE(a,r))===null||i===void 0?void 0:i.focus)===null||c===void 0||c.call(i)},getFieldInstance:a=>{const i=ny(a);return n.current[i]}}),[e,t]);return[r]}const MW=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Rt),{name:a}=l.useContext(zr),i=Kv(ny(a)),{prefixCls:c,className:u,rootClassName:d,options:f,buttonStyle:v="outline",disabled:g,children:p,size:y,style:C,id:S,optionType:b,name:x=i,defaultValue:$,value:w,block:E=!1,onChange:O,onMouseEnter:N,onMouseLeave:I,onFocus:M,onBlur:T}=e,[j,_]=bn($,{value:w}),B=l.useCallback(K=>{const q=j,Z=K.target.value;"value"in e||_(Z),Z!==q&&(O==null||O(K))},[j,_,O]),H=n("radio",c),A=`${H}-group`,F=ar(H),[D,L,W]=M4(H,F);let G=p;f&&f.length>0&&(G=f.map(K=>typeof K=="string"||typeof K=="number"?l.createElement(cv,{key:K.toString(),prefixCls:H,disabled:g,value:K,checked:j===K},K):l.createElement(cv,{key:`radio-group-value-options-${K.value}`,prefixCls:H,disabled:K.disabled||g,value:K.value,checked:j===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const V=Br(y),k=ce(A,`${A}-${v}`,{[`${A}-${V}`]:V,[`${A}-rtl`]:r==="rtl",[`${A}-block`]:E},u,d,L,W,F),U=l.useMemo(()=>({onChange:B,value:j,disabled:g,name:x,optionType:b,block:E}),[B,j,g,x,b,E]);return D(l.createElement("div",Object.assign({},Sr(e,{aria:!0,data:!0}),{className:k,style:C,onMouseEnter:N,onMouseLeave:I,onFocus:M,onBlur:T,id:S,ref:t}),l.createElement(bW,{value:U},G)))}),TW=l.memo(MW);var jW=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PW=(e,t)=>{const{getPrefixCls:n}=l.useContext(Rt),{prefixCls:r}=e,a=jW(e,["prefixCls"]),i=n("radio",r);return l.createElement(yW,{value:"button"},l.createElement(cv,Object.assign({prefixCls:i},a,{type:"radio",ref:t})))},DW=l.forwardRef(PW),no=cv;no.Button=DW;no.Group=TW;no.__ANT_RADIO=!0;function is(e){return rn(e,{inputAffixPadding:e.paddingXXS})}const ls=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:i,controlHeightLG:c,fontSizeLG:u,lineHeightLG:d,paddingSM:f,controlPaddingHorizontalSM:v,controlPaddingHorizontal:g,colorFillAlter:p,colorPrimaryHover:y,colorPrimary:C,controlOutlineWidth:S,controlOutline:b,colorErrorOutline:x,colorWarningOutline:$,colorBgContainer:w,inputFontSize:E,inputFontSizeLG:O,inputFontSizeSM:N}=e,I=E||n,M=N||I,T=O||u,j=Math.round((t-I*r)/2*10)/10-a,_=Math.round((i-M*r)/2*10)/10-a,B=Math.ceil((c-T*d)/2*10)/10-a;return{paddingBlock:Math.max(j,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(B,0),paddingInline:f-a,paddingInlineSM:v-a,paddingInlineLG:g-a,addonBg:p,activeBorderColor:C,hoverBorderColor:y,activeShadow:`0 0 0 ${S}px ${b}`,errorActiveShadow:`0 0 0 ${S}px ${x}`,warningActiveShadow:`0 0 0 ${S}px ${$}`,hoverBg:w,activeBg:w,inputFontSize:I,inputFontSizeLG:T,inputFontSizeSM:M}},_W=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ug=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({},_W(rn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),$C=(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}}),xE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$C(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),wC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$C(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ug(e))}),xE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),$E=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),D4=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},$E(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),$E(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ug(e))}})}),EC=(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)}},_4=(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}}},wE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},_4(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),OC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_4(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ug(e))}),wE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),wE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),EE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),z4=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},EE(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),EE(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),A4=(e,t)=>({background:e.colorBgContainer,borderWidth:`${re(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}}),OE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},A4(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`}}),RC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A4(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"}}),OE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),OE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),IC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),B4=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${re(t)} ${re(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},NC=e=>({padding:`${re(e.paddingBlockSM)} ${re(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ad=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${re(e.paddingBlock)} ${re(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},IC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},B4(e)),"&-sm":Object.assign({},NC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),L4=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({},B4(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},NC(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 ${re(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${re(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${re(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:`${re(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${re(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"},ko()),{[`${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},[`
|
|
288
|
+
& > ${t}-affix-wrapper,
|
|
289
|
+
& > ${t}-number-affix-wrapper,
|
|
290
|
+
& > ${n}-picker-range
|
|
291
|
+
`]:{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,
|
|
292
|
+
& > ${n}-select-auto-complete ${t},
|
|
293
|
+
& > ${n}-cascader-picker ${t},
|
|
294
|
+
& > ${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,
|
|
295
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
296
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
297
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
298
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
299
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
300
|
+
& > ${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}}}})}},zW=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,c=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),Ad(e)),wC(e)),OC(e)),EC(e)),RC(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:c,paddingBottom:c}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},AW=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 ${re(e.inputAffixPadding)}`}}}},BW=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:i,colorIconHover:c,iconCls:u}=e,d=`${t}-affix-wrapper`,f=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},Ad(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}}}),AW(e)),{[`${u}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}}),[`${t}-underlined`]:{borderRadius:0},[f]:{[`${u}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},LW=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},fn(e)),L4(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}}},D4(e)),z4(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}}})})}},kW=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,
|
|
301
|
+
> ${t},
|
|
302
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},HW=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},k4=ln(["Input","Shared"],e=>{const t=rn(e,is(e));return[zW(t),BW(t)]},ls,{resetFont:!1}),H4=ln(["Input","Component"],e=>{const t=rn(e,is(e));return[LW(t),kW(t),HW(t),rs(t)]},ls,{resetFont:!1}),d0=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",i=lM(e);return[{[`${n}-multiple${a}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:re(i.itemLineHeight)}}}]},FW=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=rn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=rn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[d0(a,"small"),d0(e),d0(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},sM(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},VW=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:i,cellHoverBg:c,lineWidth:u,lineType:d,colorPrimary:f,cellActiveWithRangeBg:v,colorTextLightSolid:g,colorTextDisabled:p,cellBgDisabled:y,colorFillSecondary:C}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:re(r),borderRadius:a,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
303
|
+
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:c}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${re(u)} ${d} ${f}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
|
|
304
|
+
&-in-view${t}-range-start,
|
|
305
|
+
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:v}},[`&-in-view${t}-selected,
|
|
306
|
+
&-in-view${t}-range-start,
|
|
307
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:g,background:f},[`&${t}-disabled ${n}`]:{background:C}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:y}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},WW=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:i,cellWidth:c,paddingSM:u,paddingXS:d,paddingXXS:f,colorBgContainer:v,lineWidth:g,lineType:p,borderRadiusLG:y,colorPrimary:C,colorTextHeading:S,colorSplit:b,pickerControlIconBorderWidth:x,colorIcon:$,textHeight:w,motionDurationMid:E,colorIconHover:O,fontWeightStrong:N,cellHeight:I,pickerCellPaddingVertical:M,colorTextDisabled:T,colorText:j,fontSize:_,motionDurationSlow:B,withoutTimeCellHeight:H,pickerQuarterPanelContentHeight:A,borderRadiusSM:F,colorTextLightSolid:D,cellHoverBg:L,timeColumnHeight:W,timeColumnWidth:G,timeCellHeight:V,controlItemBgActive:k,marginXXS:U,pickerDatePanelPaddingHorizontal:K,pickerControlIconMargin:q}=e,Z=e.calc(c).mul(7).add(e.calc(K).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:v,borderRadius:y,outline:"none","&-focused":{borderColor:C},"&-rtl":{[`${t}-prev-icon,
|
|
308
|
+
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
309
|
+
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Z},"&-header":{display:"flex",padding:`0 ${re(d)}`,color:S,borderBottom:`${re(g)} ${p} ${b}`,"> *":{flex:"none"},button:{padding:0,color:$,lineHeight:re(w),background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:O},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:N,lineHeight:re(w),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:d},"&:hover":{color:C}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:e.calc(I).add(e.calc(M).mul(2)).equal(),color:j,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${re(M)} 0`,color:T,cursor:"pointer","&-in-view":{color:j}},VW(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(H).mul(4).equal()},[r]:{padding:`0 ${re(d)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${re(e.calc(d).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${re(d)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${re(d)} ${re(K)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${E}`},"&:first-child:before":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child:before":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td:before":{background:L},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:C},[`&${t}-cell-week`]:{color:new pn(D).setA(.5).toHexString()},[r]:{color:D}}},"&-range-hover td:before":{background:k}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${re(d)} ${re(u)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${re(g)} ${p} ${b}`},[`${t}-date-panel,
|
|
310
|
+
${t}-time-panel`]:{transition:`opacity ${B}`},"&-active":{[`${t}-date-panel,
|
|
311
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:W},"&-column":{flex:"1 0 auto",width:G,margin:`${re(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${E}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${re(V)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${re(g)} ${p} ${b}`},"&-active":{background:new pn(k).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:U,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(G).sub(e.calc(U).mul(2)).equal(),height:V,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(G).sub(V).div(2).equal(),color:j,lineHeight:re(V),borderRadius:F,cursor:"pointer",transition:`background ${E}`,"&:hover":{background:L}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:k}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:"transparent",cursor:"not-allowed"}}}}}}}}},KW=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:i,colorPrimary:c,cellActiveWithRangeBg:u,colorPrimaryBorder:d,lineType:f,colorSplit:v}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${re(r)} ${f} ${v}`,"&-extra":{padding:`0 ${re(a)}`,lineHeight:re(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${re(r)} ${f} ${v}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:re(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:re(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:c,background:u,borderColor:d,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},UW=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},qW=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:i,lineWidth:c}=e,u=i*2,d=c*2,f=Math.min(n-u,n-d),v=Math.min(r-u,r-d),g=Math.min(a-u,a-d);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new pn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new pn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightSM:v,multipleItemHeightLG:g,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},GW=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ls(e)),qW(e)),Zv(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),XW=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},wC(e)),RC(e)),OC(e)),EC(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},f0=(e,t)=>({padding:`${re(e)} ${re(t)}`}),YW=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},QW=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:i,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorTextDisabled:v,colorTextPlaceholder:g,colorTextQuaternary:p,fontSizeLG:y,inputFontSizeLG:C,fontSizeSM:S,inputFontSizeSM:b,controlHeightSM:x,paddingInlineSM:$,paddingXS:w,marginXS:E,colorIcon:O,lineWidthBold:N,colorPrimary:I,motionDurationSlow:M,zIndexPopup:T,paddingXXS:j,sizePopupArrow:_,colorBgElevated:B,borderRadiusLG:H,boxShadowSecondary:A,borderRadiusSM:F,colorSplit:D,cellHoverBg:L,presetsWidth:W,presetsMaxWidth:G,boxShadowPopoverArrow:V,fontHeight:k,lineHeightLG:U}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},fn(e)),f0(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`},IC(g)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:v,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:g}}},"&-large":Object.assign(Object.assign({},f0(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:C??y,lineHeight:U}}),"&-small":Object.assign(Object.assign({},f0(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:b??S}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(w).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:E}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:p,fontSize:y,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:O},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:N,background:I,opacity:0,transition:`all ${M} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${re(w)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:$}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},fn(e)),WW(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
|
312
|
+
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
313
|
+
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
314
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
315
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
316
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Av},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
317
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
318
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
319
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:_v},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
320
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Bv},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
321
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:zv},[`${n}-panel > ${n}-time-panel`]:{paddingTop:j},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${M} ease-out`},yM(e,B,V)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:B,borderRadius:H,boxShadow:A,transition:`margin ${M}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:W,maxWidth:G,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:w,borderInlineEnd:`${re(i)} ${c} ${D}`,li:Object.assign(Object.assign({},io),{borderRadius:F,paddingInline:w,paddingBlock:e.calc(x).sub(k).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:E},"&:hover":{background:L}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${re(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Vo(e,"slide-up"),Vo(e,"slide-down"),pc(e,"move-up"),pc(e,"move-down")]},F4=ln("DatePicker",e=>{const t=rn(is(e),UW(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[KW(t),QW(t),XW(t),YW(t),FW(t),rs(e,{focusElCls:`${e.componentCls}-focused`})]},GW);var ZW={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"},JW=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:ZW}))},Lo=l.forwardRef(JW);const dg=l.createContext(null);var eK=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,i=t.indicator,c=i===void 0?{}:i,u=c.size,d=c.align,f=d===void 0?"center":d,v=l.useState(),g=me(v,2),p=g[0],y=g[1],C=l.useRef(),S=ve.useCallback(function(x){return typeof u=="function"?u(x):typeof u=="number"?u:x},[u]);function b(){Gt.cancel(C.current)}return l.useEffect(function(){var x={};if(n)if(r){x.width=S(n.width);var $=a?"right":"left";f==="start"&&(x[$]=n[$]),f==="center"&&(x[$]=n[$]+n.width/2,x.transform=a?"translateX(50%)":"translateX(-50%)"),f==="end"&&(x[$]=n[$]+n.width,x.transform="translateX(-100%)")}else x.height=S(n.height),f==="start"&&(x.top=n.top),f==="center"&&(x.top=n.top+n.height/2,x.transform="translateY(-50%)"),f==="end"&&(x.top=n.top+n.height,x.transform="translateY(-100%)");return b(),C.current=Gt(function(){var w=p&&x&&Object.keys(x).every(function(E){var O=x[E],N=p[E];return typeof O=="number"&&typeof N=="number"?Math.round(O)===Math.round(N):O===N});w||y(x)}),b},[JSON.stringify(n),r,a,f,S]),{style:p}},RE={width:0,height:0,left:0,top:0};function tK(e,t,n){return l.useMemo(function(){for(var r,a=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||RE,c=i.left+i.width,u=0;u<e.length;u+=1){var d=e[u].key,f=t.get(d);if(!f){var v;f=t.get((v=e[u-1])===null||v===void 0?void 0:v.key)||RE}var g=a.get(d)||ae({},f);g.right=c-g.left-g.width,a.set(d,g)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function IE(e,t){var n=l.useRef(e),r=l.useState({}),a=me(r,2),i=a[1];function c(u){var d=typeof u=="function"?u(n.current):u;d!==n.current&&t(d,n.current),n.current=d,i({})}return[n.current,c]}var nK=.1,NE=.01,Fm=20,ME=Math.pow(.995,Fm);function rK(e,t){var n=l.useState(),r=me(n,2),a=r[0],i=r[1],c=l.useState(0),u=me(c,2),d=u[0],f=u[1],v=l.useState(0),g=me(v,2),p=g[0],y=g[1],C=l.useState(),S=me(C,2),b=S[0],x=S[1],$=l.useRef();function w(T){var j=T.touches[0],_=j.screenX,B=j.screenY;i({x:_,y:B}),window.clearInterval($.current)}function E(T){if(a){var j=T.touches[0],_=j.screenX,B=j.screenY;i({x:_,y:B});var H=_-a.x,A=B-a.y;t(H,A);var F=Date.now();f(F),y(F-d),x({x:H,y:A})}}function O(){if(a&&(i(null),x(null),b)){var T=b.x/p,j=b.y/p,_=Math.abs(T),B=Math.abs(j);if(Math.max(_,B)<nK)return;var H=T,A=j;$.current=window.setInterval(function(){if(Math.abs(H)<NE&&Math.abs(A)<NE){window.clearInterval($.current);return}H*=ME,A*=ME,t(H*Fm,A*Fm)},Fm)}}var N=l.useRef();function I(T){var j=T.deltaX,_=T.deltaY,B=0,H=Math.abs(j),A=Math.abs(_);H===A?B=N.current==="x"?j:_:H>A?(B=j,N.current="x"):(B=_,N.current="y"),t(-B,-B)&&T.preventDefault()}var M=l.useRef(null);M.current={onTouchStart:w,onTouchMove:E,onTouchEnd:O,onWheel:I},l.useEffect(function(){function T(H){M.current.onTouchStart(H)}function j(H){M.current.onTouchMove(H)}function _(H){M.current.onTouchEnd(H)}function B(H){M.current.onWheel(H)}return document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",_,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",B,{passive:!1}),function(){document.removeEventListener("touchmove",j),document.removeEventListener("touchend",_)}},[])}function V4(e){var t=l.useState(0),n=me(t,2),r=n[0],a=n[1],i=l.useRef(0),c=l.useRef();return c.current=e,Vl(function(){var u;(u=c.current)===null||u===void 0||u.call(c)},[r]),function(){i.current===r&&(i.current+=1,a(i.current))}}function aK(e){var t=l.useRef([]),n=l.useState({}),r=me(n,2),a=r[1],i=l.useRef(typeof e=="function"?e():e),c=V4(function(){var d=i.current;t.current.forEach(function(f){d=f(d)}),t.current=[],i.current=d,a({})});function u(d){t.current.push(d),c()}return[i.current,u]}var TE={width:0,height:0,left:0,top:0,right:0};function oK(e,t,n,r,a,i,c){var u=c.tabs,d=c.tabPosition,f=c.rtl,v,g,p;return["top","bottom"].includes(d)?(v="width",g=f?"right":"left",p=Math.abs(n)):(v="height",g="top",p=-n),l.useMemo(function(){if(!u.length)return[0,0];for(var y=u.length,C=y,S=0;S<y;S+=1){var b=e.get(u[S].key)||TE;if(Math.floor(b[g]+b[v])>Math.floor(p+t)){C=S-1;break}}for(var x=0,$=y-1;$>=0;$-=1){var w=e.get(u[$].key)||TE;if(w[g]<p){x=$+1;break}}return x>C?[0,-1]:[x,C]},[e,t,r,a,i,p,d,u.map(function(y){return y.key}).join("_"),f])}function jE(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var iK="TABS_DQ";function W4(e){return String(e).replace(/"/g,iK)}function MC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var K4=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),PE=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var i,c={};return $t(a)==="object"&&!l.isValidElement(a)?c=a:c.right=a,n==="right"&&(i=c.right),n==="left"&&(i=c.left),i?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),lK=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,i=e.locale,c=e.mobile,u=e.more,d=u===void 0?{}:u,f=e.style,v=e.className,g=e.editable,p=e.tabBarGutter,y=e.rtl,C=e.removeAriaLabel,S=e.onTabClick,b=e.getPopupContainer,x=e.popupClassName,$=l.useState(!1),w=me($,2),E=w[0],O=w[1],N=l.useState(null),I=me(N,2),M=I[0],T=I[1],j=d.icon,_=j===void 0?"More":j,B="".concat(r,"-more-popup"),H="".concat(n,"-dropdown"),A=M!==null?"".concat(B,"-").concat(M):null,F=i==null?void 0:i.dropdownAriaLabel;function D(K,q){K.preventDefault(),K.stopPropagation(),g.onEdit("remove",{key:q,event:K})}var L=l.createElement(jc,{onClick:function(q){var Z=q.key,X=q.domEvent;S(Z,X),O(!1)},prefixCls:"".concat(H,"-menu"),id:B,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[M],"aria-label":F!==void 0?F:"expanded dropdown"},a.map(function(K){var q=K.closable,Z=K.disabled,X=K.closeIcon,ee=K.key,te=K.label,oe=MC(q,X,g,Z);return l.createElement(_d,{key:ee,id:"".concat(B,"-").concat(ee),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ee),disabled:Z},l.createElement("span",null,te),oe&&l.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(H,"-menu-item-remove"),onClick:function(ne){ne.stopPropagation(),D(ne,ee)}},X||g.removeIcon||"×"))}));function W(K){for(var q=a.filter(function(oe){return!oe.disabled}),Z=q.findIndex(function(oe){return oe.key===M})||0,X=q.length,ee=0;ee<X;ee+=1){Z=(Z+K+X)%X;var te=q[Z];if(!te.disabled){T(te.key);return}}}function G(K){var q=K.which;if(!E){[at.DOWN,at.SPACE,at.ENTER].includes(q)&&(O(!0),K.preventDefault());return}switch(q){case at.UP:W(-1),K.preventDefault();break;case at.DOWN:W(1),K.preventDefault();break;case at.ESC:O(!1);break;case at.SPACE:case at.ENTER:M!==null&&S(M,K);break}}l.useEffect(function(){var K=document.getElementById(A);K&&K.scrollIntoView&&K.scrollIntoView(!1)},[M]),l.useEffect(function(){E||T(null)},[E]);var V=J({},y?"marginRight":"marginLeft",p);a.length||(V.visibility="hidden",V.order=1);var k=ce(J({},"".concat(H,"-rtl"),y)),U=c?null:l.createElement(NM,xe({prefixCls:H,overlay:L,visible:a.length?E:!1,onVisibleChange:O,overlayClassName:ce(k,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},d),l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:V,"aria-haspopup":"listbox","aria-controls":B,id:"".concat(r,"-more"),"aria-expanded":E,onKeyDown:G},_));return l.createElement("div",{className:ce("".concat(n,"-nav-operations"),v),style:f,ref:t},U,l.createElement(K4,{prefixCls:n,locale:i,editable:g}))});const sK=l.memo(lK,function(e,t){return t.tabMoving});var cK=function(t){var n=t.prefixCls,r=t.id,a=t.active,i=t.focus,c=t.tab,u=c.key,d=c.label,f=c.disabled,v=c.closeIcon,g=c.icon,p=t.closable,y=t.renderWrapper,C=t.removeAriaLabel,S=t.editable,b=t.onClick,x=t.onFocus,$=t.onBlur,w=t.onKeyDown,E=t.onMouseDown,O=t.onMouseUp,N=t.style,I=t.tabCount,M=t.currentPosition,T="".concat(n,"-tab"),j=MC(p,v,S,f);function _(D){f||b(D)}function B(D){D.preventDefault(),D.stopPropagation(),S.onEdit("remove",{key:u,event:D})}var H=l.useMemo(function(){return g&&typeof d=="string"?l.createElement("span",null,d):d},[d,g]),A=l.useRef(null);l.useEffect(function(){i&&A.current&&A.current.focus()},[i]);var F=l.createElement("div",{key:u,"data-node-key":W4(u),className:ce(T,J(J(J(J({},"".concat(T,"-with-remove"),j),"".concat(T,"-active"),a),"".concat(T,"-disabled"),f),"".concat(T,"-focus"),i)),style:N,onClick:_},l.createElement("div",{ref:A,role:"tab","aria-selected":a,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(T,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":f,tabIndex:f?null:a?0:-1,onClick:function(L){L.stopPropagation(),_(L)},onKeyDown:w,onMouseDown:E,onMouseUp:O,onFocus:x,onBlur:$},i&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(M," of ").concat(I)),g&&l.createElement("span",{className:"".concat(T,"-icon")},g),d&&H),j&&l.createElement("button",{type:"button",role:"tab","aria-label":C||"remove",tabIndex:a?0:-1,className:"".concat(T,"-remove"),onClick:function(L){L.stopPropagation(),B(L)}},v||S.removeIcon||"×"));return y?y(F):F},uK=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,i=t.offsetTop,c=t.offsetLeft,u=t.getBoundingClientRect(),d=u.width,f=u.height,v=u.left,g=u.top;return Math.abs(d-r)<1?[d,f,v-n.left,g-n.top]:[r,a,c,i]},Qs=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,i=n.offsetHeight,c=i===void 0?0:i;if(t.current){var u=t.current.getBoundingClientRect(),d=u.width,f=u.height;if(Math.abs(d-a)<1)return[d,f]}return[a,c]},mm=function(t,n){return t[n?0:1]},DE=l.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,i=e.animated,c=e.activeKey,u=e.rtl,d=e.extra,f=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,y=e.children,C=e.onTabClick,S=e.onTabScroll,b=e.indicator,x=l.useContext(dg),$=x.prefixCls,w=x.tabs,E=l.useRef(null),O=l.useRef(null),N=l.useRef(null),I=l.useRef(null),M=l.useRef(null),T=l.useRef(null),j=l.useRef(null),_=g==="top"||g==="bottom",B=IE(0,function(Qe,ct){_&&S&&S({direction:Qe>ct?"left":"right"})}),H=me(B,2),A=H[0],F=H[1],D=IE(0,function(Qe,ct){!_&&S&&S({direction:Qe>ct?"top":"bottom"})}),L=me(D,2),W=L[0],G=L[1],V=l.useState([0,0]),k=me(V,2),U=k[0],K=k[1],q=l.useState([0,0]),Z=me(q,2),X=Z[0],ee=Z[1],te=l.useState([0,0]),oe=me(te,2),le=oe[0],ne=oe[1],Q=l.useState([0,0]),ie=me(Q,2),ue=ie[0],de=ie[1],se=aK(new Map),ge=me(se,2),he=ge[0],Oe=ge[1],Re=tK(w,he,X[0]),pe=mm(U,_),Ie=mm(X,_),we=mm(le,_),ye=mm(ue,_),ze=Math.floor(pe)<Math.floor(Ie+we),Ae=ze?pe-ye:pe-we,Ye="".concat($,"-nav-operations-hidden"),Ke=0,Fe=0;_&&u?(Ke=0,Fe=Math.max(0,Ie-Ae)):(Ke=Math.min(0,Ae-Ie),Fe=0);function Ge(Qe){return Qe<Ke?Ke:Qe>Fe?Fe:Qe}var je=l.useRef(null),$e=l.useState(),_e=me($e,2),Ee=_e[0],Pe=_e[1];function be(){Pe(Date.now())}function Se(){je.current&&clearTimeout(je.current)}rK(I,function(Qe,ct){function Tt(Vt,mt){Vt(function(Ot){var kt=Ge(Ot+mt);return kt})}return ze?(_?Tt(F,Qe):Tt(G,ct),Se(),be(),!0):!1}),l.useEffect(function(){return Se(),Ee&&(je.current=setTimeout(function(){Pe(0)},100)),Se},[Ee]);var Me=oK(Re,Ae,_?A:W,Ie,we,ye,ae(ae({},e),{},{tabs:w})),ke=me(Me,2),et=ke[0],ht=ke[1],We=qt(function(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ct=Re.get(Qe)||{width:0,height:0,left:0,right:0,top:0};if(_){var Tt=A;u?ct.right<A?Tt=ct.right:ct.right+ct.width>A+Ae&&(Tt=ct.right+ct.width-Ae):ct.left<-A?Tt=-ct.left:ct.left+ct.width>-A+Ae&&(Tt=-(ct.left+ct.width-Ae)),G(0),F(Ge(Tt))}else{var Vt=W;ct.top<-W?Vt=-ct.top:ct.top+ct.height>-W+Ae&&(Vt=-(ct.top+ct.height-Ae)),F(0),G(Ge(Vt))}}),tt=l.useState(),ut=me(tt,2),rt=ut[0],gt=ut[1],Mt=l.useState(!1),xt=me(Mt,2),st=xt[0],Ct=xt[1],bt=w.filter(function(Qe){return!Qe.disabled}).map(function(Qe){return Qe.key}),Je=function(ct){var Tt=bt.indexOf(rt||c),Vt=bt.length,mt=(Tt+ct+Vt)%Vt,Ot=bt[mt];gt(Ot)},Ve=function(ct,Tt){var Vt=bt.indexOf(ct),mt=w.find(function(kt){return kt.key===ct}),Ot=MC(mt==null?void 0:mt.closable,mt==null?void 0:mt.closeIcon,f,mt==null?void 0:mt.disabled);Ot&&(Tt.preventDefault(),Tt.stopPropagation(),f.onEdit("remove",{key:ct,event:Tt}),Vt===bt.length-1?Je(-1):Je(1))},Ue=function(ct,Tt){Ct(!0),Tt.button===1&&Ve(ct,Tt)},ft=function(ct){var Tt=ct.code,Vt=u&&_,mt=bt[0],Ot=bt[bt.length-1];switch(Tt){case"ArrowLeft":{_&&Je(Vt?1:-1);break}case"ArrowRight":{_&&Je(Vt?-1:1);break}case"ArrowUp":{ct.preventDefault(),_||Je(-1);break}case"ArrowDown":{ct.preventDefault(),_||Je(1);break}case"Home":{ct.preventDefault(),gt(mt);break}case"End":{ct.preventDefault(),gt(Ot);break}case"Enter":case"Space":{ct.preventDefault(),C(rt??c,ct);break}case"Backspace":case"Delete":{Ve(rt,ct);break}}},It={};_?It[u?"marginRight":"marginLeft"]=p:It.marginTop=p;var Et=w.map(function(Qe,ct){var Tt=Qe.key;return l.createElement(cK,{id:a,prefixCls:$,key:Tt,tab:Qe,style:ct===0?void 0:It,closable:Qe.closable,editable:f,active:Tt===c,focus:Tt===rt,renderWrapper:y,removeAriaLabel:v==null?void 0:v.removeAriaLabel,tabCount:bt.length,currentPosition:ct+1,onClick:function(mt){C(Tt,mt)},onKeyDown:ft,onFocus:function(){st||gt(Tt),We(Tt),be(),I.current&&(u||(I.current.scrollLeft=0),I.current.scrollTop=0)},onBlur:function(){gt(void 0)},onMouseDown:function(mt){return Ue(Tt,mt)},onMouseUp:function(){Ct(!1)}})}),Ht=function(){return Oe(function(){var ct,Tt=new Map,Vt=(ct=M.current)===null||ct===void 0?void 0:ct.getBoundingClientRect();return w.forEach(function(mt){var Ot,kt=mt.key,Sn=(Ot=M.current)===null||Ot===void 0?void 0:Ot.querySelector('[data-node-key="'.concat(W4(kt),'"]'));if(Sn){var Pn=uK(Sn,Vt),Mn=me(Pn,4),Ln=Mn[0],En=Mn[1],Dn=Mn[2],mr=Mn[3];Tt.set(kt,{width:Ln,height:En,left:Dn,top:mr})}}),Tt})};l.useEffect(function(){Ht()},[w.map(function(Qe){return Qe.key}).join("_")]);var dt=V4(function(){var Qe=Qs(E),ct=Qs(O),Tt=Qs(N);K([Qe[0]-ct[0]-Tt[0],Qe[1]-ct[1]-Tt[1]]);var Vt=Qs(j);ne(Vt);var mt=Qs(T);de(mt);var Ot=Qs(M);ee([Ot[0]-Vt[0],Ot[1]-Vt[1]]),Ht()}),it=w.slice(0,et),Dt=w.slice(ht+1),Wt=[].concat(Te(it),Te(Dt)),en=Re.get(c),Xt=eK({activeTabOffset:en,horizontal:_,indicator:b,rtl:u}),vn=Xt.style;l.useEffect(function(){We()},[c,Ke,Fe,jE(en),jE(Re),_]),l.useEffect(function(){dt()},[u]);var Kt=!!Wt.length,sn="".concat($,"-nav-wrap"),lt,yt,pt,Xe;return _?u?(yt=A>0,lt=A!==Fe):(lt=A<0,yt=A!==Ke):(pt=W<0,Xe=W!==Ke),l.createElement(la,{onResize:dt},l.createElement("div",{ref:bi(t,E),role:"tablist","aria-orientation":_?"horizontal":"vertical",className:ce("".concat($,"-nav"),n),style:r,onKeyDown:function(){be()}},l.createElement(PE,{ref:O,position:"left",extra:d,prefixCls:$}),l.createElement(la,{onResize:dt},l.createElement("div",{className:ce(sn,J(J(J(J({},"".concat(sn,"-ping-left"),lt),"".concat(sn,"-ping-right"),yt),"".concat(sn,"-ping-top"),pt),"".concat(sn,"-ping-bottom"),Xe)),ref:I},l.createElement(la,{onResize:dt},l.createElement("div",{ref:M,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(W,"px)"),transition:Ee?"none":void 0}},Et,l.createElement(K4,{ref:j,prefixCls:$,locale:v,editable:f,style:ae(ae({},Et.length===0?void 0:It),{},{visibility:Kt?"hidden":null})}),l.createElement("div",{className:ce("".concat($,"-ink-bar"),J({},"".concat($,"-ink-bar-animated"),i.inkBar)),style:vn}))))),l.createElement(sK,xe({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:T,prefixCls:$,tabs:Wt,className:!Kt&&Ye,tabMoving:!!Ee})),l.createElement(PE,{ref:N,position:"right",extra:d,prefixCls:$})))}),U4=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.id,c=e.active,u=e.tabKey,d=e.children;return l.createElement("div",{id:i&&"".concat(i,"-panel-").concat(u),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(u),"aria-hidden":!c,style:a,className:ce(n,c&&"".concat(n,"-active"),r),ref:t},d)}),dK=["renderTabBar"],fK=["label","key"],mK=function(t){var n=t.renderTabBar,r=At(t,dK),a=l.useContext(dg),i=a.tabs;if(n){var c=ae(ae({},r),{},{panes:i.map(function(u){var d=u.label,f=u.key,v=At(u,fK);return l.createElement(U4,xe({tab:d,key:f,tabKey:f},v))})});return n(c,DE)}return l.createElement(DE,r)},vK=["key","forceRender","style","className","destroyInactiveTabPane"],gK=function(t){var n=t.id,r=t.activeKey,a=t.animated,i=t.tabPosition,c=t.destroyInactiveTabPane,u=l.useContext(dg),d=u.prefixCls,f=u.tabs,v=a.tabPane,g="".concat(d,"-tabpane");return l.createElement("div",{className:ce("".concat(d,"-content-holder"))},l.createElement("div",{className:ce("".concat(d,"-content"),"".concat(d,"-content-").concat(i),J({},"".concat(d,"-content-animated"),v))},f.map(function(p){var y=p.key,C=p.forceRender,S=p.style,b=p.className,x=p.destroyInactiveTabPane,$=At(p,vK),w=y===r;return l.createElement(Jr,xe({key:y,visible:w,forceRender:C,removeOnLeave:!!(c||x),leavedClassName:"".concat(g,"-hidden")},a.tabPaneMotion),function(E,O){var N=E.style,I=E.className;return l.createElement(U4,xe({},$,{prefixCls:g,id:n,tabKey:y,animated:v,active:w,style:ae(ae({},S),N),className:ce(b,I),ref:O}))})})))};function pK(){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=ae({inkBar:!0},$t(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var hK=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],_E=0,bK=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,i=e.className,c=e.items,u=e.direction,d=e.activeKey,f=e.defaultActiveKey,v=e.editable,g=e.animated,p=e.tabPosition,y=p===void 0?"top":p,C=e.tabBarGutter,S=e.tabBarStyle,b=e.tabBarExtraContent,x=e.locale,$=e.more,w=e.destroyInactiveTabPane,E=e.renderTabBar,O=e.onChange,N=e.onTabClick,I=e.onTabScroll,M=e.getPopupContainer,T=e.popupClassName,j=e.indicator,_=At(e,hK),B=l.useMemo(function(){return(c||[]).filter(function(ue){return ue&&$t(ue)==="object"&&"key"in ue})},[c]),H=u==="rtl",A=pK(g),F=l.useState(!1),D=me(F,2),L=D[0],W=D[1];l.useEffect(function(){W(Gv())},[]);var G=bn(function(){var ue;return(ue=B[0])===null||ue===void 0?void 0:ue.key},{value:d,defaultValue:f}),V=me(G,2),k=V[0],U=V[1],K=l.useState(function(){return B.findIndex(function(ue){return ue.key===k})}),q=me(K,2),Z=q[0],X=q[1];l.useEffect(function(){var ue=B.findIndex(function(se){return se.key===k});if(ue===-1){var de;ue=Math.max(0,Math.min(Z,B.length-1)),U((de=B[ue])===null||de===void 0?void 0:de.key)}X(ue)},[B.map(function(ue){return ue.key}).join("_"),k,Z]);var ee=bn(null,{value:n}),te=me(ee,2),oe=te[0],le=te[1];l.useEffect(function(){n||(le("rc-tabs-".concat(_E)),_E+=1)},[]);function ne(ue,de){N==null||N(ue,de);var se=ue!==k;U(ue),se&&(O==null||O(ue))}var Q={id:oe,activeKey:k,animated:A,tabPosition:y,rtl:H,mobile:L},ie=ae(ae({},Q),{},{editable:v,locale:x,more:$,tabBarGutter:C,onTabClick:ne,onTabScroll:I,extra:b,style:S,panes:null,getPopupContainer:M,popupClassName:T,indicator:j});return l.createElement(dg.Provider,{value:{tabs:B,prefixCls:a}},l.createElement("div",xe({ref:t,id:n,className:ce(a,"".concat(a,"-").concat(y),J(J(J({},"".concat(a,"-mobile"),L),"".concat(a,"-editable"),v),"".concat(a,"-rtl"),H),i)},_),l.createElement(mK,xe({},ie,{renderTabBar:E})),l.createElement(gK,xe({destroyInactiveTabPane:w},Q,{animated:A}))))});const yK={motionAppear:!1,motionEnter:!0,motionLeave:!0};function CK(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({},yK),{motionName:Fo(e,"switch")})),n}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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function xK(e){return e.filter(t=>t)}function $K(e,t){if(e)return e.map(r=>{var a;const i=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=Fr(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:i}=r,c=i||{},{tab:u}=c,d=SK(c,["tab"]);return Object.assign(Object.assign({key:String(a)},d),{label:u})}return null});return xK(n)}const wK=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}`}}}}},[Vo(e,"slide-up"),Vo(e,"slide-down")]]},EK=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${re(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ho(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:re(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:re(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadiusLG)} 0 0 ${re(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 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},OK=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},fn(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:`${re(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({},io),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${re(e.paddingXXS)} ${re(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"}}})}})}},RK=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:c,calc:u}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${re(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
322
|
+
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,
|
|
323
|
+
> 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:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${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:re(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${re(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:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},IK=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:i,horizontalItemPaddingSM:c,horizontalItemPaddingLG:u}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadius)} ${re(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${re(e.borderRadius)} ${re(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadius)} ${re(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadius)} 0 0 ${re(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},NK=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:i,horizontalItemPadding:c,itemSelectedColor:u,itemColor:d}=e,f=`${t}-tab`;return{[f]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${f}-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}},lo(e)),"&:hover":{color:r},[`&${f}-active ${f}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${f}-focus ${f}-btn:focus-visible`]:Ho(e),[`&${f}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${f}-disabled ${f}-btn, &${f}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${f}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${f} + ${f}`]:{margin:{_skip_check_:!0,value:i}}}},MK=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:re(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:re(e.marginXS)},marginLeft:{_skip_check_:!0,value:re(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},TK=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:i,itemActiveColor:c,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(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:a},background:"transparent",border:`${re(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:c}},lo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),NK(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},lo(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"}}}}}},jK=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:i}=e,c=t||i,u=n||a,d=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:u,cardHeightLG:d,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-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}},PK=ln("Tabs",e=>{const t=rn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${re(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${re(e.horizontalItemGutter)}`});return[IK(t),MK(t),RK(t),OK(t),EK(t),TK(t),wK(t)]},jK),DK=()=>null;var _K=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const zK=l.forwardRef((e,t)=>{var n,r,a,i,c,u,d,f,v,g,p;const{type:y,className:C,rootClassName:S,size:b,onEdit:x,hideAdd:$,centered:w,addIcon:E,removeIcon:O,moreIcon:N,more:I,popupClassName:M,children:T,items:j,animated:_,style:B,indicatorSize:H,indicator:A,destroyInactiveTabPane:F,destroyOnHidden:D}=e,L=_K(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:W}=L,{direction:G,tabs:V,getPrefixCls:k,getPopupContainer:U}=l.useContext(Rt),K=k("tabs",W),q=ar(K),[Z,X,ee]=PK(K,q),te=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:te.current}));let oe;y==="editable-card"&&(oe={onEdit:(se,{key:ge,event:he})=>{x==null||x(se==="add"?he:ge,se)},removeIcon:(n=O??(V==null?void 0:V.removeIcon))!==null&&n!==void 0?n:l.createElement(Ro,null),addIcon:(E??(V==null?void 0:V.addIcon))||l.createElement(Lo,null),showAdd:$!==!0});const le=k(),ne=Br(b),Q=$K(j,T),ie=CK(K,_),ue=Object.assign(Object.assign({},V==null?void 0:V.style),B),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(a=V==null?void 0:V.indicator)===null||a===void 0?void 0:a.align,size:(d=(c=(i=A==null?void 0:A.size)!==null&&i!==void 0?i:H)!==null&&c!==void 0?c:(u=V==null?void 0:V.indicator)===null||u===void 0?void 0:u.size)!==null&&d!==void 0?d:V==null?void 0:V.indicatorSize};return Z(l.createElement(bK,Object.assign({ref:te,direction:G,getPopupContainer:U},L,{items:Q,className:ce({[`${K}-${ne}`]:ne,[`${K}-card`]:["card","editable-card"].includes(y),[`${K}-editable-card`]:y==="editable-card",[`${K}-centered`]:w},V==null?void 0:V.className,C,S,X,ee,q),popupClassName:ce(M,X,ee,q),style:ue,editable:oe,more:Object.assign({icon:(p=(g=(v=(f=V==null?void 0:V.more)===null||f===void 0?void 0:f.icon)!==null&&v!==void 0?v:V==null?void 0:V.moreIcon)!==null&&g!==void 0?g:N)!==null&&p!==void 0?p:l.createElement(pC,null),transitionName:`${le}-slide-up`},I),prefixCls:K,animated:ie,indicator:de,destroyInactiveTabPane:D??F})))}),ss=zK;ss.TabPane=DK;var AK=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const q4=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=AK(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=l.useContext(Rt),c=i("card",t),u=ce(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:u}))},BK=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${re(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},ko()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},io),{[`
|
|
324
|
+
> ${n}-typography,
|
|
325
|
+
> ${n}-typography-edit-content
|
|
326
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},LK=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
327
|
+
${re(a)} 0 0 0 ${n},
|
|
328
|
+
0 ${re(a)} 0 0 ${n},
|
|
329
|
+
${re(a)} ${re(a)} 0 0 ${n},
|
|
330
|
+
${re(a)} 0 0 0 ${n} inset,
|
|
331
|
+
0 ${re(a)} 0 0 ${n} inset;
|
|
332
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},kK=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${re(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},ko()),{"& > 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:re(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:re(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${i}`}}})},HK=e=>Object.assign(Object.assign({margin:`${re(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ko()),{"&-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},io),"&-description":{color:e.colorTextDescription}}),FK=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${re(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${re(e.padding)} ${re(a)}`}}},VK=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},WK=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:i,bodyPadding:c,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:BK(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-grid`]:LK(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:kK(e),[`${t}-meta`]:HK(e)}),[`${t}-bordered`]:{border:`${re(e.lineWidth)} ${e.lineType} ${a}`,[`${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:`${re(e.borderRadiusLG)} ${re(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`]:FK(e),[`${t}-loading`]:VK(e),[`${t}-rtl`]:{direction:"rtl"}}},KK=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${re(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},UK=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}},qK=ln("Card",e=>{const t=rn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[WK(t),KK(t)]},UK);var zE=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const GK=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,i)=>{const c=`action-${i}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:c},l.createElement("span",null,a))}))},XK=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,extra:c,headStyle:u={},bodyStyle:d={},title:f,loading:v,bordered:g,variant:p,size:y,type:C,cover:S,actions:b,tabList:x,children:$,activeTabKey:w,defaultActiveTabKey:E,tabBarExtraContent:O,hoverable:N,tabProps:I={},classNames:M,styles:T}=e,j=zE(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:_,direction:B,card:H}=l.useContext(Rt),[A]=fl("card",p,g),F=Re=>{var pe;(pe=e.onTabChange)===null||pe===void 0||pe.call(e,Re)},D=Re=>{var pe;return ce((pe=H==null?void 0:H.classNames)===null||pe===void 0?void 0:pe[Re],M==null?void 0:M[Re])},L=Re=>{var pe;return Object.assign(Object.assign({},(pe=H==null?void 0:H.styles)===null||pe===void 0?void 0:pe[Re]),T==null?void 0:T[Re])},W=l.useMemo(()=>{let Re=!1;return l.Children.forEach($,pe=>{(pe==null?void 0:pe.type)===q4&&(Re=!0)}),Re},[$]),G=_("card",n),[V,k,U]=qK(G),K=l.createElement(ul,{loading:!0,active:!0,paragraph:{rows:4},title:!1},$),q=w!==void 0,Z=Object.assign(Object.assign({},I),{[q?"activeKey":"defaultActiveKey"]:q?w:E,tabBarExtraContent:O});let X;const ee=Br(y),te=!ee||ee==="default"?"large":ee,oe=x?l.createElement(ss,Object.assign({size:te},Z,{className:`${G}-head-tabs`,onChange:F,items:x.map(Re=>{var{tab:pe}=Re,Ie=zE(Re,["tab"]);return Object.assign({label:pe},Ie)})})):null;if(f||c||oe){const Re=ce(`${G}-head`,D("header")),pe=ce(`${G}-head-title`,D("title")),Ie=ce(`${G}-extra`,D("extra")),we=Object.assign(Object.assign({},u),L("header"));X=l.createElement("div",{className:Re,style:we},l.createElement("div",{className:`${G}-head-wrapper`},f&&l.createElement("div",{className:pe,style:L("title")},f),c&&l.createElement("div",{className:Ie,style:L("extra")},c)),oe)}const le=ce(`${G}-cover`,D("cover")),ne=S?l.createElement("div",{className:le,style:L("cover")},S):null,Q=ce(`${G}-body`,D("body")),ie=Object.assign(Object.assign({},d),L("body")),ue=l.createElement("div",{className:Q,style:ie},v?K:$),de=ce(`${G}-actions`,D("actions")),se=b!=null&&b.length?l.createElement(GK,{actionClasses:de,actionStyle:L("actions"),actions:b}):null,ge=xn(j,["onTabChange"]),he=ce(G,H==null?void 0:H.className,{[`${G}-loading`]:v,[`${G}-bordered`]:A!=="borderless",[`${G}-hoverable`]:N,[`${G}-contain-grid`]:W,[`${G}-contain-tabs`]:x==null?void 0:x.length,[`${G}-${ee}`]:ee,[`${G}-type-${C}`]:!!C,[`${G}-rtl`]:B==="rtl"},r,a,k,U),Oe=Object.assign(Object.assign({},H==null?void 0:H.style),i);return V(l.createElement("div",Object.assign({ref:t},ge,{className:he,style:Oe}),X,ne,ue,se))});var YK=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const QK=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:i}=e,c=YK(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=l.useContext(Rt),d=u("card",t),f=ce(`${d}-meta`,n),v=r?l.createElement("div",{className:`${d}-meta-avatar`},r):null,g=a?l.createElement("div",{className:`${d}-meta-title`},a):null,p=i?l.createElement("div",{className:`${d}-meta-description`},i):null,y=g||p?l.createElement("div",{className:`${d}-meta-detail`},g,p):null;return l.createElement("div",Object.assign({},c,{className:f}),v,y)},Xn=XK;Xn.Grid=q4;Xn.Meta=QK;function ZK(e,t,n){var r=n||{},a=r.noTrailing,i=a===void 0?!1:a,c=r.noLeading,u=c===void 0?!1:c,d=r.debounceMode,f=d===void 0?void 0:d,v,g=!1,p=0;function y(){v&&clearTimeout(v)}function C(b){var x=b||{},$=x.upcomingOnly,w=$===void 0?!1:$;y(),g=!w}function S(){for(var b=arguments.length,x=new Array(b),$=0;$<b;$++)x[$]=arguments[$];var w=this,E=Date.now()-p;if(g)return;function O(){p=Date.now(),t.apply(w,x)}function N(){v=void 0}!u&&f&&!v&&O(),y(),f===void 0&&E>e?u?(p=Date.now(),i||(v=setTimeout(f?N:O,e))):O():i!==!0&&(v=setTimeout(f?N:O,f===void 0?e-E:e))}return S.cancel=C,S}function JK(e,t,n){var r={},a=r.atBegin,i=a===void 0?!1:a;return ZK(e,t,{debounceMode:i!==!1})}var _c=l.createContext({}),sc="__rc_cascader_search_mark__",eU=function(t,n,r){var a=r.label,i=a===void 0?"":a;return n.some(function(c){return String(c[i]).toLowerCase().includes(t.toLowerCase())})},tU=function(t,n,r,a){return n.map(function(i){return i[a.label]}).join(" / ")},nU=function(t,n,r,a,i,c){var u=i.filter,d=u===void 0?eU:u,f=i.render,v=f===void 0?tU:f,g=i.limit,p=g===void 0?50:g,y=i.sort;return l.useMemo(function(){var C=[];if(!t)return[];function S(b,x){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;b.forEach(function(w){if(!(!y&&p!==!1&&p>0&&C.length>=p)){var E=[].concat(Te(x),[w]),O=w[r.children],N=$||w.disabled;if((!O||O.length===0||c)&&d(t,E,{label:r.label})){var I;C.push(ae(ae({},w),{},(I={disabled:N},J(I,r.label,v(t,E,a,r)),J(I,sc,E),J(I,r.children,void 0),I)))}O&&S(w[r.children],E,N)}})}return S(n,[]),y&&C.sort(function(b,x){return y(b[sc],x[sc],t,r)}),p!==!1&&p>0?C.slice(0,p):C},[t,n,r,a,v,c,d,y,p])},TC="__RC_CASCADER_SPLIT__",G4="SHOW_PARENT",X4="SHOW_CHILD";function yo(e){return e.join(TC)}function yc(e){return e.map(yo)}function rU(e){return e.split(TC)}function Y4(e){var t=e||{},n=t.label,r=t.value,a=t.children,i=r||"value";return{label:n||"label",value:i,key:i,children:a||"children"}}function qu(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function aU(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Q4(e,t){return e.map(function(n){var r;return(r=n[sc])===null||r===void 0?void 0:r.map(function(a){return a[t.value]})})}function oU(e){return Array.isArray(e)&&Array.isArray(e[0])}function uv(e){return e?oU(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function Z4(e,t,n){var r=new Set(e),a=t();return e.filter(function(i){var c=a[i],u=c?c.parent:null,d=c?c.children:null;return c&&c.node.disabled?!0:n===X4?!(d&&d.some(function(f){return f.key&&r.has(f.key)})):!(u&&!u.node.disabled&&r.has(u.key))})}function Cc(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t,i=[],c=function(){var f,v,g,p=e[u],y=(f=a)===null||f===void 0?void 0:f.findIndex(function(S){var b=S[n.value];return r?String(b)===String(p):b===p}),C=y!==-1?(v=a)===null||v===void 0?void 0:v[y]:null;i.push({value:(g=C==null?void 0:C[n.value])!==null&&g!==void 0?g:p,index:y,option:C}),a=C==null?void 0:C[n.children]},u=0;u<e.length;u+=1)c();return i}const iU=(function(e,t,n,r,a){return l.useMemo(function(){var i=a||function(c){var u=r?c.slice(-1):c,d=" / ";return u.every(function(f){return["string","number"].includes($t(f))})?u.join(d):u.reduce(function(f,v,g){var p=l.isValidElement(v)?l.cloneElement(v,{key:g}):v;return g===0?[p]:[].concat(Te(f),[d,p])},[])};return e.map(function(c){var u,d=Cc(c,t,n),f=i(d.map(function(g){var p,y=g.option,C=g.value;return(p=y==null?void 0:y[n.label])!==null&&p!==void 0?p:C}),d.map(function(g){var p=g.option;return p})),v=yo(c);return{label:f,value:v,key:v,valueCells:c,disabled:(u=d[d.length-1])===null||u===void 0||(u=u.option)===null||u===void 0?void 0:u.disabled}})},[e,t,n,a,r])});function J4(e,t){return l.useCallback(function(n){var r=[],a=[];return n.forEach(function(i){var c=Cc(i,e,t);c.every(function(u){return u.option})?a.push(i):r.push(i)}),[a,r]},[e,t])}function Oa(e,t){return e[t]}var lU=["children"];function e3(e,t){return"".concat(e,"-").concat(t)}function sU(e){return e&&e.type&&e.type.isTreeNode}function Bd(e,t){return e??t}function Sc(e){var t=e||{},n=t.title,r=t._title,a=t.key,i=t.children,c=n||"title";return{title:c,_title:r||[c],key:a||"key",children:i||"children"}}function t3(e){function t(n){var r=Fr(n);return r.map(function(a){if(!sU(a))return Vn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,c=a.props,u=c.children,d=At(c,lU),f=ae({key:i},d),v=t(u);return v.length&&(f.children=v),f}).filter(function(a){return a})}return t(e)}function m0(e,t,n){var r=Sc(n),a=r._title,i=r.key,c=r.children,u=new Set(t===!0?[]:t),d=[];function f(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(p,y){for(var C=e3(g?g.pos:"0",y),S=Bd(p[i],C),b,x=0;x<a.length;x+=1){var $=a[x];if(p[$]!==void 0){b=p[$];break}}var w=Object.assign(xn(p,[].concat(Te(a),[i,c])),{title:b,key:S,parent:g,pos:C,children:null,data:p,isStart:[].concat(Te(g?g.isStart:[]),[y===0]),isEnd:[].concat(Te(g?g.isEnd:[]),[y===v.length-1])});return d.push(w),t===!0||u.has(S)?w.children=f(p[c]||[],w):w.children=[],w})}return f(e),d}function cU(e,t,n){var r={};$t(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,i=a.childrenPropName,c=a.externalGetKey,u=a.fieldNames,d=Sc(u),f=d.key,v=d.children,g=i||v,p;c?typeof c=="string"?p=function(S){return S[c]}:typeof c=="function"&&(p=function(S){return c(S)}):p=function(S,b){return Bd(S[f],b)};function y(C,S,b,x){var $=C?C[g]:e,w=C?e3(b.pos,S):"0",E=C?[].concat(Te(x),[C]):[];if(C){var O=p(C,w),N={node:C,index:S,pos:w,key:O,parentPos:b.node?b.pos:null,level:b.level+1,nodes:E};t(N)}$&&$.forEach(function(I,M){y(I,M,{node:C,pos:w,level:b?b.level+1:-1},E)})}y(null)}function fg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,c=t.childrenPropName,u=t.fieldNames,d=arguments.length>2?arguments[2]:void 0,f=i||d,v={},g={},p={posEntities:v,keyEntities:g};return n&&(p=n(p)||p),cU(e,function(y){var C=y.node,S=y.index,b=y.pos,x=y.key,$=y.parentPos,w=y.level,E=y.nodes,O={node:C,nodes:E,index:S,key:x,pos:b,level:w},N=Bd(x,b);v[b]=O,g[N]=O,O.parent=v[$],O.parent&&(O.parent.children=O.parent.children||[],O.parent.children.push(O)),r&&r(O,p)},{externalGetKey:f,childrenPropName:c,fieldNames:u}),a&&a(p),p}function nd(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,c=t.checkedKeys,u=t.halfCheckedKeys,d=t.dragOverNodeKey,f=t.dropPosition,v=t.keyEntities,g=Oa(v,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:c.indexOf(e)!==-1,halfChecked:u.indexOf(e)!==-1,pos:String(g?g.pos:""),dragOver:d===e&&f===0,dragOverGapTop:d===e&&f===-1,dragOverGapBottom:d===e&&f===1};return p}function Pr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,i=e.loaded,c=e.loading,u=e.halfChecked,d=e.dragOver,f=e.dragOverGapTop,v=e.dragOverGapBottom,g=e.pos,p=e.active,y=e.eventKey,C=ae(ae({},t),{},{expanded:n,selected:r,checked:a,loaded:i,loading:c,halfChecked:u,dragOver:d,dragOverGapTop:f,dragOverGapBottom:v,pos:g,active:p,key:y});return"props"in C||Object.defineProperty(C,"props",{get:function(){return Vn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),C}const uU=(function(e,t){var n=l.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=l.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=fg(e,{fieldNames:t,initWrapper:function(i){return ae(ae({},i),{},{pathKeyEntities:{}})},processEntity:function(i,c){var u=i.nodes.map(function(d){return d[t.value]}).join(TC);c.pathKeyEntities[u]=i,i.key=u}})),n.current.info.pathKeyEntities},[t,e]);return r});function n3(e,t){var n=l.useMemo(function(){return t||[]},[t]),r=uU(n,e),a=l.useCallback(function(i){var c=r();return i.map(function(u){var d=c[u].nodes;return d.map(function(f){return f[e.value]})})},[r,e]);return[n,r,a]}function dU(e){return l.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&$t(e)==="object"&&(t=ae(ae({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function r3(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function fU(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function mU(e,t,n,r){for(var a=new Set(e),i=new Set,c=0;c<=n;c+=1){var u=t.get(c)||new Set;u.forEach(function(g){var p=g.key,y=g.node,C=g.children,S=C===void 0?[]:C;a.has(p)&&!r(y)&&S.filter(function(b){return!r(b.node)}).forEach(function(b){a.add(b.key)})})}for(var d=new Set,f=n;f>=0;f-=1){var v=t.get(f)||new Set;v.forEach(function(g){var p=g.parent,y=g.node;if(!(r(y)||!g.parent||d.has(g.parent.key))){if(r(g.parent.node)){d.add(p.key);return}var C=!0,S=!1;(p.children||[]).filter(function(b){return!r(b.node)}).forEach(function(b){var x=b.key,$=a.has(x);C&&!$&&(C=!1),!S&&($||i.has(x))&&(S=!0)}),C&&a.add(p.key),S&&i.add(p.key),d.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(r3(i,a))}}function vU(e,t,n,r,a){for(var i=new Set(e),c=new Set(t),u=0;u<=r;u+=1){var d=n.get(u)||new Set;d.forEach(function(p){var y=p.key,C=p.node,S=p.children,b=S===void 0?[]:S;!i.has(y)&&!c.has(y)&&!a(C)&&b.filter(function(x){return!a(x.node)}).forEach(function(x){i.delete(x.key)})})}c=new Set;for(var f=new Set,v=r;v>=0;v-=1){var g=n.get(v)||new Set;g.forEach(function(p){var y=p.parent,C=p.node;if(!(a(C)||!p.parent||f.has(p.parent.key))){if(a(p.parent.node)){f.add(y.key);return}var S=!0,b=!1;(y.children||[]).filter(function(x){return!a(x.node)}).forEach(function(x){var $=x.key,w=i.has($);S&&!w&&(S=!1),!b&&(w||c.has($))&&(b=!0)}),S||i.delete(y.key),b&&c.add(y.key),f.add(y.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(r3(c,i))}}function mi(e,t,n,r){var a=[],i;r?i=r:i=fU;var c=new Set(e.filter(function(v){var g=!!Oa(n,v);return g||a.push(v),g})),u=new Map,d=0;Object.keys(n).forEach(function(v){var g=n[v],p=g.level,y=u.get(p);y||(y=new Set,u.set(p,y)),y.add(g),d=Math.max(d,p)}),Vn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var f;return t===!0?f=mU(c,u,d,i):f=vU(c,t.halfCheckedKeys,u,d,i),f}function a3(e,t,n,r,a,i,c,u){return function(d){if(!e)t(d);else{var f=yo(d),v=yc(n),g=yc(r),p=v.includes(f),y=a.some(function(N){return yo(N)===f}),C=n,S=a;if(y&&!p)S=a.filter(function(N){return yo(N)!==f});else{var b=p?v.filter(function(N){return N!==f}):[].concat(Te(v),[f]),x=i(),$;if(p){var w=mi(b,{halfCheckedKeys:g},x);$=w.checkedKeys}else{var E=mi(b,!0,x);$=E.checkedKeys}var O=Z4($,i,u);C=c(O)}t([].concat(Te(S),Te(C)))}}}function o3(e,t,n,r,a){return l.useMemo(function(){var i=a(t),c=me(i,2),u=c[0],d=c[1];if(!e||!t.length)return[u,[],d];var f=yc(u),v=n(),g=mi(f,!0,v),p=g.checkedKeys,y=g.halfCheckedKeys;return[r(p),r(y),d]},[e,t,n,r,a])}var gU=l.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function pU(e){var t,n=e.prefixCls,r=e.checked,a=e.halfChecked,i=e.disabled,c=e.onClick,u=e.disableCheckbox,d=l.useContext(_c),f=d.checkable,v=typeof f!="boolean"?f:null;return l.createElement("span",{className:ce("".concat(n),(t={},J(t,"".concat(n,"-checked"),r),J(t,"".concat(n,"-indeterminate"),!r&&a),J(t,"".concat(n,"-disabled"),i||u),t)),onClick:c},v)}var i3="__cascader_fix_label__";function hU(e){var t=e.prefixCls,n=e.multiple,r=e.options,a=e.activeValue,i=e.prevValuePath,c=e.onToggleOpen,u=e.onSelect,d=e.onActive,f=e.checkedSet,v=e.halfCheckedSet,g=e.loadingKeys,p=e.isSelectable,y=e.disabled,C="".concat(t,"-menu"),S="".concat(t,"-menu-item"),b=l.useContext(_c),x=b.fieldNames,$=b.changeOnSelect,w=b.expandTrigger,E=b.expandIcon,O=b.loadingIcon,N=b.dropdownMenuColumnStyle,I=b.optionRender,M=w==="hover",T=function(B){return y||B},j=l.useMemo(function(){return r.map(function(_){var B,H=_.disabled,A=_.disableCheckbox,F=_[sc],D=(B=_[i3])!==null&&B!==void 0?B:_[x.label],L=_[x.value],W=qu(_,x),G=F?F.map(function(q){return q[x.value]}):[].concat(Te(i),[L]),V=yo(G),k=g.includes(V),U=f.has(V),K=v.has(V);return{disabled:H,label:D,value:L,isLeaf:W,isLoading:k,checked:U,halfChecked:K,option:_,disableCheckbox:A,fullPath:G,fullPathKey:V}})},[r,f,x,v,g,i]);return l.createElement("ul",{className:C,role:"menu"},j.map(function(_){var B,H=_.disabled,A=_.label,F=_.value,D=_.isLeaf,L=_.isLoading,W=_.checked,G=_.halfChecked,V=_.option,k=_.fullPath,U=_.fullPathKey,K=_.disableCheckbox,q=function(){if(!T(H)){var te=Te(k);M&&D&&te.pop(),d(te)}},Z=function(){p(V)&&!T(H)&&u(k,D)},X;return typeof V.title=="string"?X=V.title:typeof A=="string"&&(X=A),l.createElement("li",{key:U,className:ce(S,(B={},J(B,"".concat(S,"-expand"),!D),J(B,"".concat(S,"-active"),a===F||a===U),J(B,"".concat(S,"-disabled"),T(H)),J(B,"".concat(S,"-loading"),L),B)),style:N,role:"menuitemcheckbox",title:X,"aria-checked":W,"data-path-key":U,onClick:function(){q(),!K&&(!n||D)&&Z()},onDoubleClick:function(){$&&c(!1)},onMouseEnter:function(){M&&q()},onMouseDown:function(te){te.preventDefault()}},n&&l.createElement(pU,{prefixCls:"".concat(t,"-checkbox"),checked:W,halfChecked:G,disabled:T(H)||K,disableCheckbox:K,onClick:function(te){K||(te.stopPropagation(),Z())}}),l.createElement("div",{className:"".concat(S,"-content")},I?I(V):A),!L&&E&&!D&&l.createElement("div",{className:"".concat(S,"-expand-icon")},E),L&&O&&l.createElement("div",{className:"".concat(S,"-loading-icon")},O))}))}var bU=function(t,n){var r=l.useContext(_c),a=r.values,i=a[0],c=l.useState([]),u=me(c,2),d=u[0],f=u[1];return l.useEffect(function(){t||f(i||[])},[n,i]),[d,f]};const yU=(function(e,t,n,r,a,i,c){var u=c.direction,d=c.searchValue,f=c.toggleOpen,v=c.open,g=u==="rtl",p=l.useMemo(function(){for(var N=-1,I=t,M=[],T=[],j=r.length,_=Q4(t,n),B=function(L){var W=I.findIndex(function(G,V){return(_[V]?yo(_[V]):G[n.value])===r[L]});if(W===-1)return 1;N=W,M.push(N),T.push(r[L]),I=I[N][n.children]},H=0;H<j&&I&&!B(H);H+=1);for(var A=t,F=0;F<M.length-1;F+=1)A=A[M[F]][n.children];return[T,N,A,_]},[r,n,t]),y=me(p,4),C=y[0],S=y[1],b=y[2],x=y[3],$=function(I){a(I)},w=function(I){var M=b.length,T=S;T===-1&&I<0&&(T=M);for(var j=0;j<M;j+=1){T=(T+I+M)%M;var _=b[T];if(_&&!_.disabled){var B=C.slice(0,-1).concat(x[T]?yo(x[T]):_[n.value]);$(B);return}}},E=function(){if(C.length>1){var I=C.slice(0,-1);$(I)}else f(!1)},O=function(){var I,M=((I=b[S])===null||I===void 0?void 0:I[n.children])||[],T=M.find(function(_){return!_.disabled});if(T){var j=[].concat(Te(C),[T[n.value]]);$(j)}};l.useImperativeHandle(e,function(){return{onKeyDown:function(I){var M=I.which;switch(M){case at.UP:case at.DOWN:{var T=0;M===at.UP?T=-1:M===at.DOWN&&(T=1),T!==0&&w(T);break}case at.LEFT:{if(d)break;g?O():E();break}case at.RIGHT:{if(d)break;g?E():O();break}case at.BACKSPACE:{d||E();break}case at.ENTER:{if(C.length){var j=b[S],_=(j==null?void 0:j[sc])||[];_.length?i(_.map(function(B){return B[n.value]}),_[_.length-1]):i(C,b[S])}break}case at.ESC:f(!1),v&&I.stopPropagation()}},onKeyUp:function(){}}})});var l3=l.forwardRef(function(e,t){var n,r,a,i=e.prefixCls,c=e.multiple,u=e.searchValue,d=e.toggleOpen,f=e.notFoundContent,v=e.direction,g=e.open,p=e.disabled,y=l.useRef(null),C=v==="rtl",S=l.useContext(_c),b=S.options,x=S.values,$=S.halfValues,w=S.fieldNames,E=S.changeOnSelect,O=S.onSelect,N=S.searchOptions,I=S.dropdownPrefixCls,M=S.loadData,T=S.expandTrigger,j=I||i,_=l.useState([]),B=me(_,2),H=B[0],A=B[1],F=function(ue){if(!(!M||u)){var de=Cc(ue,b,w),se=de.map(function(Oe){var Re=Oe.option;return Re}),ge=se[se.length-1];if(ge&&!qu(ge,w)){var he=yo(ue);A(function(Oe){return[].concat(Te(Oe),[he])}),M(se)}}};l.useEffect(function(){H.length&&H.forEach(function(ie){var ue=rU(ie),de=Cc(ue,b,w,!0).map(function(ge){var he=ge.option;return he}),se=de[de.length-1];(!se||se[w.children]||qu(se,w))&&A(function(ge){return ge.filter(function(he){return he!==ie})})})},[b,H,w]);var D=l.useMemo(function(){return new Set(yc(x))},[x]),L=l.useMemo(function(){return new Set(yc($))},[$]),W=bU(c,g),G=me(W,2),V=G[0],k=G[1],U=function(ue){k(ue),F(ue)},K=function(ue){if(p)return!1;var de=ue.disabled,se=qu(ue,w);return!de&&(se||E||c)},q=function(ue,de){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;O(ue),!c&&(de||E&&(T==="hover"||se))&&d(!1)},Z=l.useMemo(function(){return u?N:b},[u,N,b]),X=l.useMemo(function(){for(var ie=[{options:Z}],ue=Z,de=Q4(ue,w),se=function(){var Oe=V[ge],Re=ue.find(function(Ie,we){return(de[we]?yo(de[we]):Ie[w.value])===Oe}),pe=Re==null?void 0:Re[w.children];if(!(pe!=null&&pe.length))return 1;ue=pe,ie.push({options:pe})},ge=0;ge<V.length&&!se();ge+=1);return ie},[Z,V,w]),ee=function(ue,de){K(de)&&q(ue,qu(de,w),!0)};yU(t,Z,w,V,U,ee,{direction:v,searchValue:u,toggleOpen:d,open:g}),l.useEffect(function(){if(!u)for(var ie=0;ie<V.length;ie+=1){var ue,de=V.slice(0,ie+1),se=yo(de),ge=(ue=y.current)===null||ue===void 0?void 0:ue.querySelector('li[data-path-key="'.concat(se.replace(/\\{0,2}"/g,'\\"'),'"]'));ge&&aU(ge)}},[V,u]);var te=!((n=X[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),oe=[(r={},J(r,w.value,"__EMPTY__"),J(r,i3,f),J(r,"disabled",!0),r)],le=ae(ae({},e),{},{multiple:!te&&c,onSelect:q,onActive:U,onToggleOpen:d,checkedSet:D,halfCheckedSet:L,loadingKeys:H,isSelectable:K}),ne=te?[{options:oe}]:X,Q=ne.map(function(ie,ue){var de=V.slice(0,ue),se=V[ue];return l.createElement(hU,xe({key:ue},le,{prefixCls:j,options:ie.options,prevValuePath:de,activeValue:se}))});return l.createElement(gU,{open:g},l.createElement("div",{className:ce("".concat(j,"-menus"),(a={},J(a,"".concat(j,"-menu-empty"),te),J(a,"".concat(j,"-rtl"),C),a)),ref:y},Q))}),CU=l.forwardRef(function(e,t){var n=WN();return l.createElement(l3,xe({},e,n,{ref:t}))});function SU(){}function s3(e){var t,n=e,r=n.prefixCls,a=r===void 0?"rc-cascader":r,i=n.style,c=n.className,u=n.options,d=n.checkable,f=n.defaultValue,v=n.value,g=n.fieldNames,p=n.changeOnSelect,y=n.onChange,C=n.showCheckedStrategy,S=n.loadData,b=n.expandTrigger,x=n.expandIcon,$=x===void 0?">":x,w=n.loadingIcon,E=n.direction,O=n.notFoundContent,N=O===void 0?"Not Found":O,I=n.disabled,M=!!d,T=bn(f,{value:v,postState:uv}),j=me(T,2),_=j[0],B=j[1],H=l.useMemo(function(){return Y4(g)},[JSON.stringify(g)]),A=n3(H,u),F=me(A,3),D=F[0],L=F[1],W=F[2],G=J4(D,H),V=o3(M,_,L,W,G),k=me(V,3),U=k[0],K=k[1],q=k[2],Z=qt(function(ne){if(B(ne),y){var Q=uv(ne),ie=Q.map(function(se){return Cc(se,D,H).map(function(ge){return ge.option})}),ue=M?Q:Q[0],de=M?ie:ie[0];y(ue,de)}}),X=a3(M,Z,U,K,q,L,W,C),ee=qt(function(ne){X(ne)}),te=l.useMemo(function(){return{options:D,fieldNames:H,values:U,halfValues:K,changeOnSelect:p,onSelect:ee,checkable:d,searchOptions:[],dropdownPrefixCls:void 0,loadData:S,expandTrigger:b,expandIcon:$,loadingIcon:w,dropdownMenuColumnStyle:void 0}},[D,H,U,K,p,ee,d,S,b,$,w]),oe="".concat(a,"-panel"),le=!D.length;return l.createElement(_c.Provider,{value:te},l.createElement("div",{className:ce(oe,(t={},J(t,"".concat(oe,"-rtl"),E==="rtl"),J(t,"".concat(oe,"-empty"),le),t),c),style:i},le?N:l.createElement(l3,{prefixCls:a,searchValue:"",multiple:M,toggleOpen:SU,open:!0,direction:E,disabled:I})))}var xU=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Ld=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-cascader":r,i=e.fieldNames,c=e.defaultValue,u=e.value,d=e.changeOnSelect,f=e.onChange,v=e.displayRender,g=e.checkable,p=e.autoClearSearchValue,y=p===void 0?!0:p,C=e.searchValue,S=e.onSearch,b=e.showSearch,x=e.expandTrigger,$=e.options,w=e.dropdownPrefixCls,E=e.loadData,O=e.popupVisible,N=e.open,I=e.popupClassName,M=e.dropdownClassName,T=e.dropdownMenuColumnStyle,j=e.dropdownStyle,_=e.popupPlacement,B=e.placement,H=e.onDropdownVisibleChange,A=e.onPopupVisibleChange,F=e.onOpenChange,D=e.expandIcon,L=D===void 0?">":D,W=e.loadingIcon,G=e.children,V=e.dropdownMatchSelectWidth,k=V===void 0?!1:V,U=e.showCheckedStrategy,K=U===void 0?G4:U,q=e.optionRender,Z=At(e,xU),X=nM(n),ee=!!g,te=bn(c,{value:u,postState:uv}),oe=me(te,2),le=oe[0],ne=oe[1],Q=l.useMemo(function(){return Y4(i)},[JSON.stringify(i)]),ie=n3(Q,$),ue=me(ie,3),de=ue[0],se=ue[1],ge=ue[2],he=bn("",{value:C,postState:function(xt){return xt||""}}),Oe=me(he,2),Re=Oe[0],pe=Oe[1],Ie=function(xt,st){pe(xt),st.source!=="blur"&&S&&S(xt)},we=dU(b),ye=me(we,2),ze=ye[0],Ae=ye[1],Ye=nU(Re,de,Q,w||a,Ae,d||ee),Ke=J4(de,Q),Fe=o3(ee,le,se,ge,Ke),Ge=me(Fe,3),je=Ge[0],$e=Ge[1],_e=Ge[2],Ee=l.useMemo(function(){var Mt=yc(je),xt=Z4(Mt,se,K);return[].concat(Te(_e),Te(ge(xt)))},[je,se,ge,_e,K]),Pe=iU(Ee,de,Q,ee,v),be=qt(function(Mt){if(ne(Mt),f){var xt=uv(Mt),st=xt.map(function(Je){return Cc(Je,de,Q).map(function(Ve){return Ve.option})}),Ct=ee?xt:xt[0],bt=ee?st:st[0];f(Ct,bt)}}),Se=a3(ee,be,je,$e,_e,se,ge,K),Me=qt(function(Mt){(!ee||y)&&pe(""),Se(Mt)}),ke=function(xt,st){if(st.type==="clear"){be([]);return}var Ct=st.values[0],bt=Ct.valueCells;Me(bt)},et=N!==void 0?N:O,ht=M||I,We=B||_,tt=function(xt){F==null||F(xt),H==null||H(xt),A==null||A(xt)},ut=l.useMemo(function(){return{options:de,fieldNames:Q,values:je,halfValues:$e,changeOnSelect:d,onSelect:Me,checkable:g,searchOptions:Ye,dropdownPrefixCls:w,loadData:E,expandTrigger:x,expandIcon:L,loadingIcon:W,dropdownMenuColumnStyle:T,optionRender:q}},[de,Q,je,$e,d,Me,g,Ye,w,E,x,L,W,T,q]),rt=!(Re?Ye:de).length,gt=Re&&Ae.matchInputWidth||rt?{}:{minWidth:"auto"};return l.createElement(_c.Provider,{value:ut},l.createElement(JN,xe({},Z,{ref:t,id:X,prefixCls:a,autoClearSearchValue:y,dropdownMatchSelectWidth:k,dropdownStyle:ae(ae({},gt),j),displayValues:Pe,onDisplayValuesChange:ke,mode:ee?"multiple":void 0,searchValue:Re,onSearch:Ie,showSearch:ze,OptionList:CU,emptyOptions:rt,open:et,dropdownClassName:ht,placement:We,onDropdownVisibleChange:tt,getRawInputElement:function(){return G}})))});Ld.SHOW_PARENT=G4;Ld.SHOW_CHILD=X4;Ld.Panel=s3;function c3(e,t){const{getPrefixCls:n,direction:r,renderEmpty:a}=l.useContext(Rt),i=t||r,c=n("select",e),u=n("cascader",e);return[c,u,i,a]}function u3(e,t){return l.useMemo(()=>t?l.createElement("span",{className:`${e}-checkbox-inner`}):!1,[e,t])}const d3=(e,t,n)=>{let r=n;n||(r=t?l.createElement(bc,null):l.createElement(Xl,null));const a=l.useMemo(()=>l.createElement("span",{className:`${e}-menu-item-loading-icon`},l.createElement($o,{spin:!0})),[e]);return l.useMemo(()=>[r,a],[r,a])},$U=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},fn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},fn(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({},fn(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`]:Ho(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${re(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:`${re(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}})},{[`
|
|
333
|
+
${n}:not(${n}-disabled),
|
|
334
|
+
${t}:not(${t}-disabled)
|
|
335
|
+
`]:{[`&: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}`}}},[`
|
|
336
|
+
${n}-checked:not(${n}-disabled),
|
|
337
|
+
${t}-checked:not(${t}-disabled)
|
|
338
|
+
`]:{[`&: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 jC(e,t){const n=rn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return $U(n)}const f3=ln("Checkbox",(e,{prefixCls:t})=>[jC(t,e)]),m3=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,a=`
|
|
339
|
+
&${r}-expand ${r}-expand-icon,
|
|
340
|
+
${r}-loading-icon
|
|
341
|
+
`;return[jC(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},io),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},wU=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},m3(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},rs(e)]},v3=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},g3=ln("Cascader",wU,v3,{unitless:{optionSelectedFontWeight:!0}}),EU=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[m3(e),{display:"inline-flex",border:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},OU=mI(["Cascader","Panel"],EU,v3);function RU(e){const{prefixCls:t,className:n,multiple:r,rootClassName:a,notFoundContent:i,direction:c,expandIcon:u,disabled:d}=e,f=l.useContext(_r),v=d??f,[g,p,y,C]=c3(t,c),S=ar(p),[b,x,$]=g3(p,S);OU(p);const w=y==="rtl",[E,O]=d3(g,w,u),N=i||(C==null?void 0:C("Cascader"))||l.createElement(Qv,{componentName:"Cascader"}),I=u3(p,r);return b(l.createElement(s3,Object.assign({},e,{checkable:I,prefixCls:p,className:ce(n,x,a,$,S),notFoundContent:N,direction:y,expandIcon:E,loadingIcon:O,disabled:v})))}var IU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const{SHOW_CHILD:NU,SHOW_PARENT:MU}=Ld;function TU(e,t,n){const r=e.toLowerCase().split(t).reduce((c,u,d)=>d===0?[u]:[].concat(Te(c),[t,u]),[]),a=[];let i=0;return r.forEach((c,u)=>{const d=i+c.length;let f=e.slice(i,d);i=d,u%2===1&&(f=l.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${u}`},f)),a.push(f)}),a}const jU=(e,t,n,r)=>{const a=[],i=e.toLowerCase();return t.forEach((c,u)=>{u!==0&&a.push(" / ");let d=c[r.label];const f=typeof d;(f==="string"||f==="number")&&(d=TU(String(d),i,n)),a.push(d)}),a},zc=l.forwardRef((e,t)=>{var n,r,a,i;const{prefixCls:c,size:u,disabled:d,className:f,rootClassName:v,multiple:g,bordered:p=!0,transitionName:y,choiceTransitionName:C="",popupClassName:S,dropdownClassName:b,expandIcon:x,placement:$,showSearch:w,allowClear:E=!0,notFoundContent:O,direction:N,getPopupContainer:I,status:M,showArrow:T,builtinPlacements:j,style:_,variant:B,dropdownRender:H,onDropdownVisibleChange:A,dropdownMenuColumnStyle:F,popupRender:D,dropdownStyle:L,popupMenuColumnStyle:W,onOpenChange:G,styles:V,classNames:k}=e,U=IU(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),K=xn(U,["suffixIcon"]),{getPrefixCls:q,getPopupContainer:Z,className:X,style:ee,classNames:te,styles:oe}=ur("cascader"),{popupOverflow:le}=l.useContext(Rt),{status:ne,hasFeedback:Q,isFormItemInput:ie,feedbackIcon:ue}=l.useContext(zr),de=dl(ne,M),[se,ge,he,Oe]=c3(c,N),Re=he==="rtl",pe=q(),Ie=ar(se),[we,ye,ze]=fM(se,Ie),Ae=ar(ge),[Ye]=g3(ge,Ae),{compactSize:Ke,compactItemClassnames:Fe}=No(se,N),[Ge,je]=fl("cascader",B,p),$e=O||(Oe==null?void 0:Oe("Cascader"))||l.createElement(Qv,{componentName:"Cascader"}),_e=ce(((n=k==null?void 0:k.popup)===null||n===void 0?void 0:n.root)||((r=te.popup)===null||r===void 0?void 0:r.root)||S||b,`${ge}-dropdown`,{[`${ge}-dropdown-rtl`]:he==="rtl"},v,Ie,te.root,k==null?void 0:k.root,Ae,ye,ze),Ee=mM(D||H),Pe=W||F,be=G||A,Se=((a=V==null?void 0:V.popup)===null||a===void 0?void 0:a.root)||((i=oe.popup)===null||i===void 0?void 0:i.root)||L,Me=l.useMemo(()=>{if(!w)return w;let Ve={render:jU};return typeof w=="object"&&(Ve=Object.assign(Object.assign({},Ve),w)),Ve},[w]),ke=Br(Ve=>{var Ue;return(Ue=u??Ke)!==null&&Ue!==void 0?Ue:Ve}),et=l.useContext(_r),ht=d??et,[We,tt]=d3(se,Re,x),ut=u3(ge,g),rt=vM(e.suffixIcon,T),{suffixIcon:gt,removeIcon:Mt,clearIcon:xt}=aC(Object.assign(Object.assign({},e),{hasFeedback:Q,feedbackIcon:ue,showSuffixIcon:rt,multiple:g,prefixCls:se,componentName:"Cascader"})),st=l.useMemo(()=>$!==void 0?$:Re?"bottomRight":"bottomLeft",[$,Re]),Ct=E===!0?{clearIcon:xt}:E,[bt]=Io("SelectLike",Se==null?void 0:Se.zIndex),Je=l.createElement(Ld,Object.assign({prefixCls:se,className:ce(!c&&ge,{[`${se}-lg`]:ke==="large",[`${se}-sm`]:ke==="small",[`${se}-rtl`]:Re,[`${se}-${Ge}`]:je,[`${se}-in-form-item`]:ie},pi(se,de,Q),Fe,X,f,v,k==null?void 0:k.root,te.root,Ie,Ae,ye,ze),disabled:ht,style:Object.assign(Object.assign(Object.assign(Object.assign({},oe.root),V==null?void 0:V.root),ee),_)},K,{builtinPlacements:iM(j,le),direction:he,placement:st,notFoundContent:$e,allowClear:Ct,showSearch:Me,expandIcon:We,suffixIcon:gt,removeIcon:Mt,loadingIcon:tt,checkable:ut,dropdownClassName:_e,dropdownPrefixCls:c||ge,dropdownStyle:Object.assign(Object.assign({},Se),{zIndex:bt}),dropdownRender:Ee,dropdownMenuColumnStyle:Pe,onOpenChange:be,choiceTransitionName:Fo(pe,"",C),transitionName:Fo(pe,"slide-up",y),getPopupContainer:I||Z,ref:t}));return Ye(we(Je))}),PU=Nc(zc,"dropdownAlign",e=>xn(e,["visible"]));zc.SHOW_PARENT=MU;zc.SHOW_CHILD=NU;zc.Panel=RU;zc._InternalPanelDoNotUseOrYouWillBeFired=PU;const p3=ve.createContext(null);var DU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _U=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:i,children:c,indeterminate:u=!1,style:d,onMouseEnter:f,onMouseLeave:v,skipGroup:g=!1,disabled:p}=e,y=DU(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:C,direction:S,checkbox:b}=l.useContext(Rt),x=l.useContext(p3),{isFormItemInput:$}=l.useContext(zr),w=l.useContext(_r),E=(n=(x==null?void 0:x.disabled)||p)!==null&&n!==void 0?n:w,O=l.useRef(y.value),N=l.useRef(null),I=Ar(t,N);l.useEffect(()=>{x==null||x.registerValue(y.value)},[]),l.useEffect(()=>{if(!g)return y.value!==O.current&&(x==null||x.cancelValue(O.current),x==null||x.registerValue(y.value),O.current=y.value),()=>x==null?void 0:x.cancelValue(y.value)},[y.value]),l.useEffect(()=>{var W;!((W=N.current)===null||W===void 0)&&W.input&&(N.current.input.indeterminate=u)},[u]);const M=C("checkbox",r),T=ar(M),[j,_,B]=f3(M,T),H=Object.assign({},y);x&&!g&&(H.onChange=(...W)=>{y.onChange&&y.onChange.apply(y,W),x.toggleOption&&x.toggleOption({label:c,value:y.value})},H.name=x.name,H.checked=x.value.includes(y.value));const A=ce(`${M}-wrapper`,{[`${M}-rtl`]:S==="rtl",[`${M}-wrapper-checked`]:H.checked,[`${M}-wrapper-disabled`]:E,[`${M}-wrapper-in-form-item`]:$},b==null?void 0:b.className,a,i,B,T,_),F=ce({[`${M}-indeterminate`]:u},Pv,_),[D,L]=N4(H.onClick);return j(l.createElement(Od,{component:"Checkbox",disabled:E},l.createElement("label",{className:A,style:Object.assign(Object.assign({},b==null?void 0:b.style),d),onMouseEnter:f,onMouseLeave:v,onClick:D},l.createElement(I4,Object.assign({},H,{onClick:L,prefixCls:M,className:F,disabled:E,ref:I})),c!=null&&l.createElement("span",{className:`${M}-label`},c))))},h3=l.forwardRef(_U);var zU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const AU=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:i,className:c,rootClassName:u,style:d,onChange:f}=e,v=zU(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:p}=l.useContext(Rt),[y,C]=l.useState(v.value||n||[]),[S,b]=l.useState([]);l.useEffect(()=>{"value"in v&&C(v.value||[])},[v.value]);const x=l.useMemo(()=>a.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[a]),$=F=>{b(D=>D.filter(L=>L!==F))},w=F=>{b(D=>[].concat(Te(D),[F]))},E=F=>{const D=y.indexOf(F.value),L=Te(y);D===-1?L.push(F.value):L.splice(D,1),"value"in v||C(L),f==null||f(L.filter(W=>S.includes(W)).sort((W,G)=>{const V=x.findIndex(U=>U.value===W),k=x.findIndex(U=>U.value===G);return V-k}))},O=g("checkbox",i),N=`${O}-group`,I=ar(O),[M,T,j]=f3(O,I),_=xn(v,["value","disabled"]),B=a.length?x.map(F=>l.createElement(h3,{prefixCls:O,key:F.value.toString(),disabled:"disabled"in F?F.disabled:v.disabled,value:F.value,checked:y.includes(F.value),onChange:F.onChange,className:ce(`${N}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):r,H=l.useMemo(()=>({toggleOption:E,value:y,disabled:v.disabled,name:v.name,registerValue:w,cancelValue:$}),[E,y,v.disabled,v.name,w,$]),A=ce(N,{[`${N}-rtl`]:p==="rtl"},c,u,j,I,T);return M(l.createElement("div",Object.assign({className:A,style:d},_,{ref:t}),l.createElement(p3.Provider,{value:H},B)))}),ka=h3;ka.Group=AU;ka.__ANT_CHECKBOX=!0;const b3=l.createContext({});var BU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function AE(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 LU=["xs","sm","md","lg","xl","xxl"],va=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Rt),{gutter:a,wrap:i}=l.useContext(b3),{prefixCls:c,span:u,order:d,offset:f,push:v,pull:g,className:p,children:y,flex:C,style:S}=e,b=BU(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",c),[$,w,E]=D7(x),O={};let N={};LU.forEach(T=>{let j={};const _=e[T];typeof _=="number"?j.span=_:typeof _=="object"&&(j=_||{}),delete b[T],N=Object.assign(Object.assign({},N),{[`${x}-${T}-${j.span}`]:j.span!==void 0,[`${x}-${T}-order-${j.order}`]:j.order||j.order===0,[`${x}-${T}-offset-${j.offset}`]:j.offset||j.offset===0,[`${x}-${T}-push-${j.push}`]:j.push||j.push===0,[`${x}-${T}-pull-${j.pull}`]:j.pull||j.pull===0,[`${x}-rtl`]:r==="rtl"}),j.flex&&(N[`${x}-${T}-flex`]=!0,O[`--${x}-${T}-flex`]=AE(j.flex))});const I=ce(x,{[`${x}-${u}`]:u!==void 0,[`${x}-order-${d}`]:d,[`${x}-offset-${f}`]:f,[`${x}-push-${v}`]:v,[`${x}-pull-${g}`]:g},p,N,w,E),M={};if(a!=null&&a[0]){const T=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;M.paddingLeft=T,M.paddingRight=T}return C&&(M.flex=AE(C),i===!1&&!M.minWidth&&(M.minWidth=0)),$(l.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},M),S),O),className:I,ref:t}),y))});function kU(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((i,c)=>{if(typeof i=="object"&&i!==null)for(let u=0;u<hd.length;u++){const d=hd[u];if(a[d]&&i[d]!==void 0){n[c]=i[d];break}}else n[c]=i}),n}var HU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function BE(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<hd.length;i++){const c=hd[i];if(!t||!t[c])continue;const u=e[c];if(u!==void 0){r(u);return}}};return l.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const dv=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:i,style:c,children:u,gutter:d=0,wrap:f}=e,v=HU(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:p}=l.useContext(Rt),y=oC(!0,null),C=BE(a,y),S=BE(r,y),b=g("row",n),[x,$,w]=P7(b),E=kU(d,y),O=ce(b,{[`${b}-no-wrap`]:f===!1,[`${b}-${S}`]:S,[`${b}-${C}`]:C,[`${b}-rtl`]:p==="rtl"},i,$,w),N={};if(E!=null&&E[0]){const j=typeof E[0]=="number"?`${E[0]/-2}px`:`calc(${E[0]} / -2)`;N.marginLeft=j,N.marginRight=j}const[I,M]=E;N.rowGap=M;const T=l.useMemo(()=>({gutter:[I,M],wrap:f}),[I,M,f]);return x(l.createElement(b3.Provider,{value:T},l.createElement("div",Object.assign({},v,{className:O,style:Object.assign(Object.assign({},N),c),ref:t}),u)))}),FU=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},VU=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:i,orientationMargin:c,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{borderBlockStart:`${re(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${re(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${re(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${re(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:`${re(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${c} * 100%)`},"&::after":{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${c} * 100%)`},"&::after":{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${re(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${re(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,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}}})}},WU=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),KU=ln("Divider",e=>{const t=rn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[VU(t),FU(t)]},WU,{unitless:{orientationMargin:!0}});var UU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const qU={small:"sm",middle:"md"},y3=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=ur("divider"),{prefixCls:i,type:c="horizontal",orientation:u="center",orientationMargin:d,className:f,rootClassName:v,children:g,dashed:p,variant:y="solid",plain:C,style:S,size:b}=e,x=UU(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),$=t("divider",i),[w,E,O]=KU($),N=Br(b),I=qU[N],M=!!g,T=l.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),j=T==="start"&&d!=null,_=T==="end"&&d!=null,B=ce($,r,E,O,`${$}-${c}`,{[`${$}-with-text`]:M,[`${$}-with-text-${T}`]:M,[`${$}-dashed`]:!!p,[`${$}-${y}`]:y!=="solid",[`${$}-plain`]:!!C,[`${$}-rtl`]:n==="rtl",[`${$}-no-default-orientation-margin-start`]:j,[`${$}-no-default-orientation-margin-end`]:_,[`${$}-${I}`]:!!I},f,v),H=l.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),A={marginInlineStart:j?H:void 0,marginInlineEnd:_?H:void 0};return w(l.createElement("div",Object.assign({className:B,style:Object.assign(Object.assign({},a),S)},x,{role:"separator"}),g&&c!=="vertical"&&l.createElement("span",{className:`${$}-inner-text`,style:A},g)))};var GU={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"},XU=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:GU}))},YU=l.forwardRef(XU);function ry(){return typeof BigInt=="function"}function C3(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Kl(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",a=r.split("."),i=a[0]||"0",c=a[1]||"0";i==="0"&&c==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:i,decimalStr:c,fullStr:"".concat(u).concat(r)}}function mg(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function S3(e){var t=e.toLowerCase().split("e"),n=me(t,2),r=n[0],a=n[1],i=a===void 0?"0":a,c=r.startsWith("-"),u=c?r.slice(1):r,d=u.split("."),f=me(d,2),v=f[0],g=v===void 0?"0":v,p=f[1],y=p===void 0?"":p,C="".concat(g).concat(y).replace(/^0+/,"")||"0";return{decimal:y,digits:C,exponent:Number(i),integer:g,negative:c}}function QU(e){var t=e.decimal,n=e.digits,r=e.exponent,a=e.integer,i=e.negative;if(n==="0")return"0";var c=a.replace(/^0+/,"").length,u=(t.match(/^0*/)||[""])[0].length,d=c||-u,f=d+r,v="";return f<=0?v="0.".concat("0".repeat(-f)).concat(n):f>=n.length?v="".concat(n).concat("0".repeat(f-n.length)):v="".concat(n.slice(0,f),".").concat(n.slice(f)),"".concat(i?"-":"").concat(v)}function x3(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function zl(e){var t=String(e);return mg(e)?x3(S3(t)):t.includes(".")&&PC(t)?t.length-t.indexOf(".")-1:0}function vg(e){var t=String(e);if(mg(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ry()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(ry()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=S3(t),r=x3(n);t=r>100?QU(n):e.toFixed(r)}return Kl(t).fullStr}function PC(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 ZU=(function(){function e(t){if(or(this,e),J(this,"origin",""),J(this,"negative",void 0),J(this,"integer",void 0),J(this,"decimal",void 0),J(this,"decimalLen",void 0),J(this,"empty",void 0),J(this,"nan",void 0),C3(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(mg(n)&&(n=Number(n)),n=typeof n=="string"?n:vg(n),PC(n)){var r=Kl(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var i=a[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return ir(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,a){var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),c=this.alignDecimal(i),u=n.alignDecimal(i),d=r(c,u).toString(),f=a(i),v=Kl(d),g=v.negativeStr,p=v.trimStr,y="".concat(g).concat(p.padStart(f+1,"0"));return new e("".concat(y.slice(0,-f),".").concat(y.slice(-f)))}},{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(a,i){return a+i},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,i){return a*i},function(a){return a*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()?"":Kl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),JU=(function(){function e(t){if(or(this,e),J(this,"origin",""),J(this,"number",void 0),J(this,"empty",void 0),C3(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ir(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 a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(zl(this.number),zl(r));return new e(a.toFixed(i))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(zl(this.number),zl(r));return new e(a.toFixed(i))}},{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()?"":mg(this.number)&&zl(this.number)>100?String(this.number):vg(this.number):this.origin}}]),e})();function vo(e){return ry()?new ZU(e):new JU(e)}function Vm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Kl(e),i=a.negativeStr,c=a.integerStr,u=a.decimalStr,d="".concat(t).concat(u),f="".concat(i).concat(c);if(n>=0){var v=Number(u[n]);if(v>=5&&!r){var g=vo(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-v));return Vm(g.toString(),t,n,r)}return n===0?f:"".concat(f).concat(t).concat(u.padEnd(n,"0").slice(0,n))}return d===".0"?f:"".concat(f).concat(d)}function eq(e){return!!(e.addonBefore||e.addonAfter)}function tq(e){return!!(e.prefix||e.suffix||e.allowClear)}function LE(e,t,n){var r=t.cloneNode(!0),a=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)},a}function fv(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=LE(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=LE(t,e,r),n(a);return}n(a)}}function DC(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var _C=ve.forwardRef(function(e,t){var n,r,a,i=e.inputElement,c=e.children,u=e.prefixCls,d=e.prefix,f=e.suffix,v=e.addonBefore,g=e.addonAfter,p=e.className,y=e.style,C=e.disabled,S=e.readOnly,b=e.focused,x=e.triggerFocus,$=e.allowClear,w=e.value,E=e.handleReset,O=e.hidden,N=e.classes,I=e.classNames,M=e.dataAttrs,T=e.styles,j=e.components,_=e.onClear,B=c??i,H=(j==null?void 0:j.affixWrapper)||"span",A=(j==null?void 0:j.groupWrapper)||"span",F=(j==null?void 0:j.wrapper)||"span",D=(j==null?void 0:j.groupAddon)||"span",L=l.useRef(null),W=function(de){var se;(se=L.current)!==null&&se!==void 0&&se.contains(de.target)&&(x==null||x())},G=tq(e),V=l.cloneElement(B,{value:w,className:ce((n=B.props)===null||n===void 0?void 0:n.className,!G&&(I==null?void 0:I.variant))||null}),k=l.useRef(null);if(ve.useImperativeHandle(t,function(){return{nativeElement:k.current||L.current}}),G){var U=null;if($){var K=!C&&!S&&w,q="".concat(u,"-clear-icon"),Z=$t($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";U=ve.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){E==null||E(de),_==null||_()},onMouseDown:function(de){return de.preventDefault()},className:ce(q,J(J({},"".concat(q,"-hidden"),!K),"".concat(q,"-has-suffix"),!!f))},Z)}var X="".concat(u,"-affix-wrapper"),ee=ce(X,J(J(J(J(J({},"".concat(u,"-disabled"),C),"".concat(X,"-disabled"),C),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),S),"".concat(X,"-input-with-clear-btn"),f&&$&&w),N==null?void 0:N.affixWrapper,I==null?void 0:I.affixWrapper,I==null?void 0:I.variant),te=(f||$)&&ve.createElement("span",{className:ce("".concat(u,"-suffix"),I==null?void 0:I.suffix),style:T==null?void 0:T.suffix},U,f);V=ve.createElement(H,xe({className:ee,style:T==null?void 0:T.affixWrapper,onClick:W},M==null?void 0:M.affixWrapper,{ref:L}),d&&ve.createElement("span",{className:ce("".concat(u,"-prefix"),I==null?void 0:I.prefix),style:T==null?void 0:T.prefix},d),V,te)}if(eq(e)){var oe="".concat(u,"-group"),le="".concat(oe,"-addon"),ne="".concat(oe,"-wrapper"),Q=ce("".concat(u,"-wrapper"),oe,N==null?void 0:N.wrapper,I==null?void 0:I.wrapper),ie=ce(ne,J({},"".concat(ne,"-disabled"),C),N==null?void 0:N.group,I==null?void 0:I.groupWrapper);V=ve.createElement(A,{className:ie,ref:k},ve.createElement(F,{className:Q},v&&ve.createElement(D,{className:le},v),V,g&&ve.createElement(D,{className:le},g)))}return ve.cloneElement(V,{className:ce((r=V.props)===null||r===void 0?void 0:r.className,p)||null,style:ae(ae({},(a=V.props)===null||a===void 0?void 0:a.style),y),hidden:O})}),nq=["show"];function $3(e,t){return l.useMemo(function(){var n={};t&&(n.show=$t(t)==="object"&&t.formatter?t.formatter:!!t),n=ae(ae({},n),e);var r=n,a=r.show,i=At(r,nq);return ae(ae({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(c){return c.length}})},[e,t])}var rq=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],aq=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,i=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,d=e.onKeyUp,f=e.prefixCls,v=f===void 0?"rc-input":f,g=e.disabled,p=e.htmlSize,y=e.className,C=e.maxLength,S=e.suffix,b=e.showCount,x=e.count,$=e.type,w=$===void 0?"text":$,E=e.classes,O=e.classNames,N=e.styles,I=e.onCompositionStart,M=e.onCompositionEnd,T=At(e,rq),j=l.useState(!1),_=me(j,2),B=_[0],H=_[1],A=l.useRef(!1),F=l.useRef(!1),D=l.useRef(null),L=l.useRef(null),W=function(ye){D.current&&DC(D.current,ye)},G=bn(e.defaultValue,{value:e.value}),V=me(G,2),k=V[0],U=V[1],K=k==null?"":String(k),q=l.useState(null),Z=me(q,2),X=Z[0],ee=Z[1],te=$3(x,b),oe=te.max||C,le=te.strategy(K),ne=!!oe&&le>oe;l.useImperativeHandle(t,function(){var we;return{focus:W,blur:function(){var ze;(ze=D.current)===null||ze===void 0||ze.blur()},setSelectionRange:function(ze,Ae,Ye){var Ke;(Ke=D.current)===null||Ke===void 0||Ke.setSelectionRange(ze,Ae,Ye)},select:function(){var ze;(ze=D.current)===null||ze===void 0||ze.select()},input:D.current,nativeElement:((we=L.current)===null||we===void 0?void 0:we.nativeElement)||D.current}}),l.useEffect(function(){F.current&&(F.current=!1),H(function(we){return we&&g?!1:we})},[g]);var Q=function(ye,ze,Ae){var Ye=ze;if(!A.current&&te.exceedFormatter&&te.max&&te.strategy(ze)>te.max){if(Ye=te.exceedFormatter(ze,{max:te.max}),ze!==Ye){var Ke,Fe;ee([((Ke=D.current)===null||Ke===void 0?void 0:Ke.selectionStart)||0,((Fe=D.current)===null||Fe===void 0?void 0:Fe.selectionEnd)||0])}}else if(Ae.source==="compositionEnd")return;U(Ye),D.current&&fv(D.current,ye,r,Ye)};l.useEffect(function(){if(X){var we;(we=D.current)===null||we===void 0||we.setSelectionRange.apply(we,Te(X))}},[X]);var ie=function(ye){Q(ye,ye.target.value,{source:"change"})},ue=function(ye){A.current=!1,Q(ye,ye.currentTarget.value,{source:"compositionEnd"}),M==null||M(ye)},de=function(ye){c&&ye.key==="Enter"&&!F.current&&(F.current=!0,c(ye)),u==null||u(ye)},se=function(ye){ye.key==="Enter"&&(F.current=!1),d==null||d(ye)},ge=function(ye){H(!0),a==null||a(ye)},he=function(ye){F.current&&(F.current=!1),H(!1),i==null||i(ye)},Oe=function(ye){U(""),W(),D.current&&fv(D.current,ye,r)},Re=ne&&"".concat(v,"-out-of-range"),pe=function(){var ye=xn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",xe({autoComplete:n},ye,{onChange:ie,onFocus:ge,onBlur:he,onKeyDown:de,onKeyUp:se,className:ce(v,J({},"".concat(v,"-disabled"),g),O==null?void 0:O.input),style:N==null?void 0:N.input,ref:D,size:p,type:w,onCompositionStart:function(Ae){A.current=!0,I==null||I(Ae)},onCompositionEnd:ue}))},Ie=function(){var ye=Number(oe)>0;if(S||te.show){var ze=te.showFormatter?te.showFormatter({value:K,count:le,maxLength:oe}):"".concat(le).concat(ye?" / ".concat(oe):"");return ve.createElement(ve.Fragment,null,te.show&&ve.createElement("span",{className:ce("".concat(v,"-show-count-suffix"),J({},"".concat(v,"-show-count-has-suffix"),!!S),O==null?void 0:O.count),style:ae({},N==null?void 0:N.count)},ze),S)}return null};return ve.createElement(_C,xe({},T,{prefixCls:v,className:ce(y,Re),handleReset:Oe,value:K,focused:B,triggerFocus:W,suffix:Ie(),disabled:g,classes:E,classNames:O,styles:N,ref:L}),pe())});function oq(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var i=r[a];return typeof i=="function"?i.bind(r):i}}):e}function iq(e,t){var n=l.useRef(null);function r(){try{var i=e.selectionStart,c=e.selectionEnd,u=e.value,d=u.substring(0,i),f=u.substring(c);n.current={start:i,end:c,value:u,beforeTxt:d,afterTxt:f}}catch{}}function a(){if(e&&n.current&&t)try{var i=e.value,c=n.current,u=c.beforeTxt,d=c.afterTxt,f=c.start,v=i.length;if(i.startsWith(u))v=u.length;else if(i.endsWith(d))v=i.length-n.current.afterTxt.length;else{var g=u[f-1],p=i.indexOf(g,f-1);p!==-1&&(v=p+1)}e.setSelectionRange(v,v)}catch(y){Vn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(y.message))}}return[r,a]}var lq=function(){var t=l.useState(!1),n=me(t,2),r=n[0],a=n[1];return nn(function(){a(Gv())},[]),r},sq=200,cq=600;function uq(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,i=e.downDisabled,c=e.onStep,u=l.useRef(),d=l.useRef([]),f=l.useRef();f.current=c;var v=function(){clearTimeout(u.current)},g=function(w,E){w.preventDefault(),v(),f.current(E);function O(){f.current(E),u.current=setTimeout(O,sq)}u.current=setTimeout(O,cq)};l.useEffect(function(){return function(){v(),d.current.forEach(function($){return Gt.cancel($)})}},[]);var p=lq();if(p)return null;var y="".concat(t,"-handler"),C=ce(y,"".concat(y,"-up"),J({},"".concat(y,"-up-disabled"),a)),S=ce(y,"".concat(y,"-down"),J({},"".concat(y,"-down-disabled"),i)),b=function(){return d.current.push(Gt(v))},x={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return l.createElement("div",{className:"".concat(y,"-wrap")},l.createElement("span",xe({},x,{onMouseDown:function(w){g(w,!0)},"aria-label":"Increase Value","aria-disabled":a,className:C}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",xe({},x,{onMouseDown:function(w){g(w,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:S}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function kE(e){var t=typeof e=="number"?vg(e):Kl(e).fullStr,n=t.includes(".");return n?Kl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const dq=(function(){var e=l.useRef(0),t=function(){Gt.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=Gt(function(){n()})}});var fq=["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"],mq=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],HE=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},FE=function(t){var n=vo(t);return n.isInvalidate()?null:n},vq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.min,c=e.max,u=e.step,d=u===void 0?1:u,f=e.defaultValue,v=e.value,g=e.disabled,p=e.readOnly,y=e.upHandler,C=e.downHandler,S=e.keyboard,b=e.changeOnWheel,x=b===void 0?!1:b,$=e.controls,w=$===void 0?!0:$;e.classNames;var E=e.stringMode,O=e.parser,N=e.formatter,I=e.precision,M=e.decimalSeparator,T=e.onChange,j=e.onInput,_=e.onPressEnter,B=e.onStep,H=e.changeOnBlur,A=H===void 0?!0:H,F=e.domRef,D=At(e,fq),L="".concat(n,"-input"),W=l.useRef(null),G=l.useState(!1),V=me(G,2),k=V[0],U=V[1],K=l.useRef(!1),q=l.useRef(!1),Z=l.useRef(!1),X=l.useState(function(){return vo(v??f)}),ee=me(X,2),te=ee[0],oe=ee[1];function le(We){v===void 0&&oe(We)}var ne=l.useCallback(function(We,tt){if(!tt)return I>=0?I:Math.max(zl(We),zl(d))},[I,d]),Q=l.useCallback(function(We){var tt=String(We);if(O)return O(tt);var ut=tt;return M&&(ut=ut.replace(M,".")),ut.replace(/[^\w.-]+/g,"")},[O,M]),ie=l.useRef(""),ue=l.useCallback(function(We,tt){if(N)return N(We,{userTyping:tt,input:String(ie.current)});var ut=typeof We=="number"?vg(We):We;if(!tt){var rt=ne(ut,tt);if(PC(ut)&&(M||rt>=0)){var gt=M||".";ut=Vm(ut,gt,rt)}}return ut},[N,ne,M]),de=l.useState(function(){var We=f??v;return te.isInvalidate()&&["string","number"].includes($t(We))?Number.isNaN(We)?"":We:ue(te.toString(),!1)}),se=me(de,2),ge=se[0],he=se[1];ie.current=ge;function Oe(We,tt){he(ue(We.isInvalidate()?We.toString(!1):We.toString(!tt),tt))}var Re=l.useMemo(function(){return FE(c)},[c,I]),pe=l.useMemo(function(){return FE(i)},[i,I]),Ie=l.useMemo(function(){return!Re||!te||te.isInvalidate()?!1:Re.lessEquals(te)},[Re,te]),we=l.useMemo(function(){return!pe||!te||te.isInvalidate()?!1:te.lessEquals(pe)},[pe,te]),ye=iq(W.current,k),ze=me(ye,2),Ae=ze[0],Ye=ze[1],Ke=function(tt){return Re&&!tt.lessEquals(Re)?Re:pe&&!pe.lessEquals(tt)?pe:null},Fe=function(tt){return!Ke(tt)},Ge=function(tt,ut){var rt=tt,gt=Fe(rt)||rt.isEmpty();if(!rt.isEmpty()&&!ut&&(rt=Ke(rt)||rt,gt=!0),!p&&!g&>){var Mt=rt.toString(),xt=ne(Mt,ut);return xt>=0&&(rt=vo(Vm(Mt,".",xt)),Fe(rt)||(rt=vo(Vm(Mt,".",xt,!0)))),rt.equals(te)||(le(rt),T==null||T(rt.isEmpty()?null:HE(E,rt)),v===void 0&&Oe(rt,ut)),rt}return te},je=dq(),$e=function We(tt){if(Ae(),ie.current=tt,he(tt),!q.current){var ut=Q(tt),rt=vo(ut);rt.isNaN()||Ge(rt,!0)}j==null||j(tt),je(function(){var gt=tt;O||(gt=tt.replace(/。/g,".")),gt!==tt&&We(gt)})},_e=function(){q.current=!0},Ee=function(){q.current=!1,$e(W.current.value)},Pe=function(tt){$e(tt.target.value)},be=function(tt){var ut;if(!(tt&&Ie||!tt&&we)){K.current=!1;var rt=vo(Z.current?kE(d):d);tt||(rt=rt.negate());var gt=(te||vo(0)).add(rt.toString()),Mt=Ge(gt,!1);B==null||B(HE(E,Mt),{offset:Z.current?kE(d):d,type:tt?"up":"down"}),(ut=W.current)===null||ut===void 0||ut.focus()}},Se=function(tt){var ut=vo(Q(ge)),rt;ut.isNaN()?rt=Ge(te,tt):rt=Ge(ut,tt),v!==void 0?Oe(te,!1):rt.isNaN()||Oe(rt,!1)},Me=function(){K.current=!0},ke=function(tt){var ut=tt.key,rt=tt.shiftKey;K.current=!0,Z.current=rt,ut==="Enter"&&(q.current||(K.current=!1),Se(!1),_==null||_(tt)),S!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ut)&&(be(ut==="Up"||ut==="ArrowUp"),tt.preventDefault())},et=function(){K.current=!1,Z.current=!1};l.useEffect(function(){if(x&&k){var We=function(rt){be(rt.deltaY<0),rt.preventDefault()},tt=W.current;if(tt)return tt.addEventListener("wheel",We,{passive:!1}),function(){return tt.removeEventListener("wheel",We)}}});var ht=function(){A&&Se(!1),U(!1),K.current=!1};return Vl(function(){te.isInvalidate()||Oe(te,!1)},[I,N]),Vl(function(){var We=vo(v);oe(We);var tt=vo(Q(ge));(!We.equals(tt)||!K.current||N)&&Oe(We,K.current)},[v]),Vl(function(){N&&Ye()},[ge]),l.createElement("div",{ref:F,className:ce(n,r,J(J(J(J(J({},"".concat(n,"-focused"),k),"".concat(n,"-disabled"),g),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),te.isNaN()),"".concat(n,"-out-of-range"),!te.isInvalidate()&&!Fe(te))),style:a,onFocus:function(){U(!0)},onBlur:ht,onKeyDown:ke,onKeyUp:et,onCompositionStart:_e,onCompositionEnd:Ee,onBeforeInput:Me},w&&l.createElement(uq,{prefixCls:n,upNode:y,downNode:C,upDisabled:Ie,downDisabled:we,onStep:be}),l.createElement("div",{className:"".concat(L,"-wrap")},l.createElement("input",xe({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":c,"aria-valuenow":te.isInvalidate()?null:te.toString(),step:d},D,{ref:Ar(W,t),className:L,value:ge,onChange:Pe,disabled:g,readOnly:p}))))}),gq=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,i=a===void 0?"rc-input-number":a,c=e.value,u=e.prefix,d=e.suffix,f=e.addonBefore,v=e.addonAfter,g=e.className,p=e.classNames,y=At(e,mq),C=l.useRef(null),S=l.useRef(null),b=l.useRef(null),x=function(w){b.current&&DC(b.current,w)};return l.useImperativeHandle(t,function(){return oq(b.current,{focus:x,nativeElement:C.current.nativeElement||S.current})}),l.createElement(_C,{className:g,triggerFocus:x,prefixCls:i,value:c,disabled:n,style:r,prefix:u,suffix:d,addonAfter:v,addonBefore:f,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:C},l.createElement(vq,xe({prefixCls:i,disabled:n,ref:b,domRef:S,className:p==null?void 0:p.input},y)))});const pq=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({},ls(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new pn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},VE=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},hq=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:i,inputFontSizeLG:c,controlHeightLG:u,controlHeightSM:d,colorError:f,paddingInlineSM:v,paddingBlockSM:g,paddingBlockLG:p,paddingInlineLG:y,colorIcon:C,motionDurationMid:S,handleHoverColor:b,handleOpacity:x,paddingInline:$,paddingBlock:w,handleBg:E,handleActiveBg:O,colorTextDisabled:N,borderRadiusSM:I,borderRadiusLG:M,controlWidth:T,handleBorderColor:j,filledHandleBg:_,lineHeightLG:B,calc:H}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),Ad(e)),{display:"inline-block",width:T,margin:0,padding:0,borderRadius:a}),wC(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${re(n)} ${r} ${j}`}}})),OC(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${re(n)} ${r} ${j}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:E}}})),RC(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${re(n)} ${r} ${j}`}}})),EC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:c,lineHeight:B,borderRadius:M,[`input${t}-input`]:{height:H(u).sub(H(n).mul(2)).equal(),padding:`${re(p)} ${re(y)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:I,[`input${t}-input`]:{height:H(d).sub(H(n).mul(2)).equal(),padding:`${re(g)} ${re(v)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:f}}},"&-group":Object.assign(Object.assign(Object.assign({},fn(e)),L4(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:M,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:I}}},D4(e)),z4(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({},fn(e)),{width:"100%",padding:`${re(w)} ${re($)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${S} linear`,appearance:"textfield",fontSize:"inherit"}),IC(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:x,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${S}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
342
|
+
${t}-handler-up-inner,
|
|
343
|
+
${t}-handler-down-inner
|
|
344
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:C,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${re(n)} ${r} ${j}`,transition:`all ${S} linear`,"&:active":{background:O},"&:hover":{height:"60%",[`
|
|
345
|
+
${t}-handler-up-inner,
|
|
346
|
+
${t}-handler-down-inner
|
|
347
|
+
`]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ts()),{color:C,transition:`all ${S} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},VE(e,"lg")),VE(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
348
|
+
${t}-handler-up-disabled,
|
|
349
|
+
${t}-handler-down-disabled
|
|
350
|
+
`]:{cursor:"not-allowed"},[`
|
|
351
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
352
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
353
|
+
`]:{color:N}})}]},bq=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:i,borderRadiusLG:c,borderRadiusSM:u,paddingInlineLG:d,paddingInlineSM:f,paddingBlockLG:v,paddingBlockSM:g,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${re(n)} 0`}},Ad(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:d,[`input${t}-input`]:{padding:`${re(v)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:f,[`input${t}-input`]:{padding:`${re(g)} 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:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${p}`}},[`&: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}}},yq=ln("InputNumber",e=>{const t=rn(e,is(e));return[hq(t),bq(t),rs(t)]},pq,{unitless:{handleOpacity:!0},resetFont:!1});var Cq=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const w3=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Rt),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:i,rootClassName:c,size:u,disabled:d,prefixCls:f,addonBefore:v,addonAfter:g,prefix:p,suffix:y,bordered:C,readOnly:S,status:b,controls:x,variant:$}=e,w=Cq(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),E=n("input-number",f),O=ar(E),[N,I,M]=yq(E,O),{compactSize:T,compactItemClassnames:j}=No(E,r);let _=l.createElement(YU,{className:`${E}-handler-up-inner`}),B=l.createElement(rC,{className:`${E}-handler-down-inner`});const H=typeof x=="boolean"?x:void 0;typeof x=="object"&&(_=typeof x.upIcon>"u"?_:l.createElement("span",{className:`${E}-handler-up-inner`},x.upIcon),B=typeof x.downIcon>"u"?B:l.createElement("span",{className:`${E}-handler-down-inner`},x.downIcon));const{hasFeedback:A,status:F,isFormItemInput:D,feedbackIcon:L}=l.useContext(zr),W=dl(F,b),G=Br(te=>{var oe;return(oe=u??T)!==null&&oe!==void 0?oe:te}),V=l.useContext(_r),k=d??V,[U,K]=fl("inputNumber",$,C),q=A&&l.createElement(l.Fragment,null,L),Z=ce({[`${E}-lg`]:G==="large",[`${E}-sm`]:G==="small",[`${E}-rtl`]:r==="rtl",[`${E}-in-form-item`]:D},I),X=`${E}-group`,ee=l.createElement(gq,Object.assign({ref:a,disabled:k,className:ce(M,O,i,c,j),upHandler:_,downHandler:B,prefixCls:E,readOnly:S,controls:H,prefix:p,suffix:q||y,addonBefore:v&&l.createElement(Ko,{form:!0,space:!0},v),addonAfter:g&&l.createElement(Ko,{form:!0,space:!0},g),classNames:{input:Z,variant:ce({[`${E}-${U}`]:K},pi(E,W,A)),affixWrapper:ce({[`${E}-affix-wrapper-sm`]:G==="small",[`${E}-affix-wrapper-lg`]:G==="large",[`${E}-affix-wrapper-rtl`]:r==="rtl",[`${E}-affix-wrapper-without-controls`]:x===!1||k||S},I),wrapper:ce({[`${X}-rtl`]:r==="rtl"},I),groupWrapper:ce({[`${E}-group-wrapper-sm`]:G==="small",[`${E}-group-wrapper-lg`]:G==="large",[`${E}-group-wrapper-rtl`]:r==="rtl",[`${E}-group-wrapper-${U}`]:K},pi(`${E}-group-wrapper`,W,A),I)}},w));return N(ee)}),mv=w3,Sq=e=>l.createElement(Oo,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(w3,Object.assign({},e)));mv._InternalPanelDoNotUseOrYouWillBeFired=Sq;const E3=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ve.createElement(cl,null)}),t};function O3(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,i,c,u;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((c=e.current)===null||c===void 0)&&c.input.hasAttribute("value"))&&((u=e.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function xq(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var $q=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const kd=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:i,disabled:c,onBlur:u,onFocus:d,suffix:f,allowClear:v,addonAfter:g,addonBefore:p,className:y,style:C,styles:S,rootClassName:b,onChange:x,classNames:$,variant:w,_skipAddonWarning:E}=e,O=$q(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:N,direction:I,allowClear:M,autoComplete:T,className:j,style:_,classNames:B,styles:H}=ur("input"),A=N("input",n),F=l.useRef(null),D=ar(A),[L,W,G]=k4(A,b),[V]=H4(A,D),{compactSize:k,compactItemClassnames:U}=No(A,I),K=Br(Oe=>{var Re;return(Re=i??k)!==null&&Re!==void 0?Re:Oe}),q=ve.useContext(_r),Z=c??q,{status:X,hasFeedback:ee,feedbackIcon:te}=l.useContext(zr),oe=dl(X,a),le=xq(e)||!!ee;l.useRef(le);const ne=O3(F,!0),Q=Oe=>{ne(),u==null||u(Oe)},ie=Oe=>{ne(),d==null||d(Oe)},ue=Oe=>{ne(),x==null||x(Oe)},de=(ee||f)&&ve.createElement(ve.Fragment,null,f,ee&&te),se=E3(v??M),[ge,he]=fl("input",w,r);return L(V(ve.createElement(aq,Object.assign({ref:Ar(t,F),prefixCls:A,autoComplete:T},O,{disabled:Z,onBlur:Q,onFocus:ie,style:Object.assign(Object.assign({},_),C),styles:Object.assign(Object.assign({},H),S),suffix:de,allowClear:se,className:ce(y,b,G,D,U,j),onChange:ue,addonBefore:p&&ve.createElement(Ko,{form:!0,space:!0},p),addonAfter:g&&ve.createElement(Ko,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},$),B),{input:ce({[`${A}-sm`]:K==="small",[`${A}-lg`]:K==="large",[`${A}-rtl`]:I==="rtl"},$==null?void 0:$.input,B.input,W),variant:ce({[`${A}-${ge}`]:he},pi(A,oe)),affixWrapper:ce({[`${A}-affix-wrapper-sm`]:K==="small",[`${A}-affix-wrapper-lg`]:K==="large",[`${A}-affix-wrapper-rtl`]:I==="rtl"},W),wrapper:ce({[`${A}-group-rtl`]:I==="rtl"},W),groupWrapper:ce({[`${A}-group-wrapper-sm`]:K==="small",[`${A}-group-wrapper-lg`]:K==="large",[`${A}-group-wrapper-rtl`]:I==="rtl",[`${A}-group-wrapper-${ge}`]:he},pi(`${A}-group-wrapper`,oe,ee),W)})}))))});function ay(e,t,n){return(e-t)/(n-t)}function zC(e,t,n,r){var a=ay(t,n,r),i={};switch(e){case"rtl":i.right="".concat(a*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(a*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(a*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(a*100,"%"),i.transform="translateX(-50%)";break}return i}function Al(e,t){return Array.isArray(e)?e[t]:e}var cs=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),wq=l.createContext({}),Eq=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],WE=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,i=e.onStartMove,c=e.onDelete,u=e.style,d=e.render,f=e.dragging,v=e.draggingDelete,g=e.onOffsetChange,p=e.onChangeComplete,y=e.onFocus,C=e.onMouseEnter,S=At(e,Eq),b=l.useContext(cs),x=b.min,$=b.max,w=b.direction,E=b.disabled,O=b.keyboard,N=b.range,I=b.tabIndex,M=b.ariaLabelForHandle,T=b.ariaLabelledByForHandle,j=b.ariaRequired,_=b.ariaValueTextFormatterForHandle,B=b.styles,H=b.classNames,A="".concat(n,"-handle"),F=function(Z){E||i(Z,a)},D=function(Z){y==null||y(Z,a)},L=function(Z){C(Z,a)},W=function(Z){if(!E&&O){var X=null;switch(Z.which||Z.keyCode){case at.LEFT:X=w==="ltr"||w==="btt"?-1:1;break;case at.RIGHT:X=w==="ltr"||w==="btt"?1:-1;break;case at.UP:X=w!=="ttb"?1:-1;break;case at.DOWN:X=w!=="ttb"?-1:1;break;case at.HOME:X="min";break;case at.END:X="max";break;case at.PAGE_UP:X=2;break;case at.PAGE_DOWN:X=-2;break;case at.BACKSPACE:case at.DELETE:c==null||c(a);break}X!==null&&(Z.preventDefault(),g(X,a))}},G=function(Z){switch(Z.which||Z.keyCode){case at.LEFT:case at.RIGHT:case at.UP:case at.DOWN:case at.HOME:case at.END:case at.PAGE_UP:case at.PAGE_DOWN:p==null||p();break}},V=zC(w,r,x,$),k={};if(a!==null){var U;k={tabIndex:E?null:Al(I,a),role:"slider","aria-valuemin":x,"aria-valuemax":$,"aria-valuenow":r,"aria-disabled":E,"aria-label":Al(M,a),"aria-labelledby":Al(T,a),"aria-required":Al(j,a),"aria-valuetext":(U=Al(_,a))===null||U===void 0?void 0:U(r),"aria-orientation":w==="ltr"||w==="rtl"?"horizontal":"vertical",onMouseDown:F,onTouchStart:F,onFocus:D,onMouseEnter:L,onKeyDown:W,onKeyUp:G}}var K=l.createElement("div",xe({ref:t,className:ce(A,J(J(J({},"".concat(A,"-").concat(a+1),a!==null&&N),"".concat(A,"-dragging"),f),"".concat(A,"-dragging-delete"),v),H.handle),style:ae(ae(ae({},V),u),B.handle)},k,S));return d&&(K=d(K,{index:a,prefixCls:n,value:r,dragging:f,draggingDelete:v})),K}),Oq=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Rq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,i=e.onOffsetChange,c=e.values,u=e.handleRender,d=e.activeHandleRender,f=e.draggingIndex,v=e.draggingDelete,g=e.onFocus,p=At(e,Oq),y=l.useRef({}),C=l.useState(!1),S=me(C,2),b=S[0],x=S[1],$=l.useState(-1),w=me($,2),E=w[0],O=w[1],N=function(_){O(_),x(!0)},I=function(_,B){N(B),g==null||g(_)},M=function(_,B){N(B)};l.useImperativeHandle(t,function(){return{focus:function(_){var B;(B=y.current[_])===null||B===void 0||B.focus()},hideHelp:function(){ro.flushSync(function(){x(!1)})}}});var T=ae({prefixCls:n,onStartMove:a,onOffsetChange:i,render:u,onFocus:I,onMouseEnter:M},p);return l.createElement(l.Fragment,null,c.map(function(j,_){var B=f===_;return l.createElement(WE,xe({ref:function(A){A?y.current[_]=A:delete y.current[_]},dragging:B,draggingDelete:B&&v,style:Al(r,_),key:_,value:j,valueIndex:_},T))}),d&&b&&l.createElement(WE,xe({key:"a11y"},T,{value:c[E],valueIndex:null,dragging:f!==-1,draggingDelete:v,render:d,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Iq=function(t){var n=t.prefixCls,r=t.style,a=t.children,i=t.value,c=t.onClick,u=l.useContext(cs),d=u.min,f=u.max,v=u.direction,g=u.includedStart,p=u.includedEnd,y=u.included,C="".concat(n,"-text"),S=zC(v,i,d,f);return l.createElement("span",{className:ce(C,J({},"".concat(C,"-active"),y&&g<=i&&i<=p)),style:ae(ae({},S),r),onMouseDown:function(x){x.stopPropagation()},onClick:function(){c(i)}},a)},Nq=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,i="".concat(n,"-mark");return r.length?l.createElement("div",{className:i},r.map(function(c){var u=c.value,d=c.style,f=c.label;return l.createElement(Iq,{key:u,prefixCls:i,style:d,value:u,onClick:a},f)})):null},Mq=function(t){var n=t.prefixCls,r=t.value,a=t.style,i=t.activeStyle,c=l.useContext(cs),u=c.min,d=c.max,f=c.direction,v=c.included,g=c.includedStart,p=c.includedEnd,y="".concat(n,"-dot"),C=v&&g<=r&&r<=p,S=ae(ae({},zC(f,r,u,d)),typeof a=="function"?a(r):a);return C&&(S=ae(ae({},S),typeof i=="function"?i(r):i)),l.createElement("span",{className:ce(y,J({},"".concat(y,"-active"),C)),style:S})},Tq=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,i=t.style,c=t.activeStyle,u=l.useContext(cs),d=u.min,f=u.max,v=u.step,g=l.useMemo(function(){var p=new Set;if(r.forEach(function(C){p.add(C.value)}),a&&v!==null)for(var y=d;y<=f;)p.add(y),y+=v;return Array.from(p)},[d,f,v,a,r]);return l.createElement("div",{className:"".concat(n,"-step")},g.map(function(p){return l.createElement(Mq,{prefixCls:n,key:p,value:p,style:i,activeStyle:c})}))},KE=function(t){var n=t.prefixCls,r=t.style,a=t.start,i=t.end,c=t.index,u=t.onStartMove,d=t.replaceCls,f=l.useContext(cs),v=f.direction,g=f.min,p=f.max,y=f.disabled,C=f.range,S=f.classNames,b="".concat(n,"-track"),x=ay(a,g,p),$=ay(i,g,p),w=function(I){!y&&u&&u(I,-1)},E={};switch(v){case"rtl":E.right="".concat(x*100,"%"),E.width="".concat($*100-x*100,"%");break;case"btt":E.bottom="".concat(x*100,"%"),E.height="".concat($*100-x*100,"%");break;case"ttb":E.top="".concat(x*100,"%"),E.height="".concat($*100-x*100,"%");break;default:E.left="".concat(x*100,"%"),E.width="".concat($*100-x*100,"%")}var O=d||ce(b,J(J({},"".concat(b,"-").concat(c+1),c!==null&&C),"".concat(n,"-track-draggable"),u),S.track);return l.createElement("div",{className:O,style:ae(ae({},E),r),onMouseDown:w,onTouchStart:w})},jq=function(t){var n=t.prefixCls,r=t.style,a=t.values,i=t.startPoint,c=t.onStartMove,u=l.useContext(cs),d=u.included,f=u.range,v=u.min,g=u.styles,p=u.classNames,y=l.useMemo(function(){if(!f){if(a.length===0)return[];var S=i??v,b=a[0];return[{start:Math.min(S,b),end:Math.max(S,b)}]}for(var x=[],$=0;$<a.length-1;$+=1)x.push({start:a[$],end:a[$+1]});return x},[a,f,i,v]);if(!d)return null;var C=y!=null&&y.length&&(p.tracks||g.tracks)?l.createElement(KE,{index:null,prefixCls:n,start:y[0].start,end:y[y.length-1].end,replaceCls:ce(p.tracks,"".concat(n,"-tracks")),style:g.tracks}):null;return l.createElement(l.Fragment,null,C,y.map(function(S,b){var x=S.start,$=S.end;return l.createElement(KE,{index:b,prefixCls:n,style:ae(ae({},Al(r,b)),g.track),start:x,end:$,key:b,onStartMove:c})}))},Pq=130;function UE(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Dq(e,t,n,r,a,i,c,u,d,f,v){var g=l.useState(null),p=me(g,2),y=p[0],C=p[1],S=l.useState(-1),b=me(S,2),x=b[0],$=b[1],w=l.useState(!1),E=me(w,2),O=E[0],N=E[1],I=l.useState(n),M=me(I,2),T=M[0],j=M[1],_=l.useState(n),B=me(_,2),H=B[0],A=B[1],F=l.useRef(null),D=l.useRef(null),L=l.useRef(null),W=l.useContext(wq),G=W.onDragStart,V=W.onDragChange;nn(function(){x===-1&&j(n)},[n,x]),l.useEffect(function(){return function(){document.removeEventListener("mousemove",F.current),document.removeEventListener("mouseup",D.current),L.current&&(L.current.removeEventListener("touchmove",F.current),L.current.removeEventListener("touchend",D.current))}},[]);var k=function(X,ee,te){ee!==void 0&&C(ee),j(X);var oe=X;te&&(oe=X.filter(function(le,ne){return ne!==x})),c(oe),V&&V({rawValues:X,deleteIndex:te?x:-1,draggingIndex:x,draggingValue:ee})},U=qt(function(Z,X,ee){if(Z===-1){var te=H[0],oe=H[H.length-1],le=r-te,ne=a-oe,Q=X*(a-r);Q=Math.max(Q,le),Q=Math.min(Q,ne);var ie=i(te+Q);Q=ie-te;var ue=H.map(function(he){return he+Q});k(ue)}else{var de=(a-r)*X,se=Te(T);se[Z]=H[Z];var ge=d(se,de,Z,"dist");k(ge.values,ge.value,ee)}}),K=function(X,ee,te){X.stopPropagation();var oe=te||n,le=oe[ee];$(ee),C(le),A(oe),j(oe),N(!1);var ne=UE(X),Q=ne.pageX,ie=ne.pageY,ue=!1;G&&G({rawValues:oe,draggingIndex:ee,draggingValue:le});var de=function(he){he.preventDefault();var Oe=UE(he),Re=Oe.pageX,pe=Oe.pageY,Ie=Re-Q,we=pe-ie,ye=e.current.getBoundingClientRect(),ze=ye.width,Ae=ye.height,Ye,Ke;switch(t){case"btt":Ye=-we/Ae,Ke=Ie;break;case"ttb":Ye=we/Ae,Ke=Ie;break;case"rtl":Ye=-Ie/ze,Ke=we;break;default:Ye=Ie/ze,Ke=we}ue=f?Math.abs(Ke)>Pq&&v<T.length:!1,N(ue),U(ee,Ye,ue)},se=function ge(he){he.preventDefault(),document.removeEventListener("mouseup",ge),document.removeEventListener("mousemove",de),L.current&&(L.current.removeEventListener("touchmove",F.current),L.current.removeEventListener("touchend",D.current)),F.current=null,D.current=null,L.current=null,u(ue),$(-1),N(!1)};document.addEventListener("mouseup",se),document.addEventListener("mousemove",de),X.currentTarget.addEventListener("touchend",se),X.currentTarget.addEventListener("touchmove",de),F.current=de,D.current=se,L.current=X.currentTarget},q=l.useMemo(function(){var Z=Te(n).sort(function(le,ne){return le-ne}),X=Te(T).sort(function(le,ne){return le-ne}),ee={};X.forEach(function(le){ee[le]=(ee[le]||0)+1}),Z.forEach(function(le){ee[le]=(ee[le]||0)-1});var te=f?1:0,oe=Object.values(ee).reduce(function(le,ne){return le+Math.abs(ne)},0);return oe<=te?T:n},[n,T,f]);return[x,y,O,q,K]}function _q(e,t,n,r,a,i){var c=l.useCallback(function(y){return Math.max(e,Math.min(t,y))},[e,t]),u=l.useCallback(function(y){if(n!==null){var C=e+Math.round((c(y)-e)/n)*n,S=function(w){return(String(w).split(".")[1]||"").length},b=Math.max(S(n),S(t),S(e)),x=Number(C.toFixed(b));return e<=x&&x<=t?x:null}return null},[n,e,t,c]),d=l.useCallback(function(y){var C=c(y),S=r.map(function($){return $.value});n!==null&&S.push(u(y)),S.push(e,t);var b=S[0],x=t-e;return S.forEach(function($){var w=Math.abs(C-$);w<=x&&(b=$,x=w)}),b},[e,t,r,n,c,u]),f=function y(C,S,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof S=="number"){var $,w=C[b],E=w+S,O=[];r.forEach(function(j){O.push(j.value)}),O.push(e,t),O.push(u(w));var N=S>0?1:-1;x==="unit"?O.push(u(w+N*n)):O.push(u(E)),O=O.filter(function(j){return j!==null}).filter(function(j){return S<0?j<=w:j>=w}),x==="unit"&&(O=O.filter(function(j){return j!==w}));var I=x==="unit"?w:E;$=O[0];var M=Math.abs($-I);if(O.forEach(function(j){var _=Math.abs(j-I);_<M&&($=j,M=_)}),$===void 0)return S<0?e:t;if(x==="dist")return $;if(Math.abs(S)>1){var T=Te(C);return T[b]=$,y(T,S-N,b,x)}return $}else{if(S==="min")return e;if(S==="max")return t}},v=function(C,S,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",$=C[b],w=f(C,S,b,x);return{value:w,changed:w!==$}},g=function(C){return i===null&&C===0||typeof i=="number"&&C<i},p=function(C,S,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",$=C.map(d),w=$[b],E=f($,S,b,x);if($[b]=E,a===!1){var O=i||0;b>0&&$[b-1]!==w&&($[b]=Math.max($[b],$[b-1]+O)),b<$.length-1&&$[b+1]!==w&&($[b]=Math.min($[b],$[b+1]-O))}else if(typeof i=="number"||i===null){for(var N=b+1;N<$.length;N+=1)for(var I=!0;g($[N]-$[N-1])&&I;){var M=v($,1,N);$[N]=M.value,I=M.changed}for(var T=b;T>0;T-=1)for(var j=!0;g($[T]-$[T-1])&&j;){var _=v($,-1,T-1);$[T-1]=_.value,j=_.changed}for(var B=$.length-1;B>0;B-=1)for(var H=!0;g($[B]-$[B-1])&&H;){var A=v($,-1,B-1);$[B-1]=A.value,H=A.changed}for(var F=0;F<$.length-1;F+=1)for(var D=!0;g($[F+1]-$[F])&&D;){var L=v($,1,F+1);$[F+1]=L.value,D=L.changed}}return{value:$[b],values:$}};return[d,p]}function zq(e){return l.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,a=e.maxCount;return[!0,t,!t&&n,r||0,a]},[e])}var Aq=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,a=e.className,i=e.style,c=e.classNames,u=e.styles,d=e.id,f=e.disabled,v=f===void 0?!1:f,g=e.keyboard,p=g===void 0?!0:g,y=e.autoFocus,C=e.onFocus,S=e.onBlur,b=e.min,x=b===void 0?0:b,$=e.max,w=$===void 0?100:$,E=e.step,O=E===void 0?1:E,N=e.value,I=e.defaultValue,M=e.range,T=e.count,j=e.onChange,_=e.onBeforeChange,B=e.onAfterChange,H=e.onChangeComplete,A=e.allowCross,F=A===void 0?!0:A,D=e.pushable,L=D===void 0?!1:D,W=e.reverse,G=e.vertical,V=e.included,k=V===void 0?!0:V,U=e.startPoint,K=e.trackStyle,q=e.handleStyle,Z=e.railStyle,X=e.dotStyle,ee=e.activeDotStyle,te=e.marks,oe=e.dots,le=e.handleRender,ne=e.activeHandleRender,Q=e.track,ie=e.tabIndex,ue=ie===void 0?0:ie,de=e.ariaLabelForHandle,se=e.ariaLabelledByForHandle,ge=e.ariaRequired,he=e.ariaValueTextFormatterForHandle,Oe=l.useRef(null),Re=l.useRef(null),pe=l.useMemo(function(){return G?W?"ttb":"btt":W?"rtl":"ltr"},[W,G]),Ie=zq(M),we=me(Ie,5),ye=we[0],ze=we[1],Ae=we[2],Ye=we[3],Ke=we[4],Fe=l.useMemo(function(){return isFinite(x)?x:0},[x]),Ge=l.useMemo(function(){return isFinite(w)?w:100},[w]),je=l.useMemo(function(){return O!==null&&O<=0?1:O},[O]),$e=l.useMemo(function(){return typeof L=="boolean"?L?je:!1:L>=0?L:!1},[L,je]),_e=l.useMemo(function(){return Object.keys(te||{}).map(function(pt){var Xe=te[pt],Qe={value:Number(pt)};return Xe&&$t(Xe)==="object"&&!l.isValidElement(Xe)&&("label"in Xe||"style"in Xe)?(Qe.style=Xe.style,Qe.label=Xe.label):Qe.label=Xe,Qe}).filter(function(pt){var Xe=pt.label;return Xe||typeof Xe=="number"}).sort(function(pt,Xe){return pt.value-Xe.value})},[te]),Ee=_q(Fe,Ge,je,_e,F,$e),Pe=me(Ee,2),be=Pe[0],Se=Pe[1],Me=bn(I,{value:N}),ke=me(Me,2),et=ke[0],ht=ke[1],We=l.useMemo(function(){var pt=et==null?[]:Array.isArray(et)?et:[et],Xe=me(pt,1),Qe=Xe[0],ct=Qe===void 0?Fe:Qe,Tt=et===null?[]:[ct];if(ye){if(Tt=Te(pt),T||et===void 0){var Vt=T>=0?T+1:2;for(Tt=Tt.slice(0,Vt);Tt.length<Vt;){var mt;Tt.push((mt=Tt[Tt.length-1])!==null&&mt!==void 0?mt:Fe)}}Tt.sort(function(Ot,kt){return Ot-kt})}return Tt.forEach(function(Ot,kt){Tt[kt]=be(Ot)}),Tt},[et,ye,Fe,T,be]),tt=function(Xe){return ye?Xe:Xe[0]},ut=qt(function(pt){var Xe=Te(pt).sort(function(Qe,ct){return Qe-ct});j&&!xo(Xe,We,!0)&&j(tt(Xe)),ht(Xe)}),rt=qt(function(pt){pt&&Oe.current.hideHelp();var Xe=tt(We);B==null||B(Xe),Vn(!B,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),H==null||H(Xe)}),gt=function(Xe){if(!(v||!ze||We.length<=Ye)){var Qe=Te(We);Qe.splice(Xe,1),_==null||_(tt(Qe)),ut(Qe);var ct=Math.max(0,Xe-1);Oe.current.hideHelp(),Oe.current.focus(ct)}},Mt=Dq(Re,pe,We,Fe,Ge,be,ut,rt,Se,ze,Ye),xt=me(Mt,5),st=xt[0],Ct=xt[1],bt=xt[2],Je=xt[3],Ve=xt[4],Ue=function(Xe,Qe){if(!v){var ct=Te(We),Tt=0,Vt=0,mt=Ge-Fe;We.forEach(function(Mn,Ln){var En=Math.abs(Xe-Mn);En<=mt&&(mt=En,Tt=Ln),Mn<Xe&&(Vt=Ln)});var Ot=Tt;ze&&mt!==0&&(!Ke||We.length<Ke)?(ct.splice(Vt+1,0,Xe),Ot=Vt+1):ct[Tt]=Xe,ye&&!We.length&&T===void 0&&ct.push(Xe);var kt=tt(ct);if(_==null||_(kt),ut(ct),Qe){var Sn,Pn;(Sn=document.activeElement)===null||Sn===void 0||(Pn=Sn.blur)===null||Pn===void 0||Pn.call(Sn),Oe.current.focus(Ot),Ve(Qe,Ot,ct)}else B==null||B(kt),Vn(!B,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),H==null||H(kt)}},ft=function(Xe){Xe.preventDefault();var Qe=Re.current.getBoundingClientRect(),ct=Qe.width,Tt=Qe.height,Vt=Qe.left,mt=Qe.top,Ot=Qe.bottom,kt=Qe.right,Sn=Xe.clientX,Pn=Xe.clientY,Mn;switch(pe){case"btt":Mn=(Ot-Pn)/Tt;break;case"ttb":Mn=(Pn-mt)/Tt;break;case"rtl":Mn=(kt-Sn)/ct;break;default:Mn=(Sn-Vt)/ct}var Ln=Fe+Mn*(Ge-Fe);Ue(be(Ln),Xe)},It=l.useState(null),Et=me(It,2),Ht=Et[0],dt=Et[1],it=function(Xe,Qe){if(!v){var ct=Se(We,Xe,Qe);_==null||_(tt(We)),ut(ct.values),dt(ct.value)}};l.useEffect(function(){if(Ht!==null){var pt=We.indexOf(Ht);pt>=0&&Oe.current.focus(pt)}dt(null)},[Ht]);var Dt=l.useMemo(function(){return Ae&&je===null?!1:Ae},[Ae,je]),Wt=qt(function(pt,Xe){Ve(pt,Xe),_==null||_(tt(We))}),en=st!==-1;l.useEffect(function(){if(!en){var pt=We.lastIndexOf(Ct);Oe.current.focus(pt)}},[en]);var Xt=l.useMemo(function(){return Te(Je).sort(function(pt,Xe){return pt-Xe})},[Je]),vn=l.useMemo(function(){return ye?[Xt[0],Xt[Xt.length-1]]:[Fe,Xt[0]]},[Xt,ye,Fe]),Kt=me(vn,2),sn=Kt[0],lt=Kt[1];l.useImperativeHandle(t,function(){return{focus:function(){Oe.current.focus(0)},blur:function(){var Xe,Qe=document,ct=Qe.activeElement;(Xe=Re.current)!==null&&Xe!==void 0&&Xe.contains(ct)&&(ct==null||ct.blur())}}}),l.useEffect(function(){y&&Oe.current.focus(0)},[]);var yt=l.useMemo(function(){return{min:Fe,max:Ge,direction:pe,disabled:v,keyboard:p,step:je,included:k,includedStart:sn,includedEnd:lt,range:ye,tabIndex:ue,ariaLabelForHandle:de,ariaLabelledByForHandle:se,ariaRequired:ge,ariaValueTextFormatterForHandle:he,styles:u||{},classNames:c||{}}},[Fe,Ge,pe,v,p,je,k,sn,lt,ye,ue,de,se,ge,he,u,c]);return l.createElement(cs.Provider,{value:yt},l.createElement("div",{ref:Re,className:ce(r,a,J(J(J(J({},"".concat(r,"-disabled"),v),"".concat(r,"-vertical"),G),"".concat(r,"-horizontal"),!G),"".concat(r,"-with-marks"),_e.length)),style:i,onMouseDown:ft,id:d},l.createElement("div",{className:ce("".concat(r,"-rail"),c==null?void 0:c.rail),style:ae(ae({},Z),u==null?void 0:u.rail)}),Q!==!1&&l.createElement(jq,{prefixCls:r,style:K,values:We,startPoint:U,onStartMove:Dt?Wt:void 0}),l.createElement(Tq,{prefixCls:r,marks:_e,dots:oe,style:X,activeStyle:ee}),l.createElement(Rq,{ref:Oe,prefixCls:r,style:q,values:Je,draggingIndex:st,draggingDelete:bt,onStartMove:Wt,onOffsetChange:it,onFocus:C,onBlur:S,handleRender:le,activeHandleRender:ne,onChangeComplete:rt,onDelete:ze?gt:void 0}),l.createElement(Nq,{prefixCls:r,marks:_e,onClick:Ue})))});const Bq=l.createContext({}),qE=l.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,i=l.useRef(null),c=n&&!r,u=l.useRef(null);function d(){Gt.cancel(u.current),u.current=null}function f(){u.current=Gt(()=>{var v;(v=i.current)===null||v===void 0||v.forceAlign(),u.current=null})}return l.useEffect(()=>(c?f():d(),d),[c,e.title,a]),l.createElement(Cr,Object.assign({ref:Ar(i,t)},e,{open:c}))}),Lq=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:i,marginPart:c,colorFillContentHover:u,handleColorDisabled:d,calc:f,handleSize:v,handleSizeHover:g,handleActiveColor:p,handleActiveOutlineColor:y,handleLineWidth:C,handleLineWidthHover:S,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",height:r,margin:`${re(c)} ${re(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${re(i)} ${re(c)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:u},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${re(C)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:v,height:v,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:f(C).mul(-1).equal(),insetBlockStart:f(C).mul(-1).equal(),width:f(v).add(f(C).mul(2)).equal(),height:f(v).add(f(C).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:v,height:v,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${re(C)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
354
|
+
inset-inline-start ${b},
|
|
355
|
+
inset-block-start ${b},
|
|
356
|
+
width ${b},
|
|
357
|
+
height ${b},
|
|
358
|
+
box-shadow ${b},
|
|
359
|
+
outline ${b}
|
|
360
|
+
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:f(g).sub(v).div(2).add(S).mul(-1).equal(),insetBlockStart:f(g).sub(v).div(2).add(S).mul(-1).equal(),width:f(g).add(f(S).mul(2)).equal(),height:f(g).add(f(S).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${re(S)} ${p}`,outline:`6px solid ${y}`,width:g,height:g,insetInlineStart:e.calc(v).sub(g).div(2).equal(),insetBlockStart:e.calc(v).sub(g).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:e.colorBgElevated,border:`${re(C)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
361
|
+
${t}-dot
|
|
362
|
+
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:v,height:v,boxShadow:`0 0 0 ${re(C)} ${d}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
363
|
+
${t}-mark-text,
|
|
364
|
+
${t}-dot
|
|
365
|
+
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},R3=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:i,marginFull:c,calc:u}=e,d=t?"paddingBlock":"paddingInline",f=t?"width":"height",v=t?"height":"width",g=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",y=u(r).mul(3).sub(a).div(2).equal(),C=u(a).sub(r).div(2).equal(),S=t?{borderWidth:`${re(C)} 0`,transform:`translateY(${re(u(C).mul(-1).equal())})`}:{borderWidth:`0 ${re(C)}`,transform:`translateX(${re(e.calc(C).mul(-1).equal())})`};return{[d]:r,[v]:u(r).mul(3).equal(),[`${n}-rail`]:{[f]:"100%",[v]:r},[`${n}-track,${n}-tracks`]:{[v]:r},[`${n}-track-draggable`]:Object.assign({},S),[`${n}-handle`]:{[g]:y},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:u(r).mul(3).add(t?0:c).equal(),[f]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[f]:"100%",[v]:r},[`${n}-dot`]:{position:"absolute",[g]:u(r).sub(i).div(2).equal()}}},kq=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},R3(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Hq=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},R3(e,!1)),{height:"100%"})}},Fq=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,i=e.lineWidth+1*1.5,c=e.colorPrimary,u=new pn(c).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:c,handleActiveOutlineColor:u,handleColorDisabled:new pn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Vq=ln("Slider",e=>{const t=rn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Lq(t),kq(t),Hq(t)]},Fq);function v0(){const[e,t]=l.useState(!1),n=l.useRef(null),r=()=>{Gt.cancel(n.current)},a=i=>{r(),i?t(i):n.current=Gt(()=>{t(i)})};return l.useEffect(()=>r,[]),[e,a]}var Wq=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Kq(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const Uq=ve.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:i,style:c,disabled:u,tooltipPrefixCls:d,tipFormatter:f,tooltipVisible:v,getTooltipPopupContainer:g,tooltipPlacement:p,tooltip:y={},onChangeComplete:C,classNames:S,styles:b}=e,x=Wq(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:$}=e,{getPrefixCls:w,direction:E,className:O,style:N,classNames:I,styles:M,getPopupContainer:T}=ur("slider"),j=ve.useContext(_r),_=u??j,{handleRender:B,direction:H}=ve.useContext(Bq),F=(H||E)==="rtl",[D,L]=v0(),[W,G]=v0(),V=Object.assign({},y),{open:k,placement:U,getPopupContainer:K,prefixCls:q,formatter:Z}=V,X=k??v,ee=(D||W)&&X!==!1,te=Kq(Z,f),[oe,le]=v0(),ne=ye=>{C==null||C(ye),le(!1)},Q=(ye,ze)=>ye||(ze?F?"left":"right":"top"),ie=w("slider",n),[ue,de,se]=Vq(ie),ge=ce(a,O,I.root,S==null?void 0:S.root,i,{[`${ie}-rtl`]:F,[`${ie}-lock`]:oe},de,se);F&&!x.vertical&&(x.reverse=!x.reverse),ve.useEffect(()=>{const ye=()=>{Gt(()=>{G(!1)},1)};return document.addEventListener("mouseup",ye),()=>{document.removeEventListener("mouseup",ye)}},[]);const he=r&&!X,Oe=B||((ye,ze)=>{const{index:Ae}=ze,Ye=ye.props;function Ke($e,_e,Ee){var Pe,be,Se,Me;Ee&&((be=(Pe=x)[$e])===null||be===void 0||be.call(Pe,_e)),(Me=(Se=Ye)[$e])===null||Me===void 0||Me.call(Se,_e)}const Fe=Object.assign(Object.assign({},Ye),{onMouseEnter:$e=>{L(!0),Ke("onMouseEnter",$e)},onMouseLeave:$e=>{L(!1),Ke("onMouseLeave",$e)},onMouseDown:$e=>{G(!0),le(!0),Ke("onMouseDown",$e)},onFocus:$e=>{var _e;G(!0),(_e=x.onFocus)===null||_e===void 0||_e.call(x,$e),Ke("onFocus",$e,!0)},onBlur:$e=>{var _e;G(!1),(_e=x.onBlur)===null||_e===void 0||_e.call(x,$e),Ke("onBlur",$e,!0)}}),Ge=ve.cloneElement(ye,Fe),je=(!!X||ee)&&te!==null;return he?Ge:ve.createElement(qE,Object.assign({},V,{prefixCls:w("tooltip",q??d),title:te?te(ze.value):"",value:ze.value,open:je,placement:Q(U??p,$),key:Ae,classNames:{root:`${ie}-tooltip`},getPopupContainer:K||g||T}),Ge)}),Re=he?(ye,ze)=>{const Ae=ve.cloneElement(ye,{style:Object.assign(Object.assign({},ye.props.style),{visibility:"hidden"})});return ve.createElement(qE,Object.assign({},V,{prefixCls:w("tooltip",q??d),title:te?te(ze.value):"",open:te!==null&&ee,placement:Q(U??p,$),key:"tooltip",classNames:{root:`${ie}-tooltip`},getPopupContainer:K||g||T,draggingDelete:ze.draggingDelete}),Ae)}:void 0,pe=Object.assign(Object.assign(Object.assign(Object.assign({},M.root),N),b==null?void 0:b.root),c),Ie=Object.assign(Object.assign({},M.tracks),b==null?void 0:b.tracks),we=ce(I.tracks,S==null?void 0:S.tracks);return ue(ve.createElement(Aq,Object.assign({},x,{classNames:Object.assign({handle:ce(I.handle,S==null?void 0:S.handle),rail:ce(I.rail,S==null?void 0:S.rail),track:ce(I.track,S==null?void 0:S.track)},we?{tracks:we}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},M.handle),b==null?void 0:b.handle),rail:Object.assign(Object.assign({},M.rail),b==null?void 0:b.rail),track:Object.assign(Object.assign({},M.track),b==null?void 0:b.track)},Object.keys(Ie).length?{tracks:Ie}:{}),step:x.step,range:r,className:ge,style:pe,disabled:_,ref:t,prefixCls:ie,handleRender:Oe,activeHandleRender:Re,onChangeComplete:ne})))});var qq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Gq=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:qq}))},Xq=l.forwardRef(Gq);const I3=(e,t,n,r,a)=>{const{classNames:i,styles:c}=ur(e),[u,d]=Rz([i,t],[c,n],{popup:{_default:"root"}});return l.useMemo(()=>{var f,v;const g=Object.assign(Object.assign({},u),{popup:Object.assign(Object.assign({},u.popup),{root:ce((f=u.popup)===null||f===void 0?void 0:f.root,r)})}),p=Object.assign(Object.assign({},d),{popup:Object.assign(Object.assign({},d.popup),{root:Object.assign(Object.assign({},(v=d.popup)===null||v===void 0?void 0:v.root),a)})});return[g,p]},[u,d,r,a])};function Yq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Qq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function N3(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=aC(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Zq,Jq]=["week","WeekPicker"],[eG,tG]=["month","MonthPicker"],[nG,rG]=["year","YearPicker"],[aG,oG]=["quarter","QuarterPicker"],[AC,GE]=["time","TimePicker"];var iG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},lG=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:iG}))},sG=l.forwardRef(lG),cG={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},uG=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:cG}))},vv=l.forwardRef(uG);const M3=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ve.createElement(ve.Fragment,null,e===AC?ve.createElement(vv,null):ve.createElement(sG,null),t&&n):r,dG=e=>l.createElement(Pt,Object.assign({size:"small",type:"primary"},e));function T3(e){return l.useMemo(()=>Object.assign({button:dG},e),[e])}var fG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const mG=e=>l.forwardRef((n,r)=>{var a;const{prefixCls:i,getPopupContainer:c,components:u,className:d,style:f,placement:v,size:g,disabled:p,bordered:y=!0,placeholder:C,popupStyle:S,popupClassName:b,dropdownClassName:x,status:$,rootClassName:w,variant:E,picker:O,styles:N,classNames:I,suffixIcon:M}=n,T=fG(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),j=O===AC?"timePicker":"datePicker",_=l.useRef(null),{getPrefixCls:B,direction:H,getPopupContainer:A,rangePicker:F}=l.useContext(Rt),D=B("picker",i),{compactSize:L,compactItemClassnames:W}=No(D,H),G=B(),[V,k]=fl("rangePicker",E,y),U=ar(D),[K,q,Z]=F4(D,U),[X,ee]=I3(j,I,N,b||x,S),[te]=N3(n,D),oe=T3(u),le=Br(pe=>{var Ie;return(Ie=g??L)!==null&&Ie!==void 0?Ie:pe}),ne=l.useContext(_r),Q=p??ne,ie=l.useContext(zr),{hasFeedback:ue,status:de,feedbackIcon:se}=ie,ge=l.createElement(M3,{picker:O,hasFeedback:ue,feedbackIcon:se,suffixIcon:M});l.useImperativeHandle(r,()=>_.current);const[he]=Ra("Calendar",Gm),Oe=Object.assign(Object.assign({},he),n.locale),[Re]=Io("DatePicker",(a=ee.popup.root)===null||a===void 0?void 0:a.zIndex);return K(l.createElement(Ko,{space:!0},l.createElement(dW,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${D}-separator`},l.createElement(Xq,null)),disabled:Q,ref:_,placement:v,placeholder:Qq(Oe,O,C),suffixIcon:ge,prevIcon:l.createElement("span",{className:`${D}-prev-icon`}),nextIcon:l.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${G}-slide-up`,picker:O},T,{className:ce({[`${D}-${le}`]:le,[`${D}-${V}`]:k},pi(D,dl(de,$),ue),q,W,d,F==null?void 0:F.className,Z,U,w,X.root),style:Object.assign(Object.assign(Object.assign({},F==null?void 0:F.style),f),ee.root),locale:Oe.lang,prefixCls:D,getPopupContainer:c||A,generateConfig:e,components:oe,direction:H,classNames:{popup:ce(q,Z,U,w,X.popup.root)},styles:{popup:Object.assign(Object.assign({},ee.popup.root),{zIndex:Re})},allowClear:te}))))});var vG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gG=e=>{const t=(d,f)=>{const v=f===GE?"timePicker":"datePicker";return l.forwardRef((p,y)=>{var C;const{prefixCls:S,getPopupContainer:b,components:x,style:$,className:w,rootClassName:E,size:O,bordered:N,placement:I,placeholder:M,popupStyle:T,popupClassName:j,dropdownClassName:_,disabled:B,status:H,variant:A,onCalendarChange:F,styles:D,classNames:L,suffixIcon:W}=p,G=vG(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:V,direction:k,getPopupContainer:U,[v]:K}=l.useContext(Rt),q=V("picker",S),{compactSize:Z,compactItemClassnames:X}=No(q,k),ee=l.useRef(null),[te,oe]=fl("datePicker",A,N),le=ar(q),[ne,Q,ie]=F4(q,le);l.useImperativeHandle(y,()=>ee.current);const ue={showToday:!0},de=d||p.picker,se=V(),{onSelect:ge,multiple:he}=G,Oe=ge&&d==="time"&&!he,Re=(Se,Me,ke)=>{F==null||F(Se,Me,ke),Oe&&ge(Se)},[pe,Ie]=I3(v,L,D,j||_,T),[we,ye]=N3(p,q),ze=T3(x),Ae=Br(Se=>{var Me;return(Me=O??Z)!==null&&Me!==void 0?Me:Se}),Ye=l.useContext(_r),Ke=B??Ye,Fe=l.useContext(zr),{hasFeedback:Ge,status:je,feedbackIcon:$e}=Fe,_e=l.createElement(M3,{picker:de,hasFeedback:Ge,feedbackIcon:$e,suffixIcon:W}),[Ee]=Ra("DatePicker",Gm),Pe=Object.assign(Object.assign({},Ee),p.locale),[be]=Io("DatePicker",(C=Ie.popup.root)===null||C===void 0?void 0:C.zIndex);return ne(l.createElement(Ko,{space:!0},l.createElement(hW,Object.assign({ref:ee,placeholder:Yq(Pe,de,M),suffixIcon:_e,placement:I,prevIcon:l.createElement("span",{className:`${q}-prev-icon`}),nextIcon:l.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${se}-slide-up`,picker:d,onCalendarChange:Re},ue,G,{locale:Pe.lang,className:ce({[`${q}-${Ae}`]:Ae,[`${q}-${te}`]:oe},pi(q,dl(je,H),Ge),Q,X,K==null?void 0:K.className,w,ie,le,E,pe.root),style:Object.assign(Object.assign(Object.assign({},K==null?void 0:K.style),$),Ie.root),prefixCls:q,getPopupContainer:b||U,generateConfig:e,components:ze,direction:k,disabled:Ke,classNames:{popup:ce(Q,ie,le,E,pe.popup.root)},styles:{popup:Object.assign(Object.assign({},Ie.popup.root),{zIndex:be})},allowClear:we,removeIcon:ye}))))})},n=t(),r=t(Zq,Jq),a=t(eG,tG),i=t(nG,rG),c=t(aG,oG),u=t(AC,GE);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:i,TimePicker:u,QuarterPicker:c}},j3=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:i,QuarterPicker:c}=gG(e),u=mG(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=a,d.RangePicker=u,d.TimePicker=i,d.QuarterPicker=c,d},Ac=j3(yV),pG=Nc(Ac,"popupAlign",void 0,"picker");Ac._InternalPanelDoNotUseOrYouWillBeFired=pG;const hG=Nc(Ac.RangePicker,"popupAlign",void 0,"picker");Ac._InternalRangePanelDoNotUseOrYouWillBeFired=hG;Ac.generatePicker=j3;function XE(e){return["small","middle","large"].includes(e)}function YE(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const bG=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:i,fontSizeLG:c,fontSizeSM:u,borderRadiusLG:d,borderRadiusSM:f,colorBgContainerDisabled:v,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:v,borderWidth:g,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:c,borderRadius:d},"&-small":{paddingInline:i,borderRadius:f,fontSize:u},"&-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}},rs(e,{focus:!1})]}},yG=ln(["Space","Addon"],e=>[bG(e)]);var CG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const SG=ve.forwardRef((e,t)=>{const{className:n,children:r,style:a,prefixCls:i}=e,c=CG(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:d}=ve.useContext(Rt),f=u("space-addon",i),[v,g,p]=yG(f),{compactItemClassnames:y,compactSize:C}=No(f,d),S=ce(f,g,y,p,{[`${f}-${C}`]:C},n);return v(ve.createElement("div",Object.assign({ref:t,className:S,style:a},c),r))}),P3=ve.createContext({latestIndex:0}),xG=P3.Provider,$G=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:i}=l.useContext(P3);return n==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:a},n),t<i&&r&&l.createElement("span",{className:`${e}-split`},r))},wG=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"}}}},EG=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}}}},OG=ln("Space",e=>{const t=rn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[wG(t),EG(t)]},()=>({}),{resetStyle:!1});var RG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const IG=l.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:i,className:c,style:u,classNames:d,styles:f}=ur("space"),{size:v=i??"small",align:g,className:p,rootClassName:y,children:C,direction:S="horizontal",prefixCls:b,split:x,style:$,wrap:w=!1,classNames:E,styles:O}=e,N=RG(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[I,M]=Array.isArray(v)?v:[v,v],T=XE(M),j=XE(I),_=YE(M),B=YE(I),H=Fr(C,{keepEmpty:!0}),A=g===void 0&&S==="horizontal"?"center":g,F=r("space",b),[D,L,W]=OG(F),G=ce(F,c,L,`${F}-${S}`,{[`${F}-rtl`]:a==="rtl",[`${F}-align-${A}`]:A,[`${F}-gap-row-${M}`]:T,[`${F}-gap-col-${I}`]:j},p,y,W),V=ce(`${F}-item`,(n=E==null?void 0:E.item)!==null&&n!==void 0?n:d.item),k=Object.assign(Object.assign({},f.item),O==null?void 0:O.item),U=H.map((Z,X)=>{const ee=(Z==null?void 0:Z.key)||`${V}-${X}`;return l.createElement($G,{className:V,key:ee,index:X,split:x,style:k},Z)}),K=l.useMemo(()=>({latestIndex:H.reduce((X,ee,te)=>ee!=null?te:X,0)}),[H]);if(H.length===0)return null;const q={};return w&&(q.flexWrap="wrap"),!j&&B&&(q.columnGap=I),!T&&_&&(q.rowGap=M),D(l.createElement("div",Object.assign({ref:t,className:G,style:Object.assign(Object.assign(Object.assign({},q),u),$)},N),l.createElement(xG,{value:K},U)))}),dn=IG;dn.Compact=y5;dn.Addon=SG;var NG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const D3=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(Rt),{prefixCls:a,type:i="default",danger:c,disabled:u,loading:d,onClick:f,htmlType:v,children:g,className:p,menu:y,arrow:C,autoFocus:S,overlay:b,trigger:x,align:$,open:w,onOpenChange:E,placement:O,getPopupContainer:N,href:I,icon:M=l.createElement(pC,null),title:T,buttonsRender:j=ne=>ne,mouseEnterDelay:_,mouseLeaveDelay:B,overlayClassName:H,overlayStyle:A,destroyOnHidden:F,destroyPopupOnHide:D,dropdownRender:L,popupRender:W}=e,G=NG(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"]),V=n("dropdown",a),k=`${V}-button`,K={menu:y,arrow:C,autoFocus:S,align:$,disabled:u,trigger:u?[]:x,onOpenChange:E,getPopupContainer:N||t,mouseEnterDelay:_,mouseLeaveDelay:B,overlayClassName:H,overlayStyle:A,destroyOnHidden:F,popupRender:W||L},{compactSize:q,compactItemClassnames:Z}=No(V,r),X=ce(k,Z,p);"destroyPopupOnHide"in e&&(K.destroyPopupOnHide=D),"overlay"in e&&(K.overlay=b),"open"in e&&(K.open=w),"placement"in e?K.placement=O:K.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=l.createElement(Pt,{type:i,danger:c,disabled:u,loading:d,onClick:f,htmlType:v,href:I,title:T},g),te=l.createElement(Pt,{type:i,danger:c,icon:M}),[oe,le]=j([ee,te]);return l.createElement(dn.Compact,Object.assign({className:X,size:q,block:!0},G),oe,l.createElement(ag,Object.assign({},K),le))};D3.__ANT_BUTTON=!0;const BC=ag;BC.Button=D3;const LC=ve.createContext(void 0),{Provider:MG}=LC;function _3(e){return e==null?null:typeof e=="object"&&!l.isValidElement(e)?e:{title:e}}var TG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},jG=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:TG}))},kC=l.forwardRef(jG),PG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const DG=e=>{const{icon:t,description:n,prefixCls:r,className:a}=e,i=PG(e,["icon","description","prefixCls","className"]),c=ve.createElement("div",{className:`${r}-icon`},ve.createElement(kC,null));return ve.createElement("div",Object.assign({},i,{className:ce(a,`${r}-content`)}),t||n?ve.createElement(ve.Fragment,null,t&&ve.createElement("div",{className:`${r}-icon`},t),n&&ve.createElement("div",{className:`${r}-description`},n)):c)},_G=l.memo(DG),QE=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),zG=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:a,calc:i}=e,c=new Qt("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${re(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new Qt("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${re(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),d=new Qt("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${re(i(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new Qt("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${re(i(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),v=new Qt("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${re(i(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new Qt("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${re(i(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0}}),p=new Qt("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${re(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y=new Qt("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${re(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),C=`${t}-group`;return[{[C]:{[`&${C}-top ${C}-wrap`]:tl(`${C}-wrap`,c,u,r,!0),[`&${C}-bottom ${C}-wrap`]:tl(`${C}-wrap`,v,g,r,!0),[`&${C}-left ${C}-wrap`]:tl(`${C}-wrap`,p,y,r,!0),[`&${C}-right ${C}-wrap`]:tl(`${C}-wrap`,d,f,r,!0)}},{[`${C}-wrap`]:{[`&${C}-wrap-enter, &${C}-wrap-appear`]:{opacity:0,animationTimingFunction:a},[`&${C}-wrap-leave`]:{opacity:1,animationTimingFunction:a}}}]},AG=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:a,borderRadiusLG:i,borderRadiusSM:c,badgeOffset:u,floatButtonBodyPadding:d,zIndexPopupBase:f,calc:v}=e,g=`${n}-group`;return{[g]:Object.assign(Object.assign({},fn(e)),{zIndex:f,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:i,[`${g}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${g}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${g}-top > ${g}-wrap`]:{flexDirection:"column",top:"auto",bottom:v(r).add(a).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:a,bottom:v(a).mul(-1).equal()}},[`${g}-bottom > ${g}-wrap`]:{flexDirection:"column",top:v(r).add(a).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:a,top:v(a).mul(-1).equal()}},[`${g}-right > ${g}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:v(r).add(a).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:a,height:"100%",left:{_skip_check_:!0,value:v(a).mul(-1).equal()}}},[`${g}-left > ${g}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:v(r).add(a).equal()},"&::after":{content:'""',position:"absolute",width:a,height:"100%",right:{_skip_check_:!0,value:v(a).mul(-1).equal()}}},[`${g}-circle`]:{gap:a,[`${g}-wrap`]:{gap:a}},[`${g}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${g}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:v(v(d).add(u)).mul(-1).equal(),insetInlineEnd:v(v(d).add(u)).mul(-1).equal()}}},[`${g}-wrap`]:{borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:d,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:c}}}},[`${g}-top > ${g}-wrap, ${g}-bottom > ${g}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${g}-left > ${g}-wrap, ${g}-right > ${g}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderEndStartRadius:i},"&:last-child":{borderStartEndRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:"none",borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${g}-circle-shadow`]:{boxShadow:"none"},[`${g}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:d,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:c}}}}},BG=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:a,floatButtonSize:i,borderRadiusLG:c,badgeOffset:u,dotOffsetInSquare:d,dotOffsetInCircle:f,zIndexPopupBase:v,calc:g}=e;return{[n]:Object.assign(Object.assign({},fn(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:v,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:g(u).mul(-1).equal(),insetInlineEnd:g(u).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${re(g(r).div(2).equal())} ${re(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:a,fontSize:a,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:f,insetInlineEnd:f}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:c,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:d,insetInlineEnd:d}},[`${n}-body`]:{height:"auto",borderRadius:c}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:re(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:re(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},LG=e=>({dotOffsetInCircle:QE(e.controlHeightLG/2),dotOffsetInSquare:QE(e.borderRadiusLG)}),z3=ln("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:a,marginLG:i,fontSize:c,fontSizeIcon:u,controlItemBgHover:d,paddingXXS:f,calc:v}=e,g=rn(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:d,floatButtonFontSize:c,floatButtonIconSize:v(u).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:a,floatButtonInsetInlineEnd:i,floatButtonBodySize:v(r).sub(v(f).mul(2)).equal(),floatButtonBodyPadding:f,badgeOffset:v(f).mul(1.5).equal()});return[AG(g),BG(g),Wy(e),zG(g)]},LG);var kG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gg="float-btn",HG=ve.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,type:c="default",shape:u="circle",icon:d,description:f,tooltip:v,htmlType:g="button",badge:p={}}=e,y=kG(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:C,direction:S}=l.useContext(Rt),b=l.useContext(LC),x=C(gg,n),$=ar(x),[w,E,O]=z3(x,$),N=b||u,I=ce(E,O,$,x,r,a,`${x}-${c}`,`${x}-${N}`,{[`${x}-rtl`]:S==="rtl"}),[M]=Io("FloatButton",i==null?void 0:i.zIndex),T=Object.assign(Object.assign({},i),{zIndex:M}),j=xn(p,["title","children","status","text"]);let _=ve.createElement("div",{className:`${x}-body`},ve.createElement(_G,{prefixCls:x,description:f,icon:d}));"badge"in e&&(_=ve.createElement(fi,Object.assign({},j),_));const B=_3(v);return B&&(_=ve.createElement(Cr,Object.assign({},B),_)),w(e.href?ve.createElement("a",Object.assign({ref:t},y,{className:I,style:T}),_):ve.createElement("button",Object.assign({ref:t},y,{className:I,style:T,type:g}),_))}),us=HG;var FG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const VG=ve.createElement(s9,null),A3=ve.forwardRef((e,t)=>{var n;const{backTopIcon:r}=ur("floatButton"),{prefixCls:a,className:i,type:c="default",shape:u="circle",visibilityHeight:d=400,icon:f,target:v,onClick:g,duration:p=450}=e,y=FG(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),C=(n=f??r)!==null&&n!==void 0?n:VG,[S,b]=l.useState(d===0),x=ve.useRef(null);ve.useImperativeHandle(t,()=>({nativeElement:x.current}));const $=()=>{var _;return((_=x.current)===null||_===void 0?void 0:_.ownerDocument)||window},w=Z6(_=>{const B=_I(_.target);b(B>=d)});l.useEffect(()=>{const B=(v||$)();return w({target:B}),B==null||B.addEventListener("scroll",w),()=>{w.cancel(),B==null||B.removeEventListener("scroll",w)}},[v]);const E=_=>{zI(0,{getContainer:v||$,duration:p}),g==null||g(_)},{getPrefixCls:O}=l.useContext(Rt),N=O(gg,a),I=O(),T=l.useContext(LC)||u,j=Object.assign({prefixCls:N,icon:C,type:c,shape:T},y);return ve.createElement(Jr,{visible:S,motionName:`${I}-fade`},({className:_},B)=>ve.createElement(us,Object.assign({ref:Ar(x,B)},j,{onClick:E,className:ce(i,_)})))});var WG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const B3=e=>{var t;const{prefixCls:n,className:r,style:a,shape:i="circle",type:c="default",placement:u="top",icon:d=ve.createElement(kC,null),closeIcon:f,description:v,trigger:g,children:p,onOpenChange:y,open:C,onClick:S}=e,b=WG(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:x,getPrefixCls:$,closeIcon:w}=ur("floatButtonGroup"),E=(t=f??w)!==null&&t!==void 0?t:ve.createElement(Ro,null),O=$(gg,n),N=ar(O),[I,M,T]=z3(O,N),j=`${O}-group`,_=g&&["click","hover"].includes(g),B=u&&["top","left","right","bottom"].includes(u),H=ce(j,M,T,N,r,{[`${j}-rtl`]:x==="rtl",[`${j}-${i}`]:i,[`${j}-${i}-shadow`]:!_,[`${j}-${u}`]:_&&B}),[A]=Io("FloatButton",a==null?void 0:a.zIndex),F=Object.assign(Object.assign({},a),{zIndex:A}),D=ce(M,`${j}-wrap`),[L,W]=bn(!1,{value:C}),G=ve.useRef(null),V=g==="hover",k=g==="click",U=qt(X=>{L!==X&&(W(X),y==null||y(X))}),K=()=>{V&&U(!0)},q=()=>{V&&U(!1)},Z=X=>{k&&U(!L),S==null||S(X)};return ve.useEffect(()=>{if(k){const X=ee=>{var te;!((te=G.current)===null||te===void 0)&&te.contains(ee.target)||U(!1)};return document.addEventListener("click",X,{capture:!0}),()=>document.removeEventListener("click",X,{capture:!0})}},[k]),I(ve.createElement(MG,{value:i},ve.createElement("div",{ref:G,className:H,style:F,onMouseEnter:K,onMouseLeave:q},_?ve.createElement(ve.Fragment,null,ve.createElement(Jr,{visible:L,motionName:`${j}-wrap`},({className:X})=>ve.createElement("div",{className:ce(X,D)},p)),ve.createElement(us,Object.assign({type:c,icon:L?E:d,description:v,"aria-label":e["aria-label"],className:`${j}-trigger`,onClick:Z},b))):p)))};var L3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZE=e=>{var{backTop:t}=e,n=L3(e,["backTop"]);return t?l.createElement(A3,Object.assign({},n,{visibilityHeight:0})):l.createElement(us,Object.assign({},n))},KG=e=>{var{className:t,items:n}=e,r=L3(e,["className","items"]);const{prefixCls:a}=r,{getPrefixCls:i}=l.useContext(Rt),u=`${i(gg,a)}-pure`;return n?l.createElement(B3,Object.assign({className:ce(t,u)},r),n.map((d,f)=>l.createElement(ZE,Object.assign({key:f},d)))):l.createElement(ZE,Object.assign({className:ce(t,u)},r))};us.BackTop=A3;us.Group=B3;us._InternalPanelDoNotUseOrYouWillBeFired=KG;function gv(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 UG=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},
|
|
366
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
367
|
+
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)"}}}}},qG=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${re(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 ${re(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),JE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},GG=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},fn(e)),qG(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},JE(e,e.controlHeightSM)),"&-large":Object.assign({},JE(e,e.controlHeightLG))})}},XG=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:i,labelColor:c,labelFontSize:u,labelHeight:d,labelColonMarginInlineStart:f,labelColonMarginInlineEnd:v,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
368
|
+
&-hidden${a}-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:d,color:c,fontSize:u,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,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:f,marginInlineEnd:v},[`&${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(> ${a}-switch:only-child, > ${a}-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:Ky,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Bl=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),YG=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,
|
|
369
|
+
${t}-col-xl-24${n}-label`]:Bl(e)}}},QG=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,
|
|
370
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ZG=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Bl(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},JG=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,
|
|
371
|
+
${r}-col-24${n}-label,
|
|
372
|
+
${r}-col-xl-24${n}-label`]:Bl(e)},[`@media (max-width: ${re(e.screenXSMax)})`]:[ZG(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Bl(e)}}}],[`@media (max-width: ${re(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Bl(e)}}},[`@media (max-width: ${re(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Bl(e)}}},[`@media (max-width: ${re(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Bl(e)}}}}},eX=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}),k3=(e,t)=>rn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),HC=ln("Form",(e,{rootPrefixCls:t})=>{const n=k3(e,t);return[GG(n),XG(n),UG(n),YG(n),QG(n),JG(n),Rd(n),Ky]},eX,{order:-1e3}),eO=[];function g0(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const H3=({help:e,helpStatus:t,errors:n=eO,warnings:r=eO,className:a,fieldId:i,onVisibleChanged:c})=>{const{prefixCls:u}=l.useContext(Zy),d=`${u}-item-explain`,f=ar(u),[v,g,p]=HC(u,f),y=l.useMemo(()=>gc(u),[u]),C=gv(n),S=gv(r),b=l.useMemo(()=>e!=null?[g0(e,"help",t)]:[].concat(Te(C.map((w,E)=>g0(w,"error","error",E))),Te(S.map((w,E)=>g0(w,"warning","warning",E)))),[e,t,C,S]),x=l.useMemo(()=>{const w={};return b.forEach(({key:E})=>{w[E]=(w[E]||0)+1}),b.map((E,O)=>Object.assign(Object.assign({},E),{key:w[E.key]>1?`${E.key}-fallback-${O}`:E.key}))},[b]),$={};return i&&($.id=`${i}_help`),v(l.createElement(Jr,{motionDeadline:y.motionDeadline,motionName:`${u}-show-help`,visible:!!x.length,onVisibleChanged:c},w=>{const{className:E,style:O}=w;return l.createElement("div",Object.assign({},$,{className:ce(d,E,p,f,a,g),style:O}),l.createElement(_y,Object.assign({keys:x},gc(u),{motionName:`${u}-show-help-item`,component:!1}),N=>{const{key:I,error:M,errorStatus:T,className:j,style:_}=N;return l.createElement("div",{key:I,className:ce(j,{[`${d}-${T}`]:T}),style:_},M)}))}))};var tX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const nX=(e,t)=>{const n=l.useContext(_r),{getPrefixCls:r,direction:a,requiredMark:i,colon:c,scrollToFirstError:u,className:d,style:f}=ur("form"),{prefixCls:v,className:g,rootClassName:p,size:y,disabled:C=n,form:S,colon:b,labelAlign:x,labelWrap:$,labelCol:w,wrapperCol:E,hideRequiredMark:O,layout:N="horizontal",scrollToFirstError:I,requiredMark:M,onFinishFailed:T,name:j,style:_,feedbackIcons:B,variant:H}=e,A=tX(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),F=Br(y),D=l.useContext(QR),L=l.useMemo(()=>M!==void 0?M:O?!1:i!==void 0?i:!0,[O,M,i]),W=b??c,G=r("form",v),V=ar(G),[k,U,K]=HC(G,V),q=ce(G,`${G}-${N}`,{[`${G}-hide-required-mark`]:L===!1,[`${G}-rtl`]:a==="rtl",[`${G}-${F}`]:F},K,V,U,d,g,p),[Z]=P4(S),{__INTERNAL__:X}=Z;X.name=j;const ee=l.useMemo(()=>({name:j,labelAlign:x,labelCol:w,labelWrap:$,wrapperCol:E,layout:N,colon:W,requiredMark:L,itemRef:X.itemRef,form:Z,feedbackIcons:B}),[j,x,w,E,N,W,L,Z,B]),te=l.useRef(null);l.useImperativeHandle(t,()=>{var ne;return Object.assign(Object.assign({},Z),{nativeElement:(ne=te.current)===null||ne===void 0?void 0:ne.nativeElement})});const oe=(ne,Q)=>{if(ne){let ie={block:"nearest"};typeof ne=="object"&&(ie=Object.assign(Object.assign({},ie),ne)),Z.scrollToField(Q,ie)}},le=ne=>{if(T==null||T(ne),ne.errorFields.length){const Q=ne.errorFields[0].name;if(I!==void 0){oe(I,Q);return}u!==void 0&&oe(u,Q)}};return k(l.createElement(SN.Provider,{value:H},l.createElement(jy,{disabled:C},l.createElement(ql.Provider,{value:F},l.createElement(yN,{validateMessages:D},l.createElement(gi.Provider,{value:ee},l.createElement(CN,{status:!0},l.createElement(Rc,Object.assign({id:j},A,{name:j,onFinishFailed:le,form:Z,ref:te,style:Object.assign(Object.assign({},f),_),className:q})))))))))},rX=l.forwardRef(nX);function aX(e){if(typeof e=="function")return e;const t=Fr(e);return t.length<=1?t[0]:t}const F3=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(zr);return{status:e,errors:t,warnings:n}};F3.Context=zr;function oX(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),i=l.useRef(!1);l.useEffect(()=>(i.current=!1,()=>{i.current=!0,Gt.cancel(r.current),r.current=null}),[]);function c(u){i.current||(r.current===null&&(a.current=[],r.current=Gt(()=>{r.current=null,n(d=>{let f=d;return a.current.forEach(v=>{f=v(f)}),f})})),a.current.push(u))}return[t,c]}function iX(){const{itemRef:e}=l.useContext(gi),t=l.useRef({});function n(r,a){const i=a&&typeof a=="object"&&sl(a),c=r.join("_");return(t.current.name!==c||t.current.originRef!==i)&&(t.current.name=c,t.current.originRef=i,t.current.ref=Ar(e(r),i)),t.current.ref}return n}const lX=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},sX=$c(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=k3(e,t);return lX(n)});var cX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const uX=24,dX=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:i,errors:c,warnings:u,_internalItemRender:d,extra:f,help:v,fieldId:g,marginBottom:p,onErrorVisibleChanged:y,label:C}=e,S=`${t}-item`,b=l.useContext(gi),x=l.useMemo(()=>{let A=Object.assign({},a||b.wrapperCol||{});return C===null&&!r&&!a&&b.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(D=>{const L=D?[D]:[],W=ga(b.labelCol,L),G=typeof W=="object"?W:{},V=ga(A,L),k=typeof V=="object"?V:{};"span"in G&&!("offset"in k)&&G.span<uX&&(A=to(A,[].concat(L,["offset"]),G.span))}),A},[a,b.wrapperCol,b.labelCol,C,r]),$=ce(`${S}-control`,x.className),w=l.useMemo(()=>{const{labelCol:A,wrapperCol:F}=b;return cX(b,["labelCol","wrapperCol"])},[b]),E=l.useRef(null),[O,N]=l.useState(0);nn(()=>{f&&E.current?N(E.current.clientHeight):N(0)},[f]);const I=l.createElement("div",{className:`${S}-control-input`},l.createElement("div",{className:`${S}-control-input-content`},i)),M=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),T=p!==null||c.length||u.length?l.createElement(Zy.Provider,{value:M},l.createElement(H3,{fieldId:g,errors:c,warnings:u,help:v,helpStatus:n,className:`${S}-explain-connected`,onVisibleChanged:y})):null,j={};g&&(j.id=`${g}_extra`);const _=f?l.createElement("div",Object.assign({},j,{className:`${S}-extra`,ref:E}),f):null,B=T||_?l.createElement("div",{className:`${S}-additional`,style:p?{minHeight:p+O}:{}},T,_):null,H=d&&d.mark==="pro_table_render"&&d.render?d.render(e,{input:I,errorList:T,extra:_}):l.createElement(l.Fragment,null,I,B);return l.createElement(gi.Provider,{value:w},l.createElement(va,Object.assign({},x,{className:$}),H),l.createElement(sX,{prefixCls:t}))};var fX={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"},mX=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:fX}))},vX=l.forwardRef(mX),gX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const pX=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:a,colon:i,required:c,requiredMark:u,tooltip:d,vertical:f})=>{var v;const[g]=Ra("Form"),{labelAlign:p,labelCol:y,labelWrap:C,colon:S}=l.useContext(gi);if(!t)return null;const b=r||y||{},x=a||p,$=`${e}-item-label`,w=ce($,x==="left"&&`${$}-left`,b.className,{[`${$}-wrap`]:!!C});let E=t;const O=i===!0||S!==!1&&i!==!1;O&&!f&&typeof t=="string"&&t.trim()&&(E=t.replace(/[:|:]\s*$/,""));const I=_3(d);if(I){const{icon:H=l.createElement(vX,null)}=I,A=gX(I,["icon"]),F=l.createElement(Cr,Object.assign({},A),l.cloneElement(H,{className:`${e}-item-tooltip`,title:"",onClick:D=>{D.preventDefault()},tabIndex:null}));E=l.createElement(l.Fragment,null,E,F)}const M=u==="optional",T=typeof u=="function",j=u===!1;T?E=u(E,{required:!!c}):M&&!c&&(E=l.createElement(l.Fragment,null,E,l.createElement("span",{className:`${e}-item-optional`,title:""},(g==null?void 0:g.optional)||((v=oo.Form)===null||v===void 0?void 0:v.optional))));let _;j?_="hidden":(M||T)&&(_="optional");const B=ce({[`${e}-item-required`]:c,[`${e}-item-required-mark-${_}`]:_,[`${e}-item-no-colon`]:!O});return l.createElement(va,Object.assign({},b,{className:w}),l.createElement("label",{htmlFor:n,className:B,title:typeof t=="string"?t:""},E))},hX={success:Ec,warning:ns,error:cl,validating:$o};function V3({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:i,meta:c,noStyle:u,name:d}){const f=`${i}-item`,{feedbackIcons:v}=l.useContext(gi),g=j4(t,n,c,null,!!r,a),{isFormItemInput:p,status:y,hasFeedback:C,feedbackIcon:S,name:b}=l.useContext(zr),x=l.useMemo(()=>{var $;let w;if(r){const O=r!==!0&&r.icons||v,N=g&&(($=O==null?void 0:O({status:g,errors:t,warnings:n}))===null||$===void 0?void 0:$[g]),I=g?hX[g]:null;w=N!==!1&&I?l.createElement("span",{className:ce(`${f}-feedback-icon`,`${f}-feedback-icon-${g}`)},N||l.createElement(I,null)):null}const E={status:g||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:w,isFormItemInput:!0,name:d};return u&&(E.status=(g??y)||"",E.isFormItemInput=p,E.hasFeedback=!!(r??C),E.feedbackIcon=r!==void 0?E.feedbackIcon:S,E.name=d??b),E},[g,r,u,p,y]);return l.createElement(zr.Provider,{value:x},e)}var bX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function yX(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:i,errors:c,warnings:u,validateStatus:d,meta:f,hasFeedback:v,hidden:g,children:p,fieldId:y,required:C,isRequired:S,onSubItemMetaChange:b,layout:x,name:$}=e,w=bX(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),E=`${t}-item`,{requiredMark:O,layout:N}=l.useContext(gi),I=x||N,M=I==="vertical",T=l.useRef(null),j=gv(c),_=gv(u),B=i!=null,H=!!(B||c.length||u.length),A=!!T.current&&Oc(T.current),[F,D]=l.useState(null);nn(()=>{if(H&&T.current){const k=getComputedStyle(T.current);D(Number.parseInt(k.marginBottom,10))}},[H,A]);const L=k=>{k||D(null)},G=((k=!1)=>{const U=k?j:f.errors,K=k?_:f.warnings;return j4(U,K,f,"",!!v,d)})(),V=ce(E,n,r,{[`${E}-with-help`]:B||j.length||_.length,[`${E}-has-feedback`]:G&&v,[`${E}-has-success`]:G==="success",[`${E}-has-warning`]:G==="warning",[`${E}-has-error`]:G==="error",[`${E}-is-validating`]:G==="validating",[`${E}-hidden`]:g,[`${E}-${I}`]:I});return l.createElement("div",{className:V,style:a,ref:T},l.createElement(dv,Object.assign({className:`${E}-row`},xn(w,["_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(pX,Object.assign({htmlFor:y},e,{requiredMark:O,required:C??S,prefixCls:t,vertical:M})),l.createElement(dX,Object.assign({},e,f,{errors:j,warnings:_,prefixCls:t,status:G,help:i,marginBottom:F,onErrorVisibleChanged:L}),l.createElement(bN.Provider,{value:b},l.createElement(V3,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:v,validateStatus:G,name:$},p)))),!!F&&l.createElement("div",{className:`${E}-margin-offset`,style:{marginBottom:-F}}))}const CX="__SPLIT__";function SX(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const i=e[a],c=t[a];return i===c||typeof i=="function"||typeof c=="function"})}const xX=l.memo(({children:e})=>e,(e,t)=>SX(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function tO(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $X(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:i,shouldUpdate:c,rules:u,children:d,required:f,label:v,messageVariables:g,trigger:p="onChange",validateTrigger:y,hidden:C,help:S,layout:b}=e,{getPrefixCls:x}=l.useContext(Rt),{name:$}=l.useContext(gi),w=aX(d),E=typeof w=="function",O=l.useContext(bN),{validateTrigger:N}=l.useContext(Yl),I=y!==void 0?y:N,M=t!=null,T=x("form",i),j=ar(T),[_,B,H]=HC(T,j);Uo();const A=l.useContext(gd),F=l.useRef(null),[D,L]=oX({}),[W,G]=Gl(()=>tO()),V=ee=>{const te=A==null?void 0:A.getKey(ee.name);if(G(ee.destroy?tO():ee,!0),n&&S!==!1&&O){let oe=ee.name;if(ee.destroy)oe=F.current||oe;else if(te!==void 0){const[le,ne]=te;oe=[le].concat(Te(ne)),F.current=oe}O(ee,oe)}},k=(ee,te)=>{L(oe=>{const le=Object.assign({},oe),Q=[].concat(Te(ee.name.slice(0,-1)),Te(te)).join(CX);return ee.destroy?delete le[Q]:le[Q]=ee,le})},[U,K]=l.useMemo(()=>{const ee=Te(W.errors),te=Te(W.warnings);return Object.values(D).forEach(oe=>{ee.push.apply(ee,Te(oe.errors||[])),te.push.apply(te,Te(oe.warnings||[]))}),[ee,te]},[D,W.errors,W.warnings]),q=iX();function Z(ee,te,oe){return n&&!C?l.createElement(V3,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:W,errors:U,warnings:K,noStyle:!0,name:t},ee):l.createElement(yX,Object.assign({key:"row"},e,{className:ce(r,H,j,B),prefixCls:T,fieldId:te,isRequired:oe,errors:U,warnings:K,meta:W,onSubItemMetaChange:k,layout:b,name:t}),ee)}if(!M&&!E&&!a)return _(Z(w));let X={};return typeof v=="string"?X.label=v:t&&(X.label=String(t)),g&&(X=Object.assign(Object.assign({},X),g)),_(l.createElement(Yy,Object.assign({},e,{messageVariables:X,trigger:p,validateTrigger:I,onMetaChange:V}),(ee,te,oe)=>{const le=td(t).length&&te?te.name:[],ne=T4(le,$),Q=f!==void 0?f:!!(u!=null&&u.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const se=de(oe);return(se==null?void 0:se.required)&&!(se!=null&&se.warningOnly)}return!1})),ie=Object.assign({},ee);let ue=null;if(Array.isArray(w)&&M)ue=w;else if(!(E&&(!(c||a)||M))){if(!(a&&!E&&!M))if(l.isValidElement(w)){const de=Object.assign(Object.assign({},w.props),ie);if(de.id||(de.id=ne),S||U.length>0||K.length>0||e.extra){const he=[];(S||U.length>0)&&he.push(`${ne}_help`),e.extra&&he.push(`${ne}_extra`),de["aria-describedby"]=he.join(" ")}U.length>0&&(de["aria-invalid"]="true"),Q&&(de["aria-required"]="true"),So(w)&&(de.ref=q(le,w)),new Set([].concat(Te(td(p)),Te(td(I)))).forEach(he=>{de[he]=(...Oe)=>{var Re,pe,Ie,we,ye;(Ie=ie[he])===null||Ie===void 0||(Re=Ie).call.apply(Re,[ie].concat(Oe)),(ye=(we=w.props)[he])===null||ye===void 0||(pe=ye).call.apply(pe,[we].concat(Oe))}});const ge=[de["aria-required"],de["aria-invalid"],de["aria-describedby"]];ue=l.createElement(xX,{control:ie,update:w,childProps:ge},xr(w,de))}else E&&(c||a)&&!M?ue=w(oe):ue=w}return Z(ue,ne,Q)}))}const W3=$X;W3.useStatus=F3;var wX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const EX=e=>{var{prefixCls:t,children:n}=e,r=wX(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(Rt),i=a("form",t),c=l.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return l.createElement(vN,Object.assign({},r),(u,d,f)=>l.createElement(Zy.Provider,{value:c},n(u.map(v=>Object.assign(Object.assign({},v),{fieldKey:v.key})),d,{errors:f.errors,warnings:f.warnings})))};function OX(){const{form:e}=l.useContext(gi);return e}const mn=rX;mn.Item=W3;mn.List=EX;mn.ErrorList=H3;mn.useForm=P4;mn.useFormInstance=OX;mn.useWatch=hN;mn.Provider=yN;mn.create=()=>{};var RX={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"},IX=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:RX}))},K3=l.forwardRef(IX);function nO(e,t,n,r){var a=ad.unstable_batchedUpdates?function(c){ad.unstable_batchedUpdates(n,c)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}const NX=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Rt),{prefixCls:r,className:a}=e,i=t("input-group",r),c=t("input"),[u,d,f]=H4(c),v=ce(i,f,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},d,a),g=l.useContext(zr),p=l.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return u(l.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(zr.Provider,{value:p},e.children)))},MX=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}}}},TX=ln(["Input","OTP"],e=>{const t=rn(e,is(e));return MX(t)},ls);var jX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PX=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:i,index:c,mask:u}=e,d=jX(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:f}=l.useContext(Rt),v=f("otp"),g=typeof u=="string"?u:r,p=l.useRef(null);l.useImperativeHandle(t,()=>p.current);const y=b=>{a(c,b.target.value)},C=()=>{Gt(()=>{var b;const x=(b=p.current)===null||b===void 0?void 0:b.input;document.activeElement===x&&x&&x.select()})},S=b=>{const{key:x,ctrlKey:$,metaKey:w}=b;x==="ArrowLeft"?i(c-1):x==="ArrowRight"?i(c+1):x==="z"&&($||w)?b.preventDefault():x==="Backspace"&&!r&&i(c-1),C()};return l.createElement("span",{className:`${v}-input-wrapper`,role:"presentation"},u&&r!==""&&r!==void 0&&l.createElement("span",{className:`${v}-mask-icon`,"aria-hidden":"true"},g),l.createElement(kd,Object.assign({"aria-label":`OTP Input ${c+1}`,type:u===!0?"password":"text"},d,{ref:p,value:r,onInput:y,onFocus:C,onKeyDown:S,onMouseDown:C,onMouseUp:C,className:ce(n,{[`${v}-mask-input`]:u})})))});var DX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function vm(e){return(e||"").split("")}const _X=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?l.createElement("span",{className:`${n}-separator`},a):null},zX=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:i,value:c,onChange:u,formatter:d,separator:f,variant:v,disabled:g,status:p,autoFocus:y,mask:C,type:S,onInput:b,inputMode:x}=e,$=DX(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:E}=l.useContext(Rt),O=w("otp",n),N=Sr($,{aria:!0,data:!0,attr:!0}),[I,M,T]=TX(O),j=Br(q=>a??q),_=l.useContext(zr),B=dl(_.status,p),H=l.useMemo(()=>Object.assign(Object.assign({},_),{status:B,hasFeedback:!1,feedbackIcon:null}),[_,B]),A=l.useRef(null),F=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var q;(q=F.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let Z=0;Z<r;Z+=1)(q=F.current[Z])===null||q===void 0||q.blur()},nativeElement:A.current}));const D=q=>d?d(q):q,[L,W]=l.useState(()=>vm(D(i||"")));l.useEffect(()=>{c!==void 0&&W(vm(c))},[c]);const G=qt(q=>{W(q),b&&b(q),u&&q.length===r&&q.every(Z=>Z)&&q.some((Z,X)=>L[X]!==Z)&&u(q.join(""))}),V=qt((q,Z)=>{let X=Te(L);for(let te=0;te<q;te+=1)X[te]||(X[te]="");Z.length<=1?X[q]=Z:X=X.slice(0,q).concat(vm(Z)),X=X.slice(0,r);for(let te=X.length-1;te>=0&&!X[te];te-=1)X.pop();const ee=D(X.map(te=>te||" ").join(""));return X=vm(ee).map((te,oe)=>te===" "&&!X[oe]?X[oe]:te),X}),k=(q,Z)=>{var X;const ee=V(q,Z),te=Math.min(q+Z.length,r-1);te!==q&&ee[q]!==void 0&&((X=F.current[te])===null||X===void 0||X.focus()),G(ee)},U=q=>{var Z;(Z=F.current[q])===null||Z===void 0||Z.focus()},K={variant:v,disabled:g,status:B,mask:C,type:S,inputMode:x};return I(l.createElement("div",Object.assign({},N,{ref:A,className:ce(O,{[`${O}-sm`]:j==="small",[`${O}-lg`]:j==="large",[`${O}-rtl`]:E==="rtl"},T,M),role:"group"}),l.createElement(zr.Provider,{value:H},Array.from({length:r}).map((q,Z)=>{const X=`otp-${Z}`,ee=L[Z]||"";return l.createElement(l.Fragment,{key:X},l.createElement(PX,Object.assign({ref:te=>{F.current[Z]=te},index:Z,size:j,htmlSize:1,className:`${O}-input`,onChange:k,value:ee,onActiveChange:U,autoFocus:Z===0&&y},K)),Z<r-1&&l.createElement(_X,{separator:f,index:Z,prefixCls:O}))}))))});var AX={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"},BX=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:AX}))},LX=l.forwardRef(BX),kX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const HX=e=>e?l.createElement(K3,null):l.createElement(LX,null),FX={click:"onClick",hover:"onMouseOver"},VX=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:i=HX,suffix:c}=e,u=l.useContext(_r),d=n??u,f=typeof a=="object"&&a.visible!==void 0,[v,g]=l.useState(()=>f?a.visible:!1),p=l.useRef(null);l.useEffect(()=>{f&&g(a.visible)},[f,a]);const y=O3(p),C=()=>{var _;if(d)return;v&&y();const B=!v;g(B),typeof a=="object"&&((_=a.onVisibleChange)===null||_===void 0||_.call(a,B))},S=_=>{const B=FX[r]||"",H=i(v),A={[B]:C,className:`${_}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return l.cloneElement(l.isValidElement(H)?H:l.createElement("span",null,H),A)},{className:b,prefixCls:x,inputPrefixCls:$,size:w}=e,E=kX(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=l.useContext(Rt),N=O("input",$),I=O("input-password",x),M=a&&S(I),T=ce(I,b,{[`${I}-${w}`]:!!w}),j=Object.assign(Object.assign({},xn(E,["suffix","iconRender","visibilityToggle"])),{type:v?"text":"password",className:T,prefixCls:N,suffix:l.createElement(l.Fragment,null,M,c)});return w&&(j.size=w),l.createElement(kd,Object.assign({ref:Ar(t,p)},j))});var WX=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const KX=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:i,suffix:c,enterButton:u=!1,addonAfter:d,loading:f,disabled:v,onSearch:g,onChange:p,onCompositionStart:y,onCompositionEnd:C,variant:S,onPressEnter:b}=e,x=WX(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:$,direction:w}=l.useContext(Rt),E=l.useRef(!1),O=$("input-search",n),N=$("input",r),{compactSize:I}=No(O,w),M=Br(K=>{var q;return(q=i??I)!==null&&q!==void 0?q:K}),T=l.useRef(null),j=K=>{K!=null&&K.target&&K.type==="click"&&g&&g(K.target.value,K,{source:"clear"}),p==null||p(K)},_=K=>{var q;document.activeElement===((q=T.current)===null||q===void 0?void 0:q.input)&&K.preventDefault()},B=K=>{var q,Z;g&&g((Z=(q=T.current)===null||q===void 0?void 0:q.input)===null||Z===void 0?void 0:Z.value,K,{source:"input"})},H=K=>{E.current||f||(b==null||b(K),B(K))},A=typeof u=="boolean"?l.createElement(Dd,null):null,F=`${O}-button`;let D;const L=u||{},W=L.type&&L.type.__ANT_BUTTON===!0;W||L.type==="button"?D=xr(L,Object.assign({onMouseDown:_,onClick:K=>{var q,Z;(Z=(q=L==null?void 0:L.props)===null||q===void 0?void 0:q.onClick)===null||Z===void 0||Z.call(q,K),B(K)},key:"enterButton"},W?{className:F,size:M}:{})):D=l.createElement(Pt,{className:F,color:u?"primary":"default",size:M,disabled:v,key:"enterButton",onMouseDown:_,onClick:B,loading:f,icon:A,variant:S==="borderless"||S==="filled"||S==="underlined"?"text":u?"solid":void 0},u),d&&(D=[D,xr(d,{key:"addonAfter"})]);const G=ce(O,{[`${O}-rtl`]:w==="rtl",[`${O}-${M}`]:!!M,[`${O}-with-button`]:!!u},a),V=K=>{E.current=!0,y==null||y(K)},k=K=>{E.current=!1,C==null||C(K)},U=Object.assign(Object.assign({},x),{className:G,prefixCls:N,type:"search",size:M,variant:S,onPressEnter:H,onCompositionStart:V,onCompositionEnd:k,addonAfter:D,suffix:c,onChange:j,disabled:v,_skipAddonWarning:!0});return l.createElement(kd,Object.assign({ref:Ar(T,t)},U))});var UX=`
|
|
373
|
+
min-height:0 !important;
|
|
374
|
+
max-height:none !important;
|
|
375
|
+
height:0 !important;
|
|
376
|
+
visibility:hidden !important;
|
|
377
|
+
overflow:hidden !important;
|
|
378
|
+
position:absolute !important;
|
|
379
|
+
z-index:-1000 !important;
|
|
380
|
+
top:0 !important;
|
|
381
|
+
right:0 !important;
|
|
382
|
+
pointer-events: none !important;
|
|
383
|
+
`,qX=["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"],p0={},Aa;function GX(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&&p0[n])return p0[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=qX.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),d={sizingStyle:u,paddingSize:i,borderSize:c,boxSizing:a};return t&&n&&(p0[n]=d),d}function XX(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;Aa||(Aa=document.createElement("textarea"),Aa.setAttribute("tab-index","-1"),Aa.setAttribute("aria-hidden","true"),Aa.setAttribute("name","hiddenTextarea"),document.body.appendChild(Aa)),e.getAttribute("wrap")?Aa.setAttribute("wrap",e.getAttribute("wrap")):Aa.removeAttribute("wrap");var a=GX(e,t),i=a.paddingSize,c=a.borderSize,u=a.boxSizing,d=a.sizingStyle;Aa.setAttribute("style","".concat(d,";").concat(UX)),Aa.value=e.value||e.placeholder||"";var f=void 0,v=void 0,g,p=Aa.scrollHeight;if(u==="border-box"?p+=c:u==="content-box"&&(p-=i),n!==null||r!==null){Aa.value=" ";var y=Aa.scrollHeight-i;n!==null&&(f=y*n,u==="border-box"&&(f=f+i+c),p=Math.max(f,p)),r!==null&&(v=y*r,u==="border-box"&&(v=v+i+c),g=p>v?"":"hidden",p=Math.min(v,p))}var C={height:p,overflowY:g,resize:"none"};return f&&(C.minHeight=f),v&&(C.maxHeight=v),C}var YX=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],h0=0,b0=1,y0=2,QX=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,i=n.value,c=n.autoSize,u=n.onResize,d=n.className,f=n.style,v=n.disabled,g=n.onChange;n.onInternalAutoSize;var p=At(n,YX),y=bn(a,{value:i,postState:function(K){return K??""}}),C=me(y,2),S=C[0],b=C[1],x=function(K){b(K.target.value),g==null||g(K)},$=l.useRef();l.useImperativeHandle(t,function(){return{textArea:$.current}});var w=l.useMemo(function(){return c&&$t(c)==="object"?[c.minRows,c.maxRows]:[]},[c]),E=me(w,2),O=E[0],N=E[1],I=!!c,M=l.useState(y0),T=me(M,2),j=T[0],_=T[1],B=l.useState(),H=me(B,2),A=H[0],F=H[1],D=function(){_(h0)};nn(function(){I&&D()},[i,O,N,I]),nn(function(){if(j===h0)_(b0);else if(j===b0){var U=XX($.current,!1,O,N);_(y0),F(U)}},[j]);var L=l.useRef(),W=function(){Gt.cancel(L.current)},G=function(K){j===y0&&(u==null||u(K),c&&(W(),L.current=Gt(function(){D()})))};l.useEffect(function(){return W},[]);var V=I?A:null,k=ae(ae({},f),V);return(j===h0||j===b0)&&(k.overflowY="hidden",k.overflowX="hidden"),l.createElement(la,{onResize:G,disabled:!(c||u)},l.createElement("textarea",xe({},p,{ref:$,style:k,className:ce(r,d,J({},"".concat(r,"-disabled"),v)),disabled:v,value:S,onChange:x})))}),ZX=["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"],JX=ve.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,i=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,f=e.maxLength,v=e.onCompositionStart,g=e.onCompositionEnd,p=e.suffix,y=e.prefixCls,C=y===void 0?"rc-textarea":y,S=e.showCount,b=e.count,x=e.className,$=e.style,w=e.disabled,E=e.hidden,O=e.classNames,N=e.styles,I=e.onResize,M=e.onClear,T=e.onPressEnter,j=e.readOnly,_=e.autoSize,B=e.onKeyDown,H=At(e,ZX),A=bn(r,{value:a,defaultValue:r}),F=me(A,2),D=F[0],L=F[1],W=D==null?"":String(D),G=ve.useState(!1),V=me(G,2),k=V[0],U=V[1],K=ve.useRef(!1),q=ve.useState(null),Z=me(q,2),X=Z[0],ee=Z[1],te=l.useRef(null),oe=l.useRef(null),le=function(){var Ee;return(Ee=oe.current)===null||Ee===void 0?void 0:Ee.textArea},ne=function(){le().focus()};l.useImperativeHandle(t,function(){var _e;return{resizableTextArea:oe.current,focus:ne,blur:function(){le().blur()},nativeElement:((_e=te.current)===null||_e===void 0?void 0:_e.nativeElement)||le()}}),l.useEffect(function(){U(function(_e){return!w&&_e})},[w]);var Q=ve.useState(null),ie=me(Q,2),ue=ie[0],de=ie[1];ve.useEffect(function(){if(ue){var _e;(_e=le()).setSelectionRange.apply(_e,Te(ue))}},[ue]);var se=$3(b,S),ge=(n=se.max)!==null&&n!==void 0?n:f,he=Number(ge)>0,Oe=se.strategy(W),Re=!!ge&&Oe>ge,pe=function(Ee,Pe){var be=Pe;!K.current&&se.exceedFormatter&&se.max&&se.strategy(Pe)>se.max&&(be=se.exceedFormatter(Pe,{max:se.max}),Pe!==be&&de([le().selectionStart||0,le().selectionEnd||0])),L(be),fv(Ee.currentTarget,Ee,u,be)},Ie=function(Ee){K.current=!0,v==null||v(Ee)},we=function(Ee){K.current=!1,pe(Ee,Ee.currentTarget.value),g==null||g(Ee)},ye=function(Ee){pe(Ee,Ee.target.value)},ze=function(Ee){Ee.key==="Enter"&&T&&T(Ee),B==null||B(Ee)},Ae=function(Ee){U(!0),i==null||i(Ee)},Ye=function(Ee){U(!1),c==null||c(Ee)},Ke=function(Ee){L(""),ne(),fv(le(),Ee,u)},Fe=p,Ge;se.show&&(se.showFormatter?Ge=se.showFormatter({value:W,count:Oe,maxLength:ge}):Ge="".concat(Oe).concat(he?" / ".concat(ge):""),Fe=ve.createElement(ve.Fragment,null,Fe,ve.createElement("span",{className:ce("".concat(C,"-data-count"),O==null?void 0:O.count),style:N==null?void 0:N.count},Ge)));var je=function(Ee){var Pe;I==null||I(Ee),(Pe=le())!==null&&Pe!==void 0&&Pe.style.height&&ee(!0)},$e=!_&&!S&&!d;return ve.createElement(_C,{ref:te,value:W,allowClear:d,handleReset:Ke,suffix:Fe,prefixCls:C,classNames:ae(ae({},O),{},{affixWrapper:ce(O==null?void 0:O.affixWrapper,J(J({},"".concat(C,"-show-count"),S),"".concat(C,"-textarea-allow-clear"),d))}),disabled:w,focused:k,className:ce(x,Re&&"".concat(C,"-out-of-range")),style:ae(ae({},$),X&&!$e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ge=="string"?Ge:void 0}},hidden:E,readOnly:j,onClear:M},ve.createElement(QX,xe({},H,{autoSize:_,maxLength:f,onKeyDown:ze,onChange:ye,onFocus:Ae,onBlur:Ye,onCompositionStart:Ie,onCompositionEnd:we,className:ce(O==null?void 0:O.textarea),style:ae(ae({},N==null?void 0:N.textarea),{},{resize:$==null?void 0:$.resize}),disabled:w,prefixCls:C,onResize:je,ref:oe,readOnly:j})))});const eY=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"}},[`
|
|
384
|
+
&-allow-clear > ${t},
|
|
385
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
386
|
+
`]:{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}}}}}},tY=ln(["Input","TextArea"],e=>{const t=rn(e,is(e));return eY(t)},ls,{resetFont:!1});var nY=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const U3=l.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:i,disabled:c,status:u,allowClear:d,classNames:f,rootClassName:v,className:g,style:p,styles:y,variant:C,showCount:S,onMouseDown:b,onResize:x}=e,$=nY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:w,direction:E,allowClear:O,autoComplete:N,className:I,style:M,classNames:T,styles:j}=ur("textArea"),_=l.useContext(_r),B=c??_,{status:H,hasFeedback:A,feedbackIcon:F}=l.useContext(zr),D=dl(H,u),L=l.useRef(null);l.useImperativeHandle(t,()=>{var se;return{resizableTextArea:(se=L.current)===null||se===void 0?void 0:se.resizableTextArea,focus:ge=>{var he,Oe;DC((Oe=(he=L.current)===null||he===void 0?void 0:he.resizableTextArea)===null||Oe===void 0?void 0:Oe.textArea,ge)},blur:()=>{var ge;return(ge=L.current)===null||ge===void 0?void 0:ge.blur()}}});const W=w("input",r),G=ar(W),[V,k,U]=k4(W,v),[K]=tY(W,G),{compactSize:q,compactItemClassnames:Z}=No(W,E),X=Br(se=>{var ge;return(ge=i??q)!==null&&ge!==void 0?ge:se}),[ee,te]=fl("textArea",C,a),oe=E3(d??O),[le,ne]=l.useState(!1),[Q,ie]=l.useState(!1),ue=se=>{ne(!0),b==null||b(se);const ge=()=>{ne(!1),document.removeEventListener("mouseup",ge)};document.addEventListener("mouseup",ge)},de=se=>{var ge,he;if(x==null||x(se),le&&typeof getComputedStyle=="function"){const Oe=(he=(ge=L.current)===null||ge===void 0?void 0:ge.nativeElement)===null||he===void 0?void 0:he.querySelector("textarea");Oe&&getComputedStyle(Oe).resize==="both"&&ie(!0)}};return V(K(l.createElement(JX,Object.assign({autoComplete:N},$,{style:Object.assign(Object.assign({},M),p),styles:Object.assign(Object.assign({},j),y),disabled:B,allowClear:oe,className:ce(U,G,g,v,Z,I,Q&&`${W}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},f),T),{textarea:ce({[`${W}-sm`]:X==="small",[`${W}-lg`]:X==="large"},k,f==null?void 0:f.textarea,T.textarea,le&&`${W}-mouse-active`),variant:ce({[`${W}-${ee}`]:te},pi(W,D)),affixWrapper:ce(`${W}-textarea-affix-wrapper`,{[`${W}-affix-wrapper-rtl`]:E==="rtl",[`${W}-affix-wrapper-sm`]:X==="small",[`${W}-affix-wrapper-lg`]:X==="large",[`${W}-textarea-show-count`]:S||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:W,suffix:A&&l.createElement("span",{className:`${W}-textarea-suffix`},F),showCount:S,ref:L,onResize:de,onMouseDown:ue}))))}),gr=kd;gr.Group=NX;gr.Search=KX;gr.TextArea=U3;gr.Password=VX;gr.OTP=zX;function rY(e,t,n){return typeof n=="boolean"?n:e.length?!0:Fr(t).some(a=>a.type===KM)}var q3=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function pg({suffixCls:e,tagName:t,displayName:n}){return r=>l.forwardRef((i,c)=>l.createElement(r,Object.assign({ref:c,suffixCls:e,tagName:t},i)))}const FC=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:i}=e,c=q3(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=l.useContext(Rt),d=u("layout",n),[f,v,g]=WM(d),p=r?`${d}-${r}`:d;return f(l.createElement(i,Object.assign({className:ce(n||p,a,v,g),ref:t},c)))}),aY=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(Rt),[r,a]=l.useState([]),{prefixCls:i,className:c,rootClassName:u,children:d,hasSider:f,tagName:v,style:g}=e,p=q3(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=xn(p,["suffixCls"]),{getPrefixCls:C,className:S,style:b}=ur("layout"),x=C("layout",i),$=rY(r,d,f),[w,E,O]=WM(x),N=ce(x,{[`${x}-has-sider`]:$,[`${x}-rtl`]:n==="rtl"},S,c,u,E,O),I=l.useMemo(()=>({siderHook:{addSider:M=>{a(T=>[].concat(Te(T),[M]))},removeSider:M=>{a(T=>T.filter(j=>j!==M))}}}),[]);return w(l.createElement(HM.Provider,{value:I},l.createElement(v,Object.assign({ref:t,className:N,style:Object.assign(Object.assign({},b),g)},y),d)))}),oY=pg({tagName:"div",displayName:"Layout"})(aY),iY=pg({suffixCls:"header",tagName:"header",displayName:"Header"})(FC),lY=pg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(FC),sY=pg({suffixCls:"content",tagName:"main",displayName:"Content"})(FC),il=oY;il.Header=iY;il.Footer=lY;il.Content=sY;il.Sider=KM;il._InternalSiderContext=rg;var cY={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"},uY=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:cY}))},rO=l.forwardRef(uY),dY={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"},fY=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:dY}))},aO=l.forwardRef(fY),mY={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:"页码"},vY=[10,20,50,100],gY=function(t){var n=t.pageSizeOptions,r=n===void 0?vY:n,a=t.locale,i=t.changeSize,c=t.pageSize,u=t.goButton,d=t.quickGo,f=t.rootPrefixCls,v=t.disabled,g=t.buildOptionText,p=t.showSizeChanger,y=t.sizeChangerRender,C=ve.useState(""),S=me(C,2),b=S[0],x=S[1],$=function(){return!b||Number.isNaN(b)?void 0:Number(b)},w=typeof g=="function"?g:function(B){return"".concat(B," ").concat(a.items_per_page)},E=function(H){x(H.target.value)},O=function(H){u||b===""||(x(""),!(H.relatedTarget&&(H.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||H.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&(d==null||d($())))},N=function(H){b!==""&&(H.keyCode===at.ENTER||H.type==="click")&&(x(""),d==null||d($()))},I=function(){return r.some(function(H){return H.toString()===c.toString()})?r:r.concat([c]).sort(function(H,A){var F=Number.isNaN(Number(H))?0:Number(H),D=Number.isNaN(Number(A))?0:Number(A);return F-D})},M="".concat(f,"-options");if(!p&&!d)return null;var T=null,j=null,_=null;return p&&y&&(T=y({disabled:v,size:c,onSizeChange:function(H){i==null||i(Number(H))},"aria-label":a.page_size,className:"".concat(M,"-size-changer"),options:I().map(function(B){return{label:w(B),value:B}})})),d&&(u&&(_=typeof u=="boolean"?ve.createElement("button",{type:"button",onClick:N,onKeyUp:N,disabled:v,className:"".concat(M,"-quick-jumper-button")},a.jump_to_confirm):ve.createElement("span",{onClick:N,onKeyUp:N},u)),j=ve.createElement("div",{className:"".concat(M,"-quick-jumper")},a.jump_to,ve.createElement("input",{disabled:v,type:"text",value:b,onChange:E,onKeyUp:N,onBlur:O,"aria-label":a.page}),a.page,_)),ve.createElement("li",{className:M},T,j)},Au=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,i=t.className,c=t.showTitle,u=t.onClick,d=t.onKeyPress,f=t.itemRender,v="".concat(n,"-item"),g=ce(v,"".concat(v,"-").concat(r),J(J({},"".concat(v,"-active"),a),"".concat(v,"-disabled"),!r),i),p=function(){u(r)},y=function(b){d(b,u,r)},C=f(r,"page",ve.createElement("a",{rel:"nofollow"},r));return C?ve.createElement("li",{title:c?String(r):null,className:g,onClick:p,onKeyDown:y,tabIndex:0},C):null},pY=function(t,n,r){return r};function oO(){}function iO(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Pl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var hY=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,c=t.className,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,v=t.total,g=v===void 0?0:v,p=t.pageSize,y=t.defaultPageSize,C=y===void 0?10:y,S=t.onChange,b=S===void 0?oO:S,x=t.hideOnSinglePage,$=t.align,w=t.showPrevNextJumpers,E=w===void 0?!0:w,O=t.showQuickJumper,N=t.showLessItems,I=t.showTitle,M=I===void 0?!0:I,T=t.onShowSizeChange,j=T===void 0?oO:T,_=t.locale,B=_===void 0?mY:_,H=t.style,A=t.totalBoundaryShowSizeChanger,F=A===void 0?50:A,D=t.disabled,L=t.simple,W=t.showTotal,G=t.showSizeChanger,V=G===void 0?g>F:G,k=t.sizeChangerRender,U=t.pageSizeOptions,K=t.itemRender,q=K===void 0?pY:K,Z=t.jumpPrevIcon,X=t.jumpNextIcon,ee=t.prevIcon,te=t.nextIcon,oe=ve.useRef(null),le=bn(10,{value:p,defaultValue:C}),ne=me(le,2),Q=ne[0],ie=ne[1],ue=bn(1,{value:u,defaultValue:f,postState:function(Ot){return Math.max(1,Math.min(Ot,Pl(void 0,Q,g)))}}),de=me(ue,2),se=de[0],ge=de[1],he=ve.useState(se),Oe=me(he,2),Re=Oe[0],pe=Oe[1];l.useEffect(function(){pe(se)},[se]);var Ie=Math.max(1,se-(N?3:5)),we=Math.min(Pl(void 0,Q,g),se+(N?3:5));function ye(mt,Ot){var kt=mt||ve.createElement("button",{type:"button","aria-label":Ot,className:"".concat(r,"-item-link")});return typeof mt=="function"&&(kt=ve.createElement(mt,ae({},t))),kt}function ze(mt){var Ot=mt.target.value,kt=Pl(void 0,Q,g),Sn;return Ot===""?Sn=Ot:Number.isNaN(Number(Ot))?Sn=Re:Ot>=kt?Sn=kt:Sn=Number(Ot),Sn}function Ae(mt){return iO(mt)&&mt!==se&&iO(g)&&g>0}var Ye=g>Q?O:!1;function Ke(mt){(mt.keyCode===at.UP||mt.keyCode===at.DOWN)&&mt.preventDefault()}function Fe(mt){var Ot=ze(mt);switch(Ot!==Re&&pe(Ot),mt.keyCode){case at.ENTER:$e(Ot);break;case at.UP:$e(Ot-1);break;case at.DOWN:$e(Ot+1);break}}function Ge(mt){$e(ze(mt))}function je(mt){var Ot=Pl(mt,Q,g),kt=se>Ot&&Ot!==0?Ot:se;ie(mt),pe(kt),j==null||j(se,mt),ge(kt),b==null||b(kt,mt)}function $e(mt){if(Ae(mt)&&!D){var Ot=Pl(void 0,Q,g),kt=mt;return mt>Ot?kt=Ot:mt<1&&(kt=1),kt!==Re&&pe(kt),ge(kt),b==null||b(kt,Q),kt}return se}var _e=se>1,Ee=se<Pl(void 0,Q,g);function Pe(){_e&&$e(se-1)}function be(){Ee&&$e(se+1)}function Se(){$e(Ie)}function Me(){$e(we)}function ke(mt,Ot){if(mt.key==="Enter"||mt.charCode===at.ENTER||mt.keyCode===at.ENTER){for(var kt=arguments.length,Sn=new Array(kt>2?kt-2:0),Pn=2;Pn<kt;Pn++)Sn[Pn-2]=arguments[Pn];Ot.apply(void 0,Sn)}}function et(mt){ke(mt,Pe)}function ht(mt){ke(mt,be)}function We(mt){ke(mt,Se)}function tt(mt){ke(mt,Me)}function ut(mt){var Ot=q(mt,"prev",ye(ee,"prev page"));return ve.isValidElement(Ot)?ve.cloneElement(Ot,{disabled:!_e}):Ot}function rt(mt){var Ot=q(mt,"next",ye(te,"next page"));return ve.isValidElement(Ot)?ve.cloneElement(Ot,{disabled:!Ee}):Ot}function gt(mt){(mt.type==="click"||mt.keyCode===at.ENTER)&&$e(Re)}var Mt=null,xt=Sr(t,{aria:!0,data:!0}),st=W&&ve.createElement("li",{className:"".concat(r,"-total-text")},W(g,[g===0?0:(se-1)*Q+1,se*Q>g?g:se*Q])),Ct=null,bt=Pl(void 0,Q,g);if(x&&g<=Q)return null;var Je=[],Ve={rootPrefixCls:r,onClick:$e,onKeyPress:ke,showTitle:M,itemRender:q,page:-1},Ue=se-1>0?se-1:0,ft=se+1<bt?se+1:bt,It=O&&O.goButton,Et=$t(L)==="object"?L.readOnly:!L,Ht=It,dt=null;L&&(It&&(typeof It=="boolean"?Ht=ve.createElement("button",{type:"button",onClick:gt,onKeyUp:gt},B.jump_to_confirm):Ht=ve.createElement("span",{onClick:gt,onKeyUp:gt},It),Ht=ve.createElement("li",{title:M?"".concat(B.jump_to).concat(se,"/").concat(bt):null,className:"".concat(r,"-simple-pager")},Ht)),dt=ve.createElement("li",{title:M?"".concat(se,"/").concat(bt):null,className:"".concat(r,"-simple-pager")},Et?Re:ve.createElement("input",{type:"text","aria-label":B.jump_to,value:Re,disabled:D,onKeyDown:Ke,onKeyUp:Fe,onChange:Fe,onBlur:Ge,size:3}),ve.createElement("span",{className:"".concat(r,"-slash")},"/"),bt));var it=N?1:2;if(bt<=3+it*2){bt||Je.push(ve.createElement(Au,xe({},Ve,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Dt=1;Dt<=bt;Dt+=1)Je.push(ve.createElement(Au,xe({},Ve,{key:Dt,page:Dt,active:se===Dt})))}else{var Wt=N?B.prev_3:B.prev_5,en=N?B.next_3:B.next_5,Xt=q(Ie,"jump-prev",ye(Z,"prev page")),vn=q(we,"jump-next",ye(X,"next page"));E&&(Mt=Xt?ve.createElement("li",{title:M?Wt:null,key:"prev",onClick:Se,tabIndex:0,onKeyDown:We,className:ce("".concat(r,"-jump-prev"),J({},"".concat(r,"-jump-prev-custom-icon"),!!Z))},Xt):null,Ct=vn?ve.createElement("li",{title:M?en:null,key:"next",onClick:Me,tabIndex:0,onKeyDown:tt,className:ce("".concat(r,"-jump-next"),J({},"".concat(r,"-jump-next-custom-icon"),!!X))},vn):null);var Kt=Math.max(1,se-it),sn=Math.min(se+it,bt);se-1<=it&&(sn=1+it*2),bt-se<=it&&(Kt=bt-it*2);for(var lt=Kt;lt<=sn;lt+=1)Je.push(ve.createElement(Au,xe({},Ve,{key:lt,page:lt,active:se===lt})));if(se-1>=it*2&&se!==3&&(Je[0]=ve.cloneElement(Je[0],{className:ce("".concat(r,"-item-after-jump-prev"),Je[0].props.className)}),Je.unshift(Mt)),bt-se>=it*2&&se!==bt-2){var yt=Je[Je.length-1];Je[Je.length-1]=ve.cloneElement(yt,{className:ce("".concat(r,"-item-before-jump-next"),yt.props.className)}),Je.push(Ct)}Kt!==1&&Je.unshift(ve.createElement(Au,xe({},Ve,{key:1,page:1}))),sn!==bt&&Je.push(ve.createElement(Au,xe({},Ve,{key:bt,page:bt})))}var pt=ut(Ue);if(pt){var Xe=!_e||!bt;pt=ve.createElement("li",{title:M?B.prev_page:null,onClick:Pe,tabIndex:Xe?null:0,onKeyDown:et,className:ce("".concat(r,"-prev"),J({},"".concat(r,"-disabled"),Xe)),"aria-disabled":Xe},pt)}var Qe=rt(ft);if(Qe){var ct,Tt;L?(ct=!Ee,Tt=_e?0:null):(ct=!Ee||!bt,Tt=ct?null:0),Qe=ve.createElement("li",{title:M?B.next_page:null,onClick:be,tabIndex:Tt,onKeyDown:ht,className:ce("".concat(r,"-next"),J({},"".concat(r,"-disabled"),ct)),"aria-disabled":ct},Qe)}var Vt=ce(r,c,J(J(J(J(J({},"".concat(r,"-start"),$==="start"),"".concat(r,"-center"),$==="center"),"".concat(r,"-end"),$==="end"),"".concat(r,"-simple"),L),"".concat(r,"-disabled"),D));return ve.createElement("ul",xe({className:Vt,style:H,ref:oe},xt),st,pt,L?dt:Je,Qe,ve.createElement(gY,{locale:B,rootPrefixCls:r,disabled:D,selectPrefixCls:i,changeSize:je,pageSize:Q,pageSizeOptions:U,quickGo:Ye?$e:null,goButton:Ht,showSizeChanger:V,sizeChangerRender:k}))};const bY=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}}}}},yY=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:re(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:re(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"}}},[`
|
|
387
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
388
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
389
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:re(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM),input:Object.assign(Object.assign({},NC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},CY=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:re(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:re(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 ${re(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${re(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:`${re(e.inputOutlineOffset)} 0 ${re(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:re(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},SY=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}}},[`
|
|
390
|
+
${t}-prev,
|
|
391
|
+
${t}-jump-prev,
|
|
392
|
+
${t}-jump-next
|
|
393
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
394
|
+
${t}-prev,
|
|
395
|
+
${t}-next,
|
|
396
|
+
${t}-jump-prev,
|
|
397
|
+
${t}-jump-next
|
|
398
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:re(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:`${re(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:re(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Ad(e)),$C(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ug(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},xY=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:re(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${re(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${re(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}}}}},$Y=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(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:re(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),xY(e)),SY(e)),CY(e)),yY(e)),bY(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"}}},wY=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},lo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ho(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ho(e)}}}},G3=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},ls(e)),X3=e=>rn(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"},is(e)),EY=ln("Pagination",e=>{const t=X3(e);return[$Y(t),wY(t)]},G3),OY=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:`${re(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}}}}},RY=$c(["Pagination","bordered"],e=>{const t=X3(e);return OY(t)},G3);function lO(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var IY=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const NY=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:i,style:c,size:u,locale:d,responsive:f,showSizeChanger:v,selectComponentClass:g,pageSizeOptions:p}=e,y=IY(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:C}=oC(f),[,S]=Zr(),{getPrefixCls:b,direction:x,showSizeChanger:$,className:w,style:E}=ur("pagination"),O=b("pagination",n),[N,I,M]=EY(O),T=Br(u),j=T==="small"||!!(C&&!T&&f),[_]=Ra("Pagination",ZR),B=Object.assign(Object.assign({},_),d),[H,A]=lO(v),[F,D]=lO($),L=H??F,W=A??D,G=g||Ir,V=l.useMemo(()=>p?p.map(X=>Number(X)):void 0,[p]),k=X=>{var ee;const{disabled:te,size:oe,onSizeChange:le,"aria-label":ne,className:Q,options:ie}=X,{className:ue,onChange:de}=W||{},se=(ee=ie.find(ge=>String(ge.value)===String(oe)))===null||ee===void 0?void 0:ee.value;return l.createElement(G,Object.assign({disabled:te,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ge=>ge.parentNode,"aria-label":ne,options:ie},W,{value:se,onChange:(ge,he)=>{le==null||le(ge),de==null||de(ge,he)},size:j?"small":"middle",className:ce(Q,ue)}))},U=l.useMemo(()=>{const X=l.createElement("span",{className:`${O}-item-ellipsis`},"•••"),ee=l.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(Xl,null):l.createElement(bc,null)),te=l.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(bc,null):l.createElement(Xl,null)),oe=l.createElement("a",{className:`${O}-item-link`},l.createElement("div",{className:`${O}-item-container`},x==="rtl"?l.createElement(aO,{className:`${O}-item-link-icon`}):l.createElement(rO,{className:`${O}-item-link-icon`}),X)),le=l.createElement("a",{className:`${O}-item-link`},l.createElement("div",{className:`${O}-item-container`},x==="rtl"?l.createElement(rO,{className:`${O}-item-link-icon`}):l.createElement(aO,{className:`${O}-item-link-icon`}),X));return{prevIcon:ee,nextIcon:te,jumpPrevIcon:oe,jumpNextIcon:le}},[x,O]),K=b("select",r),q=ce({[`${O}-${t}`]:!!t,[`${O}-mini`]:j,[`${O}-rtl`]:x==="rtl",[`${O}-bordered`]:S.wireframe},w,a,i,I,M),Z=Object.assign(Object.assign({},E),c);return N(l.createElement(l.Fragment,null,S.wireframe&&l.createElement(RY,{prefixCls:O}),l.createElement(hY,Object.assign({},U,y,{style:Z,prefixCls:O,selectPrefixCls:K,className:q,locale:B,pageSizeOptions:V,showSizeChanger:L,sizeChangerRender:k}))))},pv=100,Y3=pv/5,Q3=pv/2-Y3/2,C0=Q3*2*Math.PI,sO=50,cO=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:ce(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Q3,cx:sO,cy:sO,strokeWidth:Y3,style:n})},MY=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[i,c]=l.useState(!1);nn(()=>{e!==0&&c(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!i)return null;const d={strokeDashoffset:`${C0/4}`,strokeDasharray:`${C0*u/100} ${C0*(100-u)/100}`};return l.createElement("span",{className:ce(r,`${n}-progress`,u<=0&&a)},l.createElement("svg",{viewBox:`0 0 ${pv} ${pv}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},l.createElement(cO,{dotClassName:n,hasCircleCls:!0}),l.createElement(cO,{dotClassName:n,style:d})))};function TY(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,i=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:ce(a,n>0&&i)},l.createElement("span",{className:ce(r,`${t}-dot-spin`)},[1,2,3,4].map(c=>l.createElement("i",{className:`${t}-dot-item`,key:c})))),l.createElement(MY,{prefixCls:t,percent:n}))}function jY(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,i=`${n}-dot`;return r&&l.isValidElement(r)?xr(r,{className:ce((t=r.props)===null||t===void 0?void 0:t.className,i),percent:a}):l.createElement(TY,{prefixCls:n,percent:a})}const PY=new Qt("antSpinMove",{to:{opacity:1}}),DY=new Qt("antRotate",{to:{transform:"rotate(405deg)"}}),_Y=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},fn(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:PY,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:DY,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"}})}},zY=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},AY=ln("Spin",e=>{const t=rn(e,{spinDotDefault:e.colorTextDescription});return _Y(t)},zY),BY=200,uO=[[30,.05],[70,.03],[96,.01]];function LY(e,t){const[n,r]=l.useState(0),a=l.useRef(null),i=t==="auto";return l.useEffect(()=>(i&&e&&(r(0),a.current=setInterval(()=>{r(c=>{const u=100-c;for(let d=0;d<uO.length;d+=1){const[f,v]=uO[d];if(c<=f)return c+u*v}return c})},BY)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?n:t}var kY=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let Z3;function HY(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const hi=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:i,rootClassName:c,size:u="default",tip:d,wrapperClassName:f,style:v,children:g,fullscreen:p=!1,indicator:y,percent:C}=e,S=kY(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:x,className:$,style:w,indicator:E}=ur("spin"),O=b("spin",n),[N,I,M]=AY(O),[T,j]=l.useState(()=>r&&!HY(r,a)),_=LY(T,C);l.useEffect(()=>{if(r){const W=JK(a,()=>{j(!0)});return W(),()=>{var G;(G=W==null?void 0:W.cancel)===null||G===void 0||G.call(W)}}j(!1)},[a,r]);const B=l.useMemo(()=>typeof g<"u"&&!p,[g,p]),H=ce(O,$,{[`${O}-sm`]:u==="small",[`${O}-lg`]:u==="large",[`${O}-spinning`]:T,[`${O}-show-text`]:!!d,[`${O}-rtl`]:x==="rtl"},i,!p&&c,I,M),A=ce(`${O}-container`,{[`${O}-blur`]:T}),F=(t=y??E)!==null&&t!==void 0?t:Z3,D=Object.assign(Object.assign({},w),v),L=l.createElement("div",Object.assign({},S,{style:D,className:H,"aria-live":"polite","aria-busy":T}),l.createElement(jY,{prefixCls:O,indicator:F,percent:_}),d&&(B||p)?l.createElement("div",{className:`${O}-text`},d):null);return N(B?l.createElement("div",Object.assign({},S,{className:ce(`${O}-nested-loading`,f,I,M)}),T&&l.createElement("div",{key:"loading"},L),l.createElement("div",{className:A,key:"container"},g)):p?l.createElement("div",{className:ce(`${O}-fullscreen`,{[`${O}-fullscreen-show`]:T},c,I,M)},L):L)};hi.setDefaultIndicator=e=>{Z3=e};const FY=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let eo=null,Hl=e=>e(),yd=[],Cd={};function dO(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Cd,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:a}}const VY=ve.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(Rt),i=Cd.prefixCls||a("message"),c=l.useContext(Hb),[u,d]=UI(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),c.message));return ve.useImperativeHandle(t,()=>{const f=Object.assign({},u);return Object.keys(f).forEach(v=>{f[v]=(...g)=>(r(),u[v].apply(u,g))}),{instance:f,sync:r}}),d}),WY=ve.forwardRef((e,t)=>{const[n,r]=ve.useState(dO),a=()=>{r(dO)};ve.useEffect(a,[]);const i=RI(),c=i.getRootPrefixCls(),u=i.getIconPrefixCls(),d=i.getTheme(),f=ve.createElement(VY,{ref:t,sync:a,messageConfig:n});return ve.createElement(Oo,{prefixCls:c,iconPrefixCls:u,theme:d},i.holderRender?i.holderRender(f):f)}),hg=()=>{if(!eo){const e=document.createDocumentFragment(),t={fragment:e};eo=t,Hl(()=>{Hy()(ve.createElement(WY,{ref:r=>{const{instance:a,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,hg())})}}),e)});return}eo.instance&&(yd.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Hl(()=>{const r=eo.instance.open(Object.assign(Object.assign({},Cd),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Hl(()=>{eo==null||eo.instance.destroy(e.key)});break;default:Hl(()=>{var r;const a=(r=eo.instance)[t].apply(r,Te(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),yd=[])};function KY(e){Cd=Object.assign(Object.assign({},Cd),e),Hl(()=>{var t;(t=eo==null?void 0:eo.sync)===null||t===void 0||t.call(eo)})}function UY(e){const t=Ly(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return yd.push(a),()=>{r?Hl(()=>{r()}):a.skipped=!0}});return hg(),t}function qY(e,t){const n=Ly(r=>{let a;const i={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return yd.push(i),()=>{a?Hl(()=>{a()}):i.skipped=!0}});return hg(),n}const GY=e=>{yd.push({type:"destroy",key:e}),hg()},XY=["success","info","warning","error","loading"],YY={open:UY,destroy:GY,config:KY,useMessage:qI,_InternalPanelDoNotUseOrYouWillBeFired:kz},Xr=YY;XY.forEach(e=>{Xr[e]=(...t)=>qY(e,t)});var QY=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZY=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:i,title:c,children:u,footer:d}=e,f=QY(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:v}=l.useContext(Rt),g=v(),p=t||v("modal"),y=ar(g),[C,S,b]=IN(p,y),x=`${p}-confirm`;let $={};return i?$={closable:a??!1,title:"",footer:"",children:l.createElement(MN,Object.assign({},e,{prefixCls:p,confirmPrefixCls:x,rootPrefixCls:g,content:u}))}:$={closable:a??!0,title:c,footer:d!==null&&l.createElement(wN,Object.assign({},e)),children:u},C(l.createElement(sN,Object.assign({prefixCls:p,className:ce(S,`${p}-pure-panel`,i&&x,i&&`${x}-${i}`,n,b,y)},f,{closeIcon:$N(p,r),closable:a},$)))},JY=FN(ZY);function J3(e){return Td(DN(e))}const ea=NN;ea.useModal=LN;ea.info=function(t){return Td(_N(t))};ea.success=function(t){return Td(zN(t))};ea.error=function(t){return Td(AN(t))};ea.warning=J3;ea.warn=J3;ea.confirm=function(t){return Td(BN(t))};ea.destroyAll=function(){for(;kl.length;){const t=kl.pop();t&&t()}};ea.config=U7;ea._InternalPanelDoNotUseOrYouWillBeFired=JY;const eQ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:i,colorWarning:c,marginXXS:u,marginXS:d,fontSize:f,fontWeightStrong:v,colorTextHeading:g}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:f},[`${t}-message`]:{marginBottom:d,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:f,lineHeight:1,marginInlineEnd:d},[`${t}-title`]:{fontWeight:v,color:g,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:u,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:d}}}}},tQ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},eT=ln("Popconfirm",e=>eQ(e),tQ,{resetStyle:!1});var nQ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tT=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:i,cancelText:c,okText:u,okType:d="primary",icon:f=l.createElement(ns,null),showCancel:v=!0,close:g,onConfirm:p,onCancel:y,onPopupClick:C}=e,{getPrefixCls:S}=l.useContext(Rt),[b]=Ra("Popconfirm",oo.Popconfirm),x=hc(a),$=hc(i);return l.createElement("div",{className:`${t}-inner-content`,onClick:C},l.createElement("div",{className:`${t}-message`},f&&l.createElement("span",{className:`${t}-message-icon`},f),l.createElement("div",{className:`${t}-message-text`},x&&l.createElement("div",{className:`${t}-title`},x),$&&l.createElement("div",{className:`${t}-description`},$))),l.createElement("div",{className:`${t}-buttons`},v&&l.createElement(Pt,Object.assign({onClick:y,size:"small"},r),c||(b==null?void 0:b.cancelText)),l.createElement(qy,{buttonProps:Object.assign(Object.assign({size:"small"},Fy(d)),n),actionFn:p,close:g,prefixCls:S("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},u||(b==null?void 0:b.okText))))},rQ=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,i=nQ(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=l.useContext(Rt),u=c("popconfirm",t),[d]=eT(u);return d(l.createElement(OM,{placement:n,className:ce(u,r),style:a,content:l.createElement(tT,Object.assign({prefixCls:u},i))}))};var aQ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const oQ=l.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:i="top",trigger:c="click",okType:u="primary",icon:d=l.createElement(ns,null),children:f,overlayClassName:v,onOpenChange:g,onVisibleChange:p,overlayStyle:y,styles:C,classNames:S}=e,b=aQ(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:$,style:w,classNames:E,styles:O}=ur("popconfirm"),[N,I]=bn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(L,W)=>{I(L,!0),p==null||p(L),g==null||g(L,W)},T=L=>{M(!1,L)},j=L=>{var W;return(W=e.onConfirm)===null||W===void 0?void 0:W.call(void 0,L)},_=L=>{var W;M(!1,L),(W=e.onCancel)===null||W===void 0||W.call(void 0,L)},B=(L,W)=>{const{disabled:G=!1}=e;G||M(L,W)},H=x("popconfirm",a),A=ce(H,$,v,E.root,S==null?void 0:S.root),F=ce(E.body,S==null?void 0:S.body),[D]=eT(H);return D(l.createElement(sC,Object.assign({},xn(b,["title"]),{trigger:c,placement:i,onOpenChange:B,open:N,ref:t,classNames:{root:A,body:F},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),w),y),C==null?void 0:C.root),body:Object.assign(Object.assign({},O.body),C==null?void 0:C.body)},content:l.createElement(tT,Object.assign({okType:u,icon:d},e,{prefixCls:H,close:T,onConfirm:j,onCancel:_})),"data-popover-inject":!0}),f))}),vi=oQ;vi._InternalPanelDoNotUseOrYouWillBeFired=rQ;var iQ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},lQ=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var c=i.style;c.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(c.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},fO=0,sQ=Yr();function cQ(){var e;return sQ?(e=fO,fO+=1):e="TEST_OR_SSR",e}const uQ=(function(e){var t=l.useState(),n=me(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(cQ()))},[]),e||r});var mO=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function vO(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var dQ=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,i=e.radius,c=e.style,u=e.ptg,d=e.strokeLinecap,f=e.strokeWidth,v=e.size,g=e.gapDegree,p=r&&$t(r)==="object",y=p?"#FFF":void 0,C=v/2,S=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:C,cy:C,stroke:y,strokeLinecap:d,strokeWidth:f,opacity:u===0?0:1,style:c,ref:t});if(!p)return S;var b="".concat(a,"-conic"),x=g?"".concat(180+g/2,"deg"):"0deg",$=vO(r,(360-g)/360),w=vO(r,1),E="conic-gradient(from ".concat(x,", ").concat($.join(", "),")"),O="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(w.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:b},S),l.createElement("foreignObject",{x:0,y:0,width:v,height:v,mask:"url(#".concat(b,")")},l.createElement(mO,{bg:O},l.createElement(mO,{bg:E}))))}),Gu=100,S0=function(t,n,r,a,i,c,u,d,f,v){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-c)/360),y=c===0?0:{bottom:0,top:180,left:90,right:-90}[u],C=(100-a)/100*n;f==="round"&&a!==100&&(C+=v/2,C>=n&&(C=n-.01));var S=Gu/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:C+g,transform:"rotate(".concat(i+p+y,"deg)"),transformOrigin:"".concat(S,"px ").concat(S,"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}},fQ=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function gO(e){var t=e??[];return Array.isArray(t)?t:[t]}var mQ=function(t){var n=ae(ae({},iQ),t),r=n.id,a=n.prefixCls,i=n.steps,c=n.strokeWidth,u=n.trailWidth,d=n.gapDegree,f=d===void 0?0:d,v=n.gapPosition,g=n.trailColor,p=n.strokeLinecap,y=n.style,C=n.className,S=n.strokeColor,b=n.percent,x=At(n,fQ),$=Gu/2,w=uQ(r),E="".concat(w,"-gradient"),O=$-c/2,N=Math.PI*2*O,I=f>0?90+f/2:-90,M=N*((360-f)/360),T=$t(i)==="object"?i:{count:i,gap:2},j=T.count,_=T.gap,B=gO(b),H=gO(S),A=H.find(function(k){return k&&$t(k)==="object"}),F=A&&$t(A)==="object",D=F?"butt":p,L=S0(N,M,0,100,I,f,v,g,D,c),W=lQ(),G=function(){var U=0;return B.map(function(K,q){var Z=H[q]||H[H.length-1],X=S0(N,M,U,K,I,f,v,Z,D,c);return U+=K,l.createElement(dQ,{key:q,color:Z,ptg:K,radius:O,prefixCls:a,gradientId:E,style:X,strokeLinecap:D,strokeWidth:c,gapDegree:f,ref:function(te){W[q]=te},size:Gu})}).reverse()},V=function(){var U=Math.round(j*(B[0]/100)),K=100/j,q=0;return new Array(j).fill(null).map(function(Z,X){var ee=X<=U-1?H[0]:g,te=ee&&$t(ee)==="object"?"url(#".concat(E,")"):void 0,oe=S0(N,M,q,K,I,f,v,ee,"butt",c,_);return q+=(M-oe.strokeDashoffset+_)*100/M,l.createElement("circle",{key:X,className:"".concat(a,"-circle-path"),r:O,cx:$,cy:$,stroke:te,strokeWidth:c,opacity:1,style:oe,ref:function(ne){W[X]=ne}})})};return l.createElement("svg",xe({className:ce("".concat(a,"-circle"),C),viewBox:"0 0 ".concat(Gu," ").concat(Gu),style:y,id:r,role:"presentation"},x),!j&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:O,cx:$,cy:$,stroke:g,strokeLinecap:D,strokeWidth:u||c,style:L}),j?V():G())};function rl(e){return!e||e<0?0:e>100?100:e}function hv({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const vQ=({percent:e,success:t,successPercent:n})=>{const r=rl(hv({success:t,successPercent:n}));return[r,rl(rl(e)-r)]},gQ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||oc.green,t||null]},bg=(e,t,n)=>{var r,a,i,c;let u=-1,d=-1;if(t==="step"){const f=n.steps,v=n.strokeWidth;typeof e=="string"||typeof e>"u"?(u=e==="small"?2:14,d=v??8):typeof e=="number"?[u,d]=[e,e]:[u=14,d=8]=Array.isArray(e)?e:[e.width,e.height],u*=f}else if(t==="line"){const f=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?d=f||(e==="small"?6:8):typeof e=="number"?[u,d]=[e,e]:[u=-1,d=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[u,d]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[u,d]=[e,e]:Array.isArray(e)&&(u=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,d=(c=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&c!==void 0?c:120));return[u,d]},pQ=3,hQ=e=>pQ/e*100,bQ=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:i,width:c=120,type:u,children:d,success:f,size:v=c,steps:g}=e,[p,y]=bg(v,"circle");let{strokeWidth:C}=e;C===void 0&&(C=Math.max(hQ(p),6));const S={width:p,height:y,fontSize:p*.15+6},b=l.useMemo(()=>{if(i||i===0)return i;if(u==="dashboard")return 75},[i,u]),x=vQ(e),$=a||u==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=gQ({success:f,strokeColor:e.strokeColor}),O=ce(`${t}-inner`,{[`${t}-circle-gradient`]:w}),N=l.createElement(mQ,{steps:g,percent:g?x[1]:x,strokeWidth:C,trailWidth:C,strokeColor:g?E[1]:E,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:$}),I=p<=20,M=l.createElement("div",{className:O,style:S},N,!I&&d);return I?l.createElement(Cr,{title:d},M):M},bv="--progress-line-stroke-color",nT="--progress-percent",pO=e=>{const t=e?"100%":"-100%";return new Qt(`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}})},yQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},fn(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(${bv})`]},height:"100%",width:`calc(1 / var(${nT}) * 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 ${re(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:pO(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:pO(!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}}})}},CQ=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"}}}},SQ=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}}}}}},xQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},$Q=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),wQ=ln("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=rn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[yQ(n),CQ(n),SQ(n),xQ(n)]},$Q);var EQ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const OQ=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(", ")},RQ=(e,t)=>{const{from:n=oc.blue,to:r=oc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=EQ(e,["from","to","direction"]);if(Object.keys(i).length!==0){const u=OQ(i),d=`linear-gradient(${a}, ${u})`;return{background:d,[bv]:d}}const c=`linear-gradient(${a}, ${n}, ${r})`;return{background:c,[bv]:c}},IQ=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:i,strokeColor:c,strokeLinecap:u="round",children:d,trailColor:f=null,percentPosition:v,success:g}=e,{align:p,type:y}=v,C=c&&typeof c!="string"?RQ(c,n):{[bv]:c,background:c},S=u==="square"||u==="butt"?0:void 0,b=a??[-1,i||(a==="small"?6:8)],[x,$]=bg(b,"line",{strokeWidth:i}),w={backgroundColor:f||void 0,borderRadius:S},E=Object.assign(Object.assign({width:`${rl(r)}%`,height:$,borderRadius:S},C),{[nT]:rl(r)/100}),O=hv(e),N={width:`${rl(O)}%`,height:$,borderRadius:S,backgroundColor:g==null?void 0:g.strokeColor},I={width:x<0?"100%":x},M=l.createElement("div",{className:`${t}-inner`,style:w},l.createElement("div",{className:ce(`${t}-bg`,`${t}-bg-${y}`),style:E},y==="inner"&&d),O!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:N})),T=y==="outer"&&p==="start",j=y==="outer"&&p==="end";return y==="outer"&&p==="center"?l.createElement("div",{className:`${t}-layout-bottom`},M,d):l.createElement("div",{className:`${t}-outer`,style:I},T&&d,M,j&&d)},NQ=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:i=8,strokeColor:c,trailColor:u=null,prefixCls:d,children:f}=e,v=r(n*(a/100)),p=t??[t==="small"?2:14,i],[y,C]=bg(p,"step",{steps:n,strokeWidth:i}),S=y/n,b=Array.from({length:n});for(let x=0;x<n;x++){const $=Array.isArray(c)?c[x]:c;b[x]=l.createElement("div",{key:x,className:ce(`${d}-steps-item`,{[`${d}-steps-item-active`]:x<=v-1}),style:{backgroundColor:x<=v-1?$:u,width:S,height:C}})}return l.createElement("div",{className:`${d}-steps-outer`},b,f)};var MQ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const TQ=["normal","exception","active","success"],rT=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,steps:i,strokeColor:c,percent:u=0,size:d="default",showInfo:f=!0,type:v="line",status:g,format:p,style:y,percentPosition:C={}}=e,S=MQ(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:x="outer"}=C,$=Array.isArray(c)?c[0]:c,w=typeof c=="string"||Array.isArray(c)?c:void 0,E=l.useMemo(()=>{if($){const G=typeof $=="string"?$:Object.values($)[0];return new pn(G).isLight()}return!1},[c]),O=l.useMemo(()=>{var G,V;const k=hv(e);return Number.parseInt(k!==void 0?(G=k??0)===null||G===void 0?void 0:G.toString():(V=u??0)===null||V===void 0?void 0:V.toString(),10)},[u,e.success,e.successPercent]),N=l.useMemo(()=>!TQ.includes(g)&&O>=100?"success":g||"normal",[g,O]),{getPrefixCls:I,direction:M,progress:T}=l.useContext(Rt),j=I("progress",n),[_,B,H]=wQ(j),A=v==="line",F=A&&!i,D=l.useMemo(()=>{if(!f)return null;const G=hv(e);let V;const k=p||(K=>`${K}%`),U=A&&E&&x==="inner";return x==="inner"||p||N!=="exception"&&N!=="success"?V=k(rl(u),rl(G)):N==="exception"?V=A?l.createElement(cl,null):l.createElement(Ro,null):N==="success"&&(V=A?l.createElement(Ec,null):l.createElement(Mc,null)),l.createElement("span",{className:ce(`${j}-text`,{[`${j}-text-bright`]:U,[`${j}-text-${b}`]:F,[`${j}-text-${x}`]:F}),title:typeof V=="string"?V:void 0},V)},[f,u,O,N,v,j,p]);let L;v==="line"?L=i?l.createElement(NQ,Object.assign({},e,{strokeColor:w,prefixCls:j,steps:typeof i=="object"?i.count:i}),D):l.createElement(IQ,Object.assign({},e,{strokeColor:$,prefixCls:j,direction:M,percentPosition:{align:b,type:x}}),D):(v==="circle"||v==="dashboard")&&(L=l.createElement(bQ,Object.assign({},e,{strokeColor:$,prefixCls:j,progressStatus:N}),D));const W=ce(j,`${j}-status-${N}`,{[`${j}-${v==="dashboard"&&"circle"||v}`]:v!=="line",[`${j}-inline-circle`]:v==="circle"&&bg(d,"circle")[0]<=20,[`${j}-line`]:F,[`${j}-line-align-${b}`]:F,[`${j}-line-position-${x}`]:F,[`${j}-steps`]:i,[`${j}-show-info`]:f,[`${j}-${d}`]:typeof d=="string",[`${j}-rtl`]:M==="rtl"},T==null?void 0:T.className,r,a,B,H);return _(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T==null?void 0:T.style),y),className:W,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100},xn(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),L))});var jQ={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"},PQ=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:jQ}))},Sd=l.forwardRef(PQ);const DQ=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:a,groupSeparator:i="",prefixCls:c}=e;let u;if(typeof n=="function")u=n(t);else{const d=String(t),f=d.match(/^(-?)(\d*)(\.(\d+))?$/);if(!f||d==="-")u=d;else{const v=f[1];let g=f[2]||"0",p=f[4]||"";g=g.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(p=p.padEnd(r,"0").slice(0,r>0?r:0)),p&&(p=`${a}${p}`),u=[l.createElement("span",{key:"int",className:`${c}-content-value-int`},v,g),p&&l.createElement("span",{key:"decimal",className:`${c}-content-value-decimal`},p)]}}return l.createElement("span",{className:`${c}-content-value`},u)},_Q=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:a,titleFontSize:i,colorTextHeading:c,contentFontSize:u,fontFamily:d}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{[`${t}-title`]:{marginBottom:n,color:a,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:c,fontSize:u,fontFamily:d,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},zQ=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},AQ=ln("Statistic",e=>{const t=rn(e,{});return _Q(t)},zQ);var BQ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Fl=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,valueStyle:c,value:u=0,title:d,valueRender:f,prefix:v,suffix:g,loading:p=!1,formatter:y,precision:C,decimalSeparator:S=".",groupSeparator:b=",",onMouseEnter:x,onMouseLeave:$}=e,w=BQ(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:E,direction:O,className:N,style:I}=ur("statistic"),M=E("statistic",n),[T,j,_]=AQ(M),B=l.createElement(DQ,{decimalSeparator:S,groupSeparator:b,prefixCls:M,formatter:y,precision:C,value:u}),H=ce(M,{[`${M}-rtl`]:O==="rtl"},N,r,a,j,_),A=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:A.current}));const F=Sr(w,{aria:!0,data:!0});return T(l.createElement("div",Object.assign({},F,{ref:A,className:H,style:Object.assign(Object.assign({},I),i),onMouseEnter:x,onMouseLeave:$}),d&&l.createElement("div",{className:`${M}-title`},d),l.createElement(ul,{paragraph:!1,loading:p,className:`${M}-skeleton`,active:!0},l.createElement("div",{style:c,className:`${M}-content`},v&&l.createElement("span",{className:`${M}-content-prefix`},v),f?f(B):B,g&&l.createElement("span",{className:`${M}-content-suffix`},g)))))}),LQ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function kQ(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map(d=>d.slice(1,-1)),i=t.replace(r,"[]"),c=LQ.reduce((d,[f,v])=>{if(d.includes(f)){const g=Math.floor(n/v);return n-=g*v,d.replace(new RegExp(`${f}+`,"g"),p=>{const y=p.length;return g.toString().padStart(y,"0")})}return d},i);let u=0;return c.replace(r,()=>{const d=a[u];return u+=1,d})}function HQ(e,t,n){const{format:r=""}=t,a=new Date(e).getTime(),i=Date.now(),c=Math.max(n?a-i:i-a,0);return kQ(c,r)}var FQ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function VQ(e){return new Date(e).getTime()}const aT=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:a,type:i}=e,c=FQ(e,["value","format","onChange","onFinish","type"]),u=i==="countdown",[d,f]=l.useState(null),v=qt(()=>{const y=Date.now(),C=VQ(t);f({});const S=u?C-y:y-C;return r==null||r(S),u&&C<y?(a==null||a(),!1):!0});l.useEffect(()=>{let y;const C=()=>Gt.cancel(y),S=()=>{y=Gt(()=>{v()&&S()})};return S(),C},[t,u]),l.useEffect(()=>{f({})},[]);const g=(y,C)=>d?HQ(y,Object.assign(Object.assign({},C),{format:n}),u):"-",p=y=>xr(y,{title:void 0});return l.createElement(Fl,Object.assign({},c,{value:t,valueRender:p,formatter:g}))},WQ=e=>l.createElement(aT,Object.assign({},e,{type:"countdown"})),KQ=l.memo(WQ);Fl.Timer=aT;Fl.Countdown=KQ;var UQ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],oT=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,i=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,f=e.loadingIcon,v=e.checkedChildren,g=e.unCheckedChildren,p=e.onClick,y=e.onChange,C=e.onKeyDown,S=At(e,UQ),b=bn(!1,{value:c,defaultValue:u}),x=me(b,2),$=x[0],w=x[1];function E(M,T){var j=$;return d||(j=M,w(j),y==null||y(j,T)),j}function O(M){M.which===at.LEFT?E(!1,M):M.which===at.RIGHT&&E(!0,M),C==null||C(M)}function N(M){var T=E(!$,M);p==null||p(T,M)}var I=ce(a,i,(n={},J(n,"".concat(a,"-checked"),$),J(n,"".concat(a,"-disabled"),d),n));return l.createElement("button",xe({},S,{type:"button",role:"switch","aria-checked":$,disabled:d,className:I,ref:t,onKeyDown:O,onClick:N}),f,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},v),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},g)))});oT.displayName="Switch";const qQ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:i,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,f=`${t}-inner`,v=re(d(u).add(d(r).mul(2)).equal()),g=re(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:re(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:i,[`${f}-checked, ${f}-unchecked`]:{minHeight:n},[`${f}-checked`]:{marginInlineStart:`calc(-100% + ${v} - ${g})`,marginInlineEnd:`calc(100% - ${v} + ${g})`},[`${f}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:c,[`${f}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${f}-unchecked`]:{marginInlineStart:`calc(100% - ${v} + ${g})`,marginInlineEnd:`calc(-100% + ${v} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${re(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${f}`]:{[`${f}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${f}`]:{[`${f}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},GQ=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}}}},XQ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:i,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(i).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${re(c(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},YQ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:i,handleSize:c,calc:u}=e,d=`${t}-inner`,f=re(u(c).add(u(r).mul(2)).equal()),v=re(u(i).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-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},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${v})`,marginInlineEnd:`calc(100% - ${f} + ${v})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${v})`,marginInlineEnd:`calc(-100% + ${f} - ${v})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},QQ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:re(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}}),lo(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"}})}},ZQ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,i=t*n,c=r/2,u=2,d=i-u*2,f=c-u*2;return{trackHeight:i,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:f*2+u*2,trackPadding:u,handleBg:a,handleSize:d,handleSizeSM:f,handleShadow:`0 2px 4px 0 ${new pn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:f/2,innerMaxMarginSM:f+u+u*2}},JQ=ln("Switch",e=>{const t=rn(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[QQ(t),YQ(t),XQ(t),GQ(t),qQ(t)]},ZQ);var eZ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tZ=l.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:i,className:c,rootClassName:u,style:d,checked:f,value:v,defaultChecked:g,defaultValue:p,onChange:y}=e,C=eZ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,b]=bn(!1,{value:f??v,defaultValue:g??p}),{getPrefixCls:x,direction:$,switch:w}=l.useContext(Rt),E=l.useContext(_r),O=(a??E)||i,N=x("switch",n),I=l.createElement("div",{className:`${N}-handle`},i&&l.createElement($o,{className:`${N}-loading-icon`})),[M,T,j]=JQ(N),_=Br(r),B=ce(w==null?void 0:w.className,{[`${N}-small`]:_==="small",[`${N}-loading`]:i,[`${N}-rtl`]:$==="rtl"},c,u,T,j),H=Object.assign(Object.assign({},w==null?void 0:w.style),d),A=(...F)=>{b(F[0]),y==null||y.apply(void 0,F)};return M(l.createElement(Od,{component:"Switch",disabled:O},l.createElement(oT,Object.assign({},C,{checked:S,onChange:A,prefixCls:N,className:B,style:H,disabled:O,ref:t,loadingIcon:I}))))}),yg=tZ;yg.__ANT_SWITCH=!0;var Qi={},Hd="rc-table-internal-hook";function VC(e){var t=l.createContext(void 0),n=function(a){var i=a.value,c=a.children,u=l.useRef(i);u.current=i;var d=l.useState(function(){return{getValue:function(){return u.current},listeners:new Set}}),f=me(d,1),v=f[0];return nn(function(){ro.unstable_batchedUpdates(function(){v.listeners.forEach(function(g){g(i)})})},[i]),l.createElement(t.Provider,{value:v},c)};return{Context:t,Provider:n,defaultValue:e}}function Qr(e,t){var n=qt(typeof t=="function"?t:function(g){if(t===void 0)return g;if(!Array.isArray(t))return g[t];var p={};return t.forEach(function(y){p[y]=g[y]}),p}),r=l.useContext(e==null?void 0:e.Context),a=r||{},i=a.listeners,c=a.getValue,u=l.useRef();u.current=n(r?c():e==null?void 0:e.defaultValue);var d=l.useState({}),f=me(d,2),v=f[1];return nn(function(){if(!r)return;function g(p){var y=n(p);xo(u.current,y,!0)||v({})}return i.add(g),function(){i.delete(g)}},[r]),u.current}function nZ(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,i){var c=So(a),u=function(f,v){var g=c?{ref:v}:{},p=l.useRef(0),y=l.useRef(f),C=t();return C!==null?l.createElement(a,xe({},f,g)):((!i||i(y.current,f))&&(p.current+=1),y.current=f,l.createElement(e.Provider,{value:p.current},l.createElement(a,xe({},f,g))))};return c?l.forwardRef(u):u}function r(a,i){var c=So(a),u=function(f,v){var g=c?{ref:v}:{};return t(),l.createElement(a,xe({},f,g))};return c?l.memo(l.forwardRef(u),i):l.memo(u,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var WC=nZ(),iT=WC.makeImmutable,Bc=WC.responseImmutable,rZ=WC.useImmutableMark,fa=VC(),lT=l.createContext({renderWithProps:!1}),aZ="RC_TABLE_KEY";function oZ(e){return e==null?[]:Array.isArray(e)?e:[e]}function Cg(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},i=a.key,c=a.dataIndex,u=i||oZ(c).join("-")||aZ;n[u];)u="".concat(u,"_next");n[u]=!0,t.push(u)}),t}function oy(e){return e!=null}function iZ(e){return typeof e=="number"&&!Number.isNaN(e)}function lZ(e){return e&&$t(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function sZ(e,t,n,r,a,i){var c=l.useContext(lT),u=rZ(),d=es(function(){if(oy(r))return[r];var f=t==null||t===""?[]:Array.isArray(t)?t:[t],v=ga(e,f),g=v,p=void 0;if(a){var y=a(v,e,n);lZ(y)?(g=y.children,p=y.props,c.renderWithProps=!0):g=y}return[g,p]},[u,e,r,t,a,n],function(f,v){if(i){var g=me(f,2),p=g[1],y=me(v,2),C=y[1];return i(C,p)}return c.renderWithProps?!0:!xo(f,v,!0)});return d}function cZ(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function uZ(e,t){return Qr(fa,function(n){var r=cZ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var dZ=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,i,c=n===!0?{showTitle:!0}:n;return c&&(c.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function fZ(e){var t,n,r,a,i,c,u,d,f=e.component,v=e.children,g=e.ellipsis,p=e.scope,y=e.prefixCls,C=e.className,S=e.align,b=e.record,x=e.render,$=e.dataIndex,w=e.renderIndex,E=e.shouldCellUpdate,O=e.index,N=e.rowType,I=e.colSpan,M=e.rowSpan,T=e.fixLeft,j=e.fixRight,_=e.firstFixLeft,B=e.lastFixLeft,H=e.firstFixRight,A=e.lastFixRight,F=e.appendNode,D=e.additionalProps,L=D===void 0?{}:D,W=e.isSticky,G="".concat(y,"-cell"),V=Qr(fa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),k=V.supportSticky,U=V.allColumnsFixedLeft,K=V.rowHoverable,q=sZ(b,$,w,v,x,E),Z=me(q,2),X=Z[0],ee=Z[1],te={},oe=typeof T=="number"&&k,le=typeof j=="number"&&k;oe&&(te.position="sticky",te.left=T),le&&(te.position="sticky",te.right=j);var ne=(t=(n=(r=ee==null?void 0:ee.colSpan)!==null&&r!==void 0?r:L.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,Q=(a=(i=(c=ee==null?void 0:ee.rowSpan)!==null&&c!==void 0?c:L.rowSpan)!==null&&i!==void 0?i:M)!==null&&a!==void 0?a:1,ie=uZ(O,Q),ue=me(ie,2),de=ue[0],se=ue[1],ge=qt(function(ye){var ze;b&&se(O,O+Q-1),L==null||(ze=L.onMouseEnter)===null||ze===void 0||ze.call(L,ye)}),he=qt(function(ye){var ze;b&&se(-1,-1),L==null||(ze=L.onMouseLeave)===null||ze===void 0||ze.call(L,ye)});if(ne===0||Q===0)return null;var Oe=(u=L.title)!==null&&u!==void 0?u:dZ({rowType:N,ellipsis:g,children:X}),Re=ce(G,C,(d={},J(J(J(J(J(J(J(J(J(J(d,"".concat(G,"-fix-left"),oe&&k),"".concat(G,"-fix-left-first"),_&&k),"".concat(G,"-fix-left-last"),B&&k),"".concat(G,"-fix-left-all"),B&&U&&k),"".concat(G,"-fix-right"),le&&k),"".concat(G,"-fix-right-first"),H&&k),"".concat(G,"-fix-right-last"),A&&k),"".concat(G,"-ellipsis"),g),"".concat(G,"-with-append"),F),"".concat(G,"-fix-sticky"),(oe||le)&&W&&k),J(d,"".concat(G,"-row-hover"),!ee&&de)),L.className,ee==null?void 0:ee.className),pe={};S&&(pe.textAlign=S);var Ie=ae(ae(ae(ae({},ee==null?void 0:ee.style),te),pe),L.style),we=X;return $t(we)==="object"&&!Array.isArray(we)&&!l.isValidElement(we)&&(we=null),g&&(B||H)&&(we=l.createElement("span",{className:"".concat(G,"-content")},we)),l.createElement(f,xe({},ee,L,{className:Re,style:Ie,title:Oe,scope:p,onMouseEnter:K?ge:void 0,onMouseLeave:K?he:void 0,colSpan:ne!==1?ne:null,rowSpan:Q!==1?Q:null}),F,we)}const Lc=l.memo(fZ);function KC(e,t,n,r,a){var i=n[e]||{},c=n[t]||{},u,d;i.fixed==="left"?u=r.left[a==="rtl"?t:e]:c.fixed==="right"&&(d=r.right[a==="rtl"?e:t]);var f=!1,v=!1,g=!1,p=!1,y=n[t+1],C=n[e-1],S=y&&!y.fixed||C&&!C.fixed||n.every(function(E){return E.fixed==="left"});if(a==="rtl"){if(u!==void 0){var b=C&&C.fixed==="left";p=!b&&S}else if(d!==void 0){var x=y&&y.fixed==="right";g=!x&&S}}else if(u!==void 0){var $=y&&y.fixed==="left";f=!$&&S}else if(d!==void 0){var w=C&&C.fixed==="right";v=!w&&S}return{fixLeft:u,fixRight:d,lastFixLeft:f,firstFixRight:v,lastFixRight:g,firstFixLeft:p,isSticky:r.isSticky}}var sT=l.createContext({});function mZ(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,i=a===void 0?1:a,c=e.rowSpan,u=e.align,d=Qr(fa,["prefixCls","direction"]),f=d.prefixCls,v=d.direction,g=l.useContext(sT),p=g.scrollColumnIndex,y=g.stickyOffsets,C=g.flattenColumns,S=n+i-1,b=S+1===p?i+1:i,x=KC(n,n+b-1,C,y,v);return l.createElement(Lc,xe({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:u,colSpan:b,rowSpan:c,render:function(){return r}},x))}var vZ=["children"];function gZ(e){var t=e.children,n=At(e,vZ);return l.createElement("tr",n,t)}function Sg(e){var t=e.children;return t}Sg.Row=gZ;Sg.Cell=mZ;function pZ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=Qr(fa,"prefixCls"),i=r.length-1,c=r[i],u=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:c!=null&&c.scrollbar?i:null}},[c,r,i,n]);return l.createElement(sT.Provider,{value:u},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const gm=Bc(pZ);var cT=Sg;function hZ(e){return null}function bZ(e){return null}function uT(e,t,n,r,a,i,c){var u=i(t,c);e.push({record:t,indent:n,index:c,rowKey:u});var d=a==null?void 0:a.has(u);if(t&&Array.isArray(t[r])&&d)for(var f=0;f<t[r].length;f+=1)uT(e,t[r][f],n+1,r,a,i,f)}function dT(e,t,n,r){var a=l.useMemo(function(){if(n!=null&&n.size){for(var i=[],c=0;c<(e==null?void 0:e.length);c+=1){var u=e[c];uT(i,u,0,t,n,r,c)}return i}return e==null?void 0:e.map(function(d,f){return{record:d,indent:0,index:f,rowKey:r(d,f)}})},[e,t,n,r]);return a}function fT(e,t,n,r){var a=Qr(fa,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=a.flattenColumns,c=a.expandableType,u=a.expandedKeys,d=a.childrenColumnName,f=a.onTriggerExpand,v=a.rowExpandable,g=a.onRow,p=a.expandRowByClick,y=a.rowClassName,C=c==="nest",S=c==="row"&&(!v||v(e)),b=S||C,x=u&&u.has(t),$=d&&e&&e[d],w=qt(f),E=g==null?void 0:g(e,n),O=E==null?void 0:E.onClick,N=function(j){p&&b&&f(e,j);for(var _=arguments.length,B=new Array(_>1?_-1:0),H=1;H<_;H++)B[H-1]=arguments[H];O==null||O.apply(void 0,[j].concat(B))},I;typeof y=="string"?I=y:typeof y=="function"&&(I=y(e,n,r));var M=Cg(i);return ae(ae({},a),{},{columnsKey:M,nestExpandable:C,expanded:x,hasNestChildren:$,record:e,onTriggerExpand:w,rowSupportExpand:S,expandable:b,rowProps:ae(ae({},E),{},{className:ce(I,E==null?void 0:E.className),onClick:N})})}function mT(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,i=e.className,c=e.expanded,u=e.colSpan,d=e.isEmpty,f=e.stickyOffset,v=f===void 0?0:f,g=Qr(fa,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=g.scrollbarSize,y=g.fixHeader,C=g.fixColumn,S=g.componentWidth,b=g.horizonScroll,x=n;return(d?b&&S:C)&&(x=l.createElement("div",{style:{width:S-v-(y&&!d?p:0),position:"sticky",left:v,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},x)),l.createElement(r,{className:i,style:{display:c?null:"none"}},l.createElement(Lc,{component:a,prefixCls:t,colSpan:u},x))}function yZ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,i=e.expandable,c="".concat(t,"-row-expand-icon");if(!i)return l.createElement("span",{className:ce(c,"".concat(t,"-row-spaced"))});var u=function(f){r(n,f),f.stopPropagation()};return l.createElement("span",{className:ce(c,J(J({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:u})}function CZ(e,t,n){var r=[];function a(i){(i||[]).forEach(function(c,u){r.push(t(c,u)),a(c[n])})}return a(e),r}function vT(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function gT(e,t,n,r,a){var i,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,d=e.record,f=e.prefixCls,v=e.columnsKey,g=e.fixedInfoList,p=e.expandIconColumnIndex,y=e.nestExpandable,C=e.indentSize,S=e.expandIcon,b=e.expanded,x=e.hasNestChildren,$=e.onTriggerExpand,w=e.expandable,E=e.expandedKeys,O=v[n],N=g[n],I;n===(p||0)&&y&&(I=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(C*r,"px")},className:"".concat(f,"-row-indent indent-level-").concat(r)}),S({prefixCls:f,expanded:b,expandable:x,record:d,onExpand:$})));var M=((i=t.onCell)===null||i===void 0?void 0:i.call(t,d,a))||{};if(u){var T=M.rowSpan,j=T===void 0?1:T;if(w&&j&&n<u){for(var _=j,B=a;B<a+j;B+=1){var H=c[B];E.has(H)&&(_+=1)}M.rowSpan=_}}return{key:O,fixedInfo:N,appendCellNode:I,additionalCellProps:M}}function SZ(e){var t=e.className,n=e.style,r=e.record,a=e.index,i=e.renderIndex,c=e.rowKey,u=e.rowKeys,d=e.indent,f=d===void 0?0:d,v=e.rowComponent,g=e.cellComponent,p=e.scopeCellComponent,y=e.expandedRowInfo,C=fT(r,c,a,f),S=C.prefixCls,b=C.flattenColumns,x=C.expandedRowClassName,$=C.expandedRowRender,w=C.rowProps,E=C.expanded,O=C.rowSupportExpand,N=l.useRef(!1);N.current||(N.current=E);var I=vT(x,r,a,f),M=l.createElement(v,xe({},w,{"data-row-key":c,className:ce(t,"".concat(S,"-row"),"".concat(S,"-row-level-").concat(f),w==null?void 0:w.className,J({},I,f>=1)),style:ae(ae({},n),w==null?void 0:w.style)}),b.map(function(_,B){var H=_.render,A=_.dataIndex,F=_.className,D=gT(C,_,B,f,a,u,y==null?void 0:y.offset),L=D.key,W=D.fixedInfo,G=D.appendCellNode,V=D.additionalCellProps;return l.createElement(Lc,xe({className:F,ellipsis:_.ellipsis,align:_.align,scope:_.rowScope,component:_.rowScope?p:g,prefixCls:S,key:L,record:r,index:a,renderIndex:i,dataIndex:A,render:H,shouldCellUpdate:_.shouldCellUpdate},W,{appendNode:G,additionalProps:V}))})),T;if(O&&(N.current||E)){var j=$(r,a,f+1,E);T=l.createElement(mT,{expanded:E,className:ce("".concat(S,"-expanded-row"),"".concat(S,"-expanded-row-level-").concat(f+1),I),prefixCls:S,component:v,cellComponent:g,colSpan:y?y.colSpan:b.length,stickyOffset:y==null?void 0:y.sticky,isEmpty:!1},j)}return l.createElement(l.Fragment,null,M,T)}const xZ=Bc(SZ);function $Z(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,i=l.useRef();return nn(function(){i.current&&n(t,i.current.offsetWidth)},[]),l.createElement(la,{data:t},l.createElement("th",{ref:i,className:"".concat(r,"-measure-cell")},l.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function wZ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,i=l.useRef(null),c=Qr(fa,["measureRowRender"]),u=c.measureRowRender,d=l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},l.createElement(la.Collection,{onBatchResize:function(v){Oc(i.current)&&v.forEach(function(g){var p=g.data,y=g.size;r(p,y.offsetWidth)})}},n.map(function(f){var v=a.find(function(y){return y.key===f}),g=v==null?void 0:v.title,p=l.isValidElement(g)?l.cloneElement(g,{ref:null}):g;return l.createElement($Z,{prefixCls:t,key:f,columnKey:f,onColumnResize:r,title:p})})));return u?u(d):d}function EZ(e){var t=e.data,n=e.measureColumnWidth,r=Qr(fa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,i=r.getComponent,c=r.onColumnResize,u=r.flattenColumns,d=r.getRowKey,f=r.expandedKeys,v=r.childrenColumnName,g=r.emptyNode,p=r.expandedRowOffset,y=p===void 0?0:p,C=r.colWidths,S=dT(t,v,f,d),b=l.useMemo(function(){return S.map(function(T){return T.rowKey})},[S]),x=l.useRef({renderWithProps:!1}),$=l.useMemo(function(){for(var T=u.length-y,j=0,_=0;_<y;_+=1)j+=C[_]||0;return{offset:y,colSpan:T,sticky:j}},[u.length,y,C]),w=i(["body","wrapper"],"tbody"),E=i(["body","row"],"tr"),O=i(["body","cell"],"td"),N=i(["body","cell"],"th"),I;t.length?I=S.map(function(T,j){var _=T.record,B=T.indent,H=T.index,A=T.rowKey;return l.createElement(xZ,{key:A,rowKey:A,rowKeys:b,record:_,index:j,renderIndex:H,rowComponent:E,cellComponent:O,scopeCellComponent:N,indent:B,expandedRowInfo:$})}):I=l.createElement(mT,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:E,cellComponent:O,colSpan:u.length,isEmpty:!0},g);var M=Cg(u);return l.createElement(lT.Provider,{value:x.current},l.createElement(w,{className:"".concat(a,"-tbody")},n&&l.createElement(wZ,{prefixCls:a,columnsKey:M,onColumnResize:c,columns:u}),I))}const OZ=Bc(EZ);var RZ=["expandable"],rd="RC_TABLE_INTERNAL_COL_DEFINE";function IZ(e){var t=e.expandable,n=At(e,RZ),r;return"expandable"in e?r=ae(ae({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var NZ=["columnType"];function pT(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=Qr(fa,["tableLayout"]),i=a.tableLayout,c=[],u=r||n.length,d=!1,f=u-1;f>=0;f-=1){var v=t[f],g=n&&n[f],p=void 0,y=void 0;if(g&&(p=g[rd],i==="auto"&&(y=g.minWidth)),v||y||p||d){var C=p||{};C.columnType;var S=At(C,NZ);c.unshift(l.createElement("col",xe({key:f,style:{width:v,minWidth:y}},S))),d=!0}}return c.length>0?l.createElement("colgroup",null,c):null}var MZ=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function TZ(e,t){return l.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var a=e[r];if(a!==void 0)n[r]=a;else return null}return n},[e.join("_"),t])}var jZ=l.forwardRef(function(e,t){var n=e.className,r=e.noData,a=e.columns,i=e.flattenColumns,c=e.colWidths,u=e.colGroup,d=e.columCount,f=e.stickyOffsets,v=e.direction,g=e.fixHeader,p=e.stickyTopOffset,y=e.stickyBottomOffset,C=e.stickyClassName,S=e.scrollX,b=e.tableLayout,x=b===void 0?"fixed":b,$=e.onScroll,w=e.children,E=At(e,MZ),O=Qr(fa,["prefixCls","scrollbarSize","isSticky","getComponent"]),N=O.prefixCls,I=O.scrollbarSize,M=O.isSticky,T=O.getComponent,j=T(["header","table"],"table"),_=M&&!g?0:I,B=l.useRef(null),H=l.useCallback(function(k){id(t,k),id(B,k)},[]);l.useEffect(function(){function k(K){var q=K,Z=q.currentTarget,X=q.deltaX;X&&($({currentTarget:Z,scrollLeft:Z.scrollLeft+X}),K.preventDefault())}var U=B.current;return U==null||U.addEventListener("wheel",k,{passive:!1}),function(){U==null||U.removeEventListener("wheel",k)}},[]);var A=i[i.length-1],F={fixed:A?A.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(N,"-cell-scrollbar")}}},D=l.useMemo(function(){return _?[].concat(Te(a),[F]):a},[_,a]),L=l.useMemo(function(){return _?[].concat(Te(i),[F]):i},[_,i]),W=l.useMemo(function(){var k=f.right,U=f.left;return ae(ae({},f),{},{left:v==="rtl"?[].concat(Te(U.map(function(K){return K+_})),[0]):U,right:v==="rtl"?k:[].concat(Te(k.map(function(K){return K+_})),[0]),isSticky:M})},[_,f,M]),G=TZ(c,d),V=l.useMemo(function(){var k=!G||!G.length||G.every(function(U){return!U});return r||k},[r,G]);return l.createElement("div",{style:ae({overflow:"hidden"},M?{top:p,bottom:y}:{}),ref:H,className:ce(n,J({},C,!!C))},l.createElement(j,{style:{tableLayout:x,minWidth:"100%",width:S}},V?u:l.createElement(pT,{colWidths:[].concat(Te(G),[_]),columCount:d+1,columns:L}),w(ae(ae({},E),{},{stickyOffsets:W,columns:D,flattenColumns:L}))))});const hO=l.memo(jZ);var PZ=function(t){var n=t.cells,r=t.stickyOffsets,a=t.flattenColumns,i=t.rowComponent,c=t.cellComponent,u=t.onHeaderRow,d=t.index,f=Qr(fa,["prefixCls","direction"]),v=f.prefixCls,g=f.direction,p;u&&(p=u(n.map(function(C){return C.column}),d));var y=Cg(n.map(function(C){return C.column}));return l.createElement(i,p,n.map(function(C,S){var b=C.column,x=KC(C.colStart,C.colEnd,a,r,g),$;return b&&b.onHeaderCell&&($=C.column.onHeaderCell(b)),l.createElement(Lc,xe({},C,{scope:b.title?C.colSpan>1?"colgroup":"col":null,ellipsis:b.ellipsis,align:b.align,component:c,prefixCls:v,key:y[S]},x,{additionalProps:$,rowType:"header"}))}))};function DZ(e){var t=[];function n(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[d]=t[d]||[];var f=u,v=c.filter(Boolean).map(function(g){var p={key:g.key,className:g.className||"",children:g.title,column:g,colStart:f},y=1,C=g.children;return C&&C.length>0&&(y=n(C,f,d+1).reduce(function(S,b){return S+b},0),p.hasSubColumns=!0),"colSpan"in g&&(y=g.colSpan),"rowSpan"in g&&(p.rowSpan=g.rowSpan),p.colSpan=y,p.colEnd=p.colStart+y-1,t[d].push(p),f+=y,y});return v}n(e,0);for(var r=t.length,a=function(u){t[u].forEach(function(d){!("rowSpan"in d)&&!d.hasSubColumns&&(d.rowSpan=r-u)})},i=0;i<r;i+=1)a(i);return t}var _Z=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,i=t.onHeaderRow,c=Qr(fa,["prefixCls","getComponent"]),u=c.prefixCls,d=c.getComponent,f=l.useMemo(function(){return DZ(r)},[r]),v=d(["header","wrapper"],"thead"),g=d(["header","row"],"tr"),p=d(["header","cell"],"th");return l.createElement(v,{className:"".concat(u,"-thead")},f.map(function(y,C){var S=l.createElement(PZ,{key:C,flattenColumns:a,cells:y,stickyOffsets:n,rowComponent:g,cellComponent:p,onHeaderRow:i,index:C});return S}))};const bO=Bc(_Z);function yO(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 zZ(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var y=yO(t,p.width);y?r+=y:a+=1});var i=Math.max(t,n),c=Math.max(i-r,a),u=a,d=c/a,f=0,v=e.map(function(p){var y=ae({},p),C=yO(t,y.width);if(C)y.width=C;else{var S=Math.floor(d);y.width=u===1?c:S,c-=S,u-=1}return f+=y.width,y});if(f<i){var g=i/f;c=i,v.forEach(function(p,y){var C=Math.floor(p.width*g);p.width=y===v.length-1?c:C,c-=C})}return[v,Math.max(f,i)]}return[e,t]},[e,t,n])}var AZ=["children"],BZ=["fixed"];function UC(e){return Fr(e).filter(function(t){return l.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,i=At(r,AZ),c=ae({key:n},i);return a&&(c.children=UC(a)),c})}function hT(e){return e.filter(function(t){return t&&$t(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?ae(ae({},t),{},{children:hT(n)}):t})}function iy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&$t(n)==="object"}).reduce(function(n,r,a){var i=r.fixed,c=i===!0?"left":i,u="".concat(t,"-").concat(a),d=r.children;return d&&d.length>0?[].concat(Te(n),Te(iy(d,u).map(function(f){var v;return ae(ae({},f),{},{fixed:(v=f.fixed)!==null&&v!==void 0?v:c})}))):[].concat(Te(n),[ae(ae({key:u},r),{},{fixed:c})])},[])}function LZ(e){return e.map(function(t){var n=t.fixed,r=At(t,BZ),a=n;return n==="left"?a="right":n==="right"&&(a="left"),ae({fixed:a},r)})}function kZ(e,t){var n=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,c=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,f=e.onTriggerExpand,v=e.expandIcon,g=e.rowExpandable,p=e.expandIconColumnIndex,y=e.expandedRowOffset,C=y===void 0?0:y,S=e.direction,b=e.expandRowByClick,x=e.columnWidth,$=e.fixed,w=e.scrollWidth,E=e.clientWidth,O=l.useMemo(function(){var A=r||UC(a)||[];return hT(A.slice())},[r,a]),N=l.useMemo(function(){if(i){var A=O.slice();if(!A.includes(Qi)){var F=p||0,D=F===0&&$==="right"?O.length:F;D>=0&&A.splice(D,0,Qi)}var L=A.indexOf(Qi);A=A.filter(function(k,U){return k!==Qi||U===L});var W=O[L],G;$?G=$:G=W?W.fixed:null;var V=J(J(J(J(J(J({},rd,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",G),"className","".concat(n,"-row-expand-icon-cell")),"width",x),"render",function(U,K,q){var Z=d(K,q),X=c.has(Z),ee=g?g(K):!0,te=v({prefixCls:n,expanded:X,expandable:ee,record:K,onExpand:f});return b?l.createElement("span",{onClick:function(le){return le.stopPropagation()}},te):te});return A.map(function(k,U){var K=k===Qi?V:k;return U<C?ae(ae({},K),{},{fixed:K.fixed||"left"}):K})}return O.filter(function(k){return k!==Qi})},[i,O,d,c,v,S,C]),I=l.useMemo(function(){var A=N;return t&&(A=t(A)),A.length||(A=[{render:function(){return null}}]),A},[t,N,S]),M=l.useMemo(function(){return S==="rtl"?LZ(iy(I)):iy(I)},[I,S,w]),T=l.useMemo(function(){for(var A=-1,F=M.length-1;F>=0;F-=1){var D=M[F].fixed;if(D==="left"||D===!0){A=F;break}}if(A>=0)for(var L=0;L<=A;L+=1){var W=M[L].fixed;if(W!=="left"&&W!==!0)return!0}var G=M.findIndex(function(U){var K=U.fixed;return K==="right"});if(G>=0)for(var V=G;V<M.length;V+=1){var k=M[V].fixed;if(k!=="right")return!0}return!1},[M]),j=zZ(M,w,E),_=me(j,2),B=_[0],H=_[1];return[I,B,H,T]}function HZ(e,t,n){var r=IZ(e),a=r.expandIcon,i=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,f=r.onExpand,v=r.onExpandedRowsChange,g=r.childrenColumnName,p=a||yZ,y=g||"children",C=l.useMemo(function(){return d?"row":e.expandable&&e.internalHooks===Hd&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(O){return O&&$t(O)==="object"&&O[y]})?"nest":!1},[!!d,t]),S=l.useState(function(){return c||(u?CZ(t,n,y):[])}),b=me(S,2),x=b[0],$=b[1],w=l.useMemo(function(){return new Set(i||x||[])},[i,x]),E=l.useCallback(function(O){var N=n(O,t.indexOf(O)),I,M=w.has(N);M?(w.delete(N),I=Te(w)):I=[].concat(Te(w),[N]),$(I),f&&f(!M,O),v&&v(I)},[n,w,t,f,v]);return[r,C,w,p,y,E]}function FZ(e,t,n){var r=e.map(function(a,i){return KC(i,i,e,t,n)});return es(function(){return r},[r],function(a,i){return!xo(a,i)})}function VZ(e){var t=l.useRef(e),n=l.useState({}),r=me(n,2),a=r[1],i=l.useRef(null),c=l.useRef([]);function u(d){c.current.push(d);var f=Promise.resolve();i.current=f,f.then(function(){if(i.current===f){var v=c.current,g=t.current;c.current=[],v.forEach(function(p){t.current=p(t.current)}),i.current=null,g!==t.current&&a({})}})}return l.useEffect(function(){return function(){i.current=null}},[]),[t.current,u]}function WZ(e){var t=l.useRef(null),n=l.useRef();function r(){window.clearTimeout(n.current)}function a(c){t.current=c,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return l.useEffect(function(){return r},[]),[a,i]}function KZ(){var e=l.useState(-1),t=me(e,2),n=t[0],r=t[1],a=l.useState(-1),i=me(a,2),c=i[0],u=i[1],d=l.useCallback(function(f,v){r(f),u(v)},[]);return[n,c,d]}var CO=Yr()?window:null;function UZ(e,t){var n=$t(e)==="object"?e:{},r=n.offsetHeader,a=r===void 0?0:r,i=n.offsetSummary,c=i===void 0?0:i,u=n.offsetScroll,d=u===void 0?0:u,f=n.getContainer,v=f===void 0?function(){return CO}:f,g=v()||CO,p=!!e;return l.useMemo(function(){return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:d,container:g}},[p,d,a,c,t,g])}function qZ(e,t,n){var r=l.useMemo(function(){var a=t.length,i=function(f,v,g){for(var p=[],y=0,C=f;C!==v;C+=g)p.push(y),t[C].fixed&&(y+=e[C]||0);return p},c=i(0,a,1),u=i(a-1,-1,-1).reverse();return n==="rtl"?{left:u,right:c}:{left:c,right:u}},[e,t,n]);return r}function SO(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)}function xO(e){var t=$d(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 GZ=function(t,n){var r,a,i=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,d=t.container,f=t.direction,v=Qr(fa,"prefixCls"),g=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,p=((a=i.current)===null||a===void 0?void 0:a.clientWidth)||0,y=g&&p*(p/g),C=l.useRef(),S=VZ({scrollLeft:0,isHiddenScrollBar:!0}),b=me(S,2),x=b[0],$=b[1],w=l.useRef({delta:0,x:0}),E=l.useState(!1),O=me(E,2),N=O[0],I=O[1],M=l.useRef(null);l.useEffect(function(){return function(){Gt.cancel(M.current)}},[]);var T=function(){I(!1)},j=function(F){F.persist(),w.current.delta=F.pageX-x.scrollLeft,w.current.x=0,I(!0),F.preventDefault()},_=function(F){var D,L=F||((D=window)===null||D===void 0?void 0:D.event),W=L.buttons;if(!N||W===0){N&&I(!1);return}var G=w.current.x+F.pageX-w.current.x-w.current.delta,V=f==="rtl";G=Math.max(V?y-p:0,Math.min(V?0:p-y,G));var k=!V||Math.abs(G)+Math.abs(y)<p;k&&(c({scrollLeft:G/p*(g+2)}),w.current.x=F.pageX)},B=function(){Gt.cancel(M.current),M.current=Gt(function(){if(i.current){var F=xO(i.current).top,D=F+i.current.offsetHeight,L=d===window?document.documentElement.scrollTop+window.innerHeight:xO(d).top+d.clientHeight;$(function(W){return ae(ae({},W),{},{isHiddenScrollBar:D-n2()<=L||F>=L-u})})}})},H=function(F){$(function(D){return ae(ae({},D),{},{scrollLeft:g?F/g*p:0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:H,checkScrollBarVisible:B}}),l.useEffect(function(){var A=nO(document.body,"mouseup",T,!1),F=nO(document.body,"mousemove",_,!1);return B(),function(){A.remove(),F.remove()}},[y,N]),l.useEffect(function(){if(i.current){for(var A=[],F=$d(i.current);F;)A.push(F),F=F.parentElement;return A.forEach(function(D){return D.addEventListener("scroll",B,!1)}),window.addEventListener("resize",B,!1),window.addEventListener("scroll",B,!1),d.addEventListener("scroll",B,!1),function(){A.forEach(function(D){return D.removeEventListener("scroll",B)}),window.removeEventListener("resize",B),window.removeEventListener("scroll",B),d.removeEventListener("scroll",B)}}},[d]),l.useEffect(function(){x.isHiddenScrollBar||$(function(A){var F=i.current;return F?ae(ae({},A),{},{scrollLeft:F.scrollLeft/F.scrollWidth*F.clientWidth}):A})},[x.isHiddenScrollBar]),g<=p||!y||x.isHiddenScrollBar?null:l.createElement("div",{style:{height:n2(),width:p,bottom:u},className:"".concat(v,"-sticky-scroll")},l.createElement("div",{onMouseDown:j,ref:C,className:ce("".concat(v,"-sticky-scroll-bar"),J({},"".concat(v,"-sticky-scroll-bar-active"),N)),style:{width:"".concat(y,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))};const XZ=l.forwardRef(GZ);var bT="rc-table",YZ=[],QZ={};function ZZ(){return"No Data"}function JZ(e,t){var n=ae({rowKey:"key",prefixCls:bT,emptyText:ZZ},e),r=n.prefixCls,a=n.className,i=n.rowClassName,c=n.style,u=n.data,d=n.rowKey,f=n.scroll,v=n.tableLayout,g=n.direction,p=n.title,y=n.footer,C=n.summary,S=n.caption,b=n.id,x=n.showHeader,$=n.components,w=n.emptyText,E=n.onRow,O=n.onHeaderRow,N=n.measureRowRender,I=n.onScroll,M=n.internalHooks,T=n.transformColumns,j=n.internalRefs,_=n.tailor,B=n.getContainerWidth,H=n.sticky,A=n.rowHoverable,F=A===void 0?!0:A,D=u||YZ,L=!!D.length,W=M===Hd,G=l.useCallback(function(vt,wt){return ga($,vt)||wt},[$]),V=l.useMemo(function(){return typeof d=="function"?d:function(vt){var wt=vt&&vt[d];return wt}},[d]),k=G(["body"]),U=KZ(),K=me(U,3),q=K[0],Z=K[1],X=K[2],ee=HZ(n,D,V),te=me(ee,6),oe=te[0],le=te[1],ne=te[2],Q=te[3],ie=te[4],ue=te[5],de=f==null?void 0:f.x,se=l.useState(0),ge=me(se,2),he=ge[0],Oe=ge[1],Re=kZ(ae(ae(ae({},n),oe),{},{expandable:!!oe.expandedRowRender,columnTitle:oe.columnTitle,expandedKeys:ne,getRowKey:V,onTriggerExpand:ue,expandIcon:Q,expandIconColumnIndex:oe.expandIconColumnIndex,direction:g,scrollWidth:W&&_&&typeof de=="number"?de:null,clientWidth:he}),W?T:null),pe=me(Re,4),Ie=pe[0],we=pe[1],ye=pe[2],ze=pe[3],Ae=ye??de,Ye=l.useMemo(function(){return{columns:Ie,flattenColumns:we}},[Ie,we]),Ke=l.useRef(),Fe=l.useRef(),Ge=l.useRef(),je=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Ke.current,scrollTo:function(wt){var cn;if(Ge.current instanceof HTMLElement){var Tn=wt.index,Un=wt.top,kn=wt.key;if(iZ(Un)){var Lr;(Lr=Ge.current)===null||Lr===void 0||Lr.scrollTo({top:Un})}else{var Kr,wr=kn??V(D[Tn]);(Kr=Ge.current.querySelector('[data-row-key="'.concat(wr,'"]')))===null||Kr===void 0||Kr.scrollIntoView()}}else(cn=Ge.current)!==null&&cn!==void 0&&cn.scrollTo&&Ge.current.scrollTo(wt)}}});var $e=l.useRef(),_e=l.useState(!1),Ee=me(_e,2),Pe=Ee[0],be=Ee[1],Se=l.useState(!1),Me=me(Se,2),ke=Me[0],et=Me[1],ht=l.useState(new Map),We=me(ht,2),tt=We[0],ut=We[1],rt=Cg(we),gt=rt.map(function(vt){return tt.get(vt)}),Mt=l.useMemo(function(){return gt},[gt.join("_")]),xt=qZ(Mt,we,g),st=f&&oy(f.y),Ct=f&&oy(Ae)||!!oe.fixed,bt=Ct&&we.some(function(vt){var wt=vt.fixed;return wt}),Je=l.useRef(),Ve=UZ(H,r),Ue=Ve.isSticky,ft=Ve.offsetHeader,It=Ve.offsetSummary,Et=Ve.offsetScroll,Ht=Ve.stickyClassName,dt=Ve.container,it=l.useMemo(function(){return C==null?void 0:C(D)},[C,D]),Dt=(st||Ue)&&l.isValidElement(it)&&it.type===Sg&&it.props.fixed,Wt,en,Xt;st&&(en={overflowY:L?"scroll":"auto",maxHeight:f.y}),Ct&&(Wt={overflowX:"auto"},st||(en={overflowY:"hidden"}),Xt={width:Ae===!0?"auto":Ae,minWidth:"100%"});var vn=l.useCallback(function(vt,wt){ut(function(cn){if(cn.get(vt)!==wt){var Tn=new Map(cn);return Tn.set(vt,wt),Tn}return cn})},[]),Kt=WZ(),sn=me(Kt,2),lt=sn[0],yt=sn[1];function pt(vt,wt){wt&&(typeof wt=="function"?wt(vt):wt.scrollLeft!==vt&&(wt.scrollLeft=vt,wt.scrollLeft!==vt&&setTimeout(function(){wt.scrollLeft=vt},0)))}var Xe=qt(function(vt){var wt=vt.currentTarget,cn=vt.scrollLeft,Tn=g==="rtl",Un=typeof cn=="number"?cn:wt.scrollLeft,kn=wt||QZ;if(!yt()||yt()===kn){var Lr;lt(kn),pt(Un,Fe.current),pt(Un,Ge.current),pt(Un,$e.current),pt(Un,(Lr=Je.current)===null||Lr===void 0?void 0:Lr.setScrollLeft)}var Kr=wt||Fe.current;if(Kr){var wr=W&&_&&typeof Ae=="number"?Ae:Kr.scrollWidth,ta=Kr.clientWidth;if(wr===ta){be(!1),et(!1);return}Tn?(be(-Un<wr-ta),et(-Un>0)):(be(Un>0),et(Un<wr-ta))}}),Qe=qt(function(vt){Xe(vt),I==null||I(vt)}),ct=function(){if(Ct&&Ge.current){var wt;Xe({currentTarget:$d(Ge.current),scrollLeft:(wt=Ge.current)===null||wt===void 0?void 0:wt.scrollLeft})}else be(!1),et(!1)},Tt=function(wt){var cn,Tn=wt.width;(cn=Je.current)===null||cn===void 0||cn.checkScrollBarVisible();var Un=Ke.current?Ke.current.offsetWidth:Tn;W&&B&&Ke.current&&(Un=B(Ke.current,Un)||Un),Un!==he&&(ct(),Oe(Un))},Vt=l.useRef(!1);l.useEffect(function(){Vt.current&&ct()},[Ct,u,Ie.length]),l.useEffect(function(){Vt.current=!0},[]);var mt=l.useState(0),Ot=me(mt,2),kt=Ot[0],Sn=Ot[1],Pn=l.useState(!0),Mn=me(Pn,2),Ln=Mn[0],En=Mn[1];nn(function(){(!_||!W)&&(Ge.current instanceof Element?Sn(Rb(Ge.current).width):Sn(Rb(je.current).width)),En(Bb("position","sticky"))},[]),l.useEffect(function(){W&&j&&(j.body.current=Ge.current)});var Dn=l.useCallback(function(vt){return l.createElement(l.Fragment,null,l.createElement(bO,vt),Dt==="top"&&l.createElement(gm,vt,it))},[Dt,it]),mr=l.useCallback(function(vt){return l.createElement(gm,vt,it)},[it]),$r=G(["table"],"table"),dr=l.useMemo(function(){return v||(bt?Ae==="max-content"?"auto":"fixed":st||Ue||we.some(function(vt){var wt=vt.ellipsis;return wt})?"fixed":"auto")},[st,bt,we,v,Ue]),yn,_t={colWidths:Mt,columCount:we.length,stickyOffsets:xt,onHeaderRow:O,fixHeader:st,scroll:f},zt=l.useMemo(function(){return L?null:typeof w=="function"?w():w},[L,w]),tn=l.createElement(OZ,{data:D,measureColumnWidth:st||Ct||Ue}),Nt=l.createElement(pT,{colWidths:we.map(function(vt){var wt=vt.width;return wt}),columns:we}),jt=S!=null?l.createElement("caption",{className:"".concat(r,"-caption")},S):void 0,un=Sr(n,{data:!0}),On=Sr(n,{aria:!0});if(st||Ue){var Wn;typeof k=="function"?(Wn=k(D,{scrollbarSize:kt,ref:Ge,onScroll:Xe}),_t.colWidths=we.map(function(vt,wt){var cn=vt.width,Tn=wt===we.length-1?cn-kt:cn;return typeof Tn=="number"&&!Number.isNaN(Tn)?Tn:0})):Wn=l.createElement("div",{style:ae(ae({},Wt),en),onScroll:Qe,ref:Ge,className:ce("".concat(r,"-body"))},l.createElement($r,xe({style:ae(ae({},Xt),{},{tableLayout:dr})},On),jt,Nt,tn,!Dt&&it&&l.createElement(gm,{stickyOffsets:xt,flattenColumns:we},it)));var vr=ae(ae(ae({noData:!D.length},_t),Ye),{},{direction:g,stickyClassName:Ht,scrollX:Ae,tableLayout:dr,onScroll:Xe});yn=l.createElement(l.Fragment,null,x!==!1&&l.createElement(hO,xe({},vr,{stickyTopOffset:ft,className:"".concat(r,"-header"),ref:Fe,colGroup:Nt}),Dn),Wn,Dt&&Dt!=="top"&&l.createElement(hO,xe({},vr,{stickyBottomOffset:It,className:"".concat(r,"-summary"),ref:$e,colGroup:Nt}),mr),Ue&&Ge.current&&Ge.current instanceof Element&&l.createElement(XZ,{ref:Je,offsetScroll:Et,scrollBodyRef:Ge,onScroll:Xe,container:dt,direction:g}))}else yn=l.createElement("div",{style:ae(ae({},Wt),en),className:ce("".concat(r,"-content")),onScroll:Xe,ref:Ge},l.createElement($r,xe({style:ae(ae({},Xt),{},{tableLayout:dr})},On),jt,Nt,x!==!1&&l.createElement(bO,xe({},_t,Ye)),tn,it&&l.createElement(gm,{stickyOffsets:xt,flattenColumns:we},it)));var Kn=l.createElement("div",xe({className:ce(r,a,J(J(J(J(J(J(J(J(J(J({},"".concat(r,"-rtl"),g==="rtl"),"".concat(r,"-ping-left"),Pe),"".concat(r,"-ping-right"),ke),"".concat(r,"-layout-fixed"),v==="fixed"),"".concat(r,"-fixed-header"),st),"".concat(r,"-fixed-column"),bt),"".concat(r,"-fixed-column-gapped"),bt&&ze),"".concat(r,"-scroll-horizontal"),Ct),"".concat(r,"-has-fix-left"),we[0]&&we[0].fixed),"".concat(r,"-has-fix-right"),we[we.length-1]&&we[we.length-1].fixed==="right")),style:c,id:b,ref:Ke},un),p&&l.createElement(SO,{className:"".concat(r,"-title")},p(D)),l.createElement("div",{ref:je,className:"".concat(r,"-container")},yn),y&&l.createElement(SO,{className:"".concat(r,"-footer")},y(D)));Ct&&(Kn=l.createElement(la,{onResize:Tt},Kn));var pr=FZ(we,xt,g),on=l.useMemo(function(){return{scrollX:Ae,prefixCls:r,getComponent:G,scrollbarSize:kt,direction:g,fixedInfoList:pr,isSticky:Ue,supportSticky:Ln,componentWidth:he,fixHeader:st,fixColumn:bt,horizonScroll:Ct,tableLayout:dr,rowClassName:i,expandedRowClassName:oe.expandedRowClassName,expandIcon:Q,expandableType:le,expandRowByClick:oe.expandRowByClick,expandedRowRender:oe.expandedRowRender,expandedRowOffset:oe.expandedRowOffset,onTriggerExpand:ue,expandIconColumnIndex:oe.expandIconColumnIndex,indentSize:oe.indentSize,allColumnsFixedLeft:we.every(function(vt){return vt.fixed==="left"}),emptyNode:zt,columns:Ie,flattenColumns:we,onColumnResize:vn,colWidths:Mt,hoverStartRow:q,hoverEndRow:Z,onHover:X,rowExpandable:oe.rowExpandable,onRow:E,getRowKey:V,expandedKeys:ne,childrenColumnName:ie,rowHoverable:F,measureRowRender:N}},[Ae,r,G,kt,g,pr,Ue,Ln,he,st,bt,Ct,dr,i,oe.expandedRowClassName,Q,le,oe.expandRowByClick,oe.expandedRowRender,oe.expandedRowOffset,ue,oe.expandIconColumnIndex,oe.indentSize,zt,Ie,we,vn,Mt,q,Z,X,oe.rowExpandable,E,V,ne,ie,F,N]);return l.createElement(fa.Provider,{value:on},Kn)}var eJ=l.forwardRef(JZ);function yT(e){return iT(eJ,e)}var kc=yT();kc.EXPAND_COLUMN=Qi;kc.INTERNAL_HOOKS=Hd;kc.Column=hZ;kc.ColumnGroup=bZ;kc.Summary=cT;var qC=VC(null),CT=VC(null);function tJ(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function nJ(e){var t=e.rowInfo,n=e.column,r=e.colIndex,a=e.indent,i=e.index,c=e.component,u=e.renderIndex,d=e.record,f=e.style,v=e.className,g=e.inverse,p=e.getHeight,y=n.render,C=n.dataIndex,S=n.className,b=n.width,x=Qr(CT,["columnsOffset"]),$=x.columnsOffset,w=gT(t,n,r,a,i),E=w.key,O=w.fixedInfo,N=w.appendCellNode,I=w.additionalCellProps,M=I.style,T=I.colSpan,j=T===void 0?1:T,_=I.rowSpan,B=_===void 0?1:_,H=r-1,A=tJ(H,j,$),F=j>1?b-A:0,D=ae(ae(ae({},M),f),{},{flex:"0 0 ".concat(A,"px"),width:"".concat(A,"px"),marginRight:F,pointerEvents:"auto"}),L=l.useMemo(function(){return g?B<=1:j===0||B===0||B>1},[B,j,g]);L?D.visibility="hidden":g&&(D.height=p==null?void 0:p(B));var W=L?function(){return null}:y,G={};return(B===0||j===0)&&(G.rowSpan=1,G.colSpan=1),l.createElement(Lc,xe({className:ce(S,v),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:c,prefixCls:t.prefixCls,key:E,record:d,index:i,renderIndex:u,dataIndex:C,render:W,shouldCellUpdate:n.shouldCellUpdate},O,{appendNode:N,additionalProps:ae(ae({},I),{},{style:D},G)}))}var rJ=["data","index","className","rowKey","style","extra","getHeight"],aJ=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,i=e.rowKey,c=e.style,u=e.extra,d=e.getHeight,f=At(e,rJ),v=n.record,g=n.indent,p=n.index,y=Qr(fa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=y.scrollX,S=y.flattenColumns,b=y.prefixCls,x=y.fixColumn,$=y.componentWidth,w=Qr(qC,["getComponent"]),E=w.getComponent,O=fT(v,i,r,g),N=E(["body","row"],"div"),I=E(["body","cell"],"div"),M=O.rowSupportExpand,T=O.expanded,j=O.rowProps,_=O.expandedRowRender,B=O.expandedRowClassName,H;if(M&&T){var A=_(v,r,g+1,T),F=vT(B,v,r,g),D={};x&&(D={style:J({},"--virtual-width","".concat($,"px"))});var L="".concat(b,"-expanded-row-cell");H=l.createElement(N,{className:ce("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(g+1),F)},l.createElement(Lc,{component:I,prefixCls:b,className:ce(L,J({},"".concat(L,"-fixed"),x)),additionalProps:D},A))}var W=ae(ae({},c),{},{width:C});u&&(W.position="absolute",W.pointerEvents="none");var G=l.createElement(N,xe({},j,f,{"data-row-key":i,ref:M?null:t,className:ce(a,"".concat(b,"-row"),j==null?void 0:j.className,J({},"".concat(b,"-row-extra"),u)),style:ae(ae({},W),j==null?void 0:j.style)}),S.map(function(V,k){return l.createElement(nJ,{key:k,component:I,rowInfo:O,column:V,colIndex:k,indent:g,index:r,renderIndex:p,record:v,inverse:u,getHeight:d})}));return M?l.createElement("div",{ref:t},G,H):G}),$O=Bc(aJ),oJ=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=Qr(fa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=a.flattenColumns,c=a.onColumnResize,u=a.getRowKey,d=a.expandedKeys,f=a.prefixCls,v=a.childrenColumnName,g=a.scrollX,p=a.direction,y=Qr(qC),C=y.sticky,S=y.scrollY,b=y.listItemHeight,x=y.getComponent,$=y.onScroll,w=l.useRef(),E=dT(n,v,d,u),O=l.useMemo(function(){var H=0;return i.map(function(A){var F=A.width,D=A.minWidth,L=A.key,W=Math.max(F||0,D||0);return H+=W,[L,W,H]})},[i]),N=l.useMemo(function(){return O.map(function(H){return H[2]})},[O]);l.useEffect(function(){O.forEach(function(H){var A=me(H,2),F=A[0],D=A[1];c(F,D)})},[O]),l.useImperativeHandle(t,function(){var H,A={scrollTo:function(D){var L;(L=w.current)===null||L===void 0||L.scrollTo(D)},nativeElement:(H=w.current)===null||H===void 0?void 0:H.nativeElement};return Object.defineProperty(A,"scrollLeft",{get:function(){var D;return((D=w.current)===null||D===void 0?void 0:D.getScrollInfo().x)||0},set:function(D){var L;(L=w.current)===null||L===void 0||L.scrollTo({left:D})}}),Object.defineProperty(A,"scrollTop",{get:function(){var D;return((D=w.current)===null||D===void 0?void 0:D.getScrollInfo().y)||0},set:function(D){var L;(L=w.current)===null||L===void 0||L.scrollTo({top:D})}}),A});var I=function(A,F){var D,L=(D=E[F])===null||D===void 0?void 0:D.record,W=A.onCell;if(W){var G,V=W(L,F);return(G=V==null?void 0:V.rowSpan)!==null&&G!==void 0?G:1}return 1},M=function(A){var F=A.start,D=A.end,L=A.getSize,W=A.offsetY;if(D<0)return null;for(var G=i.filter(function(ne){return I(ne,F)===0}),V=F,k=function(Q){if(G=G.filter(function(ie){return I(ie,Q)===0}),!G.length)return V=Q,1},U=F;U>=0&&!k(U);U-=1);for(var K=i.filter(function(ne){return I(ne,D)!==1}),q=D,Z=function(Q){if(K=K.filter(function(ie){return I(ie,Q)!==1}),!K.length)return q=Math.max(Q-1,D),1},X=D;X<E.length&&!Z(X);X+=1);for(var ee=[],te=function(Q){var ie=E[Q];if(!ie)return 1;i.some(function(ue){return I(ue,Q)>1})&&ee.push(Q)},oe=V;oe<=q;oe+=1)te(oe);var le=ee.map(function(ne){var Q=E[ne],ie=u(Q.record,ne),ue=function(ge){var he=ne+ge-1,Oe=u(E[he].record,he),Re=L(ie,Oe);return Re.bottom-Re.top},de=L(ie);return l.createElement($O,{key:ne,data:Q,rowKey:ie,index:ne,style:{top:-W+de.top},extra:!0,getHeight:ue})});return le},T=l.useMemo(function(){return{columnsOffset:N}},[N]),j="".concat(f,"-tbody"),_=x(["body","wrapper"]),B={};return C&&(B.position="sticky",B.bottom=0,$t(C)==="object"&&C.offsetScroll&&(B.bottom=C.offsetScroll)),l.createElement(CT.Provider,{value:T},l.createElement(Yv,{fullHeight:!1,ref:w,prefixCls:"".concat(j,"-virtual"),styles:{horizontalScrollBar:B},className:j,height:S,itemHeight:b||24,data:E,itemKey:function(A){return u(A.record)},component:_,scrollWidth:g,direction:p,onVirtualScroll:function(A){var F,D=A.x;r({currentTarget:(F=w.current)===null||F===void 0?void 0:F.nativeElement,scrollLeft:D})},onScroll:$,extraRender:M},function(H,A,F){var D=u(H.record,A);return l.createElement($O,{data:H,rowKey:D,index:A,style:F.style})}))}),iJ=Bc(oJ),lJ=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(iJ,{ref:r,data:t,onScroll:a})};function sJ(e,t){var n=e.data,r=e.columns,a=e.scroll,i=e.sticky,c=e.prefixCls,u=c===void 0?bT:c,d=e.className,f=e.listItemHeight,v=e.components,g=e.onScroll,p=a||{},y=p.x,C=p.y;typeof y!="number"&&(y=1),typeof C!="number"&&(C=500);var S=qt(function($,w){return ga(v,$)||w}),b=qt(g),x=l.useMemo(function(){return{sticky:i,scrollY:C,listItemHeight:f,getComponent:S,onScroll:b}},[i,C,f,S,b]);return l.createElement(qC.Provider,{value:x},l.createElement(kc,xe({},e,{className:ce(d,"".concat(u,"-virtual")),scroll:ae(ae({},a),{},{x:y}),components:ae(ae({},v),{},{body:n!=null&&n.length?lJ:void 0}),columns:r,internalHooks:Hd,tailor:!0,ref:t})))}var cJ=l.forwardRef(sJ);function ST(e){return iT(cJ,e)}ST();const uJ=e=>null,dJ=e=>null;var GC=l.createContext(null),fJ=l.createContext({}),mJ=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,i=t.isEnd,c="".concat(n,"-indent-unit"),u=[],d=0;d<r;d+=1)u.push(l.createElement("span",{key:d,className:ce(c,J(J({},"".concat(c,"-start"),a[d]),"".concat(c,"-end"),i[d]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},u)};const vJ=l.memo(mJ);var gJ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],wO="open",EO="close",pJ="---",xd=function(t){var n,r,a,i=t.eventKey,c=t.className,u=t.style,d=t.dragOver,f=t.dragOverGapTop,v=t.dragOverGapBottom,g=t.isLeaf,p=t.isStart,y=t.isEnd,C=t.expanded,S=t.selected,b=t.checked,x=t.halfChecked,$=t.loading,w=t.domRef,E=t.active,O=t.data,N=t.onMouseMove,I=t.selectable,M=At(t,gJ),T=ve.useContext(GC),j=ve.useContext(fJ),_=ve.useRef(null),B=ve.useState(!1),H=me(B,2),A=H[0],F=H[1],D=!!(T.disabled||t.disabled||(n=j.nodeDisabled)!==null&&n!==void 0&&n.call(j,O)),L=ve.useMemo(function(){return!T.checkable||t.checkable===!1?!1:T.checkable},[T.checkable,t.checkable]),W=function($e){D||T.onNodeSelect($e,Pr(t))},G=function($e){D||!L||t.disableCheckbox||T.onNodeCheck($e,Pr(t),!b)},V=ve.useMemo(function(){return typeof I=="boolean"?I:T.selectable},[I,T.selectable]),k=function($e){T.onNodeClick($e,Pr(t)),V?W($e):G($e)},U=function($e){T.onNodeDoubleClick($e,Pr(t))},K=function($e){T.onNodeMouseEnter($e,Pr(t))},q=function($e){T.onNodeMouseLeave($e,Pr(t))},Z=function($e){T.onNodeContextMenu($e,Pr(t))},X=ve.useMemo(function(){return!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(O)))},[T.draggable,O]),ee=function($e){$e.stopPropagation(),F(!0),T.onNodeDragStart($e,t);try{$e.dataTransfer.setData("text/plain","")}catch{}},te=function($e){$e.preventDefault(),$e.stopPropagation(),T.onNodeDragEnter($e,t)},oe=function($e){$e.preventDefault(),$e.stopPropagation(),T.onNodeDragOver($e,t)},le=function($e){$e.stopPropagation(),T.onNodeDragLeave($e,t)},ne=function($e){$e.stopPropagation(),F(!1),T.onNodeDragEnd($e,t)},Q=function($e){$e.preventDefault(),$e.stopPropagation(),F(!1),T.onNodeDrop($e,t)},ie=function($e){$||T.onNodeExpand($e,Pr(t))},ue=ve.useMemo(function(){var je=Oa(T.keyEntities,i)||{},$e=je.children;return!!($e||[]).length},[T.keyEntities,i]),de=ve.useMemo(function(){return g===!1?!1:g||!T.loadData&&!ue||T.loadData&&t.loaded&&!ue},[g,T.loadData,ue,t.loaded]);ve.useEffect(function(){$||typeof T.loadData=="function"&&C&&!de&&!t.loaded&&T.onNodeLoad(Pr(t))},[$,T.loadData,T.onNodeLoad,C,de,t]);var se=ve.useMemo(function(){var je;return(je=T.draggable)!==null&&je!==void 0&&je.icon?ve.createElement("span",{className:"".concat(T.prefixCls,"-draggable-icon")},T.draggable.icon):null},[T.draggable]),ge=function($e){var _e=t.switcherIcon||T.switcherIcon;return typeof _e=="function"?_e(ae(ae({},t),{},{isLeaf:$e})):_e},he=function(){if(de){var $e=ge(!0);return $e!==!1?ve.createElement("span",{className:ce("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher-noop"))},$e):null}var _e=ge(!1);return _e!==!1?ve.createElement("span",{onClick:ie,className:ce("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher_").concat(C?wO:EO))},_e):null},Oe=ve.useMemo(function(){if(!L)return null;var je=typeof L!="boolean"?L:null;return ve.createElement("span",{className:ce("".concat(T.prefixCls,"-checkbox"),J(J(J({},"".concat(T.prefixCls,"-checkbox-checked"),b),"".concat(T.prefixCls,"-checkbox-indeterminate"),!b&&x),"".concat(T.prefixCls,"-checkbox-disabled"),D||t.disableCheckbox)),onClick:G,role:"checkbox","aria-checked":x?"mixed":b,"aria-disabled":D||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},je)},[L,b,x,D,t.disableCheckbox,t.title]),Re=ve.useMemo(function(){return de?null:C?wO:EO},[de,C]),pe=ve.useMemo(function(){return ve.createElement("span",{className:ce("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__").concat(Re||"docu"),J({},"".concat(T.prefixCls,"-icon_loading"),$))})},[T.prefixCls,Re,$]),Ie=ve.useMemo(function(){var je=!!T.draggable,$e=!t.disabled&&je&&T.dragOverNodeKey===i;return $e?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),we=ve.useMemo(function(){var je=t.title,$e=je===void 0?pJ:je,_e="".concat(T.prefixCls,"-node-content-wrapper"),Ee;if(T.showIcon){var Pe=t.icon||T.icon;Ee=Pe?ve.createElement("span",{className:ce("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__customize"))},typeof Pe=="function"?Pe(t):Pe):pe}else T.loadData&&$&&(Ee=pe);var be;return typeof $e=="function"?be=$e(O):T.titleRender?be=T.titleRender(O):be=$e,ve.createElement("span",{ref:_,title:typeof $e=="string"?$e:"",className:ce(_e,"".concat(_e,"-").concat(Re||"normal"),J({},"".concat(T.prefixCls,"-node-selected"),!D&&(S||A))),onMouseEnter:K,onMouseLeave:q,onContextMenu:Z,onClick:k,onDoubleClick:U},Ee,ve.createElement("span",{className:"".concat(T.prefixCls,"-title")},be),Ie)},[T.prefixCls,T.showIcon,t,T.icon,pe,T.titleRender,O,Re,K,q,Z,k,U]),ye=Sr(M,{aria:!0,data:!0}),ze=Oa(T.keyEntities,i)||{},Ae=ze.level,Ye=y[y.length-1],Ke=!D&&X,Fe=T.draggingNodeKey===i,Ge=I!==void 0?{"aria-selected":!!I}:void 0;return ve.createElement("div",xe({ref:w,role:"treeitem","aria-expanded":g?void 0:C,className:ce(c,"".concat(T.prefixCls,"-treenode"),(a={},J(J(J(J(J(J(J(J(J(J(a,"".concat(T.prefixCls,"-treenode-disabled"),D),"".concat(T.prefixCls,"-treenode-switcher-").concat(C?"open":"close"),!g),"".concat(T.prefixCls,"-treenode-checkbox-checked"),b),"".concat(T.prefixCls,"-treenode-checkbox-indeterminate"),x),"".concat(T.prefixCls,"-treenode-selected"),S),"".concat(T.prefixCls,"-treenode-loading"),$),"".concat(T.prefixCls,"-treenode-active"),E),"".concat(T.prefixCls,"-treenode-leaf-last"),Ye),"".concat(T.prefixCls,"-treenode-draggable"),X),"dragging",Fe),J(J(J(J(J(J(J(a,"drop-target",T.dropTargetKey===i),"drop-container",T.dropContainerKey===i),"drag-over",!D&&d),"drag-over-gap-top",!D&&f),"drag-over-gap-bottom",!D&&v),"filter-node",(r=T.filterTreeNode)===null||r===void 0?void 0:r.call(T,Pr(t))),"".concat(T.prefixCls,"-treenode-leaf"),de))),style:u,draggable:Ke,onDragStart:Ke?ee:void 0,onDragEnter:X?te:void 0,onDragOver:X?oe:void 0,onDragLeave:X?le:void 0,onDrop:X?Q:void 0,onDragEnd:X?ne:void 0,onMouseMove:N},Ge,ye),ve.createElement(vJ,{prefixCls:T.prefixCls,level:Ae,isStart:p,isEnd:y}),se,he(),Oe,we)};xd.isTreeNode=1;function Ao(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ui(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function XC(e){return e.split("-")}function hJ(e,t){var n=[],r=Oa(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(c){var u=c.key,d=c.children;n.push(u),a(d)})}return a(r.children),n}function bJ(e){if(e.parent){var t=XC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function yJ(e){var t=XC(e.pos);return Number(t[t.length-1])===0}function OO(e,t,n,r,a,i,c,u,d,f){var v,g=e.clientX,p=e.clientY,y=e.target.getBoundingClientRect(),C=y.top,S=y.height,b=(f==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-g),x=(b-12)/r,$=d.filter(function(D){var L;return(L=u[D])===null||L===void 0||(L=L.children)===null||L===void 0?void 0:L.length}),w=Oa(u,n.eventKey);if(p<C+S/2){var E=c.findIndex(function(D){return D.key===w.key}),O=E<=0?0:E-1,N=c[O].key;w=Oa(u,N)}var I=w.key,M=w,T=w.key,j=0,_=0;if(!$.includes(I))for(var B=0;B<x&&bJ(w);B+=1)w=w.parent,_+=1;var H=t.data,A=w.node,F=!0;return yJ(w)&&w.level===0&&p<C+S/2&&i({dragNode:H,dropNode:A,dropPosition:-1})&&w.key===n.eventKey?j=-1:(M.children||[]).length&&$.includes(T)?i({dragNode:H,dropNode:A,dropPosition:0})?j=0:F=!1:_===0?x>-1.5?i({dragNode:H,dropNode:A,dropPosition:1})?j=1:F=!1:i({dragNode:H,dropNode:A,dropPosition:0})?j=0:i({dragNode:H,dropNode:A,dropPosition:1})?j=1:F=!1:i({dragNode:H,dropNode:A,dropPosition:1})?j=1:F=!1,{dropPosition:j,dropLevelOffset:_,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:T,dropContainerKey:j===0?null:((v=w.parent)===null||v===void 0?void 0:v.key)||null,dropAllowed:F}}function RO(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function x0(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if($t(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Vn(!1,"`checkedKeys` is not an array or an object"),null;return t}function ly(e,t){var n=new Set;function r(a){if(!n.has(a)){var i=Oa(t,a);if(i){n.add(a);var c=i.parent,u=i.node;u.disabled||c&&r(c.key)}}}return(e||[]).forEach(function(a){r(a)}),Te(n)}const Yi={},sy="SELECT_ALL",cy="SELECT_INVERT",uy="SELECT_NONE",IO=[],xT=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&xT(e,r[e],n)}),n),CJ=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:i,getTitleCheckboxProps:c,onChange:u,onSelect:d,onSelectAll:f,onSelectInvert:v,onSelectNone:g,onSelectMultiple:p,columnWidth:y,type:C,selections:S,fixed:b,renderCell:x,hideSelectAll:$,checkStrictly:w=!0}=t||{},{prefixCls:E,data:O,pageData:N,getRecordByKey:I,getRowKey:M,expandType:T,childrenColumnName:j,locale:_,getPopupContainer:B}=e,H=Uo(),[A,F]=Iz(Q=>Q),[D,L]=bn(r||a||IO,{value:r}),W=l.useRef(new Map),G=l.useCallback(Q=>{if(n){const ie=new Map;Q.forEach(ue=>{let de=I(ue);!de&&W.current.has(ue)&&(de=W.current.get(ue)),ie.set(ue,de)}),W.current=ie}},[I,n]);l.useEffect(()=>{G(D)},[D]);const V=l.useMemo(()=>xT(j,N),[j,N]),{keyEntities:k}=l.useMemo(()=>{if(w)return{keyEntities:null};let Q=O;if(n){const ie=new Set(V.map((de,se)=>M(de,se))),ue=Array.from(W.current).reduce((de,[se,ge])=>ie.has(se)?de:de.concat(ge),[]);Q=[].concat(Te(Q),Te(ue))}return fg(Q,{externalGetKey:M,childrenPropName:j})},[O,M,w,j,n,V]),U=l.useMemo(()=>{const Q=new Map;return V.forEach((ie,ue)=>{const de=M(ie,ue),se=(i?i(ie):null)||{};Q.set(de,se)}),Q},[V,M,i]),K=l.useCallback(Q=>{const ie=M(Q);let ue;return U.has(ie)?ue=U.get(M(Q)):ue=i?i(Q):void 0,!!(ue!=null&&ue.disabled)},[U,M]),[q,Z]=l.useMemo(()=>{if(w)return[D||[],[]];const{checkedKeys:Q,halfCheckedKeys:ie}=mi(D,!0,k,K);return[Q||[],ie]},[D,w,k,K]),X=l.useMemo(()=>{const Q=C==="radio"?q.slice(0,1):q;return new Set(Q)},[q,C]),ee=l.useMemo(()=>C==="radio"?new Set:new Set(Z),[Z,C]);l.useEffect(()=>{t||L(IO)},[!!t]);const te=l.useCallback((Q,ie)=>{let ue,de;G(Q),n?(ue=Q,de=Q.map(se=>W.current.get(se))):(ue=[],de=[],Q.forEach(se=>{const ge=I(se);ge!==void 0&&(ue.push(se),de.push(ge))})),L(ue),u==null||u(ue,de,{type:ie})},[L,I,u,n]),oe=l.useCallback((Q,ie,ue,de)=>{if(d){const se=ue.map(ge=>I(ge));d(I(Q),ie,se,de)}te(ue,"single")},[d,I,te]),le=l.useMemo(()=>!S||$?null:(S===!0?[sy,cy,uy]:S).map(ie=>ie===sy?{key:"all",text:_.selectionAll,onSelect(){te(O.map((ue,de)=>M(ue,de)).filter(ue=>{const de=U.get(ue);return!(de!=null&&de.disabled)||X.has(ue)}),"all")}}:ie===cy?{key:"invert",text:_.selectInvert,onSelect(){const ue=new Set(X);N.forEach((se,ge)=>{const he=M(se,ge),Oe=U.get(he);Oe!=null&&Oe.disabled||(ue.has(he)?ue.delete(he):ue.add(he))});const de=Array.from(ue);v&&(H.deprecated(!1,"onSelectInvert","onChange"),v(de)),te(de,"invert")}}:ie===uy?{key:"none",text:_.selectNone,onSelect(){g==null||g(),te(Array.from(X).filter(ue=>{const de=U.get(ue);return de==null?void 0:de.disabled}),"none")}}:ie).map(ie=>Object.assign(Object.assign({},ie),{onSelect:(...ue)=>{var de,se;(se=ie.onSelect)===null||se===void 0||(de=se).call.apply(de,[ie].concat(ue)),F(null)}})),[S,X,N,M,v,te]);return[l.useCallback(Q=>{var ie;if(!t)return Q.filter(je=>je!==Yi);let ue=Te(Q);const de=new Set(X),se=V.map(M).filter(je=>!U.get(je).disabled),ge=se.every(je=>de.has(je)),he=se.some(je=>de.has(je)),Oe=()=>{const je=[];ge?se.forEach(_e=>{de.delete(_e),je.push(_e)}):se.forEach(_e=>{de.has(_e)||(de.add(_e),je.push(_e))});const $e=Array.from(de);f==null||f(!ge,$e.map(_e=>I(_e)),je.map(_e=>I(_e))),te($e,"all"),F(null)};let Re,pe;if(C!=="radio"){let je;if(le){const ke={getPopupContainer:B,items:le.map((et,ht)=>{const{key:We,text:tt,onSelect:ut}=et;return{key:We??ht,onClick:()=>{ut==null||ut(se)},label:tt}})};je=l.createElement("div",{className:`${E}-selection-extra`},l.createElement(BC,{menu:ke,getPopupContainer:B},l.createElement("span",null,l.createElement(rC,null))))}const $e=V.map((ke,et)=>{const ht=M(ke,et),We=U.get(ht)||{};return Object.assign({checked:de.has(ht)},We)}).filter(({disabled:ke})=>ke),_e=!!$e.length&&$e.length===V.length,Ee=_e&&$e.every(({checked:ke})=>ke),Pe=_e&&$e.some(({checked:ke})=>ke),be=(c==null?void 0:c())||{},{onChange:Se,disabled:Me}=be;pe=l.createElement(ka,Object.assign({"aria-label":je?"Custom selection":"Select all"},be,{checked:_e?Ee:!!V.length&&ge,indeterminate:_e?!Ee&&Pe:!ge&&he,onChange:ke=>{Oe(),Se==null||Se(ke)},disabled:Me??(V.length===0||_e),skipGroup:!0})),Re=!$&&l.createElement("div",{className:`${E}-selection`},pe,je)}let Ie;C==="radio"?Ie=(je,$e,_e)=>{const Ee=M($e,_e),Pe=de.has(Ee),be=U.get(Ee);return{node:l.createElement(no,Object.assign({},be,{checked:Pe,onClick:Se=>{var Me;Se.stopPropagation(),(Me=be==null?void 0:be.onClick)===null||Me===void 0||Me.call(be,Se)},onChange:Se=>{var Me;de.has(Ee)||oe(Ee,!0,[Ee],Se.nativeEvent),(Me=be==null?void 0:be.onChange)===null||Me===void 0||Me.call(be,Se)}})),checked:Pe}}:Ie=(je,$e,_e)=>{var Ee;const Pe=M($e,_e),be=de.has(Pe),Se=ee.has(Pe),Me=U.get(Pe);let ke;return T==="nest"?ke=Se:ke=(Ee=Me==null?void 0:Me.indeterminate)!==null&&Ee!==void 0?Ee:Se,{node:l.createElement(ka,Object.assign({},Me,{indeterminate:ke,checked:be,skipGroup:!0,onClick:et=>{var ht;et.stopPropagation(),(ht=Me==null?void 0:Me.onClick)===null||ht===void 0||ht.call(Me,et)},onChange:et=>{var ht;const{nativeEvent:We}=et,{shiftKey:tt}=We,ut=se.indexOf(Pe),rt=q.some(gt=>se.includes(gt));if(tt&&w&&rt){const gt=A(ut,se,de),Mt=Array.from(de);p==null||p(!be,Mt.map(xt=>I(xt)),gt.map(xt=>I(xt))),te(Mt,"multiple")}else{const gt=q;if(w){const Mt=be?Ao(gt,Pe):ui(gt,Pe);oe(Pe,!be,Mt,We)}else{const Mt=mi([].concat(Te(gt),[Pe]),!0,k,K),{checkedKeys:xt,halfCheckedKeys:st}=Mt;let Ct=xt;if(be){const bt=new Set(xt);bt.delete(Pe),Ct=mi(Array.from(bt),{halfCheckedKeys:st},k,K).checkedKeys}oe(Pe,!be,Ct,We)}}F(be?null:ut),(ht=Me==null?void 0:Me.onChange)===null||ht===void 0||ht.call(Me,et)}})),checked:be}};const we=(je,$e,_e)=>{const{node:Ee,checked:Pe}=Ie(je,$e,_e);return x?x(Pe,$e,_e,Ee):Ee};if(!ue.includes(Yi))if(ue.findIndex(je=>{var $e;return(($e=je[rd])===null||$e===void 0?void 0:$e.columnType)==="EXPAND_COLUMN"})===0){const[je,...$e]=ue;ue=[je,Yi].concat(Te($e))}else ue=[Yi].concat(Te(ue));const ye=ue.indexOf(Yi);ue=ue.filter((je,$e)=>je!==Yi||$e===ye);const ze=ue[ye-1],Ae=ue[ye+1];let Ye=b;Ye===void 0&&((Ae==null?void 0:Ae.fixed)!==void 0?Ye=Ae.fixed:(ze==null?void 0:ze.fixed)!==void 0&&(Ye=ze.fixed)),Ye&&ze&&((ie=ze[rd])===null||ie===void 0?void 0:ie.columnType)==="EXPAND_COLUMN"&&ze.fixed===void 0&&(ze.fixed=Ye);const Ke=ce(`${E}-selection-col`,{[`${E}-selection-col-with-dropdown`]:S&&C==="checkbox"}),Fe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:Re,Ge={fixed:Ye,width:y,className:`${E}-selection-column`,title:Fe(),render:we,onCell:t.onCell,align:t.align,[rd]:{className:Ke}};return ue.map(je=>je===Yi?Ge:je)},[M,V,t,q,X,ee,y,le,T,U,p,oe,K]),X]};function SJ(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:i,expandable:c}=t,u=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:d=>{r(a,d),d.stopPropagation()},className:ce(u,{[`${u}-spaced`]:!c,[`${u}-expanded`]:c&&i,[`${u}-collapsed`]:c&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function xJ(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let i=r;if(a){const c=getComputedStyle(a),u=Number.parseInt(c.borderLeftWidth,10),d=Number.parseInt(c.borderRightWidth,10);i=r-u-d}return i}}const ll=(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 Hc(e,t){return t?`${t}-${e}`:`${e}`}const xg=(e,t)=>typeof e=="function"?e(t):e,$J=(e,t)=>{const n=xg(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var wJ={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"},EJ=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:wJ}))},OJ=l.forwardRef(EJ),RJ=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*a;break;case 1:i.bottom=0,i.left=-r*a;break;case 0:i.bottom=0,i.left=a;break}return ve.createElement("div",{style:i})};function $T(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function IJ(e,t){var n=l.useState(!1),r=me(n,2),a=r[0],i=r[1];nn(function(){if(a)return e(),function(){t()}},[a]),nn(function(){return i(!0),function(){i(!1)}},[])}var NJ=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MJ=l.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,i=e.motionNodes,c=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,v=e.treeNodeRequiredProps,g=At(e,NJ),p=l.useState(!0),y=me(p,2),C=y[0],S=y[1],b=l.useContext(GC),x=b.prefixCls,$=i&&c!=="hide";nn(function(){i&&$!==C&&S($)},[i]);var w=function(){i&&u()},E=l.useRef(!1),O=function(){i&&!E.current&&(E.current=!0,d())};IJ(w,O);var N=function(M){$===M&&O()};return i?l.createElement(Jr,xe({ref:t,visible:C},a,{motionAppear:c==="show",onVisibleChanged:N}),function(I,M){var T=I.className,j=I.style;return l.createElement("div",{ref:M,className:ce("".concat(x,"-treenode-motion"),T),style:j},i.map(function(_){var B=Object.assign({},($T(_.data),_.data)),H=_.title,A=_.key,F=_.isStart,D=_.isEnd;delete B.children;var L=nd(A,v);return l.createElement(xd,xe({},B,L,{title:H,active:f,data:_.data,key:A,isStart:F,isEnd:D}))}))}):l.createElement(xd,xe({domRef:t,className:n,style:r},g,{active:f}))});function TJ(){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 a(i,c){var u=new Map;i.forEach(function(f){u.set(f,!0)});var d=c.filter(function(f){return!u.has(f)});return d.length===1?d[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function NO(e,t,n){var r=e.findIndex(function(u){return u.key===n}),a=e[r+1],i=t.findIndex(function(u){return u.key===n});if(a){var c=t.findIndex(function(u){return u.key===a.key});return t.slice(i+1,c)}return t.slice(i+1)}var jJ=["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"],MO={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},PJ=function(){},Zl="RC_TREE_MOTION_".concat(Math.random()),dy={key:Zl},wT={key:Zl,level:0,index:0,pos:"0",node:dy,nodes:[dy]},TO={parent:null,children:[],pos:wT.pos,data:dy,title:null,key:Zl,isStart:[],isEnd:[]};function jO(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function PO(e){var t=e.key,n=e.pos;return Bd(t,n)}function DJ(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 _J=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,d=e.loadingKeys,f=e.halfCheckedKeys,v=e.keyEntities,g=e.disabled,p=e.dragging,y=e.dragOverNodeKey,C=e.dropPosition,S=e.motion,b=e.height,x=e.itemHeight,$=e.virtual,w=e.scrollWidth,E=e.focusable,O=e.activeItem,N=e.focused,I=e.tabIndex,M=e.onKeyDown,T=e.onFocus,j=e.onBlur,_=e.onActiveChange,B=e.onListChangeStart,H=e.onListChangeEnd,A=At(e,jJ),F=l.useRef(null),D=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(Ie){F.current.scrollTo(Ie)},getIndentWidth:function(){return D.current.offsetWidth}}});var L=l.useState(a),W=me(L,2),G=W[0],V=W[1],k=l.useState(r),U=me(k,2),K=U[0],q=U[1],Z=l.useState(r),X=me(Z,2),ee=X[0],te=X[1],oe=l.useState([]),le=me(oe,2),ne=le[0],Q=le[1],ie=l.useState(null),ue=me(ie,2),de=ue[0],se=ue[1],ge=l.useRef(r);ge.current=r;function he(){var pe=ge.current;q(pe),te(pe),Q([]),se(null),H()}nn(function(){V(a);var pe=TJ(G,a);if(pe.key!==null)if(pe.add){var Ie=K.findIndex(function(Ke){var Fe=Ke.key;return Fe===pe.key}),we=jO(NO(K,r,pe.key),$,b,x),ye=K.slice();ye.splice(Ie+1,0,TO),te(ye),Q(we),se("show")}else{var ze=r.findIndex(function(Ke){var Fe=Ke.key;return Fe===pe.key}),Ae=jO(NO(r,K,pe.key),$,b,x),Ye=r.slice();Ye.splice(ze+1,0,TO),te(Ye),Q(Ae),se("hide")}else K!==r&&(q(r),te(r))},[a,r]),l.useEffect(function(){p||he()},[p]);var Oe=S?ee:r,Re={expandedKeys:a,selectedKeys:i,loadedKeys:u,loadingKeys:d,checkedKeys:c,halfCheckedKeys:f,dragOverNodeKey:y,dropPosition:C,keyEntities:v};return l.createElement(l.Fragment,null,N&&O&&l.createElement("span",{style:MO,"aria-live":"assertive"},DJ(O)),l.createElement("div",null,l.createElement("input",{style:MO,disabled:E===!1||g,tabIndex:E!==!1?I:null,onKeyDown:M,onFocus:T,onBlur:j,value:"",onChange:PJ,"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:D,className:"".concat(n,"-indent-unit")}))),l.createElement(Yv,xe({},A,{data:Oe,itemKey:PO,height:b,fullHeight:!1,virtual:$,itemHeight:x,scrollWidth:w,prefixCls:"".concat(n,"-list"),ref:F,role:"tree",onVisibleChange:function(Ie){Ie.every(function(we){return PO(we)!==Zl})&&he()}}),function(pe){var Ie=pe.pos,we=Object.assign({},($T(pe.data),pe.data)),ye=pe.title,ze=pe.key,Ae=pe.isStart,Ye=pe.isEnd,Ke=Bd(ze,Ie);delete we.key,delete we.children;var Fe=nd(Ke,Re);return l.createElement(MJ,xe({},we,Fe,{title:ye,active:!!O&&ze===O.key,pos:Ie,data:pe.data,isStart:Ae,isEnd:Ye,motion:S,motionNodes:ze===Zl?ne:null,motionType:de,onMotionStart:B,onMotionEnd:he,treeNodeRequiredProps:Re,onMouseMove:function(){_(null)}}))}))}),zJ=10,YC=(function(e){Fa(n,e);var t=so(n);function n(){var r;or(this,n);for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return r=t.call.apply(t,[this].concat(i)),J(St(r),"destroyed",!1),J(St(r),"delayedDragEnterLogic",void 0),J(St(r),"loadingRetryTimes",{}),J(St(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:Sc()}),J(St(r),"dragStartMousePosition",null),J(St(r),"dragNodeProps",null),J(St(r),"currentMouseOverDroppableNodeKey",null),J(St(r),"listRef",l.createRef()),J(St(r),"onNodeDragStart",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=r.props.onDragStart,y=d.eventKey;r.dragNodeProps=d,r.dragStartMousePosition={x:u.clientX,y:u.clientY};var C=Ao(v,y);r.setState({draggingNodeKey:y,dragChildrenKeys:hJ(y,g),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(C),window.addEventListener("dragend",r.onWindowDragEnd),p==null||p({event:u,node:Pr(d)})}),J(St(r),"onNodeDragEnter",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=f.dragChildrenKeys,y=f.flattenNodes,C=f.indent,S=r.props,b=S.onDragEnter,x=S.onExpand,$=S.allowDrop,w=S.direction,E=d.pos,O=d.eventKey;if(r.currentMouseOverDroppableNodeKey!==O&&(r.currentMouseOverDroppableNodeKey=O),!r.dragNodeProps){r.resetDragState();return}var N=OO(u,r.dragNodeProps,d,C,r.dragStartMousePosition,$,y,g,v,w),I=N.dropPosition,M=N.dropLevelOffset,T=N.dropTargetKey,j=N.dropContainerKey,_=N.dropTargetPos,B=N.dropAllowed,H=N.dragOverNodeKey;if(p.includes(T)||!B){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(A){clearTimeout(r.delayedDragEnterLogic[A])}),r.dragNodeProps.eventKey!==d.eventKey&&(u.persist(),r.delayedDragEnterLogic[E]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var A=Te(v),F=Oa(g,d.eventKey);F&&(F.children||[]).length&&(A=ui(v,d.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(A),x==null||x(A,{node:Pr(d),expanded:!0,nativeEvent:u.nativeEvent})}},800)),r.dragNodeProps.eventKey===T&&M===0){r.resetDragState();return}r.setState({dragOverNodeKey:H,dropPosition:I,dropLevelOffset:M,dropTargetKey:T,dropContainerKey:j,dropTargetPos:_,dropAllowed:B}),b==null||b({event:u,node:Pr(d),expandedKeys:v})}),J(St(r),"onNodeDragOver",function(u,d){var f=r.state,v=f.dragChildrenKeys,g=f.flattenNodes,p=f.keyEntities,y=f.expandedKeys,C=f.indent,S=r.props,b=S.onDragOver,x=S.allowDrop,$=S.direction;if(r.dragNodeProps){var w=OO(u,r.dragNodeProps,d,C,r.dragStartMousePosition,x,g,p,y,$),E=w.dropPosition,O=w.dropLevelOffset,N=w.dropTargetKey,I=w.dropContainerKey,M=w.dropTargetPos,T=w.dropAllowed,j=w.dragOverNodeKey;v.includes(N)||!T||(r.dragNodeProps.eventKey===N&&O===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():E===r.state.dropPosition&&O===r.state.dropLevelOffset&&N===r.state.dropTargetKey&&I===r.state.dropContainerKey&&M===r.state.dropTargetPos&&T===r.state.dropAllowed&&j===r.state.dragOverNodeKey||r.setState({dropPosition:E,dropLevelOffset:O,dropTargetKey:N,dropContainerKey:I,dropTargetPos:M,dropAllowed:T,dragOverNodeKey:j}),b==null||b({event:u,node:Pr(d)}))}}),J(St(r),"onNodeDragLeave",function(u,d){r.currentMouseOverDroppableNodeKey===d.eventKey&&!u.currentTarget.contains(u.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var f=r.props.onDragLeave;f==null||f({event:u,node:Pr(d)})}),J(St(r),"onWindowDragEnd",function(u){r.onNodeDragEnd(u,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),J(St(r),"onNodeDragEnd",function(u,d){var f=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),f==null||f({event:u,node:Pr(d)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),J(St(r),"onNodeDrop",function(u,d){var f,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=r.state,p=g.dragChildrenKeys,y=g.dropPosition,C=g.dropTargetKey,S=g.dropTargetPos,b=g.dropAllowed;if(b){var x=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),C!==null){var $=ae(ae({},nd(C,r.getTreeNodeRequiredProps())),{},{active:((f=r.getActiveItem())===null||f===void 0?void 0:f.key)===C,data:Oa(r.state.keyEntities,C).node}),w=p.includes(C);Vn(!w,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=XC(S),O={event:u,node:Pr($),dragNode:r.dragNodeProps?Pr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:y!==0,dropPosition:y+Number(E[E.length-1])};v||x==null||x(O),r.dragNodeProps=null}}}),J(St(r),"cleanDragState",function(){var u=r.state.draggingNodeKey;u!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),J(St(r),"triggerExpandActionExpand",function(u,d){var f=r.state,v=f.expandedKeys,g=f.flattenNodes,p=d.expanded,y=d.key,C=d.isLeaf;if(!(C||u.shiftKey||u.metaKey||u.ctrlKey)){var S=g.filter(function(x){return x.key===y})[0],b=Pr(ae(ae({},nd(y,r.getTreeNodeRequiredProps())),{},{data:S.data}));r.setExpandedKeys(p?Ao(v,y):ui(v,y)),r.onNodeExpand(u,b)}}),J(St(r),"onNodeClick",function(u,d){var f=r.props,v=f.onClick,g=f.expandAction;g==="click"&&r.triggerExpandActionExpand(u,d),v==null||v(u,d)}),J(St(r),"onNodeDoubleClick",function(u,d){var f=r.props,v=f.onDoubleClick,g=f.expandAction;g==="doubleClick"&&r.triggerExpandActionExpand(u,d),v==null||v(u,d)}),J(St(r),"onNodeSelect",function(u,d){var f=r.state.selectedKeys,v=r.state,g=v.keyEntities,p=v.fieldNames,y=r.props,C=y.onSelect,S=y.multiple,b=d.selected,x=d[p.key],$=!b;$?S?f=ui(f,x):f=[x]:f=Ao(f,x);var w=f.map(function(E){var O=Oa(g,E);return O?O.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:f}),C==null||C(f,{event:"select",selected:$,node:d,selectedNodes:w,nativeEvent:u.nativeEvent})}),J(St(r),"onNodeCheck",function(u,d,f){var v=r.state,g=v.keyEntities,p=v.checkedKeys,y=v.halfCheckedKeys,C=r.props,S=C.checkStrictly,b=C.onCheck,x=d.key,$,w={event:"check",node:d,checked:f,nativeEvent:u.nativeEvent};if(S){var E=f?ui(p,x):Ao(p,x),O=Ao(y,x);$={checked:E,halfChecked:O},w.checkedNodes=E.map(function(_){return Oa(g,_)}).filter(Boolean).map(function(_){return _.node}),r.setUncontrolledState({checkedKeys:E})}else{var N=mi([].concat(Te(p),[x]),!0,g),I=N.checkedKeys,M=N.halfCheckedKeys;if(!f){var T=new Set(I);T.delete(x);var j=mi(Array.from(T),{halfCheckedKeys:M},g);I=j.checkedKeys,M=j.halfCheckedKeys}$=I,w.checkedNodes=[],w.checkedNodesPositions=[],w.halfCheckedKeys=M,I.forEach(function(_){var B=Oa(g,_);if(B){var H=B.node,A=B.pos;w.checkedNodes.push(H),w.checkedNodesPositions.push({node:H,pos:A})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:M})}b==null||b($,w)}),J(St(r),"onNodeLoad",function(u){var d,f=u.key,v=r.state.keyEntities,g=Oa(v,f);if(!(g!=null&&(d=g.children)!==null&&d!==void 0&&d.length)){var p=new Promise(function(y,C){r.setState(function(S){var b=S.loadedKeys,x=b===void 0?[]:b,$=S.loadingKeys,w=$===void 0?[]:$,E=r.props,O=E.loadData,N=E.onLoad;if(!O||x.includes(f)||w.includes(f))return null;var I=O(u);return I.then(function(){var M=r.state.loadedKeys,T=ui(M,f);N==null||N(T,{event:"load",node:u}),r.setUncontrolledState({loadedKeys:T}),r.setState(function(j){return{loadingKeys:Ao(j.loadingKeys,f)}}),y()}).catch(function(M){if(r.setState(function(j){return{loadingKeys:Ao(j.loadingKeys,f)}}),r.loadingRetryTimes[f]=(r.loadingRetryTimes[f]||0)+1,r.loadingRetryTimes[f]>=zJ){var T=r.state.loadedKeys;Vn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ui(T,f)}),y()}C(M)}),{loadingKeys:ui(w,f)}})});return p.catch(function(){}),p}}),J(St(r),"onNodeMouseEnter",function(u,d){var f=r.props.onMouseEnter;f==null||f({event:u,node:d})}),J(St(r),"onNodeMouseLeave",function(u,d){var f=r.props.onMouseLeave;f==null||f({event:u,node:d})}),J(St(r),"onNodeContextMenu",function(u,d){var f=r.props.onRightClick;f&&(u.preventDefault(),f({event:u,node:d}))}),J(St(r),"onFocus",function(){var u=r.props.onFocus;r.setState({focused:!0});for(var d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];u==null||u.apply(void 0,f)}),J(St(r),"onBlur",function(){var u=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];u==null||u.apply(void 0,f)}),J(St(r),"getTreeNodeRequiredProps",function(){var u=r.state,d=u.expandedKeys,f=u.selectedKeys,v=u.loadedKeys,g=u.loadingKeys,p=u.checkedKeys,y=u.halfCheckedKeys,C=u.dragOverNodeKey,S=u.dropPosition,b=u.keyEntities;return{expandedKeys:d||[],selectedKeys:f||[],loadedKeys:v||[],loadingKeys:g||[],checkedKeys:p||[],halfCheckedKeys:y||[],dragOverNodeKey:C,dropPosition:S,keyEntities:b}}),J(St(r),"setExpandedKeys",function(u){var d=r.state,f=d.treeData,v=d.fieldNames,g=m0(f,u,v);r.setUncontrolledState({expandedKeys:u,flattenNodes:g},!0)}),J(St(r),"onNodeExpand",function(u,d){var f=r.state.expandedKeys,v=r.state,g=v.listChanging,p=v.fieldNames,y=r.props,C=y.onExpand,S=y.loadData,b=d.expanded,x=d[p.key];if(!g){var $=f.includes(x),w=!b;if(Vn(b&&$||!b&&!$,"Expand state not sync with index check"),f=w?ui(f,x):Ao(f,x),r.setExpandedKeys(f),C==null||C(f,{node:d,expanded:w,nativeEvent:u.nativeEvent}),w&&S){var E=r.onNodeLoad(d);E&&E.then(function(){var O=m0(r.state.treeData,f,p);r.setUncontrolledState({flattenNodes:O})}).catch(function(){var O=r.state.expandedKeys,N=Ao(O,x);r.setExpandedKeys(N)})}}}),J(St(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),J(St(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),J(St(r),"onActiveChange",function(u){var d=r.state.activeKey,f=r.props,v=f.onActiveChange,g=f.itemScrollOffset,p=g===void 0?0:g;d!==u&&(r.setState({activeKey:u}),u!==null&&r.scrollTo({key:u,offset:p}),v==null||v(u))}),J(St(r),"getActiveItem",function(){var u=r.state,d=u.activeKey,f=u.flattenNodes;return d===null?null:f.find(function(v){var g=v.key;return g===d})||null}),J(St(r),"offsetActiveKey",function(u){var d=r.state,f=d.flattenNodes,v=d.activeKey,g=f.findIndex(function(C){var S=C.key;return S===v});g===-1&&u<0&&(g=f.length),g=(g+u+f.length)%f.length;var p=f[g];if(p){var y=p.key;r.onActiveChange(y)}else r.onActiveChange(null)}),J(St(r),"onKeyDown",function(u){var d=r.state,f=d.activeKey,v=d.expandedKeys,g=d.checkedKeys,p=d.fieldNames,y=r.props,C=y.onKeyDown,S=y.checkable,b=y.selectable;switch(u.which){case at.UP:{r.offsetActiveKey(-1),u.preventDefault();break}case at.DOWN:{r.offsetActiveKey(1),u.preventDefault();break}}var x=r.getActiveItem();if(x&&x.data){var $=r.getTreeNodeRequiredProps(),w=x.data.isLeaf===!1||!!(x.data[p.children]||[]).length,E=Pr(ae(ae({},nd(f,$)),{},{data:x.data,active:!0}));switch(u.which){case at.LEFT:{w&&v.includes(f)?r.onNodeExpand({},E):x.parent&&r.onActiveChange(x.parent.key),u.preventDefault();break}case at.RIGHT:{w&&!v.includes(f)?r.onNodeExpand({},E):x.children&&x.children.length&&r.onActiveChange(x.children[0].key),u.preventDefault();break}case at.ENTER:case at.SPACE:{S&&!E.disabled&&E.checkable!==!1&&!E.disableCheckbox?r.onNodeCheck({},E,!g.includes(f)):!S&&b&&!E.disabled&&E.selectable!==!1&&r.onNodeSelect({},E);break}}}C==null||C(u)}),J(St(r),"setUncontrolledState",function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var v=!1,g=!0,p={};Object.keys(u).forEach(function(y){if(r.props.hasOwnProperty(y)){g=!1;return}v=!0,p[y]=u[y]}),v&&(!d||g)&&r.setState(ae(ae({},p),f))}}),J(St(r),"scrollTo",function(u){r.listRef.current.scrollTo(u)}),r}return ir(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,i=a.activeKey,c=a.itemScrollOffset,u=c===void 0?0:c;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:u}))}},{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 a=this.state,i=a.focused,c=a.flattenNodes,u=a.keyEntities,d=a.draggingNodeKey,f=a.activeKey,v=a.dropLevelOffset,g=a.dropContainerKey,p=a.dropTargetKey,y=a.dropPosition,C=a.dragOverNodeKey,S=a.indent,b=this.props,x=b.prefixCls,$=b.className,w=b.style,E=b.showLine,O=b.focusable,N=b.tabIndex,I=N===void 0?0:N,M=b.selectable,T=b.showIcon,j=b.icon,_=b.switcherIcon,B=b.draggable,H=b.checkable,A=b.checkStrictly,F=b.disabled,D=b.motion,L=b.loadData,W=b.filterTreeNode,G=b.height,V=b.itemHeight,k=b.scrollWidth,U=b.virtual,K=b.titleRender,q=b.dropIndicatorRender,Z=b.onContextMenu,X=b.onScroll,ee=b.direction,te=b.rootClassName,oe=b.rootStyle,le=Sr(this.props,{aria:!0,data:!0}),ne;B&&($t(B)==="object"?ne=B:typeof B=="function"?ne={nodeDraggable:B}:ne={});var Q={prefixCls:x,selectable:M,showIcon:T,icon:j,switcherIcon:_,draggable:ne,draggingNodeKey:d,checkable:H,checkStrictly:A,disabled:F,keyEntities:u,dropLevelOffset:v,dropContainerKey:g,dropTargetKey:p,dropPosition:y,dragOverNodeKey:C,indent:S,direction:ee,dropIndicatorRender:q,loadData:L,filterTreeNode:W,titleRender:K,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(GC.Provider,{value:Q},l.createElement("div",{className:ce(x,$,te,J(J(J({},"".concat(x,"-show-line"),E),"".concat(x,"-focused"),i),"".concat(x,"-active-focused"),f!==null)),style:oe},l.createElement(_J,xe({ref:this.listRef,prefixCls:x,style:w,data:c,disabled:F,selectable:M,checkable:!!H,motion:D,dragging:d!==null,height:G,itemHeight:V,virtual:U,focusable:O,focused:i,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Z,onScroll:X,scrollWidth:k},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var c=i.prevProps,u={prevProps:a};function d(I){return!c&&a.hasOwnProperty(I)||c&&c[I]!==a[I]}var f,v=i.fieldNames;if(d("fieldNames")&&(v=Sc(a.fieldNames),u.fieldNames=v),d("treeData")?f=a.treeData:d("children")&&(Vn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=t3(a.children)),f){u.treeData=f;var g=fg(f,{fieldNames:v});u.keyEntities=ae(J({},Zl,wT),g.keyEntities)}var p=u.keyEntities||i.keyEntities;if(d("expandedKeys")||c&&d("autoExpandParent"))u.expandedKeys=a.autoExpandParent||!c&&a.defaultExpandParent?ly(a.expandedKeys,p):a.expandedKeys;else if(!c&&a.defaultExpandAll){var y=ae({},p);delete y[Zl];var C=[];Object.keys(y).forEach(function(I){var M=y[I];M.children&&M.children.length&&C.push(M.key)}),u.expandedKeys=C}else!c&&a.defaultExpandedKeys&&(u.expandedKeys=a.autoExpandParent||a.defaultExpandParent?ly(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(u.expandedKeys||delete u.expandedKeys,f||u.expandedKeys){var S=m0(f||i.treeData,u.expandedKeys||i.expandedKeys,v);u.flattenNodes=S}if(a.selectable&&(d("selectedKeys")?u.selectedKeys=RO(a.selectedKeys,a):!c&&a.defaultSelectedKeys&&(u.selectedKeys=RO(a.defaultSelectedKeys,a))),a.checkable){var b;if(d("checkedKeys")?b=x0(a.checkedKeys)||{}:!c&&a.defaultCheckedKeys?b=x0(a.defaultCheckedKeys)||{}:f&&(b=x0(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),b){var x=b,$=x.checkedKeys,w=$===void 0?[]:$,E=x.halfCheckedKeys,O=E===void 0?[]:E;if(!a.checkStrictly){var N=mi(w,!0,p);w=N.checkedKeys,O=N.halfCheckedKeys}u.checkedKeys=w,u.halfCheckedKeys=O}}return d("loadedKeys")&&(u.loadedKeys=a.loadedKeys),u}}]),n})(l.Component);J(YC,"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:RJ,allowDrop:function(){return!0},expandAction:!1});J(YC,"TreeNode",xd);var AJ={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"},BJ=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:AJ}))},ET=l.forwardRef(BJ),LJ={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"},kJ=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:LJ}))},OT=l.forwardRef(kJ),HJ={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"},FJ=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:HJ}))},VJ=l.forwardRef(FJ),WJ={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"},KJ=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:WJ}))},UJ=l.forwardRef(KJ);const qJ=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:i,controlItemBgHover:c})=>({[`${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 ${a}`,content:'""',borderRadius:i},"&:hover:before":{background:c}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),GJ=new Qt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),XJ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),YJ=(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:`${re(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),QJ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:i,indentSize:c,nodeSelectedBg:u,nodeHoverBg:d,colorTextQuaternary:f,controlItemBgActiveDisabled:v}=t;return{[n]:Object.assign(Object.assign({},fn(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)`]:Ho(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:GJ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:re(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-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:v},[`${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:i,textAlign:"center",visibility:"visible",color:f},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:c}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},XJ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,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(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},YJ(e,t)),{"&:hover":{backgroundColor:d},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:u},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).div(2).equal(),bottom:t.calc(a).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:`${re(t.calc(i).div(2).equal())} !important`}})}},ZJ=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),c=rn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:i});return[QJ(e,c),n&&qJ(c)].filter(Boolean)},JJ=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},eee=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},JJ(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},tee=ln("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:jC(`${t}-checkbox`,e)},ZJ(t,e),Rd(e)],eee),DO=4;function nee(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:i="ltr"}=e,c=i==="ltr"?"left":"right",u=i==="ltr"?"right":"left",d={[c]:-n*a+DO,[u]:0};switch(t){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[c]=a+DO;break}return ve.createElement("div",{style:d,className:`${r}-drop-indicator`})}var ree={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"},aee=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:ree}))},oee=l.forwardRef(aee),iee={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"},lee=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:iee}))},see=l.forwardRef(lee),cee={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"},uee=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:cee}))},dee=l.forwardRef(uee);const fee=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:i,showLine:c,switcherLoadingIcon:u}=e,{isLeaf:d,expanded:f,loading:v}=i;if(v)return l.isValidElement(u)?u:l.createElement($o,{className:`${r}-switcher-loading-icon`});let g;if(c&&typeof c=="object"&&(g=c.showLeafIcon),d){if(!c)return null;if(typeof g!="boolean"&&g){const C=typeof g=="function"?g(i):g,S=`${r}-switcher-line-custom-icon`;return l.isValidElement(C)?xr(C,{className:ce((t=C.props)===null||t===void 0?void 0:t.className,S)}):C}return g?l.createElement(ET,{className:`${r}-switcher-line-icon`}):l.createElement("span",{className:`${r}-switcher-leaf-line`})}const p=`${r}-switcher-icon`,y=typeof a=="function"?a(i):a;return l.isValidElement(y)?xr(y,{className:ce((n=y.props)===null||n===void 0?void 0:n.className,p)}):y!==void 0?y:c?f?l.createElement(see,{className:`${r}-switcher-line-icon`}):l.createElement(dee,{className:`${r}-switcher-line-icon`}):l.createElement(oee,{className:p})},RT=ve.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:i,tree:c}=ve.useContext(Rt),{prefixCls:u,className:d,showIcon:f=!1,showLine:v,switcherIcon:g,switcherLoadingIcon:p,blockNode:y=!1,children:C,checkable:S=!1,selectable:b=!0,draggable:x,disabled:$,motion:w,style:E}=e,O=r("tree",u),N=r(),I=ve.useContext(_r),M=$??I,T=w??Object.assign(Object.assign({},gc(N)),{motionAppear:!1}),j=Object.assign(Object.assign({},e),{checkable:S,selectable:b,showIcon:f,motion:T,blockNode:y,disabled:M,showLine:!!v,dropIndicatorRender:nee}),[_,B,H]=tee(O),[,A]=Zr(),F=A.paddingXS/2+(((n=A.Tree)===null||n===void 0?void 0:n.titleHeight)||A.controlHeightSM),D=ve.useMemo(()=>{if(!x)return!1;let W={};switch(typeof x){case"function":W.nodeDraggable=x;break;case"object":W=Object.assign({},x);break}return W.icon!==!1&&(W.icon=W.icon||ve.createElement(UJ,null)),W},[x]),L=W=>ve.createElement(fee,{prefixCls:O,switcherIcon:g,switcherLoadingIcon:p,treeNodeProps:W,showLine:v});return _(ve.createElement(YC,Object.assign({itemHeight:F,ref:t,virtual:i},j,{style:Object.assign(Object.assign({},c==null?void 0:c.style),E),prefixCls:O,className:ce({[`${O}-icon-hide`]:!f,[`${O}-block-node`]:y,[`${O}-unselectable`]:!b,[`${O}-rtl`]:a==="rtl",[`${O}-disabled`]:M},c==null?void 0:c.className,d,B,H),direction:a,checkable:S&&ve.createElement("span",{className:`${O}-checkbox-inner`}),selectable:b,switcherIcon:L,draggable:D}),C))}),_O=0,$0=1,zO=2;function QC(e,t,n){const{key:r,children:a}=n;function i(c){const u=c[r],d=c[a];t(u,c)!==!1&&QC(d||[],t,n)}e.forEach(i)}function mee({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const i=[];let c=_O;if(n&&n===r)return[n];if(!n||!r)return[];function u(d){return d===n||d===r}return QC(e,d=>{if(c===zO)return!1;if(u(d)){if(i.push(d),c===_O)c=$0;else if(c===$0)return c=zO,!1}else c===$0&&i.push(d);return t.includes(d)},Sc(a)),i}function w0(e,t,n){const r=Te(t),a=[];return QC(e,(i,c)=>{const u=r.indexOf(i);return u!==-1&&(a.push(c),r.splice(u,1)),!!r.length},Sc(n)),a}var AO=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function vee(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(ET,null):n?l.createElement(OT,null):l.createElement(VJ,null)}function BO({treeData:e,children:t}){return e||t3(t)}const gee=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,i=AO(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=l.useRef(null),u=l.useRef(null),d=()=>{const{keyEntities:M}=fg(BO(i),{fieldNames:i.fieldNames});let T;return n?T=Object.keys(M):r?T=ly(i.expandedKeys||a||[],M):T=i.expandedKeys||a||[],T},[f,v]=l.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[g,p]=l.useState(()=>d());l.useEffect(()=>{"selectedKeys"in i&&v(i.selectedKeys)},[i.selectedKeys]),l.useEffect(()=>{"expandedKeys"in i&&p(i.expandedKeys)},[i.expandedKeys]);const y=(M,T)=>{var j;return"expandedKeys"in i||p(M),(j=i.onExpand)===null||j===void 0?void 0:j.call(i,M,T)},C=(M,T)=>{var j;const{multiple:_,fieldNames:B}=i,{node:H,nativeEvent:A}=T,{key:F=""}=H,D=BO(i),L=Object.assign(Object.assign({},T),{selected:!0}),W=(A==null?void 0:A.ctrlKey)||(A==null?void 0:A.metaKey),G=A==null?void 0:A.shiftKey;let V;_&&W?(V=M,c.current=F,u.current=V,L.selectedNodes=w0(D,V,B)):_&&G?(V=Array.from(new Set([].concat(Te(u.current||[]),Te(mee({treeData:D,expandedKeys:g,startKey:F,endKey:c.current,fieldNames:B}))))),L.selectedNodes=w0(D,V,B)):(V=[F],c.current=F,u.current=V,L.selectedNodes=w0(D,V,B)),(j=i.onSelect)===null||j===void 0||j.call(i,V,L),"selectedKeys"in i||v(V)},{getPrefixCls:S,direction:b}=l.useContext(Rt),{prefixCls:x,className:$,showIcon:w=!0,expandAction:E="click"}=i,O=AO(i,["prefixCls","className","showIcon","expandAction"]),N=S("tree",x),I=ce(`${N}-directory`,{[`${N}-directory-rtl`]:b==="rtl"},$);return l.createElement(RT,Object.assign({icon:vee,ref:t,blockNode:!0},O,{showIcon:w,expandAction:E,prefixCls:N,className:I,expandedKeys:g,selectedKeys:f,onSelect:C,onExpand:y}))},pee=l.forwardRef(gee),ZC=RT;ZC.DirectoryTree=pee;ZC.TreeNode=xd;const LO=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:i}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(kd,{prefix:l.createElement(Dd,null),placeholder:a.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},hee=e=>{const{keyCode:t}=e;t===at.ENTER&&e.stopPropagation()},bee=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:hee,ref:t},e.children));function cc(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(Te(t),Te(cc(r))))}),t}function yee(e){return e.some(({children:t})=>t)}function IT(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function NT({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i}){return e.map((c,u)=>{const d=String(c.value);if(c.children)return{key:d||u,label:c.text,popupClassName:`${t}-dropdown-submenu`,children:NT({filters:c.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i})};const f=r?ka:no,v={key:c.value!==void 0?d:u,label:l.createElement(l.Fragment,null,l.createElement(f,{checked:n.includes(d)}),l.createElement("span",null,c.text))};return a.trim()?typeof i=="function"?i(a,c)?v:null:IT(a,c.text)?v:null:v})}function E0(e){return e||[]}const Cee=e=>{var t,n,r,a;const{tablePrefixCls:i,prefixCls:c,column:u,dropdownPrefixCls:d,columnKey:f,filterOnClose:v,filterMultiple:g,filterMode:p="menu",filterSearch:y=!1,filterState:C,triggerFilter:S,locale:b,children:x,getPopupContainer:$,rootClassName:w}=e,{filterResetToDefaultFilteredValue:E,defaultFilteredValue:O,filterDropdownProps:N={},filterDropdownOpen:I,filterDropdownVisible:M,onFilterDropdownVisibleChange:T,onFilterDropdownOpenChange:j}=u,[_,B]=l.useState(!1),H=!!(C&&(!((t=C.filteredKeys)===null||t===void 0)&&t.length||C.forceFiltered)),A=pe=>{var Ie;B(pe),(Ie=N.onOpenChange)===null||Ie===void 0||Ie.call(N,pe),j==null||j(pe),T==null||T(pe)},F=(a=(r=(n=N.open)!==null&&n!==void 0?n:I)!==null&&r!==void 0?r:M)!==null&&a!==void 0?a:_,D=C==null?void 0:C.filteredKeys,[L,W]=jz(E0(D)),G=({selectedKeys:pe})=>{W(pe)},V=(pe,{node:Ie,checked:we})=>{G(g?{selectedKeys:pe}:{selectedKeys:we&&Ie.key?[Ie.key]:[]})};l.useEffect(()=>{_&&G({selectedKeys:E0(D)})},[D]);const[k,U]=l.useState([]),K=pe=>{U(pe)},[q,Z]=l.useState(""),X=pe=>{const{value:Ie}=pe.target;Z(Ie)};l.useEffect(()=>{_||Z("")},[_]);const ee=pe=>{const Ie=pe!=null&&pe.length?pe:null;if(Ie===null&&(!C||!C.filteredKeys)||xo(Ie,C==null?void 0:C.filteredKeys,!0))return null;S({column:u,key:f,filteredKeys:Ie})},te=()=>{A(!1),ee(L())},oe=({confirm:pe,closeDropdown:Ie}={confirm:!1,closeDropdown:!1})=>{pe&&ee([]),Ie&&A(!1),Z(""),W(E?(O||[]).map(we=>String(we)):[])},le=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&A(!1),ee(L())},ne=(pe,Ie)=>{Ie.source==="trigger"&&(pe&&D!==void 0&&W(E0(D)),A(pe),!pe&&!u.filterDropdown&&v&&te())},Q=ce({[`${d}-menu-without-submenu`]:!yee(u.filters||[])}),ie=pe=>{if(pe.target.checked){const Ie=cc(u==null?void 0:u.filters).map(we=>String(we));W(Ie)}else W([])},ue=({filters:pe})=>(pe||[]).map((Ie,we)=>{const ye=String(Ie.value),ze={title:Ie.text,key:Ie.value!==void 0?ye:String(we)};return Ie.children&&(ze.children=ue({filters:Ie.children})),ze}),de=pe=>{var Ie;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((Ie=pe.children)===null||Ie===void 0?void 0:Ie.map(we=>de(we)))||[]})};let se;const{direction:ge,renderEmpty:he}=l.useContext(Rt);if(typeof u.filterDropdown=="function")se=u.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:pe=>G({selectedKeys:pe}),selectedKeys:L(),confirm:le,clearFilters:oe,filters:u.filters,visible:F,close:()=>{A(!1)}});else if(u.filterDropdown)se=u.filterDropdown;else{const pe=L()||[],Ie=()=>{var ye,ze;const Ae=(ye=he==null?void 0:he("Table.filter"))!==null&&ye!==void 0?ye:l.createElement(cr,{image:cr.PRESENTED_IMAGE_SIMPLE,description:b.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((u.filters||[]).length===0)return Ae;if(p==="tree")return l.createElement(l.Fragment,null,l.createElement(LO,{filterSearch:y,value:q,onChange:X,tablePrefixCls:i,locale:b}),l.createElement("div",{className:`${i}-filter-dropdown-tree`},g?l.createElement(ka,{checked:pe.length===cc(u.filters).length,indeterminate:pe.length>0&&pe.length<cc(u.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:ie},(ze=b==null?void 0:b.filterCheckall)!==null&&ze!==void 0?ze:b==null?void 0:b.filterCheckAll):null,l.createElement(ZC,{checkable:!0,selectable:!1,blockNode:!0,multiple:g,checkStrictly:!g,className:`${d}-menu`,onCheck:V,checkedKeys:pe,selectedKeys:pe,showIcon:!1,treeData:ue({filters:u.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:q.trim()?Fe=>typeof y=="function"?y(q,de(Fe)):IT(q,Fe.title):void 0})));const Ye=NT({filters:u.filters||[],filterSearch:y,prefixCls:c,filteredKeys:L(),filterMultiple:g,searchValue:q}),Ke=Ye.every(Fe=>Fe===null);return l.createElement(l.Fragment,null,l.createElement(LO,{filterSearch:y,value:q,onChange:X,tablePrefixCls:i,locale:b}),Ke?Ae:l.createElement(ol,{selectable:!0,multiple:g,prefixCls:`${d}-menu`,className:Q,onSelect:G,onDeselect:G,selectedKeys:pe,getPopupContainer:$,openKeys:k,onOpenChange:K,items:Ye}))},we=()=>E?xo((O||[]).map(ye=>String(ye)),pe,!0):pe.length===0;se=l.createElement(l.Fragment,null,Ie(),l.createElement("div",{className:`${c}-dropdown-btns`},l.createElement(Pt,{type:"link",size:"small",disabled:we(),onClick:()=>oe()},b.filterReset),l.createElement(Pt,{type:"primary",size:"small",onClick:te},b.filterConfirm)))}u.filterDropdown&&(se=l.createElement(GM,{selectable:void 0},se)),se=l.createElement(bee,{className:`${c}-dropdown`},se);const Re=Zm({trigger:["click"],placement:ge==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let pe;return typeof u.filterIcon=="function"?pe=u.filterIcon(H):u.filterIcon?pe=u.filterIcon:pe=l.createElement(OJ,null),l.createElement("span",{role:"button",tabIndex:-1,className:ce(`${c}-trigger`,{active:H}),onClick:Ie=>{Ie.stopPropagation()}},pe)})(),getPopupContainer:$},Object.assign(Object.assign({},N),{rootClassName:ce(w,N.rootClassName),open:F,onOpenChange:ne,popupRender:()=>typeof(N==null?void 0:N.dropdownRender)=="function"?N.dropdownRender(se):se}));return l.createElement("div",{className:`${c}-column`},l.createElement("span",{className:`${i}-column-title`},x),l.createElement(BC,Object.assign({},Re)))},fy=(e,t,n)=>{let r=[];return(e||[]).forEach((a,i)=>{var c;const u=Hc(i,n),d=a.filterDropdown!==void 0;if(a.filters||d||"onFilter"in a)if("filteredValue"in a){let f=a.filteredValue;d||(f=(c=f==null?void 0:f.map(String))!==null&&c!==void 0?c:f),r.push({column:a,key:ll(a,u),filteredKeys:f,forceFiltered:a.filtered})}else r.push({column:a,key:ll(a,u),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Te(r),Te(fy(a.children,t,u))))}),r};function MT(e,t,n,r,a,i,c,u,d){return n.map((f,v)=>{const g=Hc(v,u),{filterOnClose:p=!0,filterMultiple:y=!0,filterMode:C,filterSearch:S}=f;let b=f;if(b.filters||b.filterDropdown){const x=ll(b,g),$=r.find(({key:w})=>x===w);b=Object.assign(Object.assign({},b),{title:w=>l.createElement(Cee,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:b,columnKey:x,filterState:$,filterOnClose:p,filterMultiple:y,filterMode:C,filterSearch:S,triggerFilter:i,locale:a,getPopupContainer:c,rootClassName:d},xg(f.title,w))})}return"children"in b&&(b=Object.assign(Object.assign({},b),{children:MT(e,t,b.children,r,a,i,c,g,d)})),b})}const kO=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const i=n,{filters:c,filterDropdown:u}=a;if(u)t[i]=r||null;else if(Array.isArray(r)){const d=cc(c);t[i]=d.filter(f=>r.includes(String(f)))}else t[i]=null}),t},my=(e,t,n)=>t.reduce((a,i)=>{const{column:{onFilter:c,filters:u},filteredKeys:d}=i;return c&&d&&d.length?a.map(f=>Object.assign({},f)).filter(f=>d.some(v=>{const g=cc(u),p=g.findIndex(C=>String(C)===String(v)),y=p!==-1?g[p]:v;return f[n]&&(f[n]=my(f[n],t,n)),c(y,f)})):a},e),TT=e=>e.flatMap(t=>"children"in t?[t].concat(Te(TT(t.children||[]))):[t]),See=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:i,locale:c,rootClassName:u}=e;Uo();const d=l.useMemo(()=>TT(r||[]),[r]),[f,v]=l.useState(()=>fy(d,!0)),g=l.useMemo(()=>{const S=fy(d,!1);if(S.length===0)return S;let b=!0;if(S.forEach(({filteredKeys:x})=>{x!==void 0&&(b=!1)}),b){const x=(d||[]).map(($,w)=>ll($,Hc(w)));return f.filter(({key:$})=>x.includes($)).map($=>{const w=d[x.indexOf($.key)];return Object.assign(Object.assign({},$),{column:Object.assign(Object.assign({},$.column),w),forceFiltered:w.filtered})})}return S},[d,f]),p=l.useMemo(()=>kO(g),[g]),y=S=>{const b=g.filter(({key:x})=>x!==S.key);b.push(S),v(b),a(kO(b),b)};return[S=>MT(t,n,S,g,c,y,i,void 0,u),g,p]},xee=(e,t,n)=>{const r=l.useRef({});function a(i){var c;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let f=function(v){v.forEach((g,p)=>{const y=n(g,p);d.set(y,g),g&&typeof g=="object"&&t in g&&f(g[t]||[])})};var u=f;const d=new Map;f(e),r.current={data:e,childrenColumnName:t,kvMap:d,getRowKey:n}}return(c=r.current.kvMap)===null||c===void 0?void 0:c.get(i)}return[a]};var $ee=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const jT=10;function wee(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(a=>{const i=e[a];typeof i!="function"&&(n[a]=i)}),n}function Eee(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,i=$ee(r,["total"]),[c,u]=l.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:jT})),d=Zm(c,i,{total:a>0?a:e}),f=Math.ceil((a||e)/d.pageSize);d.current>f&&(d.current=f||1);const v=(p,y)=>{u({current:p??1,pageSize:y||d.pageSize})},g=(p,y)=>{var C;n&&((C=n.onChange)===null||C===void 0||C.call(n,p,y)),v(p,y),t(p,y||(d==null?void 0:d.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:g}),v]}var Oee={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"},Ree=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Oee}))},Iee=l.forwardRef(Ree),Nee={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"},Mee=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Nee}))},Tee=l.forwardRef(Mee);const Wm="ascend",O0="descend",yv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,HO=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,jee=(e,t)=>t?e[e.indexOf(t)+1]:e[0],vy=(e,t,n)=>{let r=[];const a=(i,c)=>{r.push({column:i,key:ll(i,c),multiplePriority:yv(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,c)=>{const u=Hc(c,n);i.children?("sortOrder"in i&&a(i,u),r=[].concat(Te(r),Te(vy(i.children,t,u)))):i.sorter&&("sortOrder"in i?a(i,u):t&&i.defaultSortOrder&&r.push({column:i,key:ll(i,u),multiplePriority:yv(i),sortOrder:i.defaultSortOrder}))}),r},PT=(e,t,n,r,a,i,c,u)=>(t||[]).map((f,v)=>{const g=Hc(v,u);let p=f;if(p.sorter){const y=p.sortDirections||a,C=p.showSorterTooltip===void 0?c:p.showSorterTooltip,S=ll(p,g),b=n.find(({key:T})=>T===S),x=b?b.sortOrder:null,$=jee(y,x);let w;if(f.sortIcon)w=f.sortIcon({sortOrder:x});else{const T=y.includes(Wm)&&l.createElement(Tee,{className:ce(`${e}-column-sorter-up`,{active:x===Wm})}),j=y.includes(O0)&&l.createElement(Iee,{className:ce(`${e}-column-sorter-down`,{active:x===O0})});w=l.createElement("span",{className:ce(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&j)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,j))}const{cancelSort:E,triggerAsc:O,triggerDesc:N}=i||{};let I=E;$===O0?I=N:$===Wm&&(I=O);const M=typeof C=="object"?Object.assign({title:I},C):{title:I};p=Object.assign(Object.assign({},p),{className:ce(p.className,{[`${e}-column-sort`]:x}),title:T=>{const j=`${e}-column-sorters`,_=l.createElement("span",{className:`${e}-column-title`},xg(f.title,T)),B=l.createElement("div",{className:j},_,w);return C?typeof C!="boolean"&&(C==null?void 0:C.target)==="sorter-icon"?l.createElement("div",{className:ce(j,`${j}-tooltip-target-sorter`)},_,l.createElement(Cr,Object.assign({},M),w)):l.createElement(Cr,Object.assign({},M),B):B},onHeaderCell:T=>{var j;const _=((j=f.onHeaderCell)===null||j===void 0?void 0:j.call(f,T))||{},B=_.onClick,H=_.onKeyDown;_.onClick=D=>{r({column:f,key:S,sortOrder:$,multiplePriority:yv(f)}),B==null||B(D)},_.onKeyDown=D=>{D.keyCode===at.ENTER&&(r({column:f,key:S,sortOrder:$,multiplePriority:yv(f)}),H==null||H(D))};const A=$J(f.title,{}),F=A==null?void 0:A.toString();return x&&(_["aria-sort"]=x==="ascend"?"ascending":"descending"),_["aria-label"]=F||"",_.className=ce(_.className,`${e}-column-has-sorters`),_.tabIndex=0,f.ellipsis&&(_.title=(A??"").toString()),_}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:PT(e,p.children,n,r,a,i,c,g)})),p}),FO=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},VO=e=>{const t=e.filter(({sortOrder:n})=>n).map(FO);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},FO(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},gy=(e,t,n)=>{const r=t.slice().sort((c,u)=>u.multiplePriority-c.multiplePriority),a=e.slice(),i=r.filter(({column:{sorter:c},sortOrder:u})=>HO(c)&&u);return i.length?a.sort((c,u)=>{for(let d=0;d<i.length;d+=1){const f=i[d],{column:{sorter:v},sortOrder:g}=f,p=HO(v);if(p&&g){const y=p(c,u,g);if(y!==0)return g===Wm?y:-y}}return 0}).map(c=>{const u=c[n];return u?Object.assign(Object.assign({},c),{[n]:gy(u,t,n)}):c}):a},Pee=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:i,onSorterChange:c}=e,[u,d]=l.useState(()=>vy(n,!0)),f=(S,b)=>{const x=[];return S.forEach(($,w)=>{const E=Hc(w,b);if(x.push(ll($,E)),Array.isArray($.children)){const O=f($.children,E);x.push.apply(x,Te(O))}}),x},v=l.useMemo(()=>{let S=!0;const b=vy(n,!1);if(!b.length){const E=f(n);return u.filter(({key:O})=>E.includes(O))}const x=[];function $(E){S?x.push(E):x.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let w=null;return b.forEach(E=>{w===null?($(E),E.sortOrder&&(E.multiplePriority===!1?S=!1:w=!0)):(w&&E.multiplePriority!==!1||(S=!1),$(E))}),x},[n,u]),g=l.useMemo(()=>{var S,b;const x=v.map(({column:$,sortOrder:w})=>({column:$,order:w}));return{sortColumns:x,sortColumn:(S=x[0])===null||S===void 0?void 0:S.column,sortOrder:(b=x[0])===null||b===void 0?void 0:b.order}},[v]),p=S=>{let b;S.multiplePriority===!1||!v.length||v[0].multiplePriority===!1?b=[S]:b=[].concat(Te(v.filter(({key:x})=>x!==S.key)),[S]),d(b),c(VO(b),b)};return[S=>PT(t,S,v,p,r,a,i),v,g,()=>VO(v)]},DT=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=xg(r.title,t),"children"in a&&(a.children=DT(a.children,t)),a}),Dee=e=>[l.useCallback(n=>DT(n,e),[e])],_ee=yT((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),zee=ST((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Aee=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:i,tablePaddingVertical:c,tablePaddingHorizontal:u,calc:d}=e,f=`${re(n)} ${r} ${a}`,v=(g,p,y)=>({[`&${t}-${g}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${re(d(p).mul(-1).equal())}
|
|
399
|
+
${re(d(d(y).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:f,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:f,borderTop:f,[`
|
|
400
|
+
> ${t}-content,
|
|
401
|
+
> ${t}-header,
|
|
402
|
+
> ${t}-body,
|
|
403
|
+
> ${t}-summary
|
|
404
|
+
`]:{"> 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:f},"> thead":{"> tr:not(:last-child) > th":{borderBottom:f},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:f}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${re(d(c).mul(-1).equal())} ${re(d(d(u).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:f,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
405
|
+
> tr${t}-expanded-row,
|
|
406
|
+
> tr${t}-placeholder
|
|
407
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}}},v("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),v("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:f,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${re(n)} 0 ${re(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:f}}}},Bee=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},io),{wordBreak:"keep-all",[`
|
|
408
|
+
&${t}-cell-fix-left-last,
|
|
409
|
+
&${t}-cell-fix-right-first
|
|
410
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Lee=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}}}}},kee=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:i,lineType:c,tableBorderColor:u,tableExpandIconBg:d,tableExpandColumnWidth:f,borderRadius:v,tablePaddingVertical:g,tablePaddingHorizontal:p,tableExpandedRowBg:y,paddingXXS:C,expandIconMarginTop:S,expandIconSize:b,expandIconHalfInner:x,expandIconScale:$,calc:w}=e,E=`${re(a)} ${c} ${u}`,O=w(C).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${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({},Py(e)),{position:"relative",float:"left",width:b,height:b,color:"inherit",lineHeight:re(b),background:d,border:E,borderRadius:v,transform:`scale(${$})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:O,insetInlineStart:O,height:a},"&::after":{top:O,bottom:O,insetInlineStart:x,width:a,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:S,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${re(w(g).mul(-1).equal())} ${re(w(p).mul(-1).equal())}`,padding:`${re(g)} ${re(p)}`}}}},Hee=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:i,paddingXXS:c,paddingXS:u,colorText:d,lineWidth:f,lineType:v,tableBorderColor:g,headerIconColor:p,fontSizeSM:y,tablePaddingHorizontal:C,borderRadius:S,motionDurationSlow:b,colorIcon:x,colorPrimary:$,tableHeaderFilterActiveBg:w,colorTextDisabled:E,tableFilterDropdownBg:O,tableFilterDropdownHeight:N,controlItemBgHover:I,controlItemBgActive:M,boxShadowSecondary:T,filterDropdownMenuBg:j,calc:_}=e,B=`${n}-dropdown`,H=`${t}-filter-dropdown`,A=`${n}-tree`,F=`${re(f)} ${v} ${g}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_(c).mul(-1).equal(),marginInline:`${re(c)} ${re(_(C).div(2).mul(-1).equal())}`,padding:`0 ${re(c)}`,color:p,fontSize:y,borderRadius:S,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:x,background:w},"&.active":{color:$}}}},{[`${n}-dropdown`]:{[H]:Object.assign(Object.assign({},fn(e)),{minWidth:a,backgroundColor:O,borderRadius:S,boxShadow:T,overflow:"hidden",[`${B}-menu`]:{maxHeight:N,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:j,"&:empty::after":{display:"block",padding:`${re(u)} 0`,color:E,fontSize:y,textAlign:"center",content:'"Not Found"'}},[`${H}-tree`]:{paddingBlock:`${re(u)} 0`,paddingInline:u,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:I},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${H}-search`]:{padding:u,borderBottom:F,"&-input":{input:{minWidth:i},[r]:{color:E}}},[`${H}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${H}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${re(_(u).sub(f).equal())} ${re(u)}`,overflow:"hidden",borderTop:F}})}},{[`${n}-dropdown ${H}, ${H}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:u,color:d},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Fee=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:i,tableBg:c,zIndexTableSticky:u,calc:d}=e,f=r;return{[`${t}-wrapper`]:{[`
|
|
411
|
+
${t}-cell-fix-left,
|
|
412
|
+
${t}-cell-fix-right
|
|
413
|
+
`]:{position:"sticky !important",zIndex:i,background:c},[`
|
|
414
|
+
${t}-cell-fix-left-first::after,
|
|
415
|
+
${t}-cell-fix-left-last::after
|
|
416
|
+
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
417
|
+
${t}-cell-fix-right-first::after,
|
|
418
|
+
${t}-cell-fix-right-last::after
|
|
419
|
+
`]:{position:"absolute",top:0,bottom:d(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:d(u).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,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 ${f}`},[`
|
|
420
|
+
${t}-cell-fix-left-first::after,
|
|
421
|
+
${t}-cell-fix-left-last::after
|
|
422
|
+
`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`${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 ${f}`},[`
|
|
423
|
+
${t}-cell-fix-right-first::after,
|
|
424
|
+
${t}-cell-fix-right-last::after
|
|
425
|
+
`]:{boxShadow:`inset -10px 0 8px -8px ${f}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
426
|
+
${t}-cell-fix-left-first::after,
|
|
427
|
+
${t}-cell-fix-left-last::after,
|
|
428
|
+
${t}-cell-fix-right-first::after,
|
|
429
|
+
${t}-cell-fix-right-last::after
|
|
430
|
+
`]:{boxShadow:"none"}}}}},Vee=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${re(r)} 0`}}},Wee=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${re(n)} ${re(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 ${re(n)} ${re(n)}`}}}}},Kee=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"}}}}},Uee=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:i,paddingXS:c,headerIconColor:u,headerIconHoverColor:d,tableSelectionColumnWidth:f,tableSelectedRowBg:v,tableSelectedRowHoverBg:g,tableRowHoverBg:p,tablePaddingHorizontal:y,calc:C}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:f,[`&${t}-selection-col-with-dropdown`]:{width:C(f).add(a).add(C(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:C(f).add(C(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:C(f).add(a).add(C(i).div(4)).add(C(c).mul(2)).equal()}},[`
|
|
431
|
+
table tr th${t}-selection-column,
|
|
432
|
+
table tr td${t}-selection-column,
|
|
433
|
+
${t}-selection-column
|
|
434
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:C(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:re(C(y).div(4).equal()),[r]:{color:u,fontSize:a,verticalAlign:"baseline","&:hover":{color:d}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:v,"&-row-hover":{background:g}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},qee=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(i,c,u,d)=>({[`${t}${t}-${i}`]:{fontSize:d,[`
|
|
435
|
+
${t}-title,
|
|
436
|
+
${t}-footer,
|
|
437
|
+
${t}-cell,
|
|
438
|
+
${t}-thead > tr > th,
|
|
439
|
+
${t}-tbody > tr > th,
|
|
440
|
+
${t}-tbody > tr > td,
|
|
441
|
+
tfoot > tr > th,
|
|
442
|
+
tfoot > tr > td
|
|
443
|
+
`]:{padding:`${re(c)} ${re(u)}`},[`${t}-filter-trigger`]:{marginInlineEnd:re(r(u).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${re(r(c).mul(-1).equal())} ${re(r(u).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:re(r(c).mul(-1).equal()),marginInline:`${re(r(n).sub(u).equal())} ${re(r(u).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:re(r(u).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Gee=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:i}=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},[`
|
|
444
|
+
&${t}-cell-fix-left:hover,
|
|
445
|
+
&${t}-cell-fix-right:hover
|
|
446
|
+
`]:{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:a,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:i}}}},Xee=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:i,tableScrollBg:c,zIndexTableSticky:u,stickyScrollBarBorderRadius:d,lineWidth:f,lineType:v,tableBorderColor:g}=e,p=`${re(f)} ${v} ${g}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:u,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${re(i)} !important`,zIndex:u,display:"flex",alignItems:"center",background:c,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:d,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},WO=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,i=`${re(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${re(a(n).mul(-1).equal())} 0 ${r}`}}}},Yee=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:i,calc:c}=e,u=`${re(r)} ${a} ${i}`,d=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
447
|
+
& > ${t}-row,
|
|
448
|
+
& > div:not(${t}-row) > ${t}-row
|
|
449
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:u,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${re(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:u,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:u,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:c(r).mul(-1).equal(),borderInlineStart:u}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:u,borderBottom:u}}}}}},Qee=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:i,lineWidth:c,lineType:u,tableBorderColor:d,tableFontSize:f,tableBg:v,tableRadius:g,tableHeaderTextColor:p,motionDurationMid:y,tableHeaderBg:C,tableHeaderCellSplitColor:S,tableFooterTextColor:b,tableFooterBg:x,calc:$}=e,w=`${re(c)} ${u} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},ko()),{[t]:Object.assign(Object.assign({},fn(e)),{fontSize:f,background:v,borderRadius:`${re(g)} ${re(g)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${re(g)} ${re(g)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
450
|
+
${t}-cell,
|
|
451
|
+
${t}-thead > tr > th,
|
|
452
|
+
${t}-tbody > tr > th,
|
|
453
|
+
${t}-tbody > tr > td,
|
|
454
|
+
tfoot > tr > th,
|
|
455
|
+
tfoot > tr > td
|
|
456
|
+
`]:{position:"relative",padding:`${re(r)} ${re(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${re(r)} ${re(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:C,borderBottom:w,transition:`background ${y} 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:S,transform:"translateY(-50%)",transition:`background-color ${y}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${y}, border-color ${y}`,borderBottom:w,[`
|
|
457
|
+
> ${t}-wrapper:only-child,
|
|
458
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
459
|
+
`]:{[t]:{marginBlock:re($(r).mul(-1).equal()),marginInline:`${re($(i).sub(a).equal())}
|
|
460
|
+
${re($(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:C,borderBottom:w,transition:`background ${y} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${re(r)} ${re(a)}`,color:b,background:x}})}},Zee=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:i,controlItemBgActive:c,controlItemBgActiveHover:u,padding:d,paddingSM:f,paddingXS:v,colorBorderSecondary:g,borderRadiusLG:p,controlHeight:y,colorTextPlaceholder:C,fontSize:S,fontSizeSM:b,lineHeight:x,lineWidth:$,colorIcon:w,colorIconHover:E,opacityLoading:O,controlInteractiveSize:N}=e,I=new pn(a).onBackground(n).toHexString(),M=new pn(i).onBackground(n).toHexString(),T=new pn(t).onBackground(n).toHexString(),j=new pn(w),_=new pn(E),B=N/2-$,H=B*2+$*3;return{headerBg:T,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:M,bodySortBg:T,rowHoverBg:T,rowSelectedBg:c,rowSelectedHoverBg:u,rowExpandedBg:t,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:f,cellPaddingInlineMD:v,cellPaddingBlockSM:v,cellPaddingInlineSM:v,borderColor:g,headerBorderRadius:p,footerBg:T,footerColor:r,cellFontSize:S,cellFontSizeMD:S,cellFontSizeSM:S,headerSplitColor:g,fixedHeaderSortActiveBg:I,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:y,stickyScrollBarBg:C,stickyScrollBarBorderRadius:100,expandIconMarginTop:(S*x-$*3)/2-Math.ceil((b*1.4-$*3)/2),headerIconColor:j.clone().setA(j.a*O).toRgbString(),headerIconHoverColor:_.clone().setA(_.a*O).toRgbString(),expandIconHalfInner:B,expandIconSize:H,expandIconScale:N/H}},KO=2,Jee=ln("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:i,headerColor:c,headerSortActiveBg:u,headerSortHoverBg:d,bodySortBg:f,rowHoverBg:v,rowSelectedBg:g,rowSelectedHoverBg:p,rowExpandedBg:y,cellPaddingBlock:C,cellPaddingInline:S,cellPaddingBlockMD:b,cellPaddingInlineMD:x,cellPaddingBlockSM:$,cellPaddingInlineSM:w,borderColor:E,footerBg:O,footerColor:N,headerBorderRadius:I,cellFontSize:M,cellFontSizeMD:T,cellFontSizeSM:j,headerSplitColor:_,fixedHeaderSortActiveBg:B,headerFilterHoverBg:H,filterDropdownBg:A,expandIconBg:F,selectionColumnWidth:D,stickyScrollBarBg:L,calc:W}=e,G=rn(e,{tableFontSize:M,tableBg:r,tableRadius:I,tablePaddingVertical:C,tablePaddingHorizontal:S,tablePaddingVerticalMiddle:b,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:$,tablePaddingHorizontalSmall:w,tableBorderColor:E,tableHeaderTextColor:c,tableHeaderBg:i,tableFooterTextColor:N,tableFooterBg:O,tableHeaderCellSplitColor:_,tableHeaderSortBg:u,tableHeaderSortHoverBg:d,tableBodySortBg:f,tableFixedHeaderSortActiveBg:B,tableHeaderFilterActiveBg:H,tableFilterDropdownBg:A,tableRowHoverBg:v,tableSelectedRowBg:g,tableSelectedRowHoverBg:p,zIndexTableFixed:KO,zIndexTableSticky:W(KO).add(1).equal({unit:!1}),tableFontSizeMiddle:T,tableFontSizeSmall:j,tableSelectionColumnWidth:D,tableExpandIconBg:F,tableExpandColumnWidth:W(a).add(W(e.padding).mul(2)).equal(),tableExpandedRowBg:y,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:L,tableScrollThumbBgHover:t,tableScrollBg:n});return[Qee(G),Vee(G),WO(G),Gee(G),Hee(G),Aee(G),Wee(G),kee(G),WO(G),Lee(G),Uee(G),Fee(G),Xee(G),Bee(G),qee(G),Kee(G),Yee(G)]},Zee,{unitless:{expandIconScale:!0}}),UO=[],ete=(e,t)=>{var n,r;const{prefixCls:a,className:i,rootClassName:c,style:u,size:d,bordered:f,dropdownPrefixCls:v,dataSource:g,pagination:p,rowSelection:y,rowKey:C="key",rowClassName:S,columns:b,children:x,childrenColumnName:$,onChange:w,getPopupContainer:E,loading:O,expandIcon:N,expandable:I,expandedRowRender:M,expandIconColumnIndex:T,indentSize:j,scroll:_,sortDirections:B,locale:H,showSorterTooltip:A={target:"full-header"},virtual:F}=e;Uo();const D=l.useMemo(()=>b||UC(x),[b,x]),L=l.useMemo(()=>D.some(dt=>dt.responsive),[D]),W=oC(L),G=l.useMemo(()=>{const dt=new Set(Object.keys(W).filter(it=>W[it]));return D.filter(it=>!it.responsive||it.responsive.some(Dt=>dt.has(Dt)))},[D,W]),V=xn(e,["className","style","columns"]),{locale:k=oo,direction:U,table:K,renderEmpty:q,getPrefixCls:Z,getPopupContainer:X}=l.useContext(Rt),ee=Br(d),te=Object.assign(Object.assign({},k.Table),H),oe=g||UO,le=Z("table",a),ne=Z("dropdown",v),[,Q]=Zr(),ie=ar(le),[ue,de,se]=Jee(le,ie),ge=Object.assign(Object.assign({childrenColumnName:$,expandIconColumnIndex:T},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=K==null?void 0:K.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:he="children"}=ge,Oe=l.useMemo(()=>oe.some(dt=>dt==null?void 0:dt[he])?"nest":M||I!=null&&I.expandedRowRender?"row":null,[oe]),Re={body:l.useRef(null)},pe=xJ(le),Ie=l.useRef(null),we=l.useRef(null);Tz(t,()=>Object.assign(Object.assign({},we.current),{nativeElement:Ie.current}));const ye=l.useMemo(()=>typeof C=="function"?C:dt=>dt==null?void 0:dt[C],[C]),[ze]=xee(oe,he,ye),Ae={},Ye=(dt,it,Dt=!1)=>{var Wt,en,Xt,vn;const Kt=Object.assign(Object.assign({},Ae),dt);Dt&&((Wt=Ae.resetPagination)===null||Wt===void 0||Wt.call(Ae),!((en=Kt.pagination)===null||en===void 0)&&en.current&&(Kt.pagination.current=1),p&&((Xt=p.onChange)===null||Xt===void 0||Xt.call(p,1,(vn=Kt.pagination)===null||vn===void 0?void 0:vn.pageSize))),_&&_.scrollToFirstRowOnChange!==!1&&Re.body.current&&zI(0,{getContainer:()=>Re.body.current}),w==null||w(Kt.pagination,Kt.filters,Kt.sorter,{currentDataSource:my(gy(oe,Kt.sorterStates,he),Kt.filterStates,he),action:it})},Ke=(dt,it)=>{Ye({sorter:dt,sorterStates:it},"sort",!1)},[Fe,Ge,je,$e]=Pee({prefixCls:le,mergedColumns:G,onSorterChange:Ke,sortDirections:B||["ascend","descend"],tableLocale:te,showSorterTooltip:A}),_e=l.useMemo(()=>gy(oe,Ge,he),[oe,Ge]);Ae.sorter=$e(),Ae.sorterStates=Ge;const Ee=(dt,it)=>{Ye({filters:dt,filterStates:it},"filter",!0)},[Pe,be,Se]=See({prefixCls:le,locale:te,dropdownPrefixCls:ne,mergedColumns:G,onFilterChange:Ee,getPopupContainer:E||X,rootClassName:ce(c,ie)}),Me=my(_e,be,he);Ae.filters=Se,Ae.filterStates=be;const ke=l.useMemo(()=>{const dt={};return Object.keys(Se).forEach(it=>{Se[it]!==null&&(dt[it]=Se[it])}),Object.assign(Object.assign({},je),{filters:dt})},[je,Se]),[et]=Dee(ke),ht=(dt,it)=>{Ye({pagination:Object.assign(Object.assign({},Ae.pagination),{current:dt,pageSize:it})},"paginate")},[We,tt]=Eee(Me.length,ht,p);Ae.pagination=p===!1?{}:wee(We,p),Ae.resetPagination=tt;const ut=l.useMemo(()=>{if(p===!1||!We.pageSize)return Me;const{current:dt=1,total:it,pageSize:Dt=jT}=We;return Me.length<it?Me.length>Dt?Me.slice((dt-1)*Dt,dt*Dt):Me:Me.slice((dt-1)*Dt,dt*Dt)},[!!p,Me,We==null?void 0:We.current,We==null?void 0:We.pageSize,We==null?void 0:We.total]),[rt,gt]=CJ({prefixCls:le,data:Me,pageData:ut,getRowKey:ye,getRecordByKey:ze,expandType:Oe,childrenColumnName:he,locale:te,getPopupContainer:E||X},y),Mt=(dt,it,Dt)=>{let Wt;return typeof S=="function"?Wt=ce(S(dt,it,Dt)):Wt=ce(S),ce({[`${le}-row-selected`]:gt.has(ye(dt,it))},Wt)};ge.__PARENT_RENDER_ICON__=ge.expandIcon,ge.expandIcon=ge.expandIcon||N||SJ(te),Oe==="nest"&&ge.expandIconColumnIndex===void 0?ge.expandIconColumnIndex=y?1:0:ge.expandIconColumnIndex>0&&y&&(ge.expandIconColumnIndex-=1),typeof ge.indentSize!="number"&&(ge.indentSize=typeof j=="number"?j:15);const xt=l.useCallback(dt=>et(rt(Pe(Fe(dt)))),[Fe,Pe,rt]),st=()=>{if(p===!1||!(We!=null&&We.total))return{};const dt=()=>We.size||(ee==="small"||ee==="middle"?"small":void 0),it=Xe=>{const Qe=Xe==="left"?"start":Xe==="right"?"end":Xe;return l.createElement(NY,Object.assign({},We,{align:We.align||Qe,className:ce(`${le}-pagination`,We.className),size:dt()}))},Dt=U==="rtl"?"left":"right",Wt=We.position;if(Wt===null||!Array.isArray(Wt))return{bottom:it(Dt)};const en=Wt.find(Xe=>typeof Xe=="string"&&Xe.toLowerCase().includes("top")),Xt=Wt.find(Xe=>typeof Xe=="string"&&Xe.toLowerCase().includes("bottom")),vn=Wt.every(Xe=>`${Xe}`=="none"),Kt=en?en.toLowerCase().replace("top",""):"",sn=Xt?Xt.toLowerCase().replace("bottom",""):"",lt=!en&&!Xt&&!vn,yt=()=>Kt?it(Kt):void 0,pt=()=>{if(sn)return it(sn);if(lt)return it(Dt)};return{top:yt(),bottom:pt()}},Ct=l.useMemo(()=>typeof O=="boolean"?{spinning:O}:typeof O=="object"&&O!==null?Object.assign({spinning:!0},O):void 0,[O]),bt=ce(se,ie,`${le}-wrapper`,K==null?void 0:K.className,{[`${le}-wrapper-rtl`]:U==="rtl"},i,c,de),Je=Object.assign(Object.assign({},K==null?void 0:K.style),u),Ve=l.useMemo(()=>Ct!=null&&Ct.spinning&&oe===UO?null:typeof(H==null?void 0:H.emptyText)<"u"?H.emptyText:(q==null?void 0:q("Table"))||l.createElement(Qv,{componentName:"Table"}),[Ct==null?void 0:Ct.spinning,oe,H==null?void 0:H.emptyText,q]),Ue=F?zee:_ee,ft={},It=l.useMemo(()=>{const{fontSize:dt,lineHeight:it,lineWidth:Dt,padding:Wt,paddingXS:en,paddingSM:Xt}=Q,vn=Math.floor(dt*it);switch(ee){case"middle":return Xt*2+vn+Dt;case"small":return en*2+vn+Dt;default:return Wt*2+vn+Dt}},[Q,ee]);F&&(ft.listItemHeight=It);const{top:Et,bottom:Ht}=st();return ue(l.createElement("div",{ref:Ie,className:bt,style:Je},l.createElement(hi,Object.assign({spinning:!1},Ct),Et,l.createElement(Ue,Object.assign({},ft,V,{ref:we,columns:G,direction:U,expandable:ge,prefixCls:le,className:ce({[`${le}-middle`]:ee==="middle",[`${le}-small`]:ee==="small",[`${le}-bordered`]:f,[`${le}-empty`]:oe.length===0},se,ie,de),data:ut,rowKey:ye,rowClassName:Mt,emptyText:Ve,internalHooks:Hd,internalRefs:Re,transformColumns:xt,getContainerWidth:pe,measureRowRender:dt=>l.createElement(Oo,{getPopupContainer:it=>it},dt)})),Ht)))},tte=l.forwardRef(ete),nte=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(tte,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ha=l.forwardRef(nte);ha.SELECTION_COLUMN=Yi;ha.EXPAND_COLUMN=Qi;ha.SELECTION_ALL=sy;ha.SELECTION_INVERT=cy;ha.SELECTION_NONE=uy;ha.Column=uJ;ha.ColumnGroup=dJ;ha.Summary=cT;const rte=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:i}=e,c=i(r).sub(n).equal(),u=i(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},fn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-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(${a}-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:c}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},JC=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return rn(e,{tagFontSize:a,tagLineHeight:re(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},eS=e=>({defaultBg:new pn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),_T=ln("Tag",e=>{const t=JC(e);return rte(t)},eS);var ate=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ote=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:i,children:c,icon:u,onChange:d,onClick:f}=e,v=ate(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:p}=l.useContext(Rt),y=w=>{d==null||d(!i),f==null||f(w)},C=g("tag",n),[S,b,x]=_T(C),$=ce(C,`${C}-checkable`,{[`${C}-checkable-checked`]:i},p==null?void 0:p.className,a,b,x);return S(l.createElement("span",Object.assign({},v,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:$,onClick:y}),u,l.createElement("span",null,c)))}),ite=e=>Nv(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),lte=$c(["Tag","preset"],e=>{const t=JC(e);return ite(t)},eS);function ste(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const pm=(e,t,n)=>{const r=ste(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"}}}},cte=$c(["Tag","status"],e=>{const t=JC(e);return[pm(t,"success","Success"),pm(t,"processing","Info"),pm(t,"error","Error"),pm(t,"warning","Warning")]},eS);var ute=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const dte=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,children:c,icon:u,color:d,onClose:f,bordered:v=!0,visible:g}=e,p=ute(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:C,tag:S}=l.useContext(Rt),[b,x]=l.useState(!0),$=xn(p,["closeIcon","closable"]);l.useEffect(()=>{g!==void 0&&x(g)},[g]);const w=eg(d),E=XH(d),O=w||E,N=Object.assign(Object.assign({backgroundColor:d&&!O?d:void 0},S==null?void 0:S.style),i),I=y("tag",n),[M,T,j]=_T(I),_=ce(I,S==null?void 0:S.className,{[`${I}-${d}`]:O,[`${I}-has-color`]:d&&!O,[`${I}-hidden`]:!b,[`${I}-rtl`]:C==="rtl",[`${I}-borderless`]:!v},r,a,T,j),B=W=>{W.stopPropagation(),f==null||f(W),!W.defaultPrevented&&x(!1)},[,H]=HI(Jm(e),Jm(S),{closable:!1,closeIconRender:W=>{const G=l.createElement("span",{className:`${I}-close-icon`,onClick:B},W);return zy(W,G,V=>({onClick:k=>{var U;(U=V==null?void 0:V.onClick)===null||U===void 0||U.call(V,k),B(k)},className:ce(V==null?void 0:V.className,`${I}-close-icon`)}))}}),A=typeof p.onClick=="function"||c&&c.type==="a",F=u||null,D=F?l.createElement(l.Fragment,null,F,c&&l.createElement("span",null,c)):c,L=l.createElement("span",Object.assign({},$,{ref:t,className:_,style:N}),D,H,w&&l.createElement(lte,{key:"preset",prefixCls:I}),E&&l.createElement(cte,{key:"status",prefixCls:I}));return M(A?l.createElement(Od,{component:"Tag"},L):L)}),Yn=dte;Yn.CheckableTag=ote;var fte={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"},mte=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:fte}))},Ha=l.forwardRef(mte),vte={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"},gte=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:vte}))},tS=l.forwardRef(gte),pte={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"},hte=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:pte}))},bte=l.forwardRef(hte);const yte=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:i}=r;return{marginBottom:a,color:n,fontWeight:i,fontSize:e,lineHeight:t}},Cte=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
461
|
+
h${r}&,
|
|
462
|
+
div&-h${r},
|
|
463
|
+
div&-h${r} > textarea,
|
|
464
|
+
h${r}
|
|
465
|
+
`]=yte(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Ste=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Py(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},xte=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:Xm[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}}),$te=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"}}}},wte=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ete=()=>({"\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"}}),Ote=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"}},Cte(e)),{[`
|
|
466
|
+
& + h1${t},
|
|
467
|
+
& + h2${t},
|
|
468
|
+
& + h3${t},
|
|
469
|
+
& + h4${t},
|
|
470
|
+
& + h5${t}
|
|
471
|
+
`]:{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}}}),xte(e)),Ste(e)),{[`
|
|
472
|
+
${t}-expand,
|
|
473
|
+
${t}-collapse,
|
|
474
|
+
${t}-edit,
|
|
475
|
+
${t}-copy
|
|
476
|
+
`]:Object.assign(Object.assign({},Py(e)),{marginInlineStart:e.marginXXS})}),$te(e)),wte(e)),Ete()),{"&-rtl":{direction:"rtl"}})}},Rte=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),zT=ln("Typography",Ote,Rte),Ite=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:i,maxLength:c,autoSize:u=!0,value:d,onSave:f,onCancel:v,onEnd:g,component:p,enterIcon:y=l.createElement(bte,null)}=e,C=l.useRef(null),S=l.useRef(!1),b=l.useRef(null),[x,$]=l.useState(d);l.useEffect(()=>{$(d)},[d]),l.useEffect(()=>{var A;if(!((A=C.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:F}=C.current.resizableTextArea;F.focus();const{length:D}=F.value;F.setSelectionRange(D,D)}},[]);const w=({target:A})=>{$(A.value.replace(/[\n\r]/g,""))},E=()=>{S.current=!0},O=()=>{S.current=!1},N=({keyCode:A})=>{S.current||(b.current=A)},I=()=>{f(x.trim())},M=({keyCode:A,ctrlKey:F,altKey:D,metaKey:L,shiftKey:W})=>{b.current!==A||S.current||F||D||L||W||(A===at.ENTER?(I(),g==null||g()):A===at.ESC&&v())},T=()=>{I()},[j,_,B]=zT(t),H=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${p}`]:!!p},r,_,B);return j(l.createElement("div",{className:H,style:a},l.createElement(U3,{ref:C,maxLength:c,value:x,onChange:w,onKeyDown:N,onKeyUp:M,onCompositionStart:E,onCompositionEnd:O,onBlur:T,"aria-label":n,rows:1,autoSize:u}),y!==null?xr(y,{className:`${t}-edit-content-confirm`}):null))};var R0,qO;function Nte(){return qO||(qO=1,R0=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(a){e.addRange(a)}),t&&t.focus()}}),R0}var I0,GO;function Mte(){if(GO)return I0;GO=1;var e=Nte(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(i){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,c)}function a(i,c){var u,d,f,v,g,p,y=!1;c||(c={}),u=c.debug||!1;try{f=e(),v=document.createRange(),g=document.getSelection(),p=document.createElement("span"),p.textContent=i,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(S){if(S.stopPropagation(),c.format)if(S.preventDefault(),typeof S.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[c.format]||t.default;window.clipboardData.setData(b,i)}else S.clipboardData.clearData(),S.clipboardData.setData(c.format,i);c.onCopy&&(S.preventDefault(),c.onCopy(S.clipboardData))}),document.body.appendChild(p),v.selectNodeContents(p),g.addRange(v);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");y=!0}catch(S){u&&console.error("unable to copy using execCommand: ",S),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",i),c.onCopy&&c.onCopy(window.clipboardData),y=!0}catch(b){u&&console.error("unable to copy using clipboardData: ",b),u&&console.error("falling back to prompt"),d=r("message"in c?c.message:n),window.prompt(d,i)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(v):g.removeAllRanges()),p&&document.body.removeChild(p),f()}return y}return I0=a,I0}var Tte=Mte();const jte=Eo(Tte);var Pte=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(c){c(i)})}return new(n||(n=Promise))(function(i,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?i(v.value):a(v.value).then(u,d)}f((r=r.apply(e,t||[])).next())})};const Dte=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[a,i]=l.useState(!1),c=l.useRef(null),u=()=>{c.current&&clearTimeout(c.current)},d={};e.format&&(d.format=e.format),l.useEffect(()=>u,[]);const f=qt(v=>Pte(void 0,void 0,void 0,function*(){var g;v==null||v.preventDefault(),v==null||v.stopPropagation(),i(!0);try{const p=typeof e.text=="function"?yield e.text():e.text;jte(p||FY(t,!0).join("")||"",d),i(!1),r(!0),u(),c.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,v)}catch(p){throw i(!1),p}}));return{copied:n,copyLoading:a,onClick:f}};function N0(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const _te=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},zte=(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 Ate=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const AT=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:i,setContentRef:c,children:u,direction:d,style:f}=e,v=Ate(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,className:y,style:C}=ur("typography"),S=d??p,b=c?Ar(t,c):t,x=g("typography",n),[$,w,E]=zT(x),O=ce(x,y,{[`${x}-rtl`]:S==="rtl"},a,i,w,E),N=Object.assign(Object.assign({},C),f);return $(l.createElement(r,Object.assign({className:O,style:N,ref:b},v),u))});var Bte={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"},Lte=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Bte}))},Jl=l.forwardRef(Lte);function XO(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function M0(e,t,n){return e===!0||e===void 0?t:e||n&&t}function kte(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 nS=e=>["string","number"].includes(typeof e),Hte=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:i,tabIndex:c,onCopy:u,loading:d})=>{const f=XO(a),v=XO(i),{copied:g,copy:p}=n??{},y=t?g:p,C=M0(f[t?1:0],y),S=typeof C=="string"?C:y;return l.createElement(Cr,{title:C},l.createElement("button",{type:"button",className:ce(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":S,tabIndex:c},t?M0(v[1],l.createElement(Mc,null),!0):M0(v[0],d?l.createElement($o,null):l.createElement(Jl,null),!0)))},hm=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.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)}),Fte=e=>e.reduce((t,n)=>t+(nS(n)?String(n).length:1),0);function YO(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const i=e[a],u=nS(i)?String(i).length:1,d=n+u;if(d>t){const f=t-n;return r.push(String(i).slice(0,f)),r}r.push(i),n=d}return e}const T0=0,j0=1,P0=2,D0=3,QO=4,bm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Vte(e){const{enableMeasure:t,width:n,text:r,children:a,rows:i,expanded:c,miscDeps:u,onEllipsis:d}=e,f=l.useMemo(()=>Fr(r),[r]),v=l.useMemo(()=>Fte(f),[r]),g=l.useMemo(()=>a(f,!1),[r]),[p,y]=l.useState(null),C=l.useRef(null),S=l.useRef(null),b=l.useRef(null),x=l.useRef(null),$=l.useRef(null),[w,E]=l.useState(!1),[O,N]=l.useState(T0),[I,M]=l.useState(0),[T,j]=l.useState(null);nn(()=>{N(t&&n&&v?j0:T0)},[n,r,i,t,f]),nn(()=>{var A,F,D,L;if(O===j0){N(P0);const W=S.current&&getComputedStyle(S.current).whiteSpace;j(W)}else if(O===P0){const W=!!(!((A=b.current)===null||A===void 0)&&A.isExceed());N(W?D0:QO),y(W?[0,v]:null),E(W);const G=((F=b.current)===null||F===void 0?void 0:F.getHeight())||0,V=i===1?0:((D=x.current)===null||D===void 0?void 0:D.getHeight())||0,k=((L=$.current)===null||L===void 0?void 0:L.getHeight())||0,U=Math.max(G,V+k);M(U+1),d(W)}},[O]);const _=p?Math.ceil((p[0]+p[1])/2):0;nn(()=>{var A;const[F,D]=p||[0,0];if(F!==D){const W=(((A=C.current)===null||A===void 0?void 0:A.getHeight())||0)>I;let G=_;D-F===1&&(G=W?F:D),y(W?[F,G]:[G,D])}},[p,_]);const B=l.useMemo(()=>{if(!t)return a(f,!1);if(O!==D0||!p||p[0]!==p[1]){const A=a(f,!1);return[QO,T0].includes(O)?A:l.createElement("span",{style:Object.assign(Object.assign({},bm),{WebkitLineClamp:i})},A)}return a(c?f:YO(f,p[0]),w)},[c,O,p,f].concat(Te(u))),H={width:n,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,B,O===P0&&l.createElement(l.Fragment,null,l.createElement(hm,{style:Object.assign(Object.assign(Object.assign({},H),bm),{WebkitLineClamp:i}),ref:b},g),l.createElement(hm,{style:Object.assign(Object.assign(Object.assign({},H),bm),{WebkitLineClamp:i-1}),ref:x},g),l.createElement(hm,{style:Object.assign(Object.assign(Object.assign({},H),bm),{WebkitLineClamp:1}),ref:$},a([],!0))),O===D0&&p&&p[0]!==p[1]&&l.createElement(hm,{style:Object.assign(Object.assign({},H),{top:400}),ref:C},a(YO(f,_),!0)),O===j0&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const Wte=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:l.createElement(Cr,Object.assign({open:t?void 0:!1},r),n);var Kte=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Ute({mark:e,code:t,underline:n,delete:r,strong:a,keyboard:i,italic:c},u){let d=u;function f(v,g){g&&(d=l.createElement(v,{},d))}return f("strong",a),f("u",n),f("del",r),f("code",t),f("mark",e),f("kbd",i),f("i",c),d}const qte="...",ZO=["delete","mark","code","underline","strong","keyboard","italic"],$g=l.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:i,type:c,disabled:u,children:d,ellipsis:f,editable:v,copyable:g,component:p,title:y}=e,C=Kte(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:b}=l.useContext(Rt),[x]=Ra("Text"),$=l.useRef(null),w=l.useRef(null),E=S("typography",r),O=xn(C,ZO),[N,I]=N0(v),[M,T]=bn(!1,{value:I.editing}),{triggerType:j=["icon"]}=I,_=be=>{var Se;be&&((Se=I.onStart)===null||Se===void 0||Se.call(I)),T(be)},B=_te(M);nn(()=>{var be;!M&&B&&((be=w.current)===null||be===void 0||be.focus())},[M]);const H=be=>{be==null||be.preventDefault(),_(!0)},A=be=>{var Se;(Se=I.onChange)===null||Se===void 0||Se.call(I,be),_(!1)},F=()=>{var be;(be=I.onCancel)===null||be===void 0||be.call(I),_(!1)},[D,L]=N0(g),{copied:W,copyLoading:G,onClick:V}=Dte({copyConfig:L,children:d}),[k,U]=l.useState(!1),[K,q]=l.useState(!1),[Z,X]=l.useState(!1),[ee,te]=l.useState(!1),[oe,le]=l.useState(!0),[ne,Q]=N0(f,{expandable:!1,symbol:be=>be?x==null?void 0:x.collapse:x==null?void 0:x.expand}),[ie,ue]=bn(Q.defaultExpanded||!1,{value:Q.expanded}),de=ne&&(!ie||Q.expandable==="collapsible"),{rows:se=1}=Q,ge=l.useMemo(()=>de&&(Q.suffix!==void 0||Q.onEllipsis||Q.expandable||N||D),[de,Q,N,D]);nn(()=>{ne&&!ge&&(U(Bb("webkitLineClamp")),q(Bb("textOverflow")))},[ge,ne]);const[he,Oe]=l.useState(de),Re=l.useMemo(()=>ge?!1:se===1?K:k,[ge,K,k]);nn(()=>{Oe(Re&&de)},[Re,de]);const pe=de&&(he?ee:Z),Ie=de&&se===1&&he,we=de&&se>1&&he,ye=(be,Se)=>{var Me;ue(Se.expanded),(Me=Q.onExpand)===null||Me===void 0||Me.call(Q,be,Se)},[ze,Ae]=l.useState(0),Ye=({offsetWidth:be})=>{Ae(be)},Ke=be=>{var Se;X(be),Z!==be&&((Se=Q.onEllipsis)===null||Se===void 0||Se.call(Q,be))};l.useEffect(()=>{const be=$.current;if(ne&&he&&be){const Se=kte(be);ee!==Se&&te(Se)}},[ne,he,d,we,oe,ze]),l.useEffect(()=>{const be=$.current;if(typeof IntersectionObserver>"u"||!be||!he||!de)return;const Se=new IntersectionObserver(()=>{le(!!be.offsetParent)});return Se.observe(be),()=>{Se.disconnect()}},[he,de]);const Fe=zte(Q.tooltip,I.text,d),Ge=l.useMemo(()=>{if(!(!ne||he))return[I.text,d,y,Fe.title].find(nS)},[ne,he,y,Fe.title,pe]);if(M)return l.createElement(Ite,{value:(n=I.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:A,onCancel:F,onEnd:I.onEnd,prefixCls:E,className:a,style:i,direction:b,component:p,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon});const je=()=>{const{expandable:be,symbol:Se}=Q;return be?l.createElement("button",{type:"button",key:"expand",className:`${E}-${ie?"collapse":"expand"}`,onClick:Me=>ye(Me,{expanded:!ie}),"aria-label":ie?x.collapse:x==null?void 0:x.expand},typeof Se=="function"?Se(ie):Se):null},$e=()=>{if(!N)return;const{icon:be,tooltip:Se,tabIndex:Me}=I,ke=Fr(Se)[0]||(x==null?void 0:x.edit),et=typeof ke=="string"?ke:"";return j.includes("icon")?l.createElement(Cr,{key:"edit",title:Se===!1?"":ke},l.createElement("button",{type:"button",ref:w,className:`${E}-edit`,onClick:H,"aria-label":et,tabIndex:Me},be||l.createElement(tS,{role:"button"}))):null},_e=()=>D?l.createElement(Hte,Object.assign({key:"copy"},L,{prefixCls:E,copied:W,locale:x,onCopy:V,loading:G,iconOnly:d==null})):null,Ee=be=>[be&&je(),$e(),_e()],Pe=be=>[be&&!ie&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},qte),Q.suffix,Ee(be)];return l.createElement(la,{onResize:Ye,disabled:!de},be=>l.createElement(Wte,{tooltipProps:Fe,enableEllipsis:de,isEllipsis:pe},l.createElement(AT,Object.assign({className:ce({[`${E}-${c}`]:c,[`${E}-disabled`]:u,[`${E}-ellipsis`]:ne,[`${E}-ellipsis-single-line`]:Ie,[`${E}-ellipsis-multiple-line`]:we},a),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:we?se:void 0}),component:p,ref:Ar(be,$,t),direction:b,onClick:j.includes("text")?H:void 0,"aria-label":Ge==null?void 0:Ge.toString(),title:y},O),l.createElement(Vte,{enableMeasure:de&&!he,text:d,rows:se,width:ze,onEllipsis:Ke,expanded:ie,miscDeps:[W,ie,G,N,D,x].concat(Te(ZO.map(Se=>e[Se])))},(Se,Me)=>Ute(e,l.createElement(l.Fragment,null,Se.length>0&&Me&&!ie&&Ge?l.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,Pe(Me)))))))});var Gte=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Xte=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:a,navigate:i}=e,c=Gte(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},c),{rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r});return l.createElement($g,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),a)});var Yte=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Qte=l.forwardRef((e,t)=>{const{children:n}=e,r=Yte(e,["children"]);return l.createElement($g,Object.assign({ref:t},r,{component:"div"}),n)});var Zte=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Jte=(e,t)=>{const{ellipsis:n,children:r}=e,a=Zte(e,["ellipsis","children"]),i=l.useMemo(()=>n&&typeof n=="object"?xn(n,["expandable","rows"]):n,[n]);return l.createElement($g,Object.assign({ref:t},a,{ellipsis:i,component:"span"}),r)},ene=l.forwardRef(Jte);var tne=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const nne=[1,2,3,4,5],rne=l.forwardRef((e,t)=>{const{level:n=1,children:r}=e,a=tne(e,["level","children"]),i=nne.includes(n)?`h${n}`:"h1";return l.createElement($g,Object.assign({ref:t},a,{component:i}),r)}),Wr=AT;Wr.Text=ene;Wr.Link=Xte;Wr.Title=rne;Wr.Paragraph=Qte;const _0=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return n.some(function(c){var u=c.trim();if(/^\*(\/\*)?$/.test(c))return!0;if(u.charAt(0)==="."){var d=r.toLowerCase(),f=u.toLowerCase(),v=[f];return(f===".jpg"||f===".jpeg")&&(v=[".jpg",".jpeg"]),v.some(function(g){return d.endsWith(g)})}return/\/\*$/.test(u)?i===u.replace(/\/.*$/,""):a===u?!0:/^\w+$/.test(u)?(Vn(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0});function ane(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 JO(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function eR(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(c){n.append("".concat(a,"[]"),c)});return}n.append(a,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(ane(e,t),JO(t)):e.onSuccess(JO(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(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var one=(function(){var e=pa(Bn().mark(function t(n,r){var a,i,c,u,d,f,v,g;return Bn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:f=function(){return f=pa(Bn().mark(function S(b){return Bn().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",new Promise(function(w){b.file(function(E){r(E)?(b.fullPath&&!E.webkitRelativePath&&(Object.defineProperties(E,{webkitRelativePath:{writable:!0}}),E.webkitRelativePath=b.fullPath.replace(/^\//,""),Object.defineProperties(E,{webkitRelativePath:{writable:!1}})),w(E)):w(null)})}));case 1:case"end":return $.stop()}},S)})),f.apply(this,arguments)},d=function(S){return f.apply(this,arguments)},u=function(){return u=pa(Bn().mark(function S(b){var x,$,w,E,O;return Bn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:x=b.createReader(),$=[];case 2:return I.next=5,new Promise(function(M){x.readEntries(M,function(){return M([])})});case 5:if(w=I.sent,E=w.length,E){I.next=9;break}return I.abrupt("break",12);case 9:for(O=0;O<E;O++)$.push(w[O]);I.next=2;break;case 12:return I.abrupt("return",$);case 13:case"end":return I.stop()}},S)})),u.apply(this,arguments)},c=function(S){return u.apply(this,arguments)},a=[],i=[],n.forEach(function(C){return i.push(C.webkitGetAsEntry())}),v=(function(){var C=pa(Bn().mark(function S(b,x){var $,w;return Bn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(b){O.next=2;break}return O.abrupt("return");case 2:if(b.path=x||"",!b.isFile){O.next=10;break}return O.next=6,d(b);case 6:$=O.sent,$&&a.push($),O.next=15;break;case 10:if(!b.isDirectory){O.next=15;break}return O.next=13,c(b);case 13:w=O.sent,i.push.apply(i,Te(w));case 15:case"end":return O.stop()}},S)}));return function(b,x){return C.apply(this,arguments)}})(),g=0;case 9:if(!(g<i.length)){y.next=15;break}return y.next=12,v(i[g]);case 12:g++,y.next=9;break;case 15:return y.abrupt("return",a);case 16:case"end":return y.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}})(),ine=+new Date,lne=0;function z0(){return"rc-upload-".concat(ine,"-").concat(++lne)}var sne=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],cne=(function(e){Fa(n,e);var t=so(n);function n(){var r;or(this,n);for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return r=t.call.apply(t,[this].concat(i)),J(St(r),"state",{uid:z0()}),J(St(r),"reqs",{}),J(St(r),"fileInput",void 0),J(St(r),"_isMounted",void 0),J(St(r),"onChange",function(u){var d=r.props,f=d.accept,v=d.directory,g=u.target.files,p=Te(g).filter(function(y){return!v||_0(y,f)});r.uploadFiles(p),r.reset()}),J(St(r),"onClick",function(u){var d=r.fileInput;if(d){var f=u.target,v=r.props.onClick;if(f&&f.tagName==="BUTTON"){var g=d.parentNode;g.focus(),f.blur()}d.click(),v&&v(u)}}),J(St(r),"onKeyDown",function(u){u.key==="Enter"&&r.onClick(u)}),J(St(r),"onDataTransferFiles",(function(){var u=pa(Bn().mark(function d(f,v){var g,p,y,C,S,b,x;return Bn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(g=r.props,p=g.multiple,y=g.accept,C=g.directory,S=Te(f.items||[]),b=Te(f.files||[]),(b.length>0||S.some(function(E){return E.kind==="file"}))&&(v==null||v()),!C){w.next=11;break}return w.next=7,one(Array.prototype.slice.call(S),function(E){return _0(E,r.props.accept)});case 7:b=w.sent,r.uploadFiles(b),w.next=14;break;case 11:x=Te(b).filter(function(E){return _0(E,y)}),p===!1&&(x=b.slice(0,1)),r.uploadFiles(x);case 14:case"end":return w.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}})()),J(St(r),"onFilePaste",(function(){var u=pa(Bn().mark(function d(f){var v,g;return Bn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(v=r.props.pastable,v){y.next=3;break}return y.abrupt("return");case 3:if(f.type!=="paste"){y.next=6;break}return g=f.clipboardData,y.abrupt("return",r.onDataTransferFiles(g,function(){f.preventDefault()}));case 6:case"end":return y.stop()}},d)}));return function(d){return u.apply(this,arguments)}})()),J(St(r),"onFileDragOver",function(u){u.preventDefault()}),J(St(r),"onFileDrop",(function(){var u=pa(Bn().mark(function d(f){var v;return Bn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(f.preventDefault(),f.type!=="drop"){p.next=4;break}return v=f.dataTransfer,p.abrupt("return",r.onDataTransferFiles(v));case 4:case"end":return p.stop()}},d)}));return function(d){return u.apply(this,arguments)}})()),J(St(r),"uploadFiles",function(u){var d=Te(u),f=d.map(function(v){return v.uid=z0(),r.processFile(v,d)});Promise.all(f).then(function(v){var g=r.props.onBatchStart;g==null||g(v.map(function(p){var y=p.origin,C=p.parsedFile;return{file:y,parsedFile:C}})),v.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),J(St(r),"processFile",(function(){var u=pa(Bn().mark(function d(f,v){var g,p,y,C,S,b,x,$,w;return Bn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(g=r.props.beforeUpload,p=f,!g){O.next=14;break}return O.prev=3,O.next=6,g(f,v);case 6:p=O.sent,O.next=12;break;case 9:O.prev=9,O.t0=O.catch(3),p=!1;case 12:if(p!==!1){O.next=14;break}return O.abrupt("return",{origin:f,parsedFile:null,action:null,data:null});case 14:if(y=r.props.action,typeof y!="function"){O.next=21;break}return O.next=18,y(f);case 18:C=O.sent,O.next=22;break;case 21:C=y;case 22:if(S=r.props.data,typeof S!="function"){O.next=29;break}return O.next=26,S(f);case 26:b=O.sent,O.next=30;break;case 29:b=S;case 30:return x=($t(p)==="object"||typeof p=="string")&&p?p:f,x instanceof File?$=x:$=new File([x],f.name,{type:f.type}),w=$,w.uid=f.uid,O.abrupt("return",{origin:f,data:b,parsedFile:w,action:C});case 35:case"end":return O.stop()}},d,null,[[3,9]])}));return function(d,f){return u.apply(this,arguments)}})()),J(St(r),"saveFileInput",function(u){r.fileInput=u}),r}return ir(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var i=this.props.pastable;i&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!i&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var i=this,c=a.data,u=a.origin,d=a.action,f=a.parsedFile;if(this._isMounted){var v=this.props,g=v.onStart,p=v.customRequest,y=v.name,C=v.headers,S=v.withCredentials,b=v.method,x=u.uid,$=p||eR,w={action:d,filename:y,data:c,file:f,headers:C,withCredentials:S,method:b||"post",onProgress:function(O){var N=i.props.onProgress;N==null||N(O,f)},onSuccess:function(O,N){var I=i.props.onSuccess;I==null||I(O,f,N),delete i.reqs[x]},onError:function(O,N){var I=i.props.onError;I==null||I(O,N,f),delete i.reqs[x]}};g(u),this.reqs[x]=$(w,{defaultRequest:eR})}}},{key:"reset",value:function(){this.setState({uid:z0()})}},{key:"abort",value:function(a){var i=this.reqs;if(a){var c=a.uid?a.uid:a;i[c]&&i[c].abort&&i[c].abort(),delete i[c]}else Object.keys(i).forEach(function(u){i[u]&&i[u].abort&&i[u].abort(),delete i[u]})}},{key:"render",value:function(){var a=this.props,i=a.component,c=a.prefixCls,u=a.className,d=a.classNames,f=d===void 0?{}:d,v=a.disabled,g=a.id,p=a.name,y=a.style,C=a.styles,S=C===void 0?{}:C,b=a.multiple,x=a.accept,$=a.capture,w=a.children,E=a.directory,O=a.folder,N=a.openFileDialogOnClick,I=a.onMouseEnter,M=a.onMouseLeave,T=a.hasControlInside,j=At(a,sne),_=ce(J(J(J({},c,!0),"".concat(c,"-disabled"),v),u,u)),B=E||O?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},H=v?{}:{onClick:N?this.onClick:function(){},onKeyDown:N?this.onKeyDown:function(){},onMouseEnter:I,onMouseLeave:M,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:T?void 0:"0"};return ve.createElement(i,xe({},H,{className:_,role:T?void 0:"button",style:y}),ve.createElement("input",xe({},Sr(j,{aria:!0,data:!0}),{id:g,name:p,disabled:v,type:"file",ref:this.saveFileInput,onClick:function(F){return F.stopPropagation()},key:this.state.uid,style:ae({display:"none"},S.input),className:f.input,accept:x},B,{multiple:b,onChange:this.onChange},$!=null?{capture:$}:{})),w)}}]),n})(l.Component);function A0(){}var py=(function(e){Fa(n,e);var t=so(n);function n(){var r;or(this,n);for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return r=t.call.apply(t,[this].concat(i)),J(St(r),"uploader",void 0),J(St(r),"saveUploader",function(u){r.uploader=u}),r}return ir(n,[{key:"abort",value:function(a){this.uploader.abort(a)}},{key:"render",value:function(){return ve.createElement(cne,xe({},this.props,{ref:this.saveUploader}))}}]),n})(l.Component);J(py,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:A0,onError:A0,onSuccess:A0,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const une=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${re(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:`${re(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
477
|
+
&:not(${t}-disabled):hover,
|
|
478
|
+
&-hover:not(${t}-disabled)
|
|
479
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${re(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
480
|
+
p${t}-text,
|
|
481
|
+
p${t}-hint
|
|
482
|
+
`]:{color:e.colorTextDisabled}}}}}},dne=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:i}=e,c=`${t}-list-item`,u=`${c}-actions`,d=`${c}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},ko()),{lineHeight:e.lineHeight,[c]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${c}-name`]:Object.assign(Object.assign({},io),{padding:`0 ${re(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[u]:{whiteSpace:"nowrap",[d]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
483
|
+
${d}:focus-visible,
|
|
484
|
+
&.picture ${d}
|
|
485
|
+
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${c}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${c}:hover ${d}`]:{opacity:1},[`${c}-error`]:{color:e.colorError,[`${c}-name, ${t}-icon ${n}`]:{color:e.colorError},[u]:{[`${n}, ${n}:hover`]:{color:e.colorError},[d]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},fne=e=>{const{componentCls:t}=e,n=new Qt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Qt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Wy(e)},n,r]},mne=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:i}=e,c=`${t}-list`,u=`${c}-item`;return{[`${t}-wrapper`]:{[`
|
|
486
|
+
${c}${c}-picture,
|
|
487
|
+
${c}${c}-picture-card,
|
|
488
|
+
${c}${c}-picture-circle
|
|
489
|
+
`]:{[u]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${u}-thumbnail`]:Object.assign(Object.assign({},io),{width:r,height:r,lineHeight:re(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${u}-progress`]:{bottom:a,width:`calc(100% - ${re(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${u}-error`]:{borderColor:e.colorError,[`${u}-thumbnail ${n}`]:{[`svg path[fill='${vc[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${vc.primary}']`]:{fill:e.colorError}}},[`${u}-uploading`]:{borderStyle:"dashed",[`${u}-name`]:{marginBottom:a}}},[`${c}${c}-picture-circle ${u}`]:{[`&, &::before, ${u}-thumbnail`]:{borderRadius:"50%"}}}}},vne=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:i}=e,c=`${t}-list`,u=`${c}-item`,d=e.uploadPicCardSize;return{[`
|
|
490
|
+
${t}-wrapper${t}-picture-card-wrapper,
|
|
491
|
+
${t}-wrapper${t}-picture-circle-wrapper
|
|
492
|
+
`]:Object.assign(Object.assign({},ko()),{display:"block",[`${t}${t}-select`]:{width:d,height:d,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${re(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}},[`${c}${c}-picture-card, ${c}${c}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${c}-item-container`]:{display:"inline-block",width:d,height:d,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[u]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${re(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${re(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${u}:hover`]:{[`&::before, ${u}-actions`]:{opacity:1}},[`${u}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
493
|
+
${n}-eye,
|
|
494
|
+
${n}-download,
|
|
495
|
+
${n}-delete
|
|
496
|
+
`]:{zIndex:10,width:r,margin:`0 ${re(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${re(i(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${re(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},gne=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},pne=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},fn(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"}})}},hne=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),bne=ln("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:i}=e,c=rn(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[pne(c),une(c),mne(c),vne(c),dne(c),fne(c),gne(c),Rd(c)]},hne);var yne={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"},Cne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:yne}))},Sne=l.forwardRef(Cne),xne={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"},$ne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:xne}))},wne=l.forwardRef($ne),Ene={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"},One=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Ene}))},Rne=l.forwardRef(One);function ym(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 Cm(e,t){const n=Te(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function B0(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Ine(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const Nne=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},BT=e=>e.indexOf("image/")===0,Mne=e=>{if(e.type&&!e.thumbUrl)return BT(e.type);const t=e.thumbUrl||e.url||"",n=Nne(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)},Ui=200;function Tne(e){return new Promise(t=>{if(!e.type||!BT(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ui,n.height=Ui,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ui}px; height: ${Ui}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:c}=a;let u=Ui,d=Ui,f=0,v=0;i>c?(d=c*(Ui/i),v=-(d-u)/2):(u=i*(Ui/c),f=-(u-d)/2),r.drawImage(a,f,v,u,d);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var jne={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"},Pne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:jne}))},LT=l.forwardRef(Pne);const Dne=l.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:i,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:v,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:C,previewIcon:S,removeIcon:b,downloadIcon:x,extra:$,onPreview:w,onDownload:E,onClose:O},N)=>{var I,M;const{status:T}=i,[j,_]=l.useState(T);l.useEffect(()=>{T!=="removed"&&_(T)},[T]);const[B,H]=l.useState(!1);l.useEffect(()=>{const Q=setTimeout(()=>{H(!0)},300);return()=>{clearTimeout(Q)}},[]);const A=d(i);let F=l.createElement("div",{className:`${e}-icon`},A);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(j==="uploading"||!i.thumbUrl&&!i.url){const Q=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:j!=="uploading"});F=l.createElement("div",{className:Q},A)}else{const Q=g!=null&&g(i)?l.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):A,ie=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(i)});F=l.createElement("a",{className:ie,onClick:ue=>w(i,ue),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}const D=ce(`${e}-list-item`,`${e}-list-item-${j}`),L=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,W=(typeof y=="function"?y(i):y)?f((typeof b=="function"?b(i):b)||l.createElement(Ha,null),()=>O(i),e,r.removeFile,!0):null,G=(typeof C=="function"?C(i):C)&&j==="done"?f((typeof x=="function"?x(i):x)||l.createElement(LT,null),()=>E(i),e,r.downloadFile):null,V=a!=="picture-card"&&a!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:ce(`${e}-list-item-actions`,{picture:a==="picture"})},G,W),k=typeof $=="function"?$(i):$,U=k&&l.createElement("span",{className:`${e}-list-item-extra`},k),K=ce(`${e}-list-item-name`),q=i.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:i.name},L,{href:i.url,onClick:Q=>w(i,Q)}),i.name,U):l.createElement("span",{key:"view",className:K,onClick:Q=>w(i,Q),title:i.name},i.name,U),Z=(typeof p=="function"?p(i):p)&&(i.url||i.thumbUrl)?l.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>w(i,Q),title:r.previewFile},typeof S=="function"?S(i):S||l.createElement(K3,null)):null,X=(a==="picture-card"||a==="picture-circle")&&j!=="uploading"&&l.createElement("span",{className:`${e}-list-item-actions`},Z,j==="done"&&G,W),{getPrefixCls:ee}=l.useContext(Rt),te=ee(),oe=l.createElement("div",{className:D},F,q,V,X,B&&l.createElement(Jr,{motionName:`${te}-fade`,visible:j==="uploading",motionDeadline:2e3},({className:Q})=>{const ie="percent"in i?l.createElement(rT,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},u)):null;return l.createElement("div",{className:ce(`${e}-list-item-progress`,Q)},ie)})),le=i.response&&typeof i.response=="string"?i.response:((I=i.error)===null||I===void 0?void 0:I.statusText)||((M=i.error)===null||M===void 0?void 0:M.message)||r.uploadError,ne=j==="error"?l.createElement(Cr,{title:le,getPopupContainer:Q=>Q.parentNode},oe):oe;return l.createElement("div",{className:ce(`${e}-list-item-container`,t),style:n,ref:N},v?v(ne,i,c,{download:E.bind(null,i),preview:w.bind(null,i),remove:O.bind(null,i)}):ne)}),_ne=(e,t)=>{const{listType:n="text",previewFile:r=Tne,onPreview:a,onDownload:i,onRemove:c,locale:u,iconRender:d,isImageUrl:f=Mne,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:y=!0,showDownloadIcon:C=!1,removeIcon:S,previewIcon:b,downloadIcon:x,extra:$,progress:w={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:O=!0,itemRender:N,disabled:I}=e,[,M]=Ay(),[T,j]=l.useState(!1),_=["picture-card","picture-circle"].includes(n);l.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(K=>{!(K.originFileObj instanceof File||K.originFileObj instanceof Blob)||K.thumbUrl!==void 0||(K.thumbUrl="",r==null||r(K.originFileObj).then(q=>{K.thumbUrl=q||"",M()}))})},[n,g,r]),l.useEffect(()=>{j(!0)},[]);const B=(K,q)=>{if(a)return q==null||q.preventDefault(),a(K)},H=K=>{typeof i=="function"?i(K):K.url&&window.open(K.url)},A=K=>{c==null||c(K)},F=K=>{if(d)return d(K,n);const q=K.status==="uploading";if(n.startsWith("picture")){const Z=n==="picture"?l.createElement($o,null):u.uploading,X=f!=null&&f(K)?l.createElement(Rne,null):l.createElement(Sne,null);return q?Z:X}return q?l.createElement($o,null):l.createElement(wne,null)},D=(K,q,Z,X,ee)=>{const te={type:"text",size:"small",title:X,onClick:oe=>{var le,ne;q(),l.isValidElement(K)&&((ne=(le=K.props).onClick)===null||ne===void 0||ne.call(le,oe))},className:`${Z}-list-item-action`,disabled:ee?I:!1};return l.isValidElement(K)?l.createElement(Pt,Object.assign({},te,{icon:xr(K,Object.assign(Object.assign({},K.props),{onClick:()=>{}}))})):l.createElement(Pt,Object.assign({},te),l.createElement("span",null,K))};l.useImperativeHandle(t,()=>({handlePreview:B,handleDownload:H}));const{getPrefixCls:L}=l.useContext(Rt),W=L("upload",v),G=L(),V=ce(`${W}-list`,`${W}-list-${n}`),k=l.useMemo(()=>xn(gc(G),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[G]),U=Object.assign(Object.assign({},_?{}:k),{motionDeadline:2e3,motionName:`${W}-${_?"animate-inline":"animate"}`,keys:Te(g.map(K=>({key:K.uid,file:K}))),motionAppear:T});return l.createElement("div",{className:V},l.createElement(_y,Object.assign({},U,{component:!1}),({key:K,file:q,className:Z,style:X})=>l.createElement(Dne,{key:K,locale:u,prefixCls:W,className:Z,style:X,file:q,items:g,progress:w,listType:n,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:C,removeIcon:S,previewIcon:b,downloadIcon:x,extra:$,iconRender:F,actionIconRender:D,itemRender:N,onPreview:B,onDownload:H,onClose:A})),E&&l.createElement(Jr,Object.assign({},U,{visible:O,forceRender:!0}),({className:K,style:q})=>xr(E,Z=>({className:ce(Z.className,K),style:Object.assign(Object.assign(Object.assign({},q),{pointerEvents:K?"none":void 0}),Z.style)}))))},zne=l.forwardRef(_ne);var Ane=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(c){c(i)})}return new(n||(n=Promise))(function(i,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?i(v.value):a(v.value).then(u,d)}f((r=r.apply(e,[])).next())})};const Xu=`__LIST_IGNORE_${Date.now()}__`,Bne=(e,t)=>{const n=ur("upload"),{fileList:r,defaultFileList:a,onRemove:i,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:p,disabled:y,locale:C,iconRender:S,isImageUrl:b,progress:x,prefixCls:$,className:w,type:E="select",children:O,style:N,itemRender:I,maxCount:M,data:T={},multiple:j=!1,hasControlInside:_=!0,action:B="",accept:H="",supportServerRender:A=!0,rootClassName:F}=e,D=l.useContext(_r),L=y??D,W=e.customRequest||n.customRequest,[G,V]=bn(a||[],{value:r,postState:be=>be??[]}),[k,U]=l.useState("drop"),K=l.useRef(null),q=l.useRef(null);l.useMemo(()=>{const be=Date.now();(r||[]).forEach((Se,Me)=>{!Se.uid&&!Object.isFrozen(Se)&&(Se.uid=`__AUTO__${be}_${Me}__`)})},[r]);const Z=(be,Se,Me)=>{let ke=Te(Se),et=!1;M===1?ke=ke.slice(-1):M&&(et=ke.length>M,ke=ke.slice(0,M)),ro.flushSync(()=>{V(ke)});const ht={file:be,fileList:ke};Me&&(ht.event=Me),(!et||be.status==="removed"||ke.some(We=>We.uid===be.uid))&&ro.flushSync(()=>{v==null||v(ht)})},X=(be,Se)=>Ane(void 0,void 0,void 0,function*(){const{beforeUpload:Me,transformFile:ke}=e;let et=be;if(Me){const ht=yield Me(be,Se);if(ht===!1)return!1;if(delete be[Xu],ht===Xu)return Object.defineProperty(be,Xu,{value:!0,configurable:!0}),!1;typeof ht=="object"&&ht&&(et=ht)}return ke&&(et=yield ke(et)),et}),ee=be=>{const Se=be.filter(et=>!et.file[Xu]);if(!Se.length)return;const Me=Se.map(et=>ym(et.file));let ke=Te(G);Me.forEach(et=>{ke=Cm(et,ke)}),Me.forEach((et,ht)=>{let We=et;if(Se[ht].parsedFile)et.status="uploading";else{const{originFileObj:tt}=et;let ut;try{ut=new File([tt],tt.name,{type:tt.type})}catch{ut=new Blob([tt],{type:tt.type}),ut.name=tt.name,ut.lastModifiedDate=new Date,ut.lastModified=new Date().getTime()}ut.uid=et.uid,We=ut}Z(We,ke)})},te=(be,Se,Me)=>{try{typeof be=="string"&&(be=JSON.parse(be))}catch{}if(!B0(Se,G))return;const ke=ym(Se);ke.status="done",ke.percent=100,ke.response=be,ke.xhr=Me;const et=Cm(ke,G);Z(ke,et)},oe=(be,Se)=>{if(!B0(Se,G))return;const Me=ym(Se);Me.status="uploading",Me.percent=be.percent;const ke=Cm(Me,G);Z(Me,ke,be)},le=(be,Se,Me)=>{if(!B0(Me,G))return;const ke=ym(Me);ke.error=be,ke.response=Se,ke.status="error";const et=Cm(ke,G);Z(ke,et)},ne=be=>{let Se;Promise.resolve(typeof i=="function"?i(be):i).then(Me=>{var ke;if(Me===!1)return;const et=Ine(be,G);et&&(Se=Object.assign(Object.assign({},be),{status:"removed"}),G==null||G.forEach(ht=>{const We=Se.uid!==void 0?"uid":"name";ht[We]===Se[We]&&!Object.isFrozen(ht)&&(ht.status="removed")}),(ke=K.current)===null||ke===void 0||ke.abort(Se),Z(Se,et))})},Q=be=>{U(be.type),be.type==="drop"&&(g==null||g(be))};l.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:te,onProgress:oe,onError:le,fileList:G,upload:K.current,nativeElement:q.current}));const{getPrefixCls:ie,direction:ue,upload:de}=l.useContext(Rt),se=ie("upload",$),ge=Object.assign(Object.assign({onBatchStart:ee,onError:le,onProgress:oe,onSuccess:te},e),{customRequest:W,data:T,multiple:j,action:B,accept:H,supportServerRender:A,prefixCls:se,disabled:L,beforeUpload:X,onChange:void 0,hasControlInside:_});delete ge.className,delete ge.style,(!O||L)&&delete ge.id;const he=`${se}-wrapper`,[Oe,Re,pe]=bne(se,he),[Ie]=Ra("Upload",oo.Upload),{showRemoveIcon:we,showPreviewIcon:ye,showDownloadIcon:ze,removeIcon:Ae,previewIcon:Ye,downloadIcon:Ke,extra:Fe}=typeof c=="boolean"?{}:c,Ge=typeof we>"u"?!L:we,je=(be,Se)=>c?l.createElement(zne,{prefixCls:se,listType:u,items:G,previewFile:p,onPreview:d,onDownload:f,onRemove:ne,showRemoveIcon:Ge,showPreviewIcon:ye,showDownloadIcon:ze,removeIcon:Ae,previewIcon:Ye,downloadIcon:Ke,iconRender:S,extra:Fe,locale:Object.assign(Object.assign({},Ie),C),isImageUrl:b,progress:x,appendAction:be,appendActionVisible:Se,itemRender:I,disabled:L}):be,$e=ce(he,w,F,Re,pe,de==null?void 0:de.className,{[`${se}-rtl`]:ue==="rtl",[`${se}-picture-card-wrapper`]:u==="picture-card",[`${se}-picture-circle-wrapper`]:u==="picture-circle"}),_e=Object.assign(Object.assign({},de==null?void 0:de.style),N);if(E==="drag"){const be=ce(Re,se,`${se}-drag`,{[`${se}-drag-uploading`]:G.some(Se=>Se.status==="uploading"),[`${se}-drag-hover`]:k==="dragover",[`${se}-disabled`]:L,[`${se}-rtl`]:ue==="rtl"});return Oe(l.createElement("span",{className:$e,ref:q},l.createElement("div",{className:be,style:_e,onDrop:Q,onDragOver:Q,onDragLeave:Q},l.createElement(py,Object.assign({},ge,{ref:K,className:`${se}-btn`}),l.createElement("div",{className:`${se}-drag-container`},O))),je()))}const Ee=ce(se,`${se}-select`,{[`${se}-disabled`]:L,[`${se}-hidden`]:!O}),Pe=l.createElement("div",{className:Ee,style:_e},l.createElement(py,Object.assign({},ge,{ref:K})));return Oe(u==="picture-card"||u==="picture-circle"?l.createElement("span",{className:$e,ref:q},je(Pe,!!O)):l.createElement("span",{className:$e,ref:q},Pe,je()))},kT=l.forwardRef(Bne);var Lne=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const kne=l.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:i}=e,c=Lne(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return l.createElement(kT,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),i)}),rS=kT;rS.Dragger=kne;rS.LIST_IGNORE=Xu;var Hne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Fne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Hne}))},tR=l.forwardRef(Fne),Vne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},Wne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Vne}))},Kne=l.forwardRef(Wne),Une={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"},qne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Une}))},hy=l.forwardRef(qne),Gne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.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:"check-square",theme:"outlined"},Xne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Gne}))},HT=l.forwardRef(Xne),Yne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"},Qne=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Yne}))},Zne=l.forwardRef(Qne),Jne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},ere=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Jne}))},nR=l.forwardRef(ere),tre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},nre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:tre}))},by=l.forwardRef(nre),rre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},are=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:rre}))},ore=l.forwardRef(are),ire={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"},lre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:ire}))},FT=l.forwardRef(lre),sre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},cre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:sre}))},ure=l.forwardRef(cre),dre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.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-add",theme:"outlined"},fre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:dre}))},mre=l.forwardRef(fre),vre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},gre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:vre}))},VT=l.forwardRef(gre),pre={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},hre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:pre}))},aS=l.forwardRef(hre),bre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},yre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:bre}))},Cre=l.forwardRef(yre),Sre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},xre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Sre}))},$re=l.forwardRef(xre),wre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},Ere=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:wre}))},WT=l.forwardRef(Ere),Ore={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 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},Rre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Ore}))},Ire=l.forwardRef(Rre),Nre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Mre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Nre}))},yy=l.forwardRef(Mre),Tre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},jre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Tre}))},Cy=l.forwardRef(jre),Pre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},Dre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Pre}))},_re=l.forwardRef(Dre),zre={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"},Are=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:zre}))},Bre=l.forwardRef(Are),Lre={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-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},kre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Lre}))},Cv=l.forwardRef(kre),Hre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},Fre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Hre}))},Vre=l.forwardRef(Fre),Wre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},Kre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:Wre}))},Ure=l.forwardRef(Kre),qre={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"},Gre=function(t,n){return l.createElement(Bt,xe({},t,{ref:n,icon:qre}))},Xre=l.forwardRef(Gre);async function Zt(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error||"Something went wrong. Please try again.");return n.status===204?null:n.json()}const yr={list:()=>Zt("/api/launchers"),running:()=>Zt("/api/launchers/running"),create:e=>Zt("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Zt(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Zt(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>Zt(`/api/launchers/${e}/start`,{method:"POST"}),run:(e,t)=>Zt(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>Zt(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await Zt(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return Zt(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>Zt(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>Zt(`/api/launchers/${e}/scripts/${t}/logs/error`),packageScripts:e=>Zt(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>Zt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>Zt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>Zt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`)},Yre={list:()=>Zt("/api/plugins")},Zs={list:e=>Zt(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>Zt("/api/clipboard/tagged"),remove:(e,t)=>Zt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>Zt("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>Zt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})})},ci={list:()=>Zt("/api/group-tasks"),catalog:()=>Zt("/api/group-tasks/catalog"),create:e=>Zt("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Zt(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Zt(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>Zt(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>Zt(`/api/group-tasks/${e}/stop`,{method:"POST"})},L0={list:()=>Zt("/api/port-diagnostics"),get:e=>Zt(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>Zt("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},Qre={open:e=>Zt("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})})},Ea={status:()=>Zt("/api/settings"),saveDomain:e=>Zt("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>Zt("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>Zt("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>Zt("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveAccessToken:(e,t)=>Zt(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>Zt("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})})},Sm={check:e=>Zt("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),myPrs:()=>Zt("/api/pr-review/my-prs"),reviewPrs:()=>Zt("/api/pr-review/review-prs"),comment:e=>Zt("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Bu={list:()=>Zt("/api/jira-filters"),create:e=>Zt("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Zt(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Zt(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>Zt(`/api/jira-filters/${e}/issues`)},Ba={list:()=>Zt("/api/todos"),create:e=>Zt("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>Zt(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>Zt(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>Zt(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>Zt(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>Zt("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Zre={list:()=>Zt("/api/static-pages")},Jre="modulepreload",eae=function(e){return"/"+e},rR={},KT=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=c(n.map(f=>{if(f=eae(f),f in rR)return;rR[f]=!0;const v=f.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const p=document.createElement("link");if(p.rel=v?"stylesheet":Jre,v||(p.as="script"),p.crossOrigin="",p.href=f,d&&p.setAttribute("nonce",d),document.head.appendChild(p),v)return new Promise((y,C)=>{p.addEventListener("load",y),p.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};async function UT(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((f,v)=>{const g=new Image;g.onload=()=>f(g),g.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),g.src=r}),i=document.createElement("canvas"),c=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/c),n!=null&&n>0&&n<=100&&(u=u*(n/100)),i.width=Math.max(1,Math.round(a.naturalWidth*u)),i.height=Math.max(1,Math.round(a.naturalHeight*u));const d=i.getContext("2d",{willReadFrequently:!0});return d.drawImage(a,0,0,i.width,i.height),{imageData:d.getImageData(0,0,i.width,i.height),width:i.width,height:i.height}}finally{URL.revokeObjectURL(r)}}async function tae(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:i=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([KT(()=>import("./index-Dty-56mC.js"),[]),UT(e)]),d=await c(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:i}),f=new Blob([d],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([f],v,{type:"image/jpeg"})}const nae=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Co(e){e&&Qre.open(e).catch(()=>{window.open(e,"_blank")})}function oS(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}const{Title:rae,Text:xm,Paragraph:aae}=Wr,Lu=()=>new Intl.DateTimeFormat("en-CA").format(new Date);function oae({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let i=0;const c=(n||"").split(/[\s,]+/).filter(Boolean).map(f=>f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=c.length>0&&t?new RegExp(`\\b(?:${c.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,d=(f,v)=>{if(!u||!t)return f;const g=[];let p=0;u.lastIndex=0;for(const y of f.matchAll(u)){y.index>p&&g.push(f.slice(p,y.index));const C=y[0],S=oS(t,C);g.push(z.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:b=>{b.preventDefault(),Co(S)},children:C},`${v}-${y.index}`)),p=y.index+C.length}return p<f.length&&g.push(f.slice(p)),g};for(const f of e.matchAll(a)){f.index>i&&r.push(...d(e.slice(i,f.index),`txt-${f.index}`));const v=f[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(z.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Co(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push(z.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),Co(g)},children:g},f.index)),f[0].length>g.length&&r.push(f[0].slice(g.length))}i=f.index+f[0].length}return i<e.length&&r.push(...d(e.slice(i),"txt-end")),r}const aR=e=>e.text||e.preview||"";function Js(e,t,n){const r=e.trim();if(!r)return!1;if(t==="account")return/^[AT]\d+.*$/i.test(r)&&r.length<=20||/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i.test(r)||/\b(?:account|username|user\s*name|login|帐号|账号|用户名)\s*[:=]/i.test(r);if(t==="id")return/\b[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+\b/i.test(r);if(t==="url")return/https?:\/\/[^\s]+/i.test(r);if(t==="jira"){const a=(n||"").split(/[\s,]+/).filter(Boolean).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return a.length>0?new RegExp(`\\b(?:${a.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"i").test(r):/\b[A-Z]{2,10}-[a-zA-Z0-9]{1,10}\b/i.test(r)}return t==="code"?/```[\s\S]*?```|\b(?:const|let|var|function|class|import|export|SELECT|INSERT|UPDATE|DELETE)\b|[{};][\s\S]*[{};]/.test(r):!0}function iae(){const{message:e}=Mo.useApp(),[t,n]=l.useState(()=>{const V=localStorage.getItem("buddy_clipboard_enabled");return V!==null?V==="true":!0}),[r,a]=l.useState(!0),[i,c]=l.useState([]),[u,d]=l.useState(Lu()),[f,v]=l.useState([]),[g,p]=l.useState([]),[y,C]=l.useState(null),[S,b]=l.useState(""),[x,$]=l.useState("all"),[w,E]=l.useState(null),[O,N]=l.useState(""),[I,M]=l.useState("");l.useEffect(()=>{Ea.status().then(V=>{if(V){if(V.clipboardEnabled!==void 0){const k=V.clipboardEnabled!==!1;n(k),localStorage.setItem("buddy_clipboard_enabled",String(k))}V.domain&&N(V.domain),V.jiraIssuePrefix&&M(V.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const T=async V=>{n(V),localStorage.setItem("buddy_clipboard_enabled",String(V));try{const U=(await Ea.saveClipboardEnabled(V)).clipboardEnabled!==!1;n(U),localStorage.setItem("buddy_clipboard_enabled",String(U)),e.success(V?"Clipboard history enabled":"Clipboard history disabled")}catch(k){e.error(k.message)}},j=async V=>{try{const[k,U]=await Promise.all([Zs.list(V),Zs.tagged().catch(()=>({items:[]}))]);c(k.dates),v(k.items),p(U.items||[])}catch(k){e.error(k.message)}},_=async(V,k)=>{const U=(k||"").trim();if(!U)return;const K=V.tags||[];if(K.includes(U)){C(null);return}const q=[...K,U],Z=V.date||u;try{await Zs.updateTags(Z,V.id,q),v(X=>X.map(ee=>ee.id===V.id?{...ee,tags:q}:ee)),p(X=>X.some(te=>te.id===V.id)?X.map(te=>te.id===V.id?{...te,tags:q}:te):[{...V,tags:q,date:Z},...X]),e.success("Tag added")}catch(X){e.error(X.message)}finally{C(null),b("")}},B=async(V,k)=>{const K=(V.tags||[]).filter(Z=>Z!==k),q=V.date||u;try{await Zs.updateTags(q,V.id,K),v(Z=>Z.map(X=>X.id===V.id?{...X,tags:K}:X)),p(Z=>K.length===0?Z.filter(X=>X.id!==V.id):Z.map(X=>X.id===V.id?{...X,tags:K}:X)),e.success("Tag removed")}catch(Z){e.error(Z.message)}},H=l.useRef(Lu());l.useEffect(()=>{if(!t)return;const V=()=>{const q=Lu();if(q!==H.current){const Z=H.current;if(H.current=q,u===Z)return d(q),!0}return!1};V()||j(u);const U=()=>{V()||j(u)};window.addEventListener("visibilitychange",U),window.addEventListener("focus",U);let K=null;return u===Lu()&&(K=setInterval(()=>{document.visibilityState==="visible"&&j(u)},3e3)),()=>{window.removeEventListener("visibilitychange",U),window.removeEventListener("focus",U),K&&clearInterval(K)}},[u,t]);const A=async V=>{try{await Zs.remove(u,V),await j(u),e.success("Clipboard entry deleted.")}catch(k){e.error(k.message)}},F=async V=>{if(V.imageFile)try{const U=await(await fetch(`${window.location.origin}/api/clipboard/image/${V.imageFile}`)).blob();await navigator.clipboard.write([new ClipboardItem({[U.type]:U})]),E(V.id),setTimeout(()=>{E(K=>K===V.id?null:K)},1e3)}catch(k){e.error("Failed to copy image: "+k.message)}else navigator.clipboard.writeText(V.text||V.preview),E(V.id),setTimeout(()=>{E(k=>k===V.id?null:k)},1e3)};l.useEffect(()=>{if(!t)return;const V=k=>{const U=document.activeElement;if(!(U&&(U.tagName==="INPUT"||U.tagName==="TEXTAREA"||U.isContentEditable))){if(k.key==="ArrowLeft"){const K=[...new Set([...i,u])].sort(),q=K.indexOf(u);q<K.length-1&&q!==-1&&d(K[q+1])}else if(k.key==="ArrowRight"){const K=[...new Set([...i,u])].sort(),q=K.indexOf(u);q>0&&d(K[q-1])}}};return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},[i,u,t]),l.useEffect(()=>{if(!t)return;const V=async k=>{var q;const U=document.activeElement;if(U&&(U.tagName==="INPUT"||U.tagName==="TEXTAREA"||U.isContentEditable))return;const K=(q=k.clipboardData)==null?void 0:q.items;if(K){for(const Z of K)if(Z.type.startsWith("image/")){const X=Z.getAsFile();if(X){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const ee=await tae(X);await Zs.uploadImage(ee);const te=Lu();d(te),await j(te),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(ee){e.error({content:"Failed to save pasted image: "+ee.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",V),()=>window.removeEventListener("paste",V)},[u,t]);const D=i.reduce((V,k)=>{var Z;const[U,K,q]=k.split("-");return V[U]||(V[U]={}),(Z=V[U])[K]||(Z[K]=[]),V[U][K].push(q),V},{}),L=Object.entries(D).sort(([V],[k])=>k.localeCompare(V)).map(([V,k])=>({value:V,label:V,children:Object.entries(k).sort(([U],[K])=>K.localeCompare(U)).map(([U,K])=>({value:U,label:U,children:K.sort().reverse().map(q=>({value:q,label:q}))}))})),W=l.useMemo(()=>x==="tagged"?g:x==="all"?f:x==="image"?f.filter(V=>!!V.imageFile):f.filter(V=>!V.imageFile&&Js(aR(V),x,I)),[x,f,g,I]),G=l.useMemo(()=>{const V={all:f.length,tagged:g.length,jira:0,account:0,id:0,url:0,code:0,image:0};for(const k of f)if(k.imageFile)V.image++;else{const U=aR(k);Js(U,"jira",I)&&V.jira++,Js(U,"account")&&V.account++,Js(U,"id")&&V.id++,Js(U,"url")&&V.url++,Js(U,"code")&&V.code++}return[{key:"all",label:`All (${V.all})`},{key:"tagged",label:`Tagged (${V.tagged})`},{key:"jira",label:`Jira (${V.jira})`},{key:"account",label:`Account (${V.account})`},{key:"id",label:`ID (${V.id})`},{key:"url",label:`Url (${V.url})`},{key:"code",label:`Code (${V.code})`},{key:"image",label:`Img (${V.image})`}]},[f,g,I]);return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"page-header",children:[z.jsxs("div",{children:[z.jsx(xm,{type:"secondary",children:"LOCAL CLIPBOARD"}),z.jsx(rae,{level:2,children:"Clipboard history"}),z.jsx(aae,{type:"secondary",children:"Saved locally and archived by date."})]}),z.jsxs(dn,{size:16,align:"center",children:[z.jsx(yg,{loading:r,checked:t,onChange:T,checkedChildren:"On",unCheckedChildren:"Off"}),z.jsx(zc,{className:"clipboard-picker",disabled:!t||r,options:L,value:u.split("-"),onChange:V=>(V==null?void 0:V.length)===3&&d(V.join("-")),placeholder:"Select date"})]})]}),t?z.jsxs(z.Fragment,{children:[z.jsx(ss,{className:"clipboard-tabs",activeKey:x,onChange:$,items:G}),W.length?z.jsx("div",{className:"clipboard-list",children:W.map(V=>{const k=V.date||u,U=`${window.location.origin}/api/clipboard/${k}/${V.id}`,K=new Date(V.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return z.jsxs(Xn,{size:"small",className:"clipboard-item",children:[z.jsxs("div",{children:[z.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[z.jsx(xm,{type:"secondary",children:K}),V.date&&V.date!==u&&z.jsx(Yn,{style:{margin:0},children:V.date}),(V.tags||[]).map(q=>z.jsx(Yn,{color:"blue",closable:!0,onClose:Z=>{Z.preventDefault(),B(V,q)},style:{margin:0},children:q},q)),z.jsx(sC,{content:z.jsxs(dn.Compact,{style:{width:200},children:[z.jsx(gr,{size:"small",placeholder:"Tag name",value:S,onChange:q=>b(q.target.value),onPressEnter:()=>_(V,S)}),z.jsx(Pt,{size:"small",type:"primary",onClick:()=>_(V,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:y===V.id,onOpenChange:q=>{C(q?V.id:null),b("")},children:z.jsxs(Yn,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[z.jsx(Lo,{})," Tag"]})})]}),V.imageFile?z.jsx("div",{style:{marginTop:8},children:z.jsx("img",{src:`${window.location.origin}/api/clipboard/image/${V.imageFile}`,alt:"Clipboard entry",style:{maxWidth:"100%",maxHeight:300,borderRadius:6,cursor:"pointer",border:"1px solid #eef0f6"},onClick:()=>window.open(`${window.location.origin}/api/clipboard/image/${V.imageFile}`,"_blank")})}):z.jsxs(z.Fragment,{children:[z.jsx("pre",{style:{marginTop:8},children:z.jsx(oae,{value:V.preview||V.text,domain:O,jiraIssuePrefix:I})}),V.contentFile&&z.jsxs("span",{className:"clipboard-original",children:[z.jsx("a",{href:U,target:"_blank",rel:"noreferrer",children:"View original content"}),z.jsxs("a",{href:V.editorUrl,children:["Open in ",V.editorName||"editor"]})]})]})]}),z.jsxs("span",{className:"clipboard-actions",children:[z.jsx(Cr,{title:w===V.id?"Copied!":"Copy",children:z.jsx(Pt,{type:"text",icon:w===V.id?z.jsx(Mc,{style:{color:"#52c41a"}}):z.jsx(Jl,{}),onClick:()=>F(V)})}),z.jsx(Cr,{title:"Delete",children:z.jsx(Pt,{type:"text",danger:!0,icon:z.jsx(Ha,{}),onClick:()=>A(V.id)})})]})]},V.id)})}):z.jsx(cr,{description:`No ${x==="all"?"clipboard entries":`${x==="id"?"ID":x} entries`}${x==="tagged"?".":` for ${u}.`}`})]}):z.jsx(Xn,{style:{marginTop:24,textAlign:"center",padding:"48px 0"},children:z.jsx(cr,{image:z.jsx(Cv,{style:{fontSize:48,color:"#9ca3af"}}),description:z.jsxs("div",{style:{marginTop:8},children:[z.jsx(xm,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:"Clipboard history is disabled"}),z.jsx(xm,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),z.jsx(us.BackTop,{visibilityHeight:240})]})}const qT=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function GT(e="vscode"){const t=qT.find(n=>n.value===e);return t?t.label:"VS Code"}function XT(e="vscode",t="",n=""){if(!t)return"";let r="",a="";if(n){const i=n.split(":").filter(Boolean);i[0]&&(r=i[0]),i[1]&&(a=i[1])}if(e==="idea"){let i=`idea://open?file=${encodeURIComponent(t)}`;return r&&(i+=`&line=${r}`),a&&(i+=`&column=${a}`),i}return e==="devin"?`devin://file${encodeURI(t)}${n}`:`vscode://file${encodeURI(t)}${n}`}const{Text:k0}=Wr;function lae({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:i,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:d=>z.jsx(k0,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>z.jsxs(k0,{type:"secondary",children:[d.length," scripts"]})},{title:"Actions",width:236,render:(d,f)=>{const v=f.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return z.jsxs(dn,{children:[z.jsx(Pt,{size:"small",danger:v,icon:v?z.jsx(Cv,{}):z.jsx(yy,{}),onClick:()=>v?i(f):a(f),children:v?"Stop":"Start"}),z.jsx(Pt,{size:"small",onClick:()=>r(f),children:"Edit"}),z.jsx(Pt,{size:"small",danger:!0,icon:z.jsx(Ha,{}),onClick:()=>c(f),children:"Delete"})]})}}];return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"group-task-header",children:[z.jsx(k0,{type:"secondary",children:"Start selected scripts across multiple services."}),z.jsx(Pt,{type:"primary",icon:z.jsx(Lo,{}),onClick:n,children:"Add quick launch"})]}),e.length?z.jsx(ha,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):z.jsx(cr,{description:"No quick launches yet.",className:"group-task-empty"})]})}const{Text:Dl}=Wr,ku=(e,t)=>`${e}:${t}`,sae=()=>z.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function cae({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:i,onRun:c,onRunInstall:u,onRunPackage:d,onStop:f,onLogs:v,onPackageLogs:g}){const p=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[y,C]=l.useState(()=>p);return l.useEffect(()=>{p&&C(!0)},[t==null?void 0:t.id]),l.useEffect(()=>{p||C(!1)},[p]),z.jsx(mn.List,{name:"scripts",children:(S,{add:b,remove:x})=>{const $=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,w=[...S.map(N=>({...N,key:`custom-${N.key}`,kind:"custom"})),...$?[{key:"install",kind:"install",script:$}]:[],...(i||[]).map(N=>({key:`package-${N.id}`,kind:"package",script:N}))],E=y?w.filter(N=>{const I=N.kind==="custom"?e.getFieldValue(["scripts",N.name]):N.script;return t&&(I==null?void 0:I.id)&&r.has(ku(t.id,I.id))}):w,O=[{title:"Source",width:100,render:(N,I)=>z.jsx(Yn,{color:I.kind==="package"?"blue":I.kind==="install"?"green":"default",children:I.kind==="package"?"Package":I.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(N,I)=>{var _;const M=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,T=(M==null?void 0:M.name)===e.getFieldValue("startCommand"),j=t&&(M==null?void 0:M.id)&&r.has(ku(t.id,M.id));return z.jsxs(dn,{direction:"vertical",size:1,style:{width:"100%"},children:[I.kind!=="custom"||j?z.jsxs(dn,{size:4,children:[z.jsx(Dl,{strong:!0,children:(M==null?void 0:M.name)||((_=I.script)==null?void 0:_.name)}),T&&z.jsx(Cy,{className:"start-script-icon"})]}):z.jsx(mn.Item,{noStyle:!0,name:[I.name,"name"],rules:[{required:!0,message:"Required"}],children:z.jsx(gr,{placeholder:"serve",allowClear:!0,suffix:T?z.jsx(Cy,{className:"start-script-icon"}):null})}),j&&z.jsx(fi,{status:"success",text:z.jsx(Dl,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(N,I)=>{const M=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,T=t&&(M==null?void 0:M.id)&&r.has(ku(t.id,M.id));return I.kind==="package"?z.jsxs(dn,{direction:"vertical",size:0,children:[z.jsxs(Dl,{code:!0,children:[n," run ",I.script.name]}),z.jsx(Dl,{type:"secondary",style:{fontSize:12},children:I.script.command})]}):I.kind==="install"?z.jsx(Dl,{code:!0,children:I.script.command}):T?z.jsx(Dl,{code:!0,children:M==null?void 0:M.command}):z.jsx(mn.Item,{noStyle:!0,name:[I.name,"command"],rules:[{required:!0,message:"Required"}],children:z.jsx(gr,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(N,I)=>{const M=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,T=t&&(M==null?void 0:M.id)&&r.has(ku(t.id,M.id)),j=t&&(M!=null&&M.id)&&a[ku(t.id,M.id)]||0;return z.jsxs(dn,{size:2,children:[t&&z.jsx(Cr,{title:T?"Stop":"Start",children:z.jsx(Pt,{type:"text",danger:T,icon:T?z.jsx(sae,{}):z.jsx(Ire,{}),onClick:()=>T?f(M):I.kind==="package"?d(M):I.kind==="install"?u(M):c(M),disabled:!(M!=null&&M.id)})}),z.jsx(Cr,{title:"Logs",children:z.jsx(fi,{count:j,size:"small",offset:[-2,2],children:z.jsx(Pt,{type:"text",icon:z.jsx(kC,{}),onClick:()=>I.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),I.kind==="custom"&&!T&&z.jsx(Cr,{title:"Remove",children:z.jsx(Pt,{type:"text",danger:!0,icon:z.jsx(Ha,{}),onClick:()=>x(I.name)})})]})}}];return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"script-header",children:[z.jsx(y3,{orientation:"left",children:"Scripts"}),z.jsxs(dn,{size:"middle",align:"center",children:[z.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:6,cursor:"pointer",userSelect:"none"},children:[z.jsx(yg,{size:"small",checked:y,onChange:C,disabled:!t}),z.jsx(Dl,{type:"secondary",style:{fontSize:13},children:"Show running only"})]}),z.jsx(Pt,{icon:z.jsx(Lo,{}),onClick:()=>{C(!1),b({name:"",command:""})},children:"Add script"})]})]}),z.jsx(ha,{size:"small",rowKey:"key",pagination:!1,loading:i===null,dataSource:E,columns:O})]})}})}const uae=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function dae({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:i,onSave:c,onRun:u,onRunInstall:d,onRunPackage:f,onStop:v,onLogs:g,onDelete:p}){const{message:y,modal:C}=Mo.useApp(),[S]=mn.useForm(),[b,x]=l.useState(null),$=()=>{C.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await p(t)}catch(E){y.error(E.message)}}})};l.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:uae()),x(t?null:[]),t&&yr.packageScripts(t.id).then(E=>x(E.scripts)).catch(()=>x([])))},[e,t,S]);const w=async()=>{try{const E=(S.getFieldValue("scripts")||[]).filter(I=>{var M,T;return((M=I==null?void 0:I.name)==null?void 0:M.trim())||((T=I==null?void 0:I.command)==null?void 0:T.trim())});S.setFieldValue("scripts",E);const O=await S.validateFields(["alias","folder","groupName","startCommand"]),N={...S.getFieldsValue(!0),...O,scripts:E};await c(N)}catch(E){if(E!=null&&E.errorFields)return;y.error(E.message)}};return z.jsx(ea,{title:t?`Service details · ${t.alias}`:"Add service",open:e,onCancel:i,onOk:w,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:z.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t?z.jsx(Pt,{type:"primary",danger:!0,onClick:$,children:"Delete service"}):z.jsx("div",{}),z.jsxs(dn,{children:[z.jsx(Pt,{onClick:i,children:"Cancel"}),z.jsx(Pt,{type:"primary",onClick:w,children:t?"Save":"Save service"})]})]}),children:z.jsxs(mn,{form:S,layout:"vertical",children:[z.jsx(nv,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:z.jsxs(dv,{gutter:[16,0],children:[z.jsx(va,{xs:24,sm:12,children:z.jsx(mn.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:z.jsx(gr,{placeholder:"Service name",allowClear:!0})})}),z.jsx(va,{xs:24,sm:12,children:z.jsx(mn.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:z.jsx(gr,{prefix:z.jsx(OT,{}),placeholder:"Project folder path",allowClear:!0})})}),z.jsx(va,{xs:24,sm:8,children:z.jsx(mn.Item,{label:"Group",name:"groupName",children:z.jsx(av,{options:n.map(E=>({value:E})),placeholder:"Group name",allowClear:!0})})}),z.jsx(va,{xs:24,sm:8,children:z.jsx(mn.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:z.jsx(av,{options:["npm","pnpm","yarn"].map(E=>({value:E})),placeholder:"npm",allowClear:!0})})}),z.jsx(va,{xs:24,sm:8,children:z.jsx(mn.Item,{noStyle:!0,shouldUpdate:(E,O)=>E.scripts!==O.scripts,children:()=>{const E=(S.getFieldValue("scripts")||[]).map(I=>I==null?void 0:I.name).filter(Boolean),O=(b||[]).map(I=>I.name),N=[...new Set([...E,...O])].map(I=>({label:I,value:I}));return z.jsx(mn.Item,{label:"Start script name",name:"startCommand",children:z.jsx(Ir,{placeholder:"Select start script",allowClear:!0,options:N})})}})})]})}]}),z.jsx(mn.Item,{noStyle:!0,shouldUpdate:(E,O)=>E.executor!==O.executor||E.startCommand!==O.startCommand||E.scripts!==O.scripts,children:()=>z.jsx(cae,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:b,onRun:E=>u(t,E),onRunInstall:()=>d(t),onRunPackage:E=>f(t,E),onStop:E=>v(t,E.id),onLogs:E=>g(t,E),onPackageLogs:E=>g(t,E,!0)})})]})})}const{Text:fae}=Wr;function mae({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:i}=Mo.useApp(),[c]=mn.useForm();l.useEffect(()=>{e&&(c.resetFields(),c.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(f=>`${f.launcherId}|${f.scriptId}`))||[]}))},[e,t,c]);const u=l.useMemo(()=>Object.entries(n.reduce((f,v)=>{const g=v.groupName||"Ungrouped";return(f[g]||(f[g]=[])).push(v),f},{})).sort(([f],[v])=>f.localeCompare(v)).map(([f,v])=>({key:f,label:f,children:z.jsx("div",{className:"group-task-projects",children:v.map(g=>z.jsx(Xn,{size:"small",title:g.alias,children:z.jsx(dn,{direction:"vertical",children:g.scripts.map(p=>z.jsxs(ka,{value:`${g.id}|${p.id}`,children:[p.name," ",z.jsxs(fae,{type:"secondary",children:["(",p.source,")"]})]},p.id))})},g.id))})})),[n]),d=async()=>{try{const f=await c.validateFields(),v={name:f.name,items:f.items.map(g=>{const[p,y]=g.split("|");return{launcherId:p,scriptId:y}})};await a(v)}catch(f){f!=null&&f.errorFields||i.error(f.message)}};return z.jsx(ea,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:d,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:z.jsxs(mn,{form:c,layout:"vertical",children:[z.jsx(mn.Item,{label:"Name",name:"name",rules:[{required:!0}],children:z.jsx(gr,{placeholder:"Start local stack",allowClear:!0})}),z.jsx(mn.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:z.jsx(ka.Group,{className:"group-task-selector",children:z.jsx(ss,{items:u})})})]})})}const oR={30:"ansi-black",31:"ansi-red",32:"ansi-green",33:"ansi-yellow",34:"ansi-blue",35:"ansi-magenta",36:"ansi-cyan",37:"ansi-white",90:"ansi-gray",91:"ansi-red",92:"ansi-green",93:"ansi-yellow",94:"ansi-blue",95:"ansi-magenta",96:"ansi-cyan",97:"ansi-white"};function Sy({value:e,editor:t}){const[n,r]=l.useState(t||"vscode"),[a,i]=l.useState(""),[c,u]=l.useState("");l.useEffect(()=>{t&&r(t),Ea.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&i(g.domain),g!=null&&g.jiraIssuePrefix&&u(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const d=(c||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0&&a?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,p)=>{let y="";const C=($,w)=>$.split(/(\u001b\[[0-9;]*m)/g).map((O,N)=>{const I=O.match(/^\u001b\[([0-9;]*)m$/);if(I){const T=I[1].split(";").map(Number);return y=T.includes(0)?"":oR[T.find(j=>oR[j])]||y,null}if(!O)return null;const M=y||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(O)?"log-error":/\b(warn|warning)\b/i.test(O)?"log-warning":/\b(success|ready|started|listening)\b/i.test(O)?"log-success":"");return z.jsx("span",{className:M,children:O},`${w}-${N}`)}),S=/(https?:\/\/(?:[^\s<>'"`]|\u001b\[[0-9;]*m)+|\/(?:(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+\/)*(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+)?)?)/g,b=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!b?C(g,`${p}-0`):g.split(S).map(($,w)=>{if(!$)return null;const E=`${p}-${w}`;if(/^https?:\/\//.test($.replace(/\u001b\[[0-9;]*m/g,""))){const N=$.replace(/\u001b\[[0-9;]*m/g,""),I=N.replace(/[),.;:!?]+$/,""),M=N.slice(I.length);return z.jsxs("span",{children:[z.jsx("a",{className:"log-link",href:I,target:"_blank",rel:"noreferrer",onClick:T=>{T.preventDefault(),Co(I)},children:C($.slice(0,$.length-M.length),`${E}-url`)}),M&&C(M,`${E}-suf`)]},E)}const O=$.replace(/\u001b\[[0-9;]*m/g,"");if(O.startsWith("/")){const[,N,I=""]=O.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(N){const M=XT(n,N,I);return z.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${GT(n)}`,children:C($,E)},E)}}if(f&&a&&(f.lastIndex=0,f.test(O))){const N=[];let I=0;f.lastIndex=0;for(const M of O.matchAll(f)){M.index>I&&N.push(C(O.slice(I,M.index),`${E}-sub-${M.index}`));const T=M[0],j=oS(a,T);N.push(z.jsx("a",{className:"log-link",href:j,target:"_blank",rel:"noreferrer",onClick:_=>{_.preventDefault(),Co(j)},children:T},`${E}-jira-${M.index}`)),I=M.index+T.length}return I<O.length&&N.push(C(O.slice(I),`${E}-sub-end`)),z.jsx("span",{children:N},E)}return C($,E)})};return z.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
497
|
+
`).map((g,p)=>z.jsx("div",{className:"log-line",children:z.jsx("code",{children:v(g,p)})},p))})}function vae({open:e,logTarget:t,onCancel:n}){var u;const[r,a]=l.useState("output"),[i,c]=l.useState("");return l.useEffect(()=>{e&&(a("output"),c("Loading…"))},[e,t]),l.useEffect(()=>{if(!e||!t)return;const d=async()=>{try{const v=t.package?r==="error"?await yr.packageScriptErrorLogs(t.launcher.id,t.script.name):await yr.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await yr.errorLogs(t.launcher.id,t.script.id):await yr.logs(t.launcher.id,t.script.id);c(v.log||(r==="error"?"No error logs yet.":"No logs yet."))}catch(v){c(v.message)}};d();const f=setInterval(d,1e3);return()=>clearInterval(f)},[e,t,r]),z.jsx(ea,{title:t?`${(u=t.launcher)!=null&&u.alias?`${t.launcher.alias} / `:""}${t.script.name} · Logs`:"Logs",open:e,onCancel:n,footer:null,width:1080,zIndex:1200,children:z.jsx(ss,{activeKey:r,onChange:a,tabBarExtraContent:t&&z.jsx(Pt,{icon:z.jsx(VT,{}),onClick:()=>{const d=t.package?`#/logs/${t.launcher.id}/pkg/${encodeURIComponent(t.script.name)}`:`#/logs/${t.launcher.id}/${encodeURIComponent(t.script.id)}`;window.open(d,"_blank")},children:"Open in new tab"}),items:[{key:"output",label:"Logs",children:z.jsx(Sy,{value:i})},{key:"error",label:"Error logs",children:z.jsx(Sy,{value:i})}]})})}const{Title:gae,Text:H0,Paragraph:pae}=Wr;function hae({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:i}=Mo.useApp(),[c,u]=l.useState("all"),[d,f]=l.useState([]),[v,g]=l.useState([]),[p,y]=l.useState(!1),[C,S]=l.useState(!1),[b,x]=l.useState(null),[$,w]=l.useState(!1),[E,O]=l.useState(null),[N,I]=l.useState(!1),[M,T]=l.useState(null),[j,_]=l.useState("vscode");l.useEffect(()=>{ci.list().then(f).catch(le=>i.error(le.message)),Ea.status().then(le=>{le!=null&&le.defaultEditor&&_(le.defaultEditor)}).catch(()=>{})},[]);const B=l.useMemo(()=>[...new Set(e.map(le=>le.groupName).filter(Boolean))].sort((le,ne)=>le.localeCompare(ne)),[e]),H=c==="all"?e:e.filter(le=>le.groupName===c),A=(le=null)=>{O(le),w(!0)},F=async le=>{if(E){const ne=await yr.update(E.id,le);O(ne)}else await yr.create(le),w(!1);i.success("Saved"),await r()},D=async le=>{try{const ne=[...t].filter(Q=>Q.startsWith(`${le.id}:`));if(ne.length>0){const Q=ne.map(ie=>ie.slice(`${le.id}:`.length));await Promise.all(Q.map(ie=>yr.stop(le.id,ie)))}await yr.remove(le.id),w(!1),i.success("Deleted"),await r()}catch(ne){i.error(ne.message)}},L=async(le,ne)=>{try{await yr.run(le.id,ne.id),await r()}catch(Q){i.error(Q.message)}},W=async le=>{try{await yr.runInstall(le.id),await r()}catch(ne){i.error(ne.message)}},G=async(le,ne)=>{try{await yr.runPackageScript(le.id,ne.name),await r()}catch(Q){i.error(Q.message)}},V=(le,ne,Q=!1)=>{T({launcher:le,script:ne,package:Q}),I(!0)},k=async le=>{try{await yr.start(le.id),await r()}catch(ne){i.warning(ne.message)}},U=async(le,ne)=>{try{await yr.stop(le.id,ne),await r()}catch(Q){await r(),i.error(Q.message)}},K=async(le,ne)=>{try{await Promise.all(ne.map(Q=>yr.stop(le.id,Q))),await r()}catch(Q){await r(),i.error(Q.message)}},q=async(le=null)=>{if(x(le),S(!0),!v.length)try{g(await ci.catalog())}catch(ne){i.error(ne.message)}},Z=async le=>{b?await ci.update(b.id,le):await ci.create(le),S(!1),f(await ci.list())},X=async le=>{const ne=`group-task-${le.id}`;i.loading({content:`Starting ${le.name}…`,key:ne,duration:0});try{const Q=await ci.start(le.id),ie=Q.results.filter(ue=>ue.error);ie.length?i.warning({content:`${Q.results.length-ie.length} started, ${ie.length} failed.`,key:ne}):i.success({content:`${Q.results.length} scripts started.`,key:ne}),await r()}catch(Q){i.error({content:Q.message,key:ne})}},ee=async le=>{const ne=`group-task-${le.id}`;i.loading({content:`Stopping ${le.name}…`,key:ne,duration:0});try{const ie=(await ci.stop(le.id)).results.filter(ue=>ue.ok).length;i.success({content:`${ie} scripts stopped.`,key:ne}),await r()}catch(Q){i.error({content:Q.message,key:ne})}},te=async le=>{try{await ci.remove(le.id),f(await ci.list())}catch(ne){i.error(ne.message)}},oe=[{title:"Service",dataIndex:"alias",render:(le,ne)=>z.jsx("a",{href:XT(j,ne.folder),title:`Open ${ne.folder} in ${GT(j)}`,onClick:Q=>Q.stopPropagation(),style:{fontWeight:600},children:le})},{title:"Current branch",dataIndex:"branch",width:400,render:le=>le?z.jsx(H0,{code:!0,children:le}):z.jsx(H0,{type:"secondary",children:"—"})},{title:"Scripts",width:170,align:"center",render:(le,ne)=>{const Q=[...t].filter(de=>de.startsWith(`${ne.id}:`)).length,ie=ne.scripts.length+(ne.packageScriptCount||0),ue=Object.entries(n).filter(([de])=>de.startsWith(`${ne.id}:`)).reduce((de,[,se])=>de+(se||0),0);return z.jsxs(dn,{size:8,children:[z.jsx(fi,{status:Q?"success":"default",text:`${Q} / ${ie} running`}),ue>0&&z.jsx(fi,{count:ue,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(le,ne)=>{const Q=[...t].filter(ue=>ue.startsWith(`${ne.id}:`)),ie=Q.length>0;return z.jsx(Pt,{size:"small",type:ie?"default":"primary",danger:ie,icon:ie?z.jsx(Cv,{}):z.jsx(yy,{}),onClick:ue=>{ue.stopPropagation(),ie?K(ne,Q.map(de=>de.slice(`${ne.id}:`.length))):k(ne)},children:ie?"Stop":"Start"})}}];return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"page-header",children:[z.jsxs("div",{children:[z.jsx(H0,{type:"secondary",children:"SERVICES"}),z.jsx(gae,{level:2,children:"Launcher"}),z.jsx(pae,{type:"secondary",children:"Manage and run local project scripts."})]}),z.jsxs(dn,{children:[z.jsx(Pt,{onClick:()=>y(!0),children:"Quick Launch"}),z.jsx(Pt,{type:"primary",icon:z.jsx(Lo,{}),onClick:()=>A(),children:"Add service"})]})]}),a?z.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:z.jsx(hi,{size:"large"})}):e.length?z.jsxs(z.Fragment,{children:[d.length>0&&z.jsx("div",{className:"quick-launch-bar",style:{marginBottom:20,padding:"12px 16px",background:"#fff",borderRadius:8,border:"1px solid #e4e8f1",boxShadow:"0 2px 8px rgba(31, 42, 68, 0.03)"},children:z.jsxs(dn,{wrap:!0,size:"middle",children:[z.jsx("span",{style:{fontSize:11,color:"#727b94",fontWeight:750,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Quick Launch:"}),d.map(le=>{const ne=le.items.every(Q=>t.has(`${Q.launcherId}:${Q.scriptId}`));return z.jsxs(Pt,{type:ne?"default":"primary",danger:ne,icon:ne?z.jsx(Cv,{}):z.jsx(yy,{}),onClick:()=>ne?ee(le):X(le),children:[ne?"Stop":"Start"," ",le.name]},le.id)})]})}),z.jsx(ss,{activeKey:c,onChange:u,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...B.map(le=>({key:le,label:`${le} (${e.filter(ne=>ne.groupName===le).length})`}))]}),H.length?z.jsx(ha,{className:"launcher-table",rowKey:"id",dataSource:H,columns:oe,pagination:!1,onRow:le=>({onClick:()=>A(le)})}):z.jsx(cr,{description:"No services in this group."})]}):z.jsx(cr,{description:"No services yet",children:z.jsx(Pt,{type:"primary",onClick:()=>A(),children:"Add service"})}),z.jsx(dae,{open:$,editing:E,groups:B,running:t,errorCounts:n,onCancel:()=>w(!1),onSave:F,onRun:L,onRunInstall:W,onRunPackage:G,onStop:U,onLogs:V,onDelete:D}),z.jsx(ea,{title:"Quick Launch",open:p,onCancel:()=>y(!1),footer:null,width:760,destroyOnClose:!0,children:z.jsx(lae,{tasks:d,running:t,onCreate:()=>q(),onEdit:q,onStart:X,onStop:ee,onRemove:te})}),z.jsx(mae,{open:C,editingGroupTask:b,groupCatalog:v,onCancel:()=>S(!1),onSave:Z}),z.jsx(vae,{open:N,logTarget:M,onCancel:()=>I(!1)})]})}const{Title:bae,Text:zo,Paragraph:yae}=Wr;function Cae({refreshLaunchers:e}){const[t,n]=l.useState([]),[r,a]=l.useState(!1),[i,c]=l.useState(null),[u,d]=l.useState(!1),[f,v]=l.useState(!1),[g,p]=l.useState(null),y=async()=>{a(!0);try{n((await L0.list()).ports)}catch(x){Xr.error(x.message)}finally{a(!1)}};l.useEffect(()=>{y()},[]);const C=async()=>{if(i){d(!0);try{const x=(await L0.get(i)).process;p(x),v(!0)}catch(x){Xr.error(x.message)}finally{d(!1)}}},S=async({port:x,pid:$})=>{try{await L0.kill(x,$),Xr.success(`Process on port ${x} was killed.`),await y(),e&&await e()}catch(w){Xr.error(w.message)}},b=[{title:"Port",dataIndex:"port",width:100,render:x=>z.jsx(zo,{code:!0,children:x})},{title:"Last used",dataIndex:"launcher",render:(x,$)=>z.jsxs(dn,{direction:"vertical",size:0,children:[z.jsx(zo,{strong:!0,children:x}),z.jsx(zo,{type:"secondary",children:$.script})]})},{title:"Process",dataIndex:"command",render:(x,$)=>z.jsxs(dn,{direction:"vertical",size:0,children:[z.jsx(zo,{code:!0,children:$.currentCommand||x}),z.jsxs(zo,{type:"secondary",children:["PID ",$.currentPid||$.pid]})]})},{title:"Status",width:170,render:(x,$)=>$.ghost?z.jsx(Yn,{color:"error",children:"Ghost process"}):$.listening?z.jsx(Yn,{color:"success",children:"Script running"}):$.reused?z.jsx(Yn,{color:"warning",children:"Port reused"}):z.jsx(Yn,{children:"Port released"})},{title:"Action",width:100,render:(x,$)=>$.listening||$.reused?z.jsx(vi,{title:`Kill process on port ${$.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>S({port:$.port,pid:$.currentPid}),children:z.jsx(Pt,{danger:!0,icon:z.jsx(Ha,{}),children:"Kill"})}):z.jsx(Pt,{disabled:!0,icon:z.jsx(Ha,{}),children:"Kill"})}];return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"page-header",children:[z.jsxs("div",{children:[z.jsx(zo,{type:"secondary",children:"DIAGNOSTICS"}),z.jsx(bae,{level:2,children:"Port Diagnostic"}),z.jsx(yae,{type:"secondary",children:"Every port observed while a recent Launcher script was running. Ghost processes still listen after their script has stopped."})]}),z.jsx(Pt,{icon:z.jsx(Sd,{}),onClick:y,loading:r,children:"Refresh"})]}),z.jsxs(Xn,{className:"port-manual-query",size:"small",children:[z.jsxs(dn,{wrap:!0,children:[z.jsx(zo,{strong:!0,children:"Query port"}),z.jsx(mv,{min:1,max:65535,controls:!1,value:i,onChange:c,onPressEnter:C,placeholder:"e.g. 3000"}),z.jsx(Pt,{type:"primary",onClick:C,loading:u,disabled:!i,children:"Query"})]}),f&&z.jsx("div",{className:"port-query-result",children:g?z.jsxs(dn,{wrap:!0,children:[z.jsx(Yn,{color:"success",children:"Listening"}),z.jsxs(zo,{code:!0,children:["PID ",g.pid]}),z.jsx(zo,{code:!0,children:g.command}),z.jsx(vi,{title:`Kill process on port ${g.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>S(g),children:z.jsx(Pt,{danger:!0,icon:z.jsx(Ha,{}),children:"Kill"})})]}):z.jsxs(zo,{type:"secondary",children:["No process is listening on port ",i,"."]})})]}),z.jsx(ha,{className:"port-diagnostic-table",rowKey:x=>`${x.startedAt}-${x.port}-${x.pid}`,loading:r,dataSource:t,columns:b,pagination:!1,locale:{emptyText:z.jsx(cr,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:F0,Paragraph:iR,Text:mo}=Wr,V0=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}];function Sae(){const[e]=mn.useForm(),[t,n]=l.useState({}),[r,a]=l.useState(!1),[i,c]=l.useState(!1);l.useEffect(()=>{Ea.status().then(v=>{n(v),e.setFieldsValue({domain:v.domain,jiraIssuePrefix:v.jiraIssuePrefix||"",defaultEditor:v.defaultEditor||"vscode",defaultBrowser:v.defaultBrowser||"chrome"})}).catch(v=>Xr.error(v.message))},[e]);const u=v=>t[`${v}TokenConfigured`],d=async()=>{try{await e.validateFields(["domain"]),a(!0);const v=e.getFieldsValue();if(v.domain!=null){const g=await Ea.saveDomain(v.domain);n(p=>({...p,...g})),e.setFieldValue("domain",g.domain)}if(v.jiraIssuePrefix!=null){const g=await Ea.saveJiraIssuePrefix(v.jiraIssuePrefix);n(p=>({...p,...g})),e.setFieldValue("jiraIssuePrefix",g.jiraIssuePrefix)}if(v.defaultEditor!=null){const g=await Ea.saveDefaultEditor(v.defaultEditor);n(p=>({...p,...g})),e.setFieldValue("defaultEditor",g.defaultEditor)}if(v.defaultBrowser!=null){const g=await Ea.saveDefaultBrowser(v.defaultBrowser);n(p=>({...p,...g})),e.setFieldValue("defaultBrowser",g.defaultBrowser)}for(const{id:g}of V0)if(v[g]){const p=await Ea.saveAccessToken(g,v[g]);n(y=>({...y,...p})),e.resetFields([g])}a(!1),c(!0),setTimeout(()=>c(!1),1500)}catch(v){a(!1),v!=null&&v.errorFields||Xr.error(v.message)}},f=async v=>{try{const g=await Ea.saveAccessToken(v,"");n(g),e.resetFields([v]),Xr.success(`${V0.find(p=>p.id===v).label} Access Token removed.`)}catch(g){Xr.error(g.message)}};return z.jsxs("div",{className:"settings-page",children:[z.jsx(mo,{type:"secondary",children:"SETTINGS"}),z.jsxs("div",{className:"settings-page-header",children:[z.jsx(F0,{level:2,children:"Settings"}),z.jsx(Pt,{type:"primary",color:i?"green":"primary",variant:"solid",icon:i?z.jsx(Mc,{}):null,loading:!i&&r,onClick:d,children:i?"Saved":"Save"})]}),z.jsxs(mn,{form:e,layout:"vertical",children:[z.jsxs(Xn,{className:"settings-card",style:{marginBottom:20},children:[z.jsxs("div",{className:"settings-title",children:[z.jsx("div",{className:"settings-icon-wrap",children:z.jsx(Zne,{className:"settings-icon"})}),z.jsxs("div",{children:[z.jsx(F0,{level:4,children:"Default Applications"}),z.jsx(iR,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),z.jsxs("div",{className:"token-settings-form",children:[z.jsxs("div",{className:"token-row",children:[z.jsxs("div",{className:"token-row-info",children:[z.jsx(mo,{strong:!0,className:"token-row-name",children:"Default Editor"}),z.jsx(mo,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),z.jsx(mn.Item,{name:"defaultEditor",children:z.jsx(Ir,{options:qT,style:{width:220}})})]}),z.jsxs("div",{className:"token-row",children:[z.jsxs("div",{className:"token-row-info",children:[z.jsx(mo,{strong:!0,className:"token-row-name",children:"Default Browser"}),z.jsx(mo,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),z.jsx(mn.Item,{name:"defaultBrowser",style:{marginBottom:0},children:z.jsx(Ir,{options:nae,style:{width:220}})})]})]})]}),z.jsxs(Xn,{className:"settings-card",children:[z.jsxs("div",{className:"settings-title",children:[z.jsx("div",{className:"settings-icon-wrap",children:z.jsx($re,{className:"settings-icon"})}),z.jsxs("div",{children:[z.jsx(F0,{level:4,children:"Access Tokens & Domain"}),z.jsx(iR,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),z.jsxs("div",{className:"token-settings-form",children:[z.jsxs("div",{className:"token-row",children:[z.jsxs("div",{className:"token-row-info",children:[z.jsx(mo,{strong:!0,className:"token-row-name",children:"Domain"}),z.jsx(mo,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),z.jsx(mn.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:z.jsx(gr,{placeholder:"abc.com",allowClear:!0})})]}),z.jsxs("div",{className:"token-row",children:[z.jsxs("div",{className:"token-row-info",children:[z.jsx(mo,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),z.jsx(mo,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),z.jsx(mn.Item,{name:"jiraIssuePrefix",children:z.jsx(gr,{placeholder:"PROJ",allowClear:!0})})]}),V0.map(({id:v,label:g})=>z.jsxs("div",{className:`token-row ${u(v)?"is-configured":""}`,children:[z.jsxs("div",{className:"token-row-info",children:[z.jsxs("div",{className:"token-row-name-line",children:[z.jsx(mo,{strong:!0,className:"token-row-name",children:g}),u(v)&&z.jsx(Yn,{color:"success",closable:!0,onClose:p=>{p.preventDefault(),f(v)},className:"token-row-tag",children:"Configured"})]}),z.jsxs(mo,{type:"secondary",className:"token-row-hint",children:[g," API access token"]})]}),z.jsx(mn.Item,{name:v,children:z.jsx(gr.Password,{placeholder:u(v)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},v))]})]})]})]})}const{Title:lR,Text:wa,Paragraph:xae}=Wr,{Dragger:$ae}=rS,sR=(e=0)=>{if(!e)return"0 B";const t=["B","KB","MB","GB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n?1:0)} ${t[n]}`},wae=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function Eae(){const[e,t]=l.useState(null),[n,r]=l.useState(null),[a,i]=l.useState(75),[c,u]=l.useState(!0),[d,f]=l.useState(!0),[v,g]=l.useState(!0),[p,y]=l.useState(2),[C,S]=l.useState(!1),[b,x]=l.useState(null),[$,w]=l.useState(100),[E,O]=l.useState(!1),[N,I]=l.useState(!1),[M,T]=Xr.useMessage(),j=l.useRef(null),_=l.useRef(null),B=V=>{var k;(k=V.current)!=null&&k.url&&URL.revokeObjectURL(V.current.url)},H=V=>{var U;if(!((U=V==null?void 0:V.type)!=null&&U.startsWith("image/")))return M.error("Please choose an image file."),!1;B(j),B(_);const k=wae(V);return j.current=k,_.current=null,t(k),r(null),L(V),!1},A=V=>{var k;return[...((k=V.dataTransfer)==null?void 0:k.types)||[]].includes("Files")},F=V=>{var U;V.preventDefault(),I(!1);const k=[...((U=V.dataTransfer)==null?void 0:U.files)||[]].find(K=>K.type.startsWith("image/"));k?H(k):M.error("Drop an image file to compress it.")};l.useEffect(()=>()=>{B(j),B(_)},[]),l.useEffect(()=>{const V=k=>{var q;const U=[...((q=k.clipboardData)==null?void 0:q.items)||[]].find(Z=>Z.type.startsWith("image/"));if(!U)return;k.preventDefault();const K=U.getAsFile();K&&(H(new File([K],`clipboard-${Date.now()}.${K.type.split("/")[1]||"png"}`,{type:K.type})),M.success("Image read from clipboard."))};return window.addEventListener("paste",V),()=>window.removeEventListener("paste",V)},[M]);const D=async()=>{var V;try{if(!((V=navigator.clipboard)!=null&&V.read))throw new Error("Direct clipboard reading is unavailable. Paste an image with ⌘ / Ctrl + V instead.");const k=await navigator.clipboard.read();for(const U of k){const K=U.types.find(q=>q.startsWith("image/"));if(K){const q=await U.getType(K);H(new File([q],`clipboard-${Date.now()}.${K.split("/")[1]||"png"}`,{type:K})),M.success("Image read from clipboard.");return}}throw new Error("No image was found in the clipboard.")}catch(k){M.warning(k.message||"Unable to read an image from the clipboard.")}},L=async(V=e==null?void 0:e.file)=>{if(V){O(!0);try{const[{encode:k},{imageData:U,width:K,height:q}]=await Promise.all([KT(()=>import("./index-Dty-56mC.js"),[]),UT(V,b,$)]),Z=await k(U,{quality:a,progressive:c,optimize_coding:d,auto_subsample:v,chroma_subsample:p,trellis_multipass:C});B(_);const X=new Blob([Z],{type:"image/jpeg"}),ee={url:URL.createObjectURL(X),size:X.size,width:K,height:q};_.current=ee,r(ee),M.success("MozJPEG compression complete.")}catch(k){M.error(k.message||"Image compression failed.")}finally{O(!1)}}},W=()=>{if(!n)return;const V=e.name.replace(/\.[^.]+$/,"")||"image",k=document.createElement("a");k.href=n.url,k.download=`${V}-mozjpeg.jpg`,k.click()},G=n&&e?Math.round((1-n.size/e.size)*100):null;return z.jsxs(z.Fragment,{children:[T,z.jsxs("div",{className:`squoosh-page ${N?"is-file-dragging":""}`,onDragOver:V=>{A(V)&&(V.preventDefault(),I(!0))},onDragLeave:V=>{V.currentTarget===V.target&&I(!1)},onDrop:F,children:[z.jsxs("header",{className:"squoosh-header",children:[z.jsxs("div",{children:[z.jsx(wa,{children:"MOZJPEG WORKBENCH"}),z.jsx(lR,{level:2,children:"Image compression"})]}),z.jsxs(dn,{children:[z.jsx(Pt,{icon:z.jsx(Jl,{}),onClick:D,children:"Read clipboard"}),z.jsx(Pt,{type:"primary",icon:z.jsx(by,{}),onClick:()=>L(),disabled:!e,loading:E,children:"Compress"})]})]}),z.jsxs("main",{className:"squoosh-studio",children:[z.jsxs("section",{className:"squoosh-preview-area",children:[z.jsx(cR,{title:"Original",detail:e?`${sR(e.size)} · ${e.name}`:"Choose an image to begin",children:e?z.jsx(uR,{label:"Original image",image:e.url}):z.jsxs($ae,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:H,className:"image-dropzone",children:[z.jsx("p",{className:"ant-upload-drag-icon",children:z.jsx(aS,{})}),z.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),z.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),z.jsx(cR,{title:"MozJPEG output",detail:n?`${sR(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&z.jsx(Pt,{type:"primary",size:"small",icon:z.jsx(LT,{}),onClick:W,children:"Download"}),children:E?z.jsx("div",{className:"image-loading",children:z.jsx(hi,{tip:"Compressing…"})}):n?z.jsxs(z.Fragment,{children:[z.jsx(uR,{label:"Compressed JPEG",image:n.url}),G!==null&&z.jsx("div",{className:`compression-saving ${G>0?"is-saving":""}`,children:G>0?`${G}% smaller`:"No size reduction at current settings."})]}):z.jsx(cr,{image:cr.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),z.jsxs("aside",{className:"squoosh-settings",children:[z.jsxs("div",{className:"settings-heading",children:[z.jsx(wa,{children:"ENCODER"}),z.jsx(lR,{level:4,children:"MozJPEG"}),z.jsx(xae,{children:"Fine-tune output size and image quality."})]}),z.jsxs("div",{className:"option-row",children:[z.jsxs("div",{children:[z.jsx(wa,{strong:!0,children:"Quality"}),z.jsx("br",{}),z.jsx(wa,{type:"secondary",children:"Higher values preserve more detail."})]}),z.jsx(Yn,{color:"blue",children:a})]}),z.jsx(Uq,{min:1,max:100,value:a,onChange:i,tooltip:{formatter:V=>`${V}`}}),z.jsxs("div",{className:"option-select",children:[z.jsxs("div",{children:[z.jsx(wa,{strong:!0,children:"Long edge"}),z.jsx("br",{}),z.jsx(wa,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),z.jsx(mv,{min:1,max:16384,value:b,onChange:x,placeholder:"Original",addonAfter:"px"})]}),z.jsxs("div",{className:"option-select",children:[z.jsxs("div",{children:[z.jsx(wa,{strong:!0,children:"Scale"}),z.jsx("br",{}),z.jsx(wa,{type:"secondary",children:"Scale the image by percentage."})]}),z.jsx(mv,{min:1,max:100,value:$,onChange:w,placeholder:"100",addonAfter:"%",allowClear:!0})]}),z.jsx($m,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:c,onChange:u}),z.jsx($m,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:d,onChange:f}),z.jsx(nv,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:z.jsxs(z.Fragment,{children:[z.jsx($m,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:g}),z.jsxs("div",{className:"option-select",children:[z.jsxs("div",{children:[z.jsx(wa,{strong:!0,children:"Chroma subsampling"}),z.jsx("br",{}),z.jsx(wa,{type:"secondary",children:"Enabled when automatic mode is off."})]}),z.jsx(Ir,{disabled:v,value:p,onChange:y,options:[{value:0,label:"4:4:4 (colour detail)"},{value:1,label:"4:2:2 (balanced)"},{value:2,label:"4:2:0 (smaller file)"}]})]}),z.jsx($m,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:C,onChange:S})]})}]}),z.jsx(Pt,{type:"primary",size:"large",block:!0,icon:z.jsx(by,{}),onClick:()=>L(),disabled:!e,loading:E,children:"Compress image"})]})]})]})]})}function cR({title:e,detail:t,action:n,children:r}){return z.jsxs("section",{className:"preview-pane",children:[z.jsxs("header",{children:[z.jsxs("div",{children:[z.jsx(wa,{children:e}),z.jsx("span",{children:t})]}),n]}),z.jsx("div",{className:"preview-canvas",children:r})]})}function $m({label:e,description:t,checked:n,onChange:r}){return z.jsxs("div",{className:"option-switch",children:[z.jsxs("div",{children:[z.jsx(wa,{strong:!0,children:e}),z.jsx("br",{}),z.jsx(wa,{type:"secondary",children:t})]}),z.jsx(yg,{checked:n,onChange:r})]})}function uR({label:e,image:t,metadata:n}){return z.jsxs("div",{className:"image-panel",children:[z.jsx("img",{src:t,alt:e}),n&&z.jsx("div",{className:"image-panel-meta",children:z.jsx(wa,{type:"secondary",children:n})})]})}const{Title:Oae,Text:Gr,Paragraph:dR}=Wr;function Rae({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?z.jsx(cr,{description:"No open pull requests found.",style:{padding:"24px 0"}}):z.jsx("div",{style:{display:"grid",gap:"12px"},children:e.map(a=>{var d,f,v,g,p,y,C,S,b;const i=a.reviewUrl||"",c=a.reviewUrl||a.id,u=t.includes(c);return z.jsx(Xn,{size:"small",hoverable:!0,style:{borderColor:u?"#1677ff":"#e3e6ef",backgroundColor:u?"#f0f5ff":"#ffffff",transition:"all 0.2s"},onClick:()=>i&&r(i),children:z.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[z.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"12px"},children:[z.jsx(ka,{checked:u,onChange:x=>{x.stopPropagation(),n(c)},onClick:x=>x.stopPropagation()}),z.jsxs("div",{style:{flex:1,minWidth:0},children:[z.jsxs(dn,{size:8,wrap:!0,children:[z.jsxs(Gr,{strong:!0,style:{fontSize:"14px"},children:["#",a.id," ",a.title]}),a.draft&&z.jsx(Yn,{color:"gold",children:"Draft"})]}),z.jsxs("div",{style:{marginTop:"6px",fontSize:"12px",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px",color:"#727b94"},children:[z.jsxs(Gr,{type:"secondary",style:{fontWeight:500},children:[(v=(f=(d=a.fromRef)==null?void 0:d.repository)==null?void 0:f.project)==null?void 0:v.key," / ",(p=(g=a.fromRef)==null?void 0:g.repository)==null?void 0:p.slug]}),z.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),z.jsx(Yn,{size:"small",color:"cyan",style:{margin:0},children:(y=a.fromRef)==null?void 0:y.displayId}),z.jsx(Kne,{style:{fontSize:"10px",color:"#8c8c8c"}}),z.jsx(Yn,{size:"small",color:"blue",style:{margin:0},children:(C=a.toRef)==null?void 0:C.displayId}),z.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),z.jsxs("span",{children:["Author: ",z.jsx("strong",{children:(b=(S=a.author)==null?void 0:S.user)==null?void 0:b.displayName})]}),z.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),z.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),z.jsxs(dn,{size:8,children:[z.jsx(Pt,{size:"small",icon:z.jsx(WT,{}),onClick:x=>{x.stopPropagation(),i&&Co(i)},children:"Open"}),z.jsx(Pt,{type:"primary",size:"small",onClick:x=>{x.stopPropagation(),i&&r(i)},children:"Review"})]})]})},c)})})}function Iae(){const[e]=mn.useForm(),[t,n]=l.useState(!1),[r,a]=l.useState(!0),[i,c]=l.useState(null),[u,d]=l.useState(!1),[f,v]=l.useState([]),[g,p]=l.useState([]),[y,C]=l.useState(!1),[S,b]=l.useState("review"),[x,$]=l.useState([]),[w,E]=l.useState(!1),[O,N]=l.useState(null),[I,M]=l.useState(""),[T,j]=l.useState(!1),[_,B]=l.useState(new Set),H=async()=>{C(!0);try{const[X,ee]=await Promise.all([Sm.myPrs().catch(()=>({values:[]})),Sm.reviewPrs().catch(()=>({values:[]}))]);v((X==null?void 0:X.values)||[]),p((ee==null?void 0:ee.values)||[])}catch{}C(!1)};l.useEffect(()=>{Ea.status().then(X=>{a(X.bitbucketTokenConfigured),X.bitbucketTokenConfigured&&H()}).catch(()=>{})},[]);const A=S==="review"?g:f,F=X=>{b(X),$([])},D=X=>{$(ee=>ee.includes(X)?ee.filter(te=>te!==X):[...ee,X])},L=X=>{if(X.target.checked){const ee=A.map(te=>te.reviewUrl||te.id);$(ee)}else $([])},W=()=>{const ee=A.filter(oe=>x.includes(oe.reviewUrl||oe.id)).map(oe=>oe.reviewUrl).filter(Boolean);if(ee.length===0){Xr.warning("No PR URLs selected");return}const te=ee.join(`
|
|
498
|
+
`);navigator.clipboard.writeText(te),Xr.success(`Copied ${ee.length} PR URL(s) to clipboard`)},G=A.length>0&&A.every(X=>x.includes(X.reviewUrl||X.id)),V=x.length>0&&!G,k=async X=>{const ee=typeof X=="string"?X:X.prLink;if(ee){n(!0),c(null),e.setFieldsValue({prLink:ee});try{const te=await Sm.check(ee.trim());c(te),B(new Set),Xr.success("PR Review completed successfully.")}catch(te){Xr.error(te.message)}finally{n(!1)}}},U=(X,ee)=>{const te=`${X}:${ee.line}:${ee.rule}`,oe=`⚠️ [${ee.severity.toUpperCase()}] ${ee.rule}: ${ee.message}
|
|
499
|
+
\`\`\`javascript
|
|
500
|
+
${ee.code.trim()}
|
|
501
|
+
\`\`\``;N({filePath:X,issue:ee,issueKey:te}),M(oe),E(!0)},K=async()=>{if(!(!O||!I.trim()||!i)){j(!0);try{const X=await Sm.comment({projectKey:i.pr.projectKey,repositorySlug:i.pr.repositorySlug,pullRequestId:i.pr.pullRequestId,filePath:O.filePath,line:O.issue.line,commentText:I.trim()});Xr.success(X.message||"Comment posted to PR successfully."),B(ee=>new Set([...ee,O.issueKey])),E(!1)}catch(X){Xr.error(X.message||"Failed to post comment.")}finally{j(!1)}}},q=()=>{if(!i)return;const{pr:X,stats:ee,files:te}=i;let oe=`## 🔍 PR Review Report: ${X.title}
|
|
502
|
+
`;if(oe+=`* **Author:** ${X.author}
|
|
503
|
+
`,oe+=`* **Branch:** \`${X.sourceBranch}\` ➔ \`${X.targetBranch}\`
|
|
504
|
+
|
|
505
|
+
`,oe+=`### 📊 Summary
|
|
506
|
+
`,oe+=`* **Total Files Changed:** ${ee.totalFilesChanged}
|
|
507
|
+
`,oe+=`* **Filtered Files (Ignored):** ${ee.filteredCount}
|
|
508
|
+
`,oe+=`* **Reviewed Files:** ${ee.reviewedCount}
|
|
509
|
+
`,oe+=`* **Total Issues Found:** ${ee.totalIssues} (Critical: ${ee.criticalCount}, Warnings: ${ee.warningCount}, Suggestions: ${ee.infoCount})
|
|
510
|
+
|
|
511
|
+
`,te.length===0)oe+=`✅ **LGTM!** No code style or quality issues detected in the reviewed files.
|
|
512
|
+
`;else{oe+=`### ⚠️ Findings
|
|
513
|
+
`;for(const le of te){oe+=`#### 📄 File: \`${le.filePath}\` (${le.issues.length} issues)
|
|
514
|
+
`;for(const ne of le.issues){const Q=ne.severity==="critical"?"🔴 [Critical]":ne.severity==="warning"?"🟡 [Warning]":"🔵 [Suggestion]";oe+=`- **${Q}** line ${ne.line}: *${ne.rule}* - ${ne.message}
|
|
515
|
+
`,oe+=` \`\`\`javascript
|
|
516
|
+
${ne.code.trim()}
|
|
517
|
+
\`\`\`
|
|
518
|
+
`}oe+=`
|
|
519
|
+
`}}navigator.clipboard.writeText(oe),d(!0),Xr.success("Markdown report copied to clipboard."),setTimeout(()=>d(!1),2e3)},Z=X=>X==="critical"?z.jsx(Yn,{color:"error",icon:z.jsx(ore,{}),children:"Critical"}):X==="warning"?z.jsx(Yn,{color:"warning",icon:z.jsx(Xre,{}),children:"Warning"}):z.jsx(Yn,{color:"processing",icon:z.jsx(Cre,{}),children:"Suggestion"});return z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"page-header",children:z.jsxs("div",{children:[z.jsx(Gr,{type:"secondary",children:"CODE QUALITY"}),z.jsx(Oae,{level:2,children:"PR Review"}),z.jsx(dR,{type:"secondary",children:"Analyze pull requests on Bitbucket for quality issues, leaks, and debug flags."})]})}),!r&&z.jsx(DI,{className:"service-config",message:"Bitbucket Token Required",description:z.jsxs("span",{children:["Please configure your ",z.jsx("strong",{children:"Bitbucket Access Token"})," in the ",z.jsx("a",{href:"#/settings",children:"Settings"})," page to review internal PRs."]}),type:"warning",showIcon:!0,closable:!1}),z.jsx(Xn,{className:"service-config",children:z.jsx(mn,{form:e,layout:"vertical",onFinish:k,children:z.jsx(mn.Item,{name:"prLink",label:"Pull Request URL",rules:[{required:!0,message:"Please enter a Bitbucket Pull Request link."},{type:"url",message:"Please enter a valid URL."}],children:z.jsx(gr,{placeholder:"https://bitbucket.xxx.com/projects/PROJ/repos/repo/pull-requests/123",disabled:t,allowClear:!0,addonAfter:z.jsxs(dn,{size:8,children:[z.jsx(Pt,{type:"link",size:"small",onClick:()=>e.submit(),disabled:t,style:{padding:0,height:"auto"},children:"Review"}),z.jsx(y3,{type:"vertical",style:{margin:"0 2px"}}),z.jsx(Pt,{type:"link",size:"small",icon:z.jsx(WT,{}),onClick:()=>{const X=e.getFieldValue("prLink");X&&X.trim()?Co(X.trim()):Xr.warning("Please enter a Pull Request URL first.")},disabled:t,style:{padding:0,height:"auto"},children:"Open"})]})})})})}),t&&z.jsx(Xn,{style:{textAlign:"center",padding:"40px 0"},children:z.jsxs(dn,{direction:"vertical",size:"middle",children:[z.jsx($o,{style:{fontSize:32,color:"#6d5ce7"},spin:!0}),z.jsx(Gr,{type:"secondary",children:"Fetching diffs and reviewing code changes..."})]})}),!i&&!t&&r&&z.jsxs(Xn,{tabList:[{key:"review",tab:`Waiting for my Review (${g.length})`},{key:"mine",tab:`Authored by Me (${f.length})`}],activeTabKey:S,onTabChange:F,loading:y,style:{borderColor:"#e3e6ef",marginTop:16},children:[A.length>0&&z.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,paddingBottom:12,borderBottom:"1px solid #f0f0f0"},children:[z.jsxs(dn,{size:12,children:[z.jsxs(ka,{checked:G,indeterminate:V,onChange:L,children:["Select All (",A.length,")"]}),x.length>0&&z.jsxs(Gr,{type:"secondary",style:{fontSize:"13px"},children:[x.length," selected"]})]}),z.jsxs(Pt,{icon:z.jsx(Jl,{}),disabled:x.length===0,onClick:W,children:["Copy Selected URLs ",x.length>0?`(${x.length})`:""]})]}),z.jsx(Rae,{prs:A,selectedPrKeys:x,onToggleSelectPr:D,onSelectPr:k})]}),i&&z.jsxs(dn,{direction:"vertical",size:"large",style:{width:"100%",paddingBottom:24},children:[z.jsx("div",{children:z.jsx(Pt,{onClick:()=>c(null),children:"← Back to PR list"})}),z.jsx(Xn,{title:z.jsxs(dn,{children:[z.jsx(FT,{}),z.jsx("span",{children:i.pr.title})]}),extra:z.jsx(Pt,{icon:z.jsx(Jl,{}),onClick:q,children:u?"Copied":"Copy Report"}),children:z.jsxs(dv,{gutter:[16,16],children:[z.jsx(va,{xs:24,sm:12,md:6,children:z.jsxs(dn,{direction:"vertical",size:2,children:[z.jsx(Gr,{type:"secondary",style:{fontSize:12},children:"Author"}),z.jsx(Gr,{strong:!0,children:i.pr.author})]})}),z.jsx(va,{xs:24,sm:12,md:6,children:z.jsxs(dn,{direction:"vertical",size:2,children:[z.jsx(Gr,{type:"secondary",style:{fontSize:12},children:"Repository"}),z.jsx(Gr,{strong:!0,children:i.pr.repositorySlug})]})}),z.jsx(va,{xs:24,sm:12,md:6,children:z.jsxs(dn,{direction:"vertical",size:2,children:[z.jsx(Gr,{type:"secondary",style:{fontSize:12},children:"Source Branch"}),z.jsx(Yn,{color:"cyan",style:{margin:0},children:i.pr.sourceBranch})]})}),z.jsx(va,{xs:24,sm:12,md:6,children:z.jsxs(dn,{direction:"vertical",size:2,children:[z.jsx(Gr,{type:"secondary",style:{fontSize:12},children:"Target Branch"}),z.jsx(Yn,{color:"blue",style:{margin:0},children:i.pr.targetBranch})]})})]})}),z.jsxs(dv,{gutter:[16,16],children:[z.jsx(va,{xs:12,md:6,children:z.jsx(Xn,{size:"small",style:{textAlign:"center"},children:z.jsx(Fl,{title:"Total Changed",value:i.stats.totalFilesChanged})})}),z.jsx(va,{xs:12,md:6,children:z.jsx(Xn,{size:"small",style:{textAlign:"center"},children:z.jsx(Fl,{title:"Filtered (Ignored)",value:i.stats.filteredCount,valueStyle:{color:"#8c8c8c"}})})}),z.jsx(va,{xs:12,md:6,children:z.jsx(Xn,{size:"small",style:{textAlign:"center"},children:z.jsx(Fl,{title:"Reviewed Files",value:i.stats.reviewedCount,valueStyle:{color:"#6d5ce7"}})})}),z.jsx(va,{xs:12,md:6,children:z.jsx(Xn,{size:"small",style:{textAlign:"center"},children:z.jsx(Fl,{title:"Total Issues",value:i.stats.totalIssues,valueStyle:{color:i.stats.totalIssues>0?"#ff4d4f":"#52c41a"}})})})]}),z.jsx(Xn,{title:"Review Findings",children:i.files.length===0?z.jsx(cr,{image:cr.PRESENTED_IMAGE_SIMPLE,description:z.jsxs(dn,{direction:"vertical",size:"small",children:[z.jsxs(Gr,{strong:!0,style:{color:"#52c41a",fontSize:"16px"},children:[z.jsx(hy,{})," LGTM! No issues found."]}),z.jsxs(Gr,{type:"secondary",children:["Review completed on ",i.stats.reviewedCount," files (filtered out ",i.stats.filteredCount," build/test configs)."]})]})}):z.jsx(nv,{defaultActiveKey:i.files.map(X=>X.filePath),expandIconPosition:"end",children:i.files.map(X=>{const ee=X.issues.filter(ne=>ne.severity==="critical").length,te=X.issues.filter(ne=>ne.severity==="warning").length,oe=X.issues.filter(ne=>ne.severity==="info").length,le=z.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"92%",flexWrap:"wrap",gap:"8px"},children:[z.jsx(Gr,{strong:!0,children:X.filePath}),z.jsxs(dn,{children:[ee>0&&z.jsx(fi,{count:ee,style:{backgroundColor:"#ff4d4f"},title:"Critical Issues"}),te>0&&z.jsx(fi,{count:te,style:{backgroundColor:"#faad14"},title:"Warnings"}),oe>0&&z.jsx(fi,{count:oe,style:{backgroundColor:"#1890ff"},title:"Suggestions"})]})]});return z.jsx(nv.Panel,{header:le,children:z.jsx(ha,{dataSource:X.issues.map((ne,Q)=>({...ne,key:Q})),pagination:!1,size:"small",columns:[{title:"Severity",dataIndex:"severity",width:110,render:ne=>Z(ne)},{title:"Line",dataIndex:"line",width:80,render:ne=>z.jsxs(Gr,{code:!0,children:["L",ne]})},{title:"Issue Description",dataIndex:"message",render:(ne,Q)=>z.jsxs(dn,{direction:"vertical",size:2,style:{width:"100%"},children:[z.jsx(Gr,{strong:!0,children:Q.rule}),z.jsx(Gr,{type:"secondary",children:ne}),z.jsx("pre",{style:{margin:"4px 0 0",padding:"6px 10px",background:"#f5f5f5",borderRadius:"4px",fontSize:"12px",overflowX:"auto"},children:z.jsx("code",{children:Q.code})})]})},{title:"Action",key:"action",width:120,align:"center",render:(ne,Q)=>{const ie=`${X.filePath}:${Q.line}:${Q.rule}`;return _.has(ie)?z.jsx(Yn,{color:"green",icon:z.jsx(hy,{}),children:"Commented"}):z.jsx(Pt,{size:"small",icon:z.jsx(nR,{}),onClick:()=>U(X.filePath,Q),children:"Comment"})}}]})},X.filePath)})})}),i.filteredOut.length>0&&z.jsx(Xn,{title:`Ignored Files (${i.filteredOut.length})`,size:"small",children:z.jsx("div",{style:{maxHeight:200,overflowY:"auto"},children:z.jsx(dn,{size:[4,8],wrap:!0,children:i.filteredOut.map(X=>z.jsx(Yn,{style:{color:"#8c8c8c"},children:X},X))})})}),z.jsx(ea,{title:z.jsxs(dn,{children:[z.jsx(nR,{}),z.jsx("span",{children:"Post Comment to Bitbucket PR"})]}),open:w,onCancel:()=>!T&&E(!1),onOk:K,okText:"Submit Comment",cancelText:"Cancel",confirmLoading:T,okButtonProps:{icon:z.jsx(_re,{})},width:600,children:O&&z.jsxs("div",{style:{marginTop:12},children:[z.jsxs(dR,{type:"secondary",style:{marginBottom:12,fontSize:13},children:["File: ",z.jsx(Gr,{code:!0,children:O.filePath})," (Line ",O.issue.line,")"]}),z.jsx(gr.TextArea,{rows:6,value:I,onChange:X=>M(X.target.value),placeholder:"Write your review comment..."})]})})]})]})}function Nae({open:e,editingFilter:t,onCancel:n,onSave:r}){const[a]=mn.useForm();l.useEffect(()=>{e&&(t?a.setFieldsValue({name:t.name,filterId:t.filterId}):a.resetFields())},[e,t,a]);const i=async()=>{try{const c=await a.validateFields();await r(c),a.resetFields()}catch{}};return z.jsx(ea,{title:t?"Edit Filter":"Add Filter",open:e,onCancel:n,onOk:i,destroyOnClose:!0,children:z.jsxs(mn,{form:a,layout:"vertical",style:{marginTop:16},children:[z.jsx(mn.Item,{name:"name",label:"Filter Name",rules:[{required:!0,message:"Please enter filter name"}],children:z.jsx(gr,{placeholder:"e.g. My Sprint Issues"})}),z.jsx(mn.Item,{name:"filterId",label:"Filter ID",rules:[{required:!0,message:"Please enter Jira Filter ID"}],children:z.jsx(gr,{placeholder:"e.g. 12345"})})]})})}const{Text:fR}=Wr;function Mae({open:e,filters:t,onCancel:n,onCreate:r,onEdit:a,onDelete:i}){const c=[{title:"Filter Name",dataIndex:"name",key:"name",render:u=>z.jsx(fR,{strong:!0,children:u})},{title:"Filter ID",dataIndex:"filterId",key:"filterId",width:150,render:u=>z.jsx(fR,{code:!0,children:u})},{title:"Action",key:"action",width:130,align:"right",render:(u,d)=>z.jsxs(dn,{size:"small",children:[z.jsx(Pt,{type:"text",icon:z.jsx(tS,{}),onClick:()=>a(d)}),z.jsx(vi,{title:"Delete filter?",description:"Are you sure you want to delete this filter?",onConfirm:()=>i(d.id),okText:"Yes",cancelText:"No",children:z.jsx(Pt,{type:"text",danger:!0,icon:z.jsx(Ha,{})})})]})}];return z.jsx(ea,{title:"Filter List",open:e,onCancel:n,footer:[z.jsx(Pt,{onClick:n,children:"Close"},"close"),z.jsx(Pt,{type:"primary",icon:z.jsx(Lo,{}),onClick:r,children:"Add Filter"},"add")],width:640,children:z.jsx(ha,{rowKey:"id",dataSource:t,columns:c,pagination:!1,size:"small",style:{marginTop:16}})})}const{Title:Tae,Text:Hu,Paragraph:jae}=Wr,Pae=e=>{if(!e)return"default";const t=(typeof e=="string"?e:e.name||"").toLowerCase();return t.includes("blocker")||t.includes("highest")||t.includes("p0")||t.includes("urgent")?"red":t.includes("critical")||t.includes("high")||t.includes("p1")?"volcano":t.includes("major")||t.includes("medium")||t.includes("normal")||t.includes("p2")?"orange":t.includes("minor")||t.includes("low")||t.includes("p3")?"blue":t.includes("trivial")||t.includes("lowest")||t.includes("p4")?"cyan":"default"},Dae=e=>e?typeof e=="string"?e:e.name||"—":"—";function _ae(){const{message:e}=Mo.useApp(),[t,n]=l.useState([]),[r,a]=l.useState(null),[i,c]=l.useState([]),[u,d]=l.useState(!0),[f,v]=l.useState(!1),[g,p]=l.useState(""),[y,C]=l.useState(!1),[S,b]=l.useState(null),[x,$]=l.useState(!1),w=l.useCallback(async()=>{try{const j=await Bu.list();n(j),j.length>0?(!r||!j.some(_=>_.id===r))&&a(j[0].id):(a(null),c([]))}catch(j){e.error(j.message)}finally{d(!1)}},[r,e]),E=l.useCallback(async j=>{if(j){v(!0),p("");try{const _=await Bu.issues(j);c(_.issues||[])}catch(_){p(_.message),c([])}finally{v(!1)}}},[]);l.useEffect(()=>{w()},[]),l.useEffect(()=>{r&&E(r)},[r,E]);const O=()=>{b(null),C(!0)},N=j=>{b(j),C(!0)},I=async j=>{try{if(S)await Bu.update(S.id,j),e.success("Filter updated");else{const _=await Bu.create(j);e.success("Filter created"),a(_.id)}C(!1),await w()}catch(_){e.error(_.message)}},M=async j=>{try{await Bu.remove(j),e.success("Filter deleted"),await w()}catch(_){e.error(_.message)}},T=[{title:"Summary",dataIndex:"summary",key:"summary",render:(j,_)=>z.jsxs(dn,{align:"start",style:{wordBreak:"break-word"},children:[z.jsx(Hu,{code:!0,style:{fontSize:12,flexShrink:0},children:_.key}),z.jsx("a",{style:{fontWeight:500},onClick:B=>{B.preventDefault(),Co(_.url)},children:j})]})},{title:"Priority",dataIndex:"priority",key:"priority",width:140,align:"center",render:j=>{const _=Dae(j),B=Pae(j);return z.jsx(Yn,{color:B,children:_})}},{title:"Due Date",dataIndex:"dueDate",key:"dueDate",width:160,align:"center",render:j=>j?z.jsx(Hu,{type:"secondary",children:j}):z.jsx(Hu,{type:"secondary",children:"—"})}];return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"page-header",children:[z.jsxs("div",{children:[z.jsx(Hu,{type:"secondary",children:"JIRA"}),z.jsx(Tae,{level:2,children:"Jira Filters"}),z.jsx(jae,{type:"secondary",children:"Track issues across configured Jira filters."})]}),z.jsxs(dn,{children:[z.jsx(Pt,{onClick:()=>$(!0),children:"Filter List"}),z.jsx(Pt,{type:"primary",icon:z.jsx(Lo,{}),onClick:O,children:"+ Filter"})]})]}),u?z.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:z.jsx(hi,{size:"large"})}):t.length?z.jsxs(z.Fragment,{children:[z.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[z.jsx(ss,{activeKey:r,onChange:a,style:{marginBottom:0,flex:1},items:t.map(j=>({key:j.id,label:j.name}))}),r&&z.jsx(Pt,{icon:z.jsx(Sd,{}),loading:f,onClick:()=>E(r),style:{marginLeft:16},children:"Refresh"})]}),f?z.jsx("div",{style:{padding:"60px 0",textAlign:"center"},children:z.jsx(hi,{size:"large"})}):g?z.jsxs("div",{style:{padding:"40px 0",textAlign:"center"},children:[z.jsx(Hu,{danger:!0,children:g}),z.jsx("div",{style:{marginTop:12},children:z.jsx(Pt,{size:"small",icon:z.jsx(Sd,{}),onClick:()=>E(r),children:"Retry"})})]}):z.jsx(ha,{className:"jira-filters-table",rowKey:"id",dataSource:i,columns:T,pagination:!1})]}):z.jsx(cr,{description:"No Jira filters configured yet.",style:{marginTop:80}}),z.jsx(Nae,{open:y,editingFilter:S,onCancel:()=>C(!1),onSave:I}),z.jsx(Mae,{open:x,filters:t,onCancel:()=>$(!1),onCreate:()=>{$(!1),O()},onEdit:j=>{$(!1),N(j)},onDelete:M})]})}const{TextArea:zae}=gr;function Aae({open:e,editingTodo:t,onCancel:n,onSave:r}){const[a]=mn.useForm();l.useEffect(()=>{e&&(t?a.setFieldsValue({title:t.title||"",description:t.description||"",priority:t.priority||"medium",category:t.category||"work",dueDate:t.dueDate?ia(t.dueDate):null}):(a.resetFields(),a.setFieldsValue({priority:"medium",category:"work"})))},[e,t,a]);const i=async()=>{try{const c=await a.validateFields();r({...c,dueDate:c.dueDate?c.dueDate.format("YYYY-MM-DD"):null})}catch{}};return z.jsx(ea,{title:t?"Edit Task":"New Task",open:e,onOk:i,onCancel:n,destroyOnClose:!0,okText:t?"Save":"Create",cancelText:"Cancel",children:z.jsxs(mn,{form:a,layout:"vertical",style:{marginTop:16},children:[z.jsx(mn.Item,{name:"title",label:"Task Title",rules:[{required:!0,message:"Please enter task title"}],children:z.jsx(gr,{placeholder:"Enter task title...",maxLength:100,showCount:!0})}),z.jsx(mn.Item,{name:"description",label:"Description / Notes",children:z.jsx(zae,{rows:3,placeholder:"Add relevant details, background, or notes...",maxLength:500,showCount:!0})}),z.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:12},children:[z.jsx(mn.Item,{name:"priority",label:"Priority",children:z.jsx(Ir,{options:[{value:"high",label:"🔴 High"},{value:"medium",label:"🟡 Medium"},{value:"low",label:"🔵 Low"}]})}),z.jsx(mn.Item,{name:"category",label:"Category",children:z.jsx(Ir,{options:[{value:"work",label:"💼 Work"},{value:"dev",label:"💻 Dev"},{value:"bug",label:"🐛 Bug"},{value:"feature",label:"✨ Feature"},{value:"personal",label:"🏠 Personal"}]})}),z.jsx(mn.Item,{name:"dueDate",label:"Due Date",children:z.jsx(Ac,{style:{width:"100%"},placeholder:"Select date"})})]})]})})}function Sv({text:e,domain:t,jiraIssuePrefix:n,style:r,className:a}){if(!e)return null;const i=[],c=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let u=0;const d=(n||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):/\b[A-Z]{2,10}-\d+\b/g,v=(g,p)=>{const y=[];let C=0;f.lastIndex=0;for(const S of g.matchAll(f)){S.index>C&&y.push(g.slice(C,S.index));const b=S[0],x=t?oS(t,b):null;x?y.push(z.jsx("a",{href:x,target:"_blank",rel:"noreferrer",onClick:$=>{$.preventDefault(),$.stopPropagation(),Co(x)},style:{color:"#1677ff",textDecoration:"underline",fontWeight:500},children:b},`${p}-${S.index}`)):y.push(b),C=S.index+b.length}return C<g.length&&y.push(g.slice(C)),y};for(const g of e.matchAll(c)){g.index>u&&i.push(...v(e.slice(u,g.index),`txt-${g.index}`));const p=g[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(p)i.push(z.jsx("a",{href:p[2],target:"_blank",rel:"noreferrer",onClick:y=>{y.preventDefault(),y.stopPropagation(),Co(p[2])},style:{color:"#1677ff",textDecoration:"underline"},children:p[1]},g.index));else{const y=g[0].replace(/[),.;:!?]+$/,"");i.push(z.jsx("a",{href:y,target:"_blank",rel:"noreferrer",onClick:C=>{C.preventDefault(),C.stopPropagation(),Co(y)},style:{color:"#1677ff",textDecoration:"underline"},children:y},g.index)),g[0].length>y.length&&i.push(g[0].slice(y.length))}u=g.index+g[0].length}return u<e.length&&i.push(...v(e.slice(u),"txt-end")),z.jsx("span",{style:r,className:a,children:i})}const{Title:Bae,Text:qi,Paragraph:Lae}=Wr,kae={work:{label:"💼 Work",color:"blue"},dev:{label:"💻 Dev",color:"purple"},bug:{label:"🐛 Bug",color:"red"},feature:{label:"✨ Feature",color:"green"},personal:{label:"🏠 Personal",color:"orange"}},Hae={high:{label:"High",color:"error"},medium:{label:"Medium",color:"warning"},low:{label:"Low",color:"default"}};function Fae(){const{message:e}=Mo.useApp(),[t,n]=l.useState([]),[r,a]=l.useState(!0),[i,c]=l.useState(""),[u,d]=l.useState("all"),[f,v]=l.useState("all"),[g,p]=l.useState("all"),[y,C]=l.useState("createdDesc"),[S,b]=l.useState(""),[x,$]=l.useState("medium"),[w,E]=l.useState("work"),[O,N]=l.useState(!1),[I,M]=l.useState([]),[T,j]=l.useState({domain:"",jiraIssuePrefix:""}),[_,B]=l.useState(!1),[H,A]=l.useState(null),F=l.useCallback(async()=>{a(!0);try{const Q=await Ba.list();n(Q)}catch(Q){e.error(Q.message)}finally{a(!1)}},[e]);l.useEffect(()=>{F(),Ea.status().then(Q=>{Q&&j(Q)}).catch(()=>{})},[F]);const D=l.useMemo(()=>t.filter(Q=>!Q.archived),[t]),L=l.useMemo(()=>t.filter(Q=>Q.archived).length,[t]),W=l.useMemo(()=>{const Q=D.length,ie=D.filter(ge=>ge.completed).length,ue=Q-ie,de=Q>0?Math.round(ie/Q*100):0,se=D.filter(ge=>!ge.completed&&ge.priority==="high").length;return{total:Q,completed:ie,active:ue,rate:de,highPriorityCount:se}},[D]),G=async()=>{const Q=S.trim();if(Q)try{const ie=await Ba.create({title:Q,priority:x,category:w,completed:!1});n(ue=>[ie,...ue]),b(""),e.success("Task added")}catch(ie){e.error(ie.message)}},V=async Q=>{try{if(H){const ie=await Ba.update(H.id,Q);n(ue=>ue.map(de=>de.id===ie.id?ie:de)),e.success("Task updated")}else{const ie=await Ba.create(Q);n(ue=>[ie,...ue]),e.success("Task created")}B(!1)}catch(ie){e.error(ie.message)}},k=async Q=>{try{const ie=await Ba.update(Q.id,{...Q,completed:!Q.completed});n(ue=>ue.map(de=>de.id===ie.id?ie:de))}catch(ie){e.error(ie.message)}},U=async Q=>{try{await Ba.archive(Q),n(ie=>ie.map(ue=>ue.id===Q?{...ue,archived:!0,archivedAt:new Date().toISOString()}:ue)),e.success("Task archived")}catch(ie){e.error(ie.message)}},K=async Q=>{try{await Ba.remove(Q),n(ie=>ie.filter(ue=>ue.id!==Q)),M(ie=>ie.filter(ue=>ue!==Q)),e.success("Task deleted")}catch(ie){e.error(ie.message)}},q=async Q=>{if(Q==="clearCompleted"){try{const ie=await Ba.batch("clearCompleted");n(ie),M([]),e.success("Completed tasks cleared")}catch(ie){e.error(ie.message)}return}if(I.length)try{const ie=await Ba.batch(Q,I);n(ie),M([]),e.success("Batch action succeeded")}catch(ie){e.error(ie.message)}},Z=l.useMemo(()=>{let Q=D;if(i.trim()){const ie=i.toLowerCase().trim();Q=Q.filter(ue=>ue.title.toLowerCase().includes(ie)||(ue.description||"").toLowerCase().includes(ie))}return u==="active"?Q=Q.filter(ie=>!ie.completed):u==="completed"&&(Q=Q.filter(ie=>ie.completed)),f!=="all"&&(Q=Q.filter(ie=>ie.priority===f)),g!=="all"&&(Q=Q.filter(ie=>ie.category===g)),[...Q].sort((ie,ue)=>{if(y==="dueAsc")return ie.dueDate?ue.dueDate?ie.dueDate.localeCompare(ue.dueDate):-1:1;if(y==="priorityDesc"){const de={high:3,medium:2,low:1};return(de[ue.priority]||0)-(de[ie.priority]||0)}return new Date(ue.createdAt||0)-new Date(ie.createdAt||0)})},[D,i,u,f,g,y]),X=l.useMemo(()=>Z.map(Q=>Q.id),[Z]),ee=X.length>0&&X.every(Q=>I.includes(Q)),te=I.length>0,oe=Q=>{Q.target.checked?M(X):M([])},le=Q=>{M(ie=>ie.includes(Q)?ie.filter(ue=>ue!==Q):[...ie,Q])},ne=ia().format("YYYY-MM-DD");return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"page-header",children:[z.jsxs("div",{children:[z.jsx(qi,{type:"secondary",children:"WORKBENCH"}),z.jsx(Bae,{level:2,children:"To-Do List"}),z.jsx(Lae,{type:"secondary",children:"Manage and track development tasks, bug fixes, and feature items efficiently."})]}),z.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[z.jsxs(dn,{children:[z.jsx(Pt,{icon:z.jsx(Sd,{}),onClick:F,loading:r,children:"Refresh"}),z.jsx(Pt,{type:"primary",icon:z.jsx(Lo,{}),onClick:()=>{A(null),B(!0)},children:"New Task"})]}),z.jsxs(Pt,{icon:z.jsx(aS,{}),onClick:()=>{window.location.hash="#/todo-list/archived"},style:{marginTop:8},children:["Archived (",L,")"]})]})]}),z.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:16,marginBottom:24},children:[z.jsxs(Xn,{size:"small",style:{borderRadius:8},children:[z.jsx(qi,{type:"secondary",style:{fontSize:13},children:"Total Tasks"}),z.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4},children:W.total})]}),z.jsxs(Xn,{size:"small",style:{borderRadius:8},children:[z.jsx(qi,{type:"secondary",style:{fontSize:13},children:"Active (Pending)"}),z.jsxs("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:W.active>0?"#fa8c16":"inherit"},children:[W.active,W.highPriorityCount>0&&z.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#ff4d4f",marginLeft:8},children:["(",W.highPriorityCount," high priority)"]})]})]}),z.jsxs(Xn,{size:"small",style:{borderRadius:8},children:[z.jsx(qi,{type:"secondary",style:{fontSize:13},children:"Completed"}),z.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:"#52c41a"},children:W.completed})]}),z.jsxs(Xn,{size:"small",style:{borderRadius:8},children:[z.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[z.jsx(qi,{type:"secondary",style:{fontSize:13},children:"Completion Rate"}),z.jsxs(qi,{style:{fontSize:13,fontWeight:600},children:[W.rate,"%"]})]}),z.jsx(rT,{percent:W.rate,showInfo:!1,size:"small",status:"active",style:{marginTop:12}})]})]}),z.jsx(Xn,{size:"small",style:{marginBottom:20,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.02)"},children:z.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[z.jsx(gr,{placeholder:"Quickly add a task... (Press Enter to submit)",value:S,onChange:Q=>b(Q.target.value),onPressEnter:G,size:"large",style:{flex:1}}),z.jsx(Ir,{value:x,onChange:$,size:"large",style:{width:130},options:[{value:"high",label:"🔴 High"},{value:"medium",label:"🟡 Medium"},{value:"low",label:"🔵 Low"}]}),z.jsx(Ir,{value:w,onChange:E,size:"large",style:{width:130},options:[{value:"work",label:"💼 Work"},{value:"dev",label:"💻 Dev"},{value:"bug",label:"🐛 Bug"},{value:"feature",label:"✨ Feature"},{value:"personal",label:"🏠 Personal"}]}),z.jsx(Pt,{type:"primary",size:"large",icon:z.jsx(Lo,{}),onClick:G,children:"Add"})]})}),z.jsx(Xn,{size:"small",style:{marginBottom:16,borderRadius:8},children:z.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:16,alignItems:"center",justifyContent:"space-between"},children:[z.jsxs(no.Group,{value:u,onChange:Q=>d(Q.target.value),optionType:"button",buttonStyle:"solid",children:[z.jsxs(no.Button,{value:"all",children:["All (",W.total,")"]}),z.jsxs(no.Button,{value:"active",children:["Active (",W.active,")"]}),z.jsxs(no.Button,{value:"completed",children:["Completed (",W.completed,")"]})]}),z.jsxs(dn,{wrap:!0,children:[z.jsx(gr,{prefix:z.jsx(Dd,{}),placeholder:"Search tasks...",value:i,onChange:Q=>c(Q.target.value),allowClear:!0,style:{width:220}}),z.jsx(Ir,{value:y,onChange:C,style:{width:140},options:[{value:"createdDesc",label:"Sort: Created"},{value:"dueAsc",label:"Sort: Due Date"},{value:"priorityDesc",label:"Sort: Priority"}]})]})]})}),(O||te)&&z.jsxs("div",{style:{padding:"10px 16px",marginBottom:16,backgroundColor:"#e6f4ff",border:"1px solid #91caff",borderRadius:8,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[z.jsxs(qi,{style:{color:"#0958d9"},children:[z.jsx("strong",{style:{color:"#0958d9",fontWeight:600},children:I.length})," items selected"]}),z.jsxs(dn,{wrap:!0,children:[z.jsx(Pt,{size:"small",onClick:()=>{M(ee?[]:X)},children:ee?"Deselect All":"Select All"}),z.jsx(Pt,{size:"small",icon:z.jsx(hy,{}),disabled:!I.length,onClick:()=>q("markCompleted"),children:"Mark Completed"}),z.jsx(Pt,{size:"small",icon:z.jsx(vv,{}),disabled:!I.length,onClick:()=>q("markPending"),children:"Mark Active"}),z.jsx(vi,{title:"Are you sure you want to delete selected tasks?",onConfirm:()=>q("delete"),okText:"Delete",cancelText:"Cancel",disabled:!I.length,children:z.jsx(Pt,{size:"small",danger:!0,icon:z.jsx(Ha,{}),disabled:!I.length,children:"Delete Selected"})}),z.jsx(Pt,{size:"small",type:"link",onClick:()=>{N(!1),M([])},children:"Exit Select Mode"})]})]}),t.length>0&&z.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[O?z.jsx(ka,{checked:ee,onChange:oe,style:{marginRight:10}}):z.jsx(Cr,{title:"Enter Select Mode",children:z.jsx(HT,{style:{fontSize:15,marginRight:10,cursor:"pointer",color:O?"#1677ff":"#727b94",transition:"color 0.2s"},onClick:()=>N(!0)})}),z.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),z.jsx("div",{style:{width:110,textAlign:"center"},children:z.jsx(Ir,{size:"small",variant:"borderless",value:g,onChange:p,style:{fontSize:12,fontWeight:600,color:"#727b94"},options:[{value:"all",label:"Category"},{value:"work",label:"💼 Work"},{value:"dev",label:"💻 Dev"},{value:"bug",label:"🐛 Bug"},{value:"feature",label:"✨ Feature"},{value:"personal",label:"🏠 Personal"}]})}),z.jsx("div",{style:{width:110,textAlign:"center"},children:z.jsx(Ir,{size:"small",variant:"borderless",value:f,onChange:v,style:{fontSize:12,fontWeight:600,color:"#727b94"},options:[{value:"all",label:"Priority"},{value:"high",label:"🔴 High"},{value:"medium",label:"🟡 Medium"},{value:"low",label:"🔵 Low"}]})}),z.jsx("span",{style:{width:120,textAlign:"center"},children:"Due Date"}),z.jsx("span",{style:{width:120,textAlign:"right"},children:"Actions"})]}),r?z.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:z.jsx(hi,{size:"large"})}):Z.length===0?z.jsx(cr,{image:cr.PRESENTED_IMAGE_SIMPLE,description:t.length===0?"No tasks yet. Create your first task!":"No matching tasks found.",children:t.length===0&&z.jsx(Pt,{type:"primary",icon:z.jsx(Lo,{}),onClick:()=>{A(null),B(!0)},children:"New Task"})}):z.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Z.map(Q=>{var se;const ie=kae[Q.category]||{label:Q.category,color:"default"},ue=Hae[Q.priority]||{label:Q.priority,color:"default"},de=Q.dueDate&&Q.dueDate<ne&&!Q.completed;return z.jsx(Xn,{size:"small",style:{borderRadius:8,borderColor:I.includes(Q.id)?"#1677ff":void 0,opacity:Q.completed?.65:1,transition:"all 0.2s ease"},bodyStyle:{padding:"12px 16px"},children:z.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[O?z.jsx(ka,{checked:I.includes(Q.id),onChange:()=>le(Q.id)}):z.jsx(Cr,{title:Q.completed?"Mark as active":"Mark as completed",children:z.jsx(ka,{checked:Q.completed,onChange:()=>k(Q),style:{transform:"scale(1.1)"}})}),z.jsxs("div",{style:{flex:1,minWidth:0},children:[z.jsx("div",{style:{fontWeight:500,fontSize:15,lineHeight:"1.4",textDecoration:Q.completed?"line-through":"none",color:Q.completed?"rgba(0, 0, 0, 0.35)":"inherit",wordBreak:"break-word"},children:z.jsx(Sv,{text:Q.title,domain:T.domain,jiraIssuePrefix:T.jiraIssuePrefix})}),!!((se=Q.description)!=null&&se.trim())&&z.jsx("div",{style:{fontSize:12,color:Q.completed?"rgba(0, 0, 0, 0.35)":"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.jsx(Sv,{text:Q.description.trim(),domain:T.domain,jiraIssuePrefix:T.jiraIssuePrefix})})]}),z.jsx("div",{style:{width:110,textAlign:"center"},children:z.jsx(Yn,{color:ie.color,style:{margin:0},children:ie.label})}),z.jsx("div",{style:{width:110,textAlign:"center"},children:z.jsx(Yn,{color:ue.color,style:{margin:0},children:ue.label})}),z.jsx("div",{style:{width:120,textAlign:"center"},children:Q.dueDate?z.jsxs(Yn,{color:de?"error":"default",style:{margin:0},children:[z.jsx(vv,{style:{marginRight:4}}),Q.dueDate,de&&" (Overdue)"]}):z.jsx(qi,{type:"secondary",style:{fontSize:12},children:"—"})}),z.jsx("div",{style:{width:120,textAlign:"right"},children:z.jsxs(dn,{size:"small",children:[Q.completed&&z.jsx(Cr,{title:"Archive task",children:z.jsx(Pt,{type:"text",size:"small",icon:z.jsx(mre,{style:{color:"#fa8c16"}}),onClick:()=>U(Q.id)})}),z.jsx(Pt,{type:"text",size:"small",icon:z.jsx(tS,{}),onClick:()=>{A(Q),B(!0)}}),z.jsx(vi,{title:"Are you sure you want to delete this task?",onConfirm:()=>K(Q.id),okText:"Delete",cancelText:"Cancel",children:z.jsx(Pt,{type:"text",danger:!0,size:"small",icon:z.jsx(Ha,{})})})]})})]})},Q.id)})}),u==="completed"&&W.completed>0&&z.jsx("div",{style:{marginTop:24,textAlign:"right"},children:z.jsx(vi,{title:`Are you sure you want to clear all ${W.completed} completed tasks?`,onConfirm:()=>q("clearCompleted"),okText:"Clear",cancelText:"Cancel",children:z.jsxs(Pt,{type:"dashed",danger:!0,icon:z.jsx(Ha,{}),children:["Clear all completed tasks (",W.completed,")"]})})}),z.jsx(Aae,{open:_,editingTodo:H,onCancel:()=>B(!1),onSave:V})]})}const{Title:Vae,Text:mR,Paragraph:Wae}=Wr,Kae={work:{label:"💼 Work",color:"blue"},dev:{label:"💻 Dev",color:"purple"},bug:{label:"🐛 Bug",color:"red"},feature:{label:"✨ Feature",color:"green"},personal:{label:"🏠 Personal",color:"orange"}},Uae={high:{label:"High",color:"error"},medium:{label:"Medium",color:"warning"},low:{label:"Low",color:"default"}};function qae(){const{message:e}=Mo.useApp(),[t,n]=l.useState([]),[r,a]=l.useState(!0),[i,c]=l.useState(""),[u,d]=l.useState({domain:"",jiraIssuePrefix:""}),f=l.useCallback(async()=>{a(!0);try{const C=await Ba.list();n(C)}catch(C){e.error(C.message)}finally{a(!1)}},[e]);l.useEffect(()=>{f(),Ea.status().then(C=>{C&&d(C)}).catch(()=>{})},[f]);const v=l.useMemo(()=>{let C=t.filter(S=>S.archived);if(i.trim()){const S=i.toLowerCase().trim();C=C.filter(b=>b.title.toLowerCase().includes(S)||(b.description||"").toLowerCase().includes(S))}return C.sort((S,b)=>new Date(b.archivedAt||0)-new Date(S.archivedAt||0))},[t,i]),g=async C=>{try{await Ba.unarchive(C),n(S=>S.map(b=>b.id===C?{...b,archived:!1,archivedAt:null}:b)),e.success("Task restored to To-Do List")}catch(S){e.error(S.message)}},p=async C=>{try{await Ba.remove(C),n(S=>S.filter(b=>b.id!==C)),e.success("Task permanently deleted")}catch(S){e.error(S.message)}},y=async()=>{try{const C=await Ba.batch("clearArchived");n(C),e.success("All archived tasks cleared")}catch(C){e.error(C.message)}};return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"page-header",children:[z.jsxs("div",{children:[z.jsx(mR,{type:"secondary",children:"WORKBENCH"}),z.jsxs(Vae,{level:2,children:[z.jsx(aS,{style:{marginRight:8,color:"#1677ff"}}),"Archived Tasks"]}),z.jsx(Wae,{type:"secondary",children:"View and manage archived tasks. Archived items can be restored back to your active To-Do list."})]}),z.jsxs(dn,{children:[z.jsx(Pt,{icon:z.jsx(tR,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"}),z.jsx(Pt,{icon:z.jsx(Sd,{}),onClick:f,loading:r,children:"Refresh"})]})]}),z.jsx(Xn,{size:"small",style:{marginBottom:16,borderRadius:8},children:z.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[z.jsxs(mR,{type:"secondary",children:["Total Archived: ",z.jsx("strong",{style:{color:"#1677ff"},children:v.length})," items"]}),z.jsx(gr,{prefix:z.jsx(Dd,{}),placeholder:"Search archived tasks...",value:i,onChange:C=>c(C.target.value),allowClear:!0,style:{width:240}})]})}),v.length>0&&z.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[z.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),z.jsx("span",{style:{width:110,textAlign:"center"},children:"Category"}),z.jsx("span",{style:{width:110,textAlign:"center"},children:"Priority"}),z.jsx("span",{style:{width:140,textAlign:"center"},children:"Archived At"}),z.jsx("span",{style:{width:100,textAlign:"right"},children:"Actions"})]}),r?z.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:z.jsx(hi,{size:"large"})}):v.length===0?z.jsx(cr,{image:cr.PRESENTED_IMAGE_SIMPLE,description:"No archived tasks found.",children:z.jsx(Pt,{icon:z.jsx(tR,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"})}):z.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:v.map(C=>{var $;const S=Kae[C.category]||{label:C.category,color:"default"},b=Uae[C.priority]||{label:C.priority,color:"default"},x=C.archivedAt?ia(C.archivedAt).format("YYYY-MM-DD HH:mm"):"—";return z.jsx(Xn,{size:"small",style:{borderRadius:8,opacity:.85},bodyStyle:{padding:"12px 16px"},children:z.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[z.jsxs("div",{style:{flex:1,minWidth:0},children:[z.jsx("div",{style:{fontWeight:500,fontSize:15,lineHeight:"1.4",textDecoration:C.completed?"line-through":"none",color:"inherit",wordBreak:"break-word"},children:z.jsx(Sv,{text:C.title,domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})}),!!(($=C.description)!=null&&$.trim())&&z.jsx("div",{style:{fontSize:12,color:"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.jsx(Sv,{text:C.description.trim(),domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})})]}),z.jsx("div",{style:{width:110,textAlign:"center"},children:z.jsx(Yn,{color:S.color,style:{margin:0},children:S.label})}),z.jsx("div",{style:{width:110,textAlign:"center"},children:z.jsx(Yn,{color:b.color,style:{margin:0},children:b.label})}),z.jsx("div",{style:{width:140,textAlign:"center"},children:z.jsxs(Yn,{color:"default",style:{margin:0},children:[z.jsx(vv,{style:{marginRight:4}}),x]})}),z.jsx("div",{style:{width:100,textAlign:"right"},children:z.jsxs(dn,{size:"small",children:[z.jsx(Cr,{title:"Restore to To-Do List",children:z.jsx(Pt,{type:"text",size:"small",icon:z.jsx(Ure,{style:{color:"#1677ff"}}),onClick:()=>g(C.id)})}),z.jsx(vi,{title:"Permanently delete this archived task?",onConfirm:()=>p(C.id),okText:"Delete",cancelText:"Cancel",children:z.jsx(Pt,{type:"text",danger:!0,size:"small",icon:z.jsx(Ha,{})})})]})})]})},C.id)})}),v.length>0&&z.jsx("div",{style:{marginTop:24,textAlign:"right"},children:z.jsx(vi,{title:`Are you sure you want to permanently delete all ${v.length} archived tasks?`,onConfirm:y,okText:"Delete All",cancelText:"Cancel",children:z.jsxs(Pt,{type:"dashed",danger:!0,icon:z.jsx(Ha,{}),children:["Clear all archived tasks (",v.length,")"]})})})]})}const{Title:Gae}=Wr,Xae=()=>{const n=(window.location.hash||"").slice(2).split("/");if(n[0]==="logs"){const r=n[1]||"",a=n[2]==="pkg",i=a?n[3]:n[2];return{launcherId:r,isPackage:a,scriptIdOrName:i}}return{launcherId:null,isPackage:!1,scriptIdOrName:null}};function Yae(){const{message:e}=Mo.useApp(),{launcherId:t,isPackage:n,scriptIdOrName:r}=Xae(),[a,i]=l.useState("output"),[c,u]=l.useState(""),[d,f]=l.useState(!0),[v,g]=l.useState(!1),[p,y]=l.useState(""),[C,S]=l.useState(r),b=l.useRef(null);l.useEffect(()=>{t&&yr.list().then(w=>{var O;const E=w.find(N=>N.id===t);if(E&&(E.alias&&y(E.alias),!n&&r))if(r==="install")S("Install");else{const N=(O=E.scripts)==null?void 0:O.find(I=>I.id===r);N!=null&&N.name&&S(N.name)}}).catch(()=>{})},[t,n,r]),l.useEffect(()=>{const w=p?`${p} · `:"",E=C||r||"Logs";return document.title=`${w}${E} · DevBuddy`,()=>{document.title="DevBuddy · Workbench"}},[p,C,r]),l.useEffect(()=>{if(!t||!r)return;const w=async()=>{try{const O=n?a==="error"?await yr.packageScriptErrorLogs(t,r):await yr.packageScriptLogs(t,r):a==="error"?await yr.errorLogs(t,r):await yr.logs(t,r);u(O.log||(a==="error"?"No error logs yet.":"No logs yet."))}catch(O){u(O.message)}finally{f(!1)}};w();const E=setInterval(w,1e3);return()=>clearInterval(E)},[t,n,r,a]),l.useEffect(()=>{if(b.current){const w=b.current.querySelector(".log-output");w&&(w.scrollTop=w.scrollHeight)}},[c]);const x=async()=>{try{await navigator.clipboard.writeText(window.location.href),g(!0),e.success("URL copied to clipboard"),setTimeout(()=>g(!1),2e3)}catch{e.error("Failed to copy URL")}},$=()=>{window.close()};return!t||!r?z.jsx("div",{className:"standalone-log-container",style:{display:"grid",placeItems:"center",height:"100vh",background:"#111827",color:"#ef4444"},children:z.jsx("div",{children:"Invalid log target specified in URL."})}):z.jsxs("div",{className:"standalone-log-container",ref:b,children:[z.jsxs("header",{className:"standalone-log-header",children:[z.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[z.jsxs(Gae,{level:4,style:{margin:0,color:"#f3f4f6",fontSize:16},children:[p||t," ",z.jsx("span",{style:{color:"#9ca3af",fontWeight:"normal"},children:"/"})," ",C||r]}),d&&z.jsx(hi,{size:"small"})]}),z.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[z.jsxs(no.Group,{value:a,onChange:w=>i(w.target.value),size:"small",buttonStyle:"solid",children:[z.jsx(no.Button,{value:"output",children:"Output"}),z.jsx(no.Button,{value:"error",children:"Errors"})]}),z.jsx(Pt,{size:"small",icon:v?z.jsx(Mc,{}):z.jsx(Jl,{}),onClick:x,children:v?"Copied":"Copy URL"}),z.jsx(Pt,{type:"text",icon:z.jsx(Ro,{}),onClick:$,style:{color:"#9ca3af"},title:"Close Tab"})]})]}),z.jsx("div",{className:"standalone-log-body",children:z.jsx(Sy,{value:c,className:"standalone-log-output"})})]})}const{Content:Qae,Sider:Zae}=il,{Title:Jae,Text:eoe}=Wr,toe=()=>{const t=(window.location.hash||"#/launcher").slice(2);return t.startsWith("plugin:")?{page:"plugin",pluginId:t.slice(7)}:t.startsWith("static:")?{page:"static-page",staticId:t.slice(7)}:t.startsWith("logs/")?{page:"logs",pluginId:null}:["todo-list/archived","todo-archived"].includes(t)?{page:"todo-archived",pluginId:null}:["launcher","clipboard","ports","image-compress","pr-review","jira-filters","todo-list","settings"].includes(t)?{page:t,pluginId:null}:{page:"launcher",pluginId:null}};function noe(){const{message:e}=Mo.useApp(),t=toe(),[n,r]=l.useState([]),[a,i]=l.useState(new Set),[c,u]=l.useState({}),[d,f]=l.useState(!0),[v,g]=l.useState([]),[p,y]=l.useState([]),[C,S]=l.useState(t.page),[b,x]=l.useState(t.pluginId?{id:t.pluginId,name:"Plugin"}:null),[$,w]=l.useState(null),[E,O]=l.useState(""),N=async()=>{try{const[_,B]=await Promise.all([yr.list(),yr.running()]);r(_),Array.isArray(B)?(i(new Set(B)),u({})):(i(new Set((B==null?void 0:B.running)||[])),u((B==null?void 0:B.errorCounts)||{}))}catch(_){e.error(_.message)}finally{f(!1)}},I=async _=>{if(_){O("Loading plugin…");try{O(_.view?await(await fetch(_.view)).text():"This plugin does not provide a view yet.")}catch{O("Failed to load the plugin view.")}}};l.useEffect(()=>{Promise.all([N(),Yre.list().then(g),Zre.list().then(y)]).catch(_=>e.error(_.message))},[]),l.useEffect(()=>{const _=()=>{const H=(window.location.hash||"#/launcher").slice(2);if(H.startsWith("plugin:")){const A=H.slice(7),F=v.find(D=>D.id===A);F?(w(null),S("plugin"),x(F),I(F)):v.length>0&&(window.location.hash="#/launcher")}else if(H.startsWith("static:")){const A=H.slice(7),F=p.find(D=>String(D.id)===String(A));F?(x(null),S("static-page"),w(F)):p.length>0&&(window.location.hash="#/launcher")}else H.startsWith("logs/")?(x(null),w(null),S("logs")):["todo-list/archived","todo-archived"].includes(H)?(x(null),w(null),S("todo-archived")):["launcher","clipboard","ports","image-compress","pr-review","jira-filters","todo-list","settings"].includes(H)?(x(null),w(null),S(H)):window.location.hash="#/launcher"};return window.addEventListener("hashchange",_),v.length>0||p.length>0||window.location.hash?_():window.location.hash="#/launcher",()=>window.removeEventListener("hashchange",_)},[v,p]),l.useEffect(()=>{if(C!=="launcher"&&C!=="ports")return;const _=setInterval(N,2e3);return()=>clearInterval(_)},[C]);const M=l.useMemo(()=>[{key:"launcher",icon:z.jsx(Cy,{}),label:"Launcher"},{key:"ports",icon:z.jsx(Vre,{}),label:"Port Diagnostic"},{key:"image-compress",icon:z.jsx(by,{}),label:"Image compression"},{key:"clipboard",icon:z.jsx(Jl,{}),label:"Clipboard history"},{key:"pr-review",icon:z.jsx(FT,{}),label:"PR Review"},{key:"jira-filters",icon:z.jsx(ure,{}),label:"Jira Filters"},{key:"todo-list",icon:z.jsx(HT,{}),label:"To-Do List"},...p.map(_=>({key:`static:${_.id}`,icon:z.jsx(VT,{}),label:_.name}))],[p]),T=({key:_})=>{window.location.hash=`#/${_}`},j=b?`plugin:${b.id}`:$?`static:${$.id}`:C==="todo-archived"?"todo-list":C;return C==="logs"?z.jsx(Yae,{}):z.jsxs(il,{className:"workbench",children:[z.jsxs(Zae,{className:"sidebar",width:240,children:[z.jsxs("div",{className:"brand",children:[z.jsx("span",{children:"✦"})," DevBuddy ",z.jsx("span",{style:{fontSize:"11px",fontWeight:"400",color:"#727b94",marginLeft:"6px",letterSpacing:"normal",verticalAlign:"middle"},children:"v0.1.10"})]}),z.jsx(ol,{theme:"dark",mode:"inline",selectedKeys:[j],items:M,onClick:T}),z.jsx("div",{className:"sidebar-bottom",children:z.jsx(ol,{theme:"dark",mode:"inline",selectedKeys:b||$?[]:[C],items:[{key:"settings",icon:z.jsx(Bre,{}),label:"Settings"}],onClick:T})})]}),z.jsx(il,{children:z.jsx(Qae,{className:`page ${C==="static-page"?"is-static-page":""}`,children:b?z.jsxs(z.Fragment,{children:[z.jsx(eoe,{type:"secondary",children:"PLUGIN"}),z.jsx(Jae,{level:2,children:b.name}),z.jsx(Xn,{children:z.jsx("div",{dangerouslySetInnerHTML:{__html:E}})})]}):C==="static-page"&&$?z.jsx("div",{className:"static-page-container",children:z.jsx("iframe",{src:$.url,title:$.name,className:"static-page-iframe"})}):C==="image-compress"?z.jsx(Eae,{}):C==="clipboard"?z.jsx(iae,{}):C==="ports"?z.jsx(Cae,{refreshLaunchers:N}):C==="pr-review"?z.jsx(Iae,{}):C==="jira-filters"?z.jsx(_ae,{}):C==="todo-list"?z.jsx(Fae,{}):C==="todo-archived"?z.jsx(qae,{}):C==="settings"?z.jsx(Sae,{}):z.jsx(hae,{launchers:n,running:a,errorCounts:c,refresh:N,loading:d})})})]})}function roe(){return z.jsx(Mo,{children:z.jsx(noe,{})})}i6.createRoot(document.getElementById("app")).render(z.jsx(ve.StrictMode,{children:z.jsx(roe,{})}));
|